/* ==========================================
   GLOBAL RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    font-family:'Poppins', sans-serif;
    background:#ffffff;
    color:#333;
    overflow-x:hidden;
    line-height:1.7;
}

/* ==========================================
   ROOT VARIABLES (San & San Corporate Identity)
========================================== */

:root{
    /* Brand Design Palette */
    --primary-color: #5C3A21;       /* Deep Earth Brown from logo typography & initials */
    --secondary-color: #00A8CC;     /* Ocean Sky Blue from the logo wave accent */
    --dark-color: #2B1A0F;          /* Rich Dark Chocolate for heavy headers & footers */
    --light-color: #ffffff;         /* Pure Canvas White */
    --text-color: #555;
    --section-bg: #f8f9fa;
    --brand-light-blue: #E6F7FA;    /* Background tinted blue for interactive blocks */

    --shadow:
    0 10px 30px rgba(0,0,0,0.08);

    --transition:
    all 0.4s ease;
}

/* ==========================================
   GLOBAL CONTAINER SYSTEM
========================================== */

.container{
    width:100%;
    max-width:1320px;
    margin:0 auto;
    padding-left:20px;
    padding-right:20px;
}

/* ==========================================
   RESPONSIVE CENTERING
========================================== */

section{
    width:100%;
    position:relative;
}

/* ==========================================
   BUTTONS
========================================== */

.btn-custom{
    background:var(--secondary-color);
    color:#fff;
    border:none;
    border-radius:50px;
    padding:12px 28px;
    font-weight:600;
    transition:var(--transition);
    text-decoration:none;
}

.btn-custom:hover{
    background:var(--primary-color);
    color:#fff;
    transform:translateY(-3px);
}

/* ==========================================
   LOADER
========================================== */

#loader{
    position:fixed;
    inset:0;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.spinner{
    width:65px;
    height:65px;
    border:7px solid #eee;
    border-top:7px solid var(--secondary-color);
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* ==========================================
   DARK MODE BUTTON
========================================== */

#theme-toggle{
    position:fixed;
    right:20px;
    bottom:90px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--secondary-color); /* Changed to brand blue for readability */
    color:#fff;
    z-index:999;
    cursor:pointer;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

#theme-toggle:hover{
    transform:scale(1.1);
}

/* ==========================================
   SCROLL TOP BUTTON
========================================== */

#scrollTopBtn{
    position:fixed;
    right:20px;
    bottom:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--primary-color); /* Swap to brown balance */
    color:#fff;
    display:none;
    cursor:pointer;
    z-index:999;
    transition:var(--transition);
}

#scrollTopBtn:hover{
    transform:translateY(-5px);
}

/* ==========================================
   NAVBAR
========================================== 

.custom-navbar{
    background:#ffffff;
    padding:15px 0;
    transition:all 0.4s ease;
    box-shadow:0 2px 15px rgba(0,0,0,0.05);
}*/

/* DARK MODE NAVBAR */
body.dark-mode .custom-navbar{
    background:var(--dark-color);
}

/* LOGO */
.navbar-brand{
    font-size:28px;
    font-weight:700;
    color:var(--primary-color) !important; /* Base logo color text to brown */
}

.navbar-brand span{
    color:var(--secondary-color); /* Keep trailing spans as ocean blue */
}

/* DARK MODE LOGO */
body.dark-mode .navbar-brand{
    color:#ffffff !important;
}

/* NAV LINKS */
.nav-link{
    color:var(--primary-color) !important; /* Update layout text to brand primary brown */
    margin-left:18px;
    font-weight:500;
    position:relative;
    transition:0.3s ease;
}

/* DARK MODE LINKS */
body.dark-mode .nav-link{
    color:#ffffff !important;
}

.nav-link::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-5px;
    width:0;
    height:2px;
    background:var(--secondary-color);
    transition:0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after{
    width:100%;
}

/* MOBILE TOGGLER */
.navbar-toggler{
    border:none;
    font-size:28px;
    color:var(--primary-color);
}

/* DARK MODE TOGGLER */
body.dark-mode .navbar-toggler{
    color:#ffffff;
}

.navbar-toggler:focus{
    box-shadow:none;
}

/* ==========================================
   HERO SECTION
========================================== */

.hero-section{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    overflow:visible;
    padding-bottom:120px;
}

/* SLIDES */
.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1.5s ease-in-out;
}

