﻿/* ==========================================================================
   BRETHEZY GLOBAL NAVIGATION ENGINE (navigation.css)
   ========================================================================== */

:root {
    --brethezy-header-ease: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --brethezy-shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.06);
}

/* --- HEADER & TOOLBAR BASE CHASSIS --- */
.brethezy-global-header {
    box-shadow: 0 1px 0px rgba(15, 23, 42, 0.04);
    transition: var(--brethezy-header-ease);
    z-index: 1040;
}

/* Smooth collapsing structure for the top micro-utility banner */
.header-top-bar {
    max-height: 120px; /* Accommodates multi-line text on small screens */
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out, opacity 0.25s ease-in-out;
}

/* ==========================================================================
   TOPBAR MEMBERS LOGIN PORTAL CTA BUTTON
   ========================================================================== */
.btn-topbar-login {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.12); /* Subtle glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

    /* Hover accent illumination transition shift */
    .btn-topbar-login:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }

    /* Active pressed-down engagement state shadow drop */
    .btn-topbar-login:active {
        transform: translateY(0);
        background-color: rgba(255, 255, 255, 0.15);
    }


/* ==========================================================================
   TRENDY LINEAR GRADIENT TOPBAR
   ========================================================================== */
.brethezy-gradient-topbar {
    /* Fallback solid color if background gradients fail to load */
    background-color: #0f172a;
    /* Premium deep charcoal passing into clinical sapphire blue at a 135-degree sweep */
    background: linear-gradient(135deg, #0d6efd 0%, #1e293b 55%, #0f172a 100%);
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.08);*/
    letter-spacing: 0.5px;
}

    /* Enhancing typography contrast over the new premium background gradient */
    .brethezy-gradient-topbar span {
        font-size: 14px;
    }

    /* Soft pulse color accent for the critical medical icon asset */
    .brethezy-gradient-topbar .text-warning {
        color: #ffc107 !important;
    }



.brethezy-navbar {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: var(--brethezy-header-ease);
}

.brand-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

/* --- FIX: SMART SCROLL STATES FOR BOTH MOBILE & DESKTOP --- */
.brethezy-global-header.is-scrolled .header-top-bar {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
}

.brethezy-global-header.is-scrolled .brethezy-navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* --- DESKTOP NAVIGATION INTERACTION STATES --- */
.brethezy-navbar .nav-link {
    color: #334155 !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.5rem 0.65rem !important;
    border-radius: 6px;
    transition: var(--brethezy-header-ease);
    white-space: nowrap;
}

    .brethezy-navbar .nav-link:hover {
        color: var(--bs-primary) !important;
        background-color: rgba(14, 165, 233, 0.04);
    }

/* --- HAMBURGER MENU VISIBILITY --- */
.navbar-toggler {
    outline: none !important;
    box-shadow: none !important;
}

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2.5px;
    background-color: #0f172a !important;
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

    .hamburger-inner::before {
        content: "";
        top: -7px;
    }

    .hamburger-inner::after {
        content: "";
        bottom: -7px;
    }

/* --- MEGA MENU CANVAS --- */
@media (min-width: 992px) {
    .brethezy-mega-trigger:hover .mega-menu-canvas,
    .brethezy-standard-trigger:hover .standard-dropdown-canvas {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mega-menu-canvas {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto;
        left: 0 !important;
        right: 0 !important;
        max-width: 100vw;
    }

    .standard-dropdown-canvas {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        width: 240px;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto;
    }

    .brethezy-navbar .dropdown-toggle::after {
        display: none !important;
    }
}

/* Submenu Card & Text Enhancements */
.mega-item {
    transition: var(--brethezy-header-ease);
}

    .mega-item:hover {
        background-color: rgba(14, 165, 233, 0.05);
    }

.mega-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(14, 165, 233, 0.06);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--brethezy-header-ease);
}

.mega-item:hover .mega-icon-box {
    background: var(--bs-primary);
    color: #fff !important;
}

/* Standard Dropdowns */
.standard-dropdown-canvas .dropdown-item {
    font-size: 1.1rem;
    transition: var(--brethezy-header-ease);
}

    .standard-dropdown-canvas .dropdown-item:hover {
        background-color: rgba(14, 165, 233, 0.06);
        color: var(--bs-primary) !important;
        padding-left: 12px !important;
    }

