/* ======================================================== */
/*      /css/header.css (Complete & Optimized)
/* ======================================================== */

/* --- 1. ROOT VARIABLES --- */
:root {
    --adt-header-bluish: #2c3e50; /* Top bar background */
    --adt-header-text-light: #ffffff; /* Top bar text */
    --adt-header-height-main: 100px; /* Main nav height */
    --adt-header-height-top: 35px; /* Top bar height */
    --header-text-dark: #333; /* Main nav text color */
    --header-link-active: #0056b3; /* Adept Blue for hover/active */
}

/* --- 2. MAIN HEADER STYLES --- */
.adt-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1255;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: top 0.3s ease-in-out;
}

.adt-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 3. TOP BAR STYLES --- */
.adt-header__top-bar {
    background-color: var(--adt-header-bluish);
    color: var(--adt-header-text-light);
    height: var(--adt-header-height-top);
    font-size: 0.85rem;
}

.adt-header__contact-info a {
    color: var(--adt-header-text-light);
    margin-right: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
}

.adt-header__social-links a {
    color: var(--adt-header-text-light);
    margin-right: 15px; /* Reduced margin for social links */
    opacity: 0.8;
    transition: opacity 0.3s;
    text-decoration: none;
}

.adt-header__contact-info a:hover,
.adt-header__social-links a:hover {
    opacity: 1;
}

.adt-header__contact-info i {
    margin-right: 6px;
}

/* --- 4. MAIN NAVIGATION AREA --- */
.adt-header__main-nav {
    height: var(--adt-header-height-main);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.adt-header__logo img {
    max-height: 80px; /* Adjusted for better alignment */
    width: auto;
}

/* --- 5. DESKTOP NAVIGATION & DROPDOWNS --- */
.adt-header__nav-desktop ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.adt-header__nav-desktop li {
    margin-left: 35px;
}

.adt-header__nav-link {
    color: var(--header-text-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.adt-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--header-link-active);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.adt-header__nav-link--active,
.adt-header__nav-link:hover {
    color: var(--header-link-active);
}

.adt-header__nav-link--active::after,
.adt-header__nav-link:hover::after {
    width: 100%;
}

.adt-header__nav-item--has-dropdown {
    position: relative;
}

.adt-header__nav-link .fa-chevron-down {
    font-size: 0.7em;
    margin-left: 6px;
    transition: transform 0.3s;
}

.adt-header__nav-item--has-dropdown:hover .adt-header__nav-link .fa-chevron-down {
    transform: rotate(180deg);
}

.adt-header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--header-link-active);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 9999;
}

.adt-header__dropdown.touch-active,
.adt-header__nav-item--has-dropdown:hover .adt-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.adt-header__dropdown-link {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--header-text-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.adt-header__dropdown-link:hover {
    background-color: #f1f5f9;
    color: var(--header-link-active);
}

/* --- 6. HAMBURGER & OVERLAY (FOR MOBILE) --- */
.adt-header__hamburger {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    z-index: 1002;
}

.adt-header__hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--header-text-dark);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: 0.3s ease-in-out;
}

.adt-header__hamburger-line:first-child { top: 0; }
.adt-header__hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.adt-header__hamburger-line:nth-child(3) { bottom: 0; }

.adt-header__hamburger--is-active .adt-header__hamburger-line:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.adt-header__hamburger--is-active .adt-header__hamburger-line:nth-child(2) { opacity: 0; }
.adt-header__hamburger--is-active .adt-header__hamburger-line:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.body-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* --- 7. Full-Screen Search (Optional, keep if you use it) --- */
/* ... (your search styles are fine, omitted for brevity) ... */


/* --- 8. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .adt-header__nav-desktop {
        display: none;
    }
    .adt-header__hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .adt-header__top-bar {
        display: none;
    }
}

/* ======================================================== */
/* == NEW: 10. MOBILE NAVIGATION & ACCORDION             == */
/* ======================================================== */

.adt-header__nav-mobile {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100vh;
    background-color: #0d3b4e; /* Dark blue background */
    z-index: 1001; /* Above overlay but below hamburger */
    padding-top: 80px; /* Space for the header */
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
}

.adt-header__nav-mobile--is-open {
    right: 0; /* Slide into view */
}