.hero-slide.active{
    opacity:1;
}

/* OVERLAY */
.hero-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        to right,
        rgba(43,26,15,0.8), /* Tinted gradient with corporate warm tones */
        rgba(0,0,0,0.45)
    );
    z-index:1;
}

/* CONTENT */
.hero-content{
    position:relative;
    z-index:2;
    width:100%;
    color:#fff;
    padding-top:80px;
}

.hero-text{
    max-width:750px;
}

.hero-content h1{
    font-size:68px;
    font-weight:700;
    line-height:1.15;
    margin-bottom:25px;
}

.hero-content p{
    font-size:20px;
    margin-bottom:35px;
    color:#f1f1f1;
}

/* BUTTONS */
.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
    margin-bottom:50px;
}

.hero-outline-btn{
    padding:12px 28px;
    border-radius:50px;
    border:2px solid #fff;
    color:#fff;
    text-decoration:none;
    transition:0.4s ease;
}

.hero-outline-btn:hover{
    background:#fff;
    color:var(--dark-color);
}

/* ==========================================
   COUNTERS
========================================== */

.hero-counters{
    display:flex;
    gap:40px;
    margin-top:50px;
    margin-bottom:50px;
    flex-wrap:wrap;
}

.counter-box{
    min-width:120px;
}

.counter-box h2{
    font-size:42px;
    font-weight:700;
    color:var(--secondary-color); /* High contrast ocean blue statistics */
}

.counter-box p{
    color:#fff;
}

.hero-search-wrapper{
    display:flex;
    justify-content:center;
}

/* ==========================================
   PAGE HERO
========================================== */

.page-hero{
    position:relative;
    min-height:60vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:url('../images/destination-banner.jpg');
    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.page-hero-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        rgba(43,26,15,0.75), /* Unified dark brown backdrop overlay */
        rgba(0,0,0,0.6)
    );
}

.page-hero-content{
    position:relative;
    z-index:2;
    color:#fff;
    max-width:750px;
    margin:auto;
}

.page-hero-content h1{
    font-size:60px;
    font-weight:700;
    margin-bottom:20px;
}

.page-hero-content p{
    font-size:20px;
}

/* ==========================================
   FILTERS
========================================== */

.destination-filters{
    margin-top:-50px;
    position:relative;
    z-index:10;
}

.destination-filters .container{
    background:#fff;
    padding:30px;
    border-radius:25px;
    box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

.destination-filters .form-control,
.destination-filters .form-select{
    height:58px;
    border-radius:14px;
}

.destination-filters .form-control:focus,
.destination-filters .form-select:focus{
    box-shadow:none;
    border-color:var(--secondary-color);
}

/* ==========================================
   DESTINATION PAGE
========================================== */

.destinations-page{
    background:#f8f9fa;
}

/* ==========================================
   DESTINATION CARDS
========================================== */

.destination-card{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:0.4s ease;
    height:100%;
    display:flex;
    flex-direction:column;
}

.destination-card:hover{
    transform:translateY(-10px);
}

.destination-img{
    height:260px;
    overflow:hidden;
}

.destination-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.5s ease;
}

.destination-card:hover .destination-img img{
    transform:scale(1.1);
}

.destination-content{
    padding:25px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.destination-content h4{
    font-size:24px;
    font-weight:600;
    margin-bottom:15px;
    color:var(--primary-color); /* Destination header links use earth brown */
}

.destination-content p{
    color:#666;
    margin-bottom:20px;
}

.destination-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.price{
    color:var(--secondary-color);
    font-weight:700;
    font-size:22px;
}

.rating{
    color:#f5b301;
}

/* ==========================================
   FOOTER
========================================== */

.simple-footer{
    background:var(--dark-color); /* Swapped hard background to dark branded brown */
    color:#fff;
    text-align:center;
    padding:30px 0;
    border-top: 3px solid var(--secondary-color); /* Wave color trim */
}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px){
    .page-hero{
        min-height:50vh;
        padding-top:120px;
    }
    .page-hero-content h1{
        font-size:36px;
    }
    .page-hero-content p{
        font-size:16px;
    }
    .destination-filters{
        margin-top:-30px;
    }
    .destination-filters .container{
        padding:20px;
        border-radius:20px;
    }
    .destination-img{
        height:230px;
    }
}

/* ==========================================
   SEARCH BOX
========================================== */

.hero-search-wrapper{
    margin-top:50px;
    width:100%;
}