/* Custom Typography Controls */
.text-menu-bold {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

.text-submenu-desc {
    font-size: 0.92rem !important;
    color: #64748b !important;
    line-height: 1.4;
}

.text-category-header {
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   MOBILE/TABLET OFF-CANVAS ACCORDION DRAWER OVERRIDES
   ========================================================================== */
.brethezy-offcanvas {
    max-width: 340px;
}

.mobile-sublink {
    font-size: 1.1rem !important;
    font-weight: 500;
    transition: var(--brethezy-header-ease);
}

    .mobile-sublink:hover {
        background: rgba(14, 165, 233, 0.04);
        color: var(--bs-primary) !important;
        padding-left: 14px !important;
    }

.mobile-accordion .accordion-button {
    font-size: 1.2rem !important;
    font-weight: 600;
}

    .mobile-accordion .accordion-button::after {
        background-size: 0.9rem;
    }

.mobile-category-title {
    font-size: 0.95rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   DROPDOWN & MEGA MENU CANVASES LAYER SEPARATOR (navigation.css)
   ========================================================================== */

@media (min-width: 992px) {
    /* ... your existing trigger rules ... */

    .mega-menu-canvas {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto;
        left: 0 !important;
        right: 0 !important;
        max-width: 100vw;
        /* FIX: High stacking rule forces it cleanly over the progress bar track */
        z-index: 1060 !important;
    }

    .standard-dropdown-canvas {
        display: block !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(12px);
        width: 240px;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto;
        /* FIX: Matches mega menu priority depth level */
        z-index: 1060 !important;
    }
}


/* ==========================================================================
   GLOBAL SCROLL PROGRESS INDICATOR LAYER TERMINAL
   ========================================================================== */

/* The tracking rail pinned underneath the navbar */
.desktop-scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Thickness of the tracker track */
    background-color: rgba(15, 23, 42, 0.05); /* Faint gray runway line */
    overflow: hidden;
    /* FIX: Drop down to low index layer so it sits securely behind submenus */
    z-index: 999 !important;
}

/* The actual running orange indicator bar */
.desktop-scroll-progress-bar {
    height: 100%;
    width: 0%;
    /*background: linear-gradient(90deg, #f97316, #ea580c);*/ /* Trendy orange spectrum */
    background: crimson;
    box-shadow: 0 1px 6px rgba(234, 88, 12, 0.4);
    transition: width 0.1s ease-out; /* Buttery smooth rendering transitions */
    border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   FORCE HIDE OFFCANVAS DRAWERS WHEN STATIC
   ========================================================================== */
.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform .3s ease-in-out;
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: 420px;
    border-left: 1px solid rgba(0,0,0,.2);
    transform: translateX(100%);
}

/* When Bootstrap activates the drawer, slide it out smoothly */
.offcanvas.show {
    transform: none !important;
    visibility: visible !important;
}

/* ==========================================================================
   TRENDY SLIMLINE CLINICAL BREADCRUMBS
   ========================================================================== */
.brethezy-breadcrumb-nav {
    background-color: transparent !important; /* Removes the bulky gray background box */
    border: none !important; /* Removes harsh outer borders */
    box-shadow: none !important; /* Clears any shadows to keep it minimal */
    padding-left: 0 !important; /* Aligns text perfectly left flush with your page content */
}

.brethezy-breadcrumb .breadcrumb-item {
    font-size: 0.85rem; /* Slightly smaller text for an elegant, understated footprint */
    font-weight: 500;
}

    .brethezy-breadcrumb .breadcrumb-item a {
        color: #94a3b8; /* Soft slate-gray color for historical links */
        transition: color 0.2s ease;
    }

        .brethezy-breadcrumb .breadcrumb-item a:hover {
            color: var(--bs-primary); /* Highlights to Brethezy blue on interaction */
        }

    /* Slim, clean text-based forward slash separator mapping */
    .brethezy-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        content: "/" !important;
        color: #cbd5e1;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .brethezy-breadcrumb .breadcrumb-item.active {
        color: #64748b; /* Clean neutral tone for the current page indicator */
        font-weight: 500;
    }

/* ==========================================================================
   STRICTLY ISOLATED MOBILE VIEWPORT OVERRIDE 
   (Guaranteed 0% Impact on Desktop Layouts)
   ========================================================================== */

/* This rule ONLY triggers on small viewports (smartphones up to small tablets) */
@media (max-width: 767.98px) {

    /* Targets the primary wrapper element exclusively in mobile mode */
    main#mainContentBlock {
        /* Pushes content comfortably clear of the mobile menu bar shadow zones */
        margin-top: 155px !important;
        /* Inline interior layout spacing buffer for professional text presentation */
        padding-top: 15px !important;
    }
}