.adt-header__nav-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.adt-header__nav-mobile li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Style for both links and the accordion buttons */
.adt-header__nav-mobile a,
.adt-header__nav-mobile .submenu-toggle {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.adt-header__nav-mobile a:hover {
    background-color: var(--header-link-active);
    color: #fff;
}

/* --- Accordion Specific Styles --- */
.submenu-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.has-submenu.open > .submenu-toggle i {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    transition: max-height 0.4s ease-in-out;
}

.has-submenu.open > .submenu {
    max-height: 500px; /* A large enough value to show all items */
}

.submenu a {
    font-size: 1rem;
    font-weight: 400;
    padding-left: 35px; /* Indent sub-links */
}

/*add-on001*/
/* ======================================================== */
/*      BREADCRUMB STYLES (Mobile Optimized)
/* ======================================================== */

.adt-breadcrumb {
    background-color: #f8f9fa; /* Light background */
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    width: 100%;
    display: block !important; /* FORCE VISIBILITY ON ALL SCREENS */
    
    /* Vital: Push it down so it's not hidden behind the fixed header */
    margin-top: var(--adt-header-height-main); 
}

.adt-breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Default wrap for larger screens */
}

.adt-breadcrumb__item {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

/* Separator (/) */
.adt-breadcrumb__item + .adt-breadcrumb__item::before {
    content: "/";
    margin: 0 10px;
    color: #ccc;
    font-size: 0.8em;
}

.adt-breadcrumb__item a {
    color: var(--header-link-active); /* Adept Blue */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.adt-breadcrumb__item a:hover {
    color: var(--adt-header-bluish); /* Dark Navy */
    text-decoration: underline;
}

.adt-breadcrumb__item.active {
    color: #333; /* Darker color for current page */
    pointer-events: none;
}

.adt-breadcrumb__item i {
    margin-right: 5px;
}

/* ======================================================== */
/*      MOBILE SPECIFIC ADJUSTMENTS (320px - 425px)
/* ======================================================== */

@media (max-width: 992px) {
    .adt-breadcrumb {
        /* Adjust margin for the smaller mobile header height defined in header.css */
        margin-top: 70px; 
    }
}

@media (max-width: 768px) {
    .adt-breadcrumb {
        padding: 10px 0;
    }
    
    /* On Top Bar hidden (phones), margin is just the nav height */
    .adt-breadcrumb {
        margin-top: 70px; 
    }
}

/* --- SMALL MOBILE SCREENS (320px, 375px, 425px) --- */
@media (max-width: 576px) {
    .adt-breadcrumb__list {
        /* Prevent text wrapping on tiny screens for a cleaner look */
        flex-wrap: nowrap;
        
        /* Allow horizontal scrolling if path is long */
        overflow-x: auto;
        
        /* Smooth scrolling on iOS */
        -webkit-overflow-scrolling: touch; 
        
        /* Hide scrollbar visually but keep functionality */
        scrollbar-width: none; 
        -ms-overflow-style: none;
        
        /* Add padding to ensure text isn't cut off */
        padding-bottom: 5px; 
    }

    .adt-breadcrumb__list::-webkit-scrollbar {
        display: none;
    }

    .adt-breadcrumb__item {
        font-size: 0.85rem; /* Slightly smaller font */
        white-space: nowrap; /* Keep text on one line */
    }
    
    .adt-breadcrumb__item + .adt-breadcrumb__item::before {
        margin: 0 8px; /* Tighter spacing */
    }
}

/*add-on-002*/
/* ======================================================== */
/*   FIX: PUSH BREADCRUMB BELOW MOBILE HEADER
/* ======================================================== */

@media (max-width: 992px) {
    .adt-breadcrumb {
        /* 
           The header is fixed at the top. 
           We need to push the breadcrumb down by the height of the header 
           plus a little extra space.
        */
        margin-top: 90px !important; 
        
        /* Ensure it stays on top of the page background */
        position: relative;
        z-index: 1;
    }
}

/* For very small screens (Mobile S - 320px), give it a little more breathing room */
@media (max-width: 375px) {
    .adt-breadcrumb {
        margin-top: 95px !important;
    }
}
/*add-on001*/