.hero-search-box{
    background:#fff;
    width:100%;
    max-width:1100px;
    padding:30px;
    border-radius:25px;
    box-shadow:0 20px 50px rgba(0,0,0,0.12);
    position:relative;
    z-index:5;
    margin-top:0;
}

.hero-search-box .form-control,
.hero-search-box .form-select{
    height:58px;
    border-radius:14px;
    border:1px solid #ddd;
}

.hero-search-box .form-control:focus,
.hero-search-box .form-select:focus{
    box-shadow:none;
    border-color:var(--secondary-color);
}

/* ==========================================
   DESTINATION SUGGESTIONS
========================================== */

#suggestions-box{
    position:absolute;
    top:105%;
    left:0;
    width:100%;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:var(--shadow);
    z-index:999;
}

.suggestion-item{
    padding:12px 15px;
    cursor:pointer;
    transition:0.3s ease;
}

.suggestion-item:hover{
    background:var(--brand-light-blue); /* Smooth branding context tint on lookup selection */
}

/* ==========================================
   TABLET
========================================== */

@media(max-width:991px){
    .hero-content h1{
        font-size:52px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media(max-width:768px){
    .hero-section{
        min-height:auto;
        padding-top:160px;
        padding-bottom:120px;
    }
    .hero-content{
        text-align:center;
        max-width:100%;
    }
    .hero-content h1{
        font-size:36px;
        line-height:1.3;
    }
    .hero-content p{
        font-size:16px;
    }
    .hero-buttons{
        justify-content:center;
    }
    .hero-counters{
        justify-content:center;
        gap:30px;
    }
    .counter-box{
        width:40%;
    }
    .hero-search-wrapper{
        margin-top:40px;
    }
    .hero-search-box{
        padding:20px;
        border-radius:20px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:576px){
    .hero-content h1{
        font-size:30px;
    }
    .counter-box{
        width:45%;
    }
}

/* ==========================================
   HERO PLACEHOLDER
========================================== */

.hero-placeholder{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    background:
    linear-gradient(
        rgba(43,26,15,0.65), /* Matching brand layout brown mask */
        rgba(0,0,0,0.65)
    ),
    url('../images/hero.jpg');
    background-size:cover;
    background-position:center;
    padding:120px 0;
}

.hero-placeholder-content{
    width:100%;
    max-width:850px;
    margin:auto;
}

.hero-placeholder-content h1{
    color:#fff;
    font-size:70px;
    font-weight:700;
    margin-bottom:20px;
}

.hero-placeholder-content p{
    color:#f1f1f1;
    font-size:20px;
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media(max-width:991px){
    .container{
        padding-left:18px;
        padding-right:18px;
    }
    .hero-placeholder-content h1{
        font-size:52px;
    }
}

/* ==========================================
   MOBILE RESPONSIVE
========================================== */

@media(max-width:768px){
    .container{
        max-width:100%;
        padding-left:14px;
        padding-right:14px;
    }
    .navbar-collapse{
        background:rgba(43,26,15,0.98); /* Update breakdown navigation background */
        padding:20px;
        border-radius:15px;
        margin-top:15px;
    }
    .nav-link{
        margin:12px 0;
    }
    .hero-placeholder{
        min-height:auto;
        padding-top:180px;
        padding-bottom:100px;
    }
    .hero-placeholder-content{
        max-width:100%;
    }
    .hero-placeholder-content h1{
        font-size:32px;
        line-height:1.25;
        margin-bottom:20px;
    }
    .hero-placeholder-content p{
        font-size:16px;
    }
    .btn-custom{
        width:100%;
        text-align:center;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media(max-width:576px){
    .container{
        padding-left:12px;
        padding-right:12px;
    }
    .hero-placeholder-content h1{
        font-size:30px;
    }
}

/* ==========================================
   DARK MODE SYSTEM
========================================== */

body.dark-mode{
    background:var(--dark-color);
    color:#ffffff;
}

/* HERO */
body.dark-mode .hero-placeholder{
    background:
    linear-gradient(
        rgba(43,26,15,0.8),
        rgba(43,26,15,0.8)
    ),
    url('../images/hero.jpg');
}

/* TEXT */
body.dark-mode .hero-placeholder-content p{
    color:#f1f1f1;
}

/* MOBILE NAVBAR */
@media(max-width:768px){
    .navbar-collapse{
        background:#ffffff;
        padding:20px;
        border-radius:15px;
        margin-top:15px;
    }
    body.dark-mode .navbar-collapse{
        background:var(--dark-color);
    }
}

/* ==========================================
   MOBILE LOGO FIX
========================================== */

@media(max-width:768px){
    .navbar-brand{
        font-size:22px;
        max-width:75%;
        line-height:1.2;
        white-space:normal;
    }
}

@media(max-width:768px){
    .hero-search-wrapper{
        margin-top:35px;
    }
}

/* ==========================================
   DESTINATION DETAILS PAGE
========================================== */

.destination-details-hero{
    position:relative;
    min-height:75vh;
    background-size:cover !important;
    background-position:center !important;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.details-overlay{
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        rgba(43,26,15,0.7),
        rgba(0,0,0,0.6)
    );
}

.destination-details-content{
    position:relative;
    z-index:2;
    color:#fff;
    max-width:700px;
}

.destination-details-content h1{
    font-size:70px;
    font-weight:700;
    margin-bottom:20px;
}

.destination-details-content p{
    font-size:20px;
    color:#f1f1f1;
}

/* HIGHLIGHTS */

.highlight-card{
    background:#fff;
    padding:35px 25px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:0.4s ease;
    height:100%;
}

.highlight-card:hover{
    transform:translateY(-10px);
}

.highlight-card i{
    font-size:45px;
    color:var(--secondary-color);
    margin-bottom:20px;
}

.highlight-card h4{
    margin-bottom:15px;
    color:var(--primary-color);
}

/* GALLERY */

.gallery-img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:0.4s ease;
}

.gallery-img:hover{
    transform:scale(1.03);
}

/* PRICING */

.pricing-card{
    background:#fff;
    padding:40px 30px;
    border-radius:25px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:0.4s ease;
}

.pricing-card:hover{
    transform:translateY(-10px);
}

.pricing-card h2{
    color:var(--secondary-color);
    margin:20px 0;
}

.pricing-card.featured{
    background:var(--primary-color); /* Swapped highlight card balance to brand brown */
    color:#fff;
}

.pricing-card.featured h2{
    color:#fff;
}

/* MOBILE */

@media(max-width:768px){
    .destination-details-hero{
        min-height:60vh;
        padding-top:120px;
    }
    .destination-details-content h1{
        font-size:40px;
    }
    .destination-details-content p{
        max-width:75%;
    }
    .destination-details-content p{
        font-size:16px;
    }
}

/* =====================================
   PACKAGE CARD
===================================== */

.package-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
}

.package-card:hover{
    transform:translateY(-8px);
}

.package-img{
    height:250px;
    overflow:hidden;
}

.package-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}

.package-card:hover img{
    transform:scale(1.08);
}

.package-content{
    padding:25px;
}

.package-destination{
    display:inline-block;
    background:var(--brand-light-blue); /* Swapped placeholder background tint to brand light blue */
    color:var(--primary-color);
    font-weight: 500;
    padding:6px 14px;
    border-radius:30px;
    font-size:14px;
    margin-bottom:15px;
}

.package-content h3{
    font-size:24px;
    margin-bottom:15px;
    color:var(--primary-color); /* Title weights mapped to brown */
}

.package-content p{
    color:#666;
    margin-bottom:20px;
}

.package-meta{
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
    font-size:15px;
    color:#555;
}

.package-price{
    font-size:28px;
    font-weight:700;
    color:var(--secondary-color); /* Main package currency highlights map to ocean blue */
    margin-bottom:20px;
}

.gallery-img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:12px;
}

.details-card video{
    height:250px;
    object-fit:cover;
}

/* =====================================
   PACKAGE DETAILS
===================================== */

.package-hero{
    position:relative;
    height:70vh;
    overflow:hidden;
}

.package-hero img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.package-overlay{
    position:absolute;
    inset:0;
    background:rgba(43,26,15,0.55); /* Tinted layout overlay mask */
}

.package-hero-content{
    position:absolute;
    bottom:80px;
    color:#fff;
    z-index:2;
}

.package-location{
    background:#ffffff30;
    padding:8px 18px;
    border-radius:30px;
    display:inline-block;
    margin-bottom:20px;
}

.details-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    margin-bottom:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.tour-info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.info-box{
    background:#f8f9fa;
    padding:20px;
    border-radius:12px;
    text-align:center;
}

.info-box i{
    font-size:28px;
    margin-bottom:10px;
    color:var(--secondary-color); /* Fontawesome context icons map to corporate blue */
}

.itinerary-box{
    border-left:4px solid var(--secondary-color); /* Ocean blue structural highlights */
    padding-left:20px;
    margin-bottom:25px;
}

.gallery-img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}

.review-box{
    padding:20px;
    border-bottom:1px solid #eee;
}

.booking-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    position:sticky;
    top:120px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.booking-card h3{
    font-size:36px;
    margin-bottom:10px;
    color:var(--primary-color);
}

/* Container column setup to force layout alignment */
.details-card .row .col-md-4 {
    display: flex;
    flex-direction: column;
}

/* Force both images and videos to share exact dimensions */
.details-card .gallery-media {
    width: 100%;
    height: 220px;          /* Hard height forces uniformity */
    object-fit: cover;      /* Crops vertical media to fit aspect ratio */
    background: #000;       /* Prevents letterboxing color leaks */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effects */
.details-card .gallery-media:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Custom Dashboard Navigation Button styling */
.btn-back-dashboard {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    background-color: var(--primary-color); /* Mapped backend return elements seamlessly into brown profile */
    border: none;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Hover and active micro-interactions */
.btn-back-dashboard:hover {
    background-color: var(--dark-color);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-back-dashboard:active {
    transform: translateY(0);
}


/* ===================================
TOP BAR
=================================== */

.top-bar{
    background:#0f3d2e;
    color:#fff;
    font-size:14px;
    padding:8px 0;
}

.top-bar span{
    margin-right:20px;
}

.top-bar a{
    color:#fff;
    margin-left:12px;
    text-decoration:none;
}

.top-bar a:hover{
    color:#d9b56d;
}

/* ===================================
NAVBAR
=================================== */

.custom-navbar{
    background:#ffffff;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
    padding:12px 0;
}

.logo-img{
    height:70px;
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.brand-text strong{
    font-size:22px;
    color:#0f3d2e;
}

.brand-text small{
    color:#777;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.nav-link{
    font-weight:600;
    margin:0 8px;
}

.nav-link:hover{
    color:#d9b56d !important;
}

.btn-safari{
    background:#d9b56d;
    color:#fff;
    border-radius:30px;
    padding:10px 25px;
    font-weight:600;
}

.btn-safari:hover{
    background:#c39f52;
    color:#fff;
}

/* ====================================
FOOTER
==================================== */

.main-footer{

    background:#0d1b2a;
    color:#fff;

    padding:70px 0 30px;

}

.main-footer h4,
.main-footer h5{

    margin-bottom:20px;

}

.main-footer ul{

    list-style:none;
    padding:0;

}

.main-footer ul li{

    margin-bottom:10px;

}

.main-footer ul li a{

    color:#ddd;
    text-decoration:none;

}

.footer-social a{

    color:#fff;

    margin-right:15px;

    font-size:20px;

}

.main-footer hr{

    margin:30px 0;

    border-color:rgba(255,255,255,.2);

}

/* Custom styling to match your navbar theme colors */
.custom-navbar .dropdown-menu {
    background-color: #ffffff;
    border-radius: 8px;
    top: 110%;
}

.custom-navbar .dropdown-item {
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-navbar .dropdown-item:hover {
    background-color: #f8fafc;
    color: #025c2e; /* Matches your brand green */
    padding-left: 1.25rem; /* Subtle slider effect on hover */
}

/* Dark mode compatibility rules if theme is toggled */
body.dark-mode .custom-navbar .dropdown-menu {
    background-color: #16263f !important;
    border: 1px solid #243754 !important;
}
body.dark-mode .custom-navbar .dropdown-item {
    color: #ffffff !important;
}
body.dark-mode .custom-navbar .dropdown-item:hover {
    background-color: #1d3152 !important;
}

@media (max-width: 991.98px) {
    /* Ensures the dropdown list pushes down neatly inside the mobile menu stack */
    .custom-navbar .dropdown-menu {
        position: static !important;
        float: none;
        background-color: rgba(0, 0, 0, 0.02) !important;
        padding-left: 1rem;
        margin-top: 5px;
        box-shadow: none !important;
    }
    
    /* Maintains visual hierarchy in dark mode for mobile viewports */
    body.dark-mode .custom-navbar .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: none !important;
    }
}

