/* Header Styles - Extracted from header.blade.php for W3C compliance & performance */

/* ============================================================
            MODERN THEME HEADER (DESKTOP & MOBILE RESPONSIVE)
           Palette: #006D77 (Deep Teal), #00545c (Dark Teal), #83C5BE (Seafoam),
                    #E29578 (Coral Accent), #EDF6F9 (Light), #101828 (Heading)
           ============================================================ */

        /* ----- Main Header Shell ----- */
        .header {
            width: 100%;
            background: #ffffff;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 998;
            border-bottom: 1px solid rgba(0, 109, 119, 0.08);
        }

        .header .container {
            max-width: 1440px;
            width: 100%;
            padding-left: 16px;
            padding-right: 16px;
            box-sizing: border-box;
        }

        .header .main-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 80px;
            padding: 8px 0;
            flex-wrap: nowrap;
            width: 100%;
            max-width: 100%;
            gap: 8px;
            box-sizing: border-box;
        }

        /* ----- Sticky Header Glassmorphism ----- */
        .header.sticky-bar.stick {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 999;
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid rgba(0, 109, 119, 0.12);
            box-shadow: 0 8px 30px rgba(0, 55, 60, 0.08);
            animation: ptHeaderSlideDown 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .header.sticky-bar.stick .main-header {
            min-height: 68px;
            padding: 4px 0;
        }

        @keyframes ptHeaderSlideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* ----- Logo Section ----- */
        .header-logo {
            flex-shrink: 0;
            margin-right: 28px;
            transition: transform 0.25s ease;
        }

        .header-logo a {
            display: flex;
            align-items: center;
        }

        .header-logo img {
            width: 185px;
            height: auto;
            max-height: 46px;
            object-fit: contain;
            transition: transform 0.25s ease;
        }

        .header-logo a:hover img {
            transform: scale(1.02);
        }

        /* ----- Navigation Left / Flex Container ----- */
        .header .main-header .header-left {
            display: flex;
            align-items: center;
            flex: 1 1 auto;
            min-width: 0;
            width: auto !important;
        }

        .header .main-header .header-nav {
            display: flex !important;
            align-items: center;
            flex: 1 1 auto;
            min-width: 0;
            width: auto !important;
            text-align: left !important;
        }

        /* ----- Desktop Main Navigation Menu ----- */
        .header .nav-main-menu {
            float: none;
            width: auto;
        }

        .header .main-menu {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
            white-space: nowrap;
            margin: 0;
            padding: 0;
            list-style: none;
            gap: 2px;
        }

        .header .main-menu > li {
            position: relative;
            float: none;
            flex-shrink: 0;
            list-style: none;
        }

        .header .main-menu > li > a {
            font-family: "Chivo", "Inter", sans-serif;
            font-size: 15px;
            font-weight: 600;
            color: #1E293B;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 15px;
            border-radius: 10px;
            text-decoration: none;
            position: relative;
            transition: all 0.22s ease;
        }

        .header .main-menu > li > a:hover {
            color: #006D77;
            background: rgba(0, 109, 119, 0.07);
        }

        .header .main-menu > li > a.active {
            color: #006D77 !important;
            background: rgba(0, 109, 119, 0.1) !important;
            font-weight: 700;
        }

        /* Pure CSS rotating chevron indicator */
        .header .main-menu > li.has-children > a::after {
            content: "";
            display: inline-block;
            width: 5px;
            height: 5px;
            border-right: 2px solid currentColor;
            border-bottom: 2px solid currentColor;
            transform: rotate(45deg);
            margin-left: 3px;
            margin-bottom: 2px;
            transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0.75;
        }

        .header .main-menu > li.has-children:hover > a::after {
            transform: rotate(-135deg);
            margin-bottom: -1px;
            opacity: 1;
        }

        /* ----- Modern Dropdown Card Submenu ----- */
        .header .main-menu li ul.sub-menu {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 1050;
            min-width: 240px;
            background: #ffffff;
            border-radius: 16px;
            padding: 10px;
            border: 1px solid rgba(0, 109, 119, 0.12);
            box-shadow: 0 20px 42px -10px rgba(0, 55, 60, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
            list-style: none;
            margin: 6px 0 0 0;
        }

        .header .main-menu li:hover > ul.sub-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Mega 3-column grid layout for Tools, Games, Quizzes */
        .header .main-menu li ul.sub-menu.two-col {
            display: grid !important;
            grid-template-columns: repeat(3, minmax(185px, 1fr)) !important;
            gap: 3px 8px !important;
            min-width: 630px !important;
            max-width: 680px !important;
            max-height: 380px;
            overflow-y: auto;
            columns: auto !important;
            padding: 10px 12px !important;
            box-sizing: border-box !important;
        }

        /* Prevent right-overflow for later menu items like Quizzes */
        .header .main-menu > li:nth-child(n+5) ul.sub-menu.two-col {
            left: auto !important;
            right: 0 !important;
        }

        .header .main-menu li ul.sub-menu.two-col::-webkit-scrollbar {
            width: 5px;
        }

        .header .main-menu li ul.sub-menu.two-col::-webkit-scrollbar-thumb {
            background: #83C5BE;
            border-radius: 10px;
        }

        .header .main-menu li ul.sub-menu li {
            float: none !important;
            width: 100% !important;
            list-style: none;
        }

        .header .main-menu li ul.sub-menu li a {
            font-family: "Chivo", "Inter", sans-serif;
            font-size: 13px !important;
            font-weight: 500 !important;
            color: #334155 !important;
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            padding: 6px 10px !important;
            border-radius: 8px !important;
            text-decoration: none !important;
            transition: all 0.18s ease !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .header .main-menu li ul.sub-menu li a i {
            width: 24px;
            height: 24px;
            border-radius: 7px;
            background: #EDF6F9;
            color: #006D77;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
            transition: all 0.18s ease;
        }

        .header .main-menu li ul.sub-menu li a:hover {
            background: #EDF6F9 !important;
            color: #006D77 !important;
            transform: translateX(3px);
            padding-left: 10px !important;
        }

        .header .main-menu li ul.sub-menu li a:hover i {
            background: #006D77;
            color: #ffffff;
        }

        /* Prominent 'All Tools / All Games / All Quizzes' item */
        .header .main-menu li ul.sub-menu li:first-child a {
            background: linear-gradient(135deg, rgba(0, 109, 119, 0.09) 0%, rgba(131, 197, 190, 0.16) 100%) !important;
            color: #006D77 !important;
            font-weight: 700 !important;
        }

        .header .main-menu li ul.sub-menu li:first-child a i {
            background: #006D77;
            color: #ffffff;
        }

        /* ----- Header Right Area (Search & Account) ----- */
        /* Override legacy style.css max-width:225px which clipped search + Sign In */
        .header .main-header .header-right,
        .header-right {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 0 0 auto;
            flex-shrink: 0;
            max-width: none !important;
            width: auto !important;
            min-width: 0;
        }

        .header .main-header .header-left {
            width: auto !important;
            flex: 1 1 auto;
            min-width: 0;
        }

        .header .main-header .header-left .header-logo {
            margin-right: 20px !important;
        }

        /* Search Input */
        .header-search {
            position: relative;
            display: flex;
            align-items: center;
        }

        .premium-search-input {
            border-radius: 50px;
            height: 38px !important;
            min-height: 38px !important;
            max-height: 38px !important;
            line-height: 38px;
            padding: 0 16px 0 38px !important;
            border: 1.5px solid rgba(0, 109, 119, 0.14);
            background: #F8FAF9;
            color: #101828;
            font-size: 13.5px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            width: 220px;
            box-sizing: border-box;
        }

        .premium-search-input:focus {
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(0, 109, 119, 0.12);
            border-color: #006D77;
            width: 275px;
            outline: none;
        }

        .header-search .search-icon,
        .mobile-search .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #006D77;
            pointer-events: none;
            font-size: 15px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2;
        }

        .search-results-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: auto;
            right: 0;
            width: max(100%, min(360px, 90vw));
            min-width: 0;
            max-width: min(360px, 90vw);
            background: #ffffff;
            border-radius: 14px;
            padding: 8px 0;
            max-height: 400px;
            overflow-y: auto;
            z-index: 1050;
            border: 1px solid rgba(0, 109, 119, 0.14);
            box-shadow: 0 18px 40px -8px rgba(0, 55, 60, 0.16), 0 6px 12px -3px rgba(0, 0, 0, 0.05);
            box-sizing: border-box;
        }

        .search-section-header {
            padding: 8px 16px 4px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: #006D77;
            background: #F8FAF9;
            margin: 4px 0 2px 0;
        }

        .search-divider {
            margin: 6px 16px;
            border: none;
            border-top: 1px solid #E2E8F0;
        }

        .search-result-item {
            padding: 9px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #334155;
            text-decoration: none;
            transition: all 0.2s ease;
            border-bottom: 1px solid #F1F5F9;
            font-size: 13.5px;
            font-weight: 500;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background: #EDF6F9;
            color: #006D77;
            padding-left: 20px;
        }

        .search-result-item i {
            color: #006D77;
            font-size: 14px;
        }

        /* ----- Account & Sign In Buttons ----- */
        .header-account {
            position: relative;
        }

        .header-account .account-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 38px;
            padding: 0 18px;
            border-radius: 50px;
            border: 1.5px solid rgba(0, 109, 119, 0.16);
            background: #ffffff;
            color: #101828;
            text-decoration: none;
            font-family: 'Chivo', sans-serif;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
            box-sizing: border-box;
        }

        .header-account .account-toggle i.bi-person-circle {
            font-size: 17px;
            color: #006D77;
        }

        .header-account .account-toggle:hover {
            background: #EDF6F9;
            border-color: #006D77;
            color: #006D77;
            box-shadow: 0 4px 12px rgba(0, 109, 119, 0.14);
        }

        /* Sign In CTA Button (Logged Out) */
        .header-account .btn-sign-in {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 38px;
            padding: 0 20px;
            border-radius: 50px;
            background: linear-gradient(135deg, #006D77 0%, #00545c 100%);
            color: #ffffff !important;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            border: none;
            box-shadow: 0 4px 14px rgba(0, 109, 119, 0.25);
            transition: all 0.25s ease;
            white-space: nowrap;
            box-sizing: border-box;
        }

        .header-account .btn-sign-in:hover {
            background: linear-gradient(135deg, #00545c 0%, #003e44 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(0, 109, 119, 0.35);
            color: #ffffff !important;
        }

        /* Account Floating Dropdown */
        .header-account .account-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            min-width: 230px;
            background: #ffffff;
            border-radius: 14px;
            padding: 8px;
            box-shadow: 0 18px 40px -8px rgba(0, 55, 60, 0.16), 0 6px 12px -3px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(0, 109, 119, 0.12);
            opacity: 0;
            visibility: hidden;
            transform: translateY(8px);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1050;
        }

        .header-account:hover .account-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .header-account .account-dropdown-header {
            padding: 10px 14px 12px;
            border-bottom: 1px solid #F1F5F9;
            margin-bottom: 6px;
        }

        .header-account .account-dropdown-header .name {
            font-weight: 700;
            font-size: 14px;
            color: #101828;
            margin-bottom: 2px;
        }

        .header-account .account-dropdown-header .email {
            font-size: 12px;
            color: #64748B;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .header-account .account-dropdown a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            border-radius: 8px;
            color: #334155;
            text-decoration: none;
            font-size: 13.5px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .header-account .account-dropdown a:hover {
            background: #EDF6F9;
            color: #006D77;
            transform: translateX(3px);
        }

        .header-account .account-dropdown a i {
            font-size: 15px;
            color: #006D77;
        }

        .header-account .account-dropdown a.text-danger:hover {
            background: #FFF5F5;
            color: #E53E3E;
        }

        .header-account .account-dropdown a.text-danger i {
            color: #E53E3E;
        }

        /* ============================================================
           MOBILE & TABLET RESPONSIVE SYSTEM (< 992px)
           ============================================================ */

        /* ----- Hamburger Button on Mobile Header (< 992px) ----- */
        .burger-icon {
            display: none !important;
        }

        @media (max-width: 991.98px) {
            .burger-icon,
            .header .main-header .burger-icon {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 5px !important;
                width: 44px !important;
                height: 44px !important;
                min-width: 44px !important;
                max-width: 44px !important;
                border-radius: 12px !important;
                background: #EDF6F9 !important;
                border: 1.5px solid rgba(0, 109, 119, 0.25) !important;
                cursor: pointer !important;
                position: relative !important;
                top: auto !important;
                right: auto !important;
                bottom: auto !important;
                left: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                box-shadow: 0 2px 8px rgba(0, 109, 119, 0.1) !important;
                z-index: 1045 !important;
                pointer-events: auto !important;
                opacity: 1 !important;
                visibility: visible !important;
                flex-shrink: 0 !important;
                box-sizing: border-box !important;
                outline: none !important;
                overflow: hidden !important;
                transition: all 0.22s ease !important;
            }

            .burger-icon:hover,
            .burger-icon:active,
            .burger-icon:focus {
                background: #006D77 !important;
                border-color: #006D77 !important;
                box-shadow: 0 4px 14px rgba(0, 109, 119, 0.25) !important;
            }

            .burger-icon span,
            .burger-icon > span,
            .header .main-header .burger-icon span {
                position: static !important;
                left: auto !important;
                right: auto !important;
                top: auto !important;
                bottom: auto !important;
                width: 20px !important;
                max-width: 20px !important;
                height: 2.5px !important;
                min-height: 2.5px !important;
                background: #006D77 !important;
                background-color: #006D77 !important;
                border-radius: 3px !important;
                transition: all 0.2s ease !important;
                display: block !important;
                pointer-events: none !important;
                margin: 0 auto !important;
                transform: none !important;
            }

            .burger-icon:hover span,
            .burger-icon:active span,
            .burger-icon:focus span,
            .burger-icon:hover > span,
            .burger-icon:active > span,
            .burger-icon:focus > span {
                background: #ffffff !important;
                background-color: #ffffff !important;
            }

            /* Neutralize legacy dark pseudo-elements from style.css */
            .burger-icon > span::before,
            .burger-icon > span::after {
                display: none !important;
                content: none !important;
            }
        }

        /* Hide background burger-icon when mobile sidebar drawer is open */
        body.mobile-menu-active .header .burger-icon {
            opacity: 0 !important;
            pointer-events: none !important;
        }

        /* ----- Darkened Blur Backdrop Overlay ----- */
        .body-overlay-1 {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(16, 24, 40, 0.55) !important;
            backdrop-filter: blur(4px) !important;
            -webkit-backdrop-filter: blur(4px) !important;
            z-index: 1040 !important;
            visibility: hidden;
            opacity: 0;
            display: none !important;
            pointer-events: none !important;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            cursor: pointer;
            touch-action: none !important;
        }

        body.mobile-menu-active .body-overlay-1 {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
        }

        /* ----- Mobile Sidebar Drawer Shell ----- */
        .mobile-header-wrapper-style {
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 86% !important;
            max-width: 360px !important;
            height: 100% !important;
            min-height: 100vh !important;
            min-height: 100dvh !important;
            background-color: #ffffff !important;
            z-index: 1060 !important;
            visibility: hidden;
            opacity: 0;
            pointer-events: none;
            transform: translateX(105%);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
            box-shadow: -10px 0 35px rgba(0, 55, 60, 0.2);
            border-radius: 20px 0 0 20px;
            overscroll-behavior: contain;
        }

        /* Closed drawer: hidden so it cannot overflow screen or block interaction */
        .mobile-header-wrapper-style:not(.sidebar-visible) {
            display: none !important;
        }

        /* Open drawer */
        .mobile-header-wrapper-style.sidebar-visible,
        body.mobile-menu-active .mobile-header-wrapper-style {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: auto !important;
            transform: translateX(0) !important;
        }

        .mobile-header-wrapper-style .mobile-header-wrapper-inner {
            height: 100%;
            display: block;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            padding: 0 0 40px 0;
        }

        /* Mobile Drawer Header Top */
        .mobile-header-wrapper-style .mobile-header-top {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 20px 22px !important;
            background: linear-gradient(135deg, #ffffff 0%, #F8FAF9 100%) !important;
            border-bottom: 1px solid rgba(0, 109, 119, 0.12) !important;
            min-height: 78px;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .mobile-header-wrapper-style .user-account {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .mobile-header-wrapper-style .user-account img {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #83C5BE;
            flex-shrink: 0;
        }

        .mobile-header-wrapper-style .user-account .user-name {
            font-size: 15px;
            font-weight: 700;
            color: #101828;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mobile-header-wrapper-style .user-account .user-name span.text-brand {
            color: #006D77;
        }

        .mobile-header-wrapper-style .user-account .font-xs {
            font-size: 12px;
            color: #64748B;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mobile-header-wrapper-style .mobile-header-logo a img {
            max-height: 38px;
            width: auto;
            object-fit: contain;
        }

        /* Dedicated Close Button inside Drawer */
        .mobile-header-wrapper-style .mobile-menu-close {
            width: 38px;
            height: 38px;
            min-width: 38px;
            border-radius: 50%;
            background: #EDF6F9;
            color: #006D77;
            border: 1px solid rgba(0, 109, 119, 0.16);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.25s ease;
            margin-left: 12px;
            flex-shrink: 0;
        }

        .mobile-header-wrapper-style .mobile-menu-close i {
            font-size: 16px;
            line-height: 1;
            font-weight: bold;
        }

        .mobile-header-wrapper-style .mobile-menu-close:hover {
            background: #006D77;
            color: #ffffff;
            transform: rotate(90deg);
        }

        /* Mobile Drawer Content Body */
        .mobile-header-wrapper-style .mobile-header-content-area {
            padding: 18px 20px 30px;
        }

        .mobile-search {
            margin-bottom: 10px;
        }

        .mobile-search .premium-search-input {
            width: 100% !important;
            font-size: 14px;
            padding: 10px 18px 10px 42px;
        }

        .mobile-search .premium-search-input:focus {
            width: 100% !important;
        }

        .mobile-search .search-results-dropdown {
            width: 100% !important;
            min-width: 100% !important;
            max-width: 100% !important;
        }

        /* Mobile Menu Navigation List */
        .mobile-menu-wrap nav .mobile-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .mobile-menu-wrap nav .mobile-menu > li {
            padding: 3px 0;
            border-bottom: 1px solid rgba(0, 109, 119, 0.06);
            position: relative;
        }

        .mobile-menu-wrap nav .mobile-menu > li:last-child {
            border-bottom: none;
        }

        .mobile-menu-wrap nav .mobile-menu > li > a {
            font-family: "Chivo", "Inter", sans-serif;
            font-size: 15px;
            font-weight: 600;
            color: #1E293B;
            padding: 10px 10px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-decoration: none;
            transition: all 0.2s ease;
            width: 100%;
        }

        .mobile-menu-wrap nav .mobile-menu > li > a:hover,
        .mobile-menu-wrap nav .mobile-menu > li > a.active {
            color: #006D77;
            background: #EDF6F9;
        }

        /* Expand Badge / Arrow */
        .mobile-menu-wrap nav .mobile-menu li.has-children {
            position: relative;
        }

        .mobile-menu-wrap nav .mobile-menu li.has-children .menu-expand {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: #EDF6F9;
            color: #006D77;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 8px;
            right: 8px;
            cursor: pointer;
            transition: all 0.25s ease;
            z-index: 5;
            pointer-events: auto;
        }

        .mobile-menu-wrap nav .mobile-menu li.has-children.active > .menu-expand {
            background: #006D77;
            color: #ffffff;
            transform: rotate(180deg);
        }

        .mobile-menu-wrap nav .mobile-menu li.has-children .menu-expand i {
            font-size: 13px;
            line-height: 1;
            color: inherit;
        }

        /* Mobile Sub-menu Items */
        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu {
            padding: 6px 6px 8px 12px;
            margin: 4px 0 8px 10px;
            border-left: 2.5px solid #83C5BE;
            list-style: none;
        }

        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li {
            padding: 3px 0;
            border-bottom: none !important;
        }

        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li a {
            font-size: 13.5px;
            font-weight: 500;
            color: #475467;
            display: flex;
            align-items: center;
            gap: 9px;
            padding: 7px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li a i {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            background: #EDF6F9;
            color: #006D77;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li a:hover,
        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li a.active {
            color: #006D77;
            background: #EDF6F9;
            font-weight: 600;
            padding-left: 14px;
        }

        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li a:hover i {
            background: #006D77;
            color: #ffffff;
        }

        /* Featured 'All Tools' item */
        .mobile-menu-wrap nav .mobile-menu li ul.sub-menu li:first-child a {
            color: #006D77;
            font-weight: 700;
            background: rgba(0, 109, 119, 0.06);
        }

        /* Mobile Account Card */
        .mobile-account {
            margin-top: 22px;
            padding: 16px 18px;
            border-radius: 14px;
            background: #EDF6F9;
            border: 1px solid rgba(0, 109, 119, 0.12);
        }

        .mobile-account h6,
        .mobile-account .mobile-account-title {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: #006D77;
            margin-bottom: 12px;
        }

        .mobile-account ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .mobile-account ul li {
            padding: 6px 0;
            border-bottom: none !important;
        }

        .mobile-account ul li a,
        .mobile-account ul li button {
            font-size: 14px;
            font-weight: 600;
            color: #1E293B;
            transition: all 0.2s ease;
            text-decoration: none;
        }

        .mobile-account ul li a:hover,
        .mobile-account ul li button:hover {
            color: #006D77;
        }

        .mobile-account .btn-mobile-signin {
            display: block;
            width: 100%;
            text-align: center;
            padding: 10px 16px;
            border-radius: 50px;
            background: linear-gradient(135deg, #006D77 0%, #00545c 100%);
            color: #ffffff !important;
            font-weight: 600;
            text-decoration: none;
            box-shadow: 0 4px 14px rgba(0, 109, 119, 0.25);
        }

        .mobile-header-wrapper-style .site-copyright {
            margin-top: 22px;
            text-align: center;
            font-size: 12px;
            color: #94A3B8;
        }

        /* ===== Responsive Breakpoint Rules ===== */
        @media (max-width: 991.98px) {
            .header {
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

            .header .container {
                padding-left: 16px !important;
                padding-right: 16px !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

            .header .main-header {
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                width: 100% !important;
                max-width: 100% !important;
                min-height: 66px !important;
                padding: 6px 0 !important;
                margin: 0 !important;
                box-sizing: border-box !important;
                position: relative !important;
            }

            .header .main-header .header-left {
                display: flex !important;
                align-items: center !important;
                justify-content: flex-start !important;
                width: auto !important;
                max-width: none !important;
                flex: 0 1 auto !important;
                margin: 0 !important;
                padding: 0 !important;
                box-sizing: border-box !important;
            }

            .header .main-header .header-left .header-logo {
                margin: 0 !important;
                padding: 0 !important;
                flex-shrink: 0 !important;
                display: flex !important;
                align-items: center !important;
            }

            .header .main-header .header-left .header-logo img {
                width: 155px !important;
                max-height: 40px !important;
                height: auto !important;
                object-fit: contain !important;
            }

            .header .main-header .header-nav,
            .header .main-header .header-right {
                display: none !important;
            }
        }

        @media (min-width: 992px) and (max-width: 1199.98px) {
            .header .container {
                padding-left: 14px;
                padding-right: 14px;
            }

            .header .main-menu > li > a {
                padding: 8px 8px;
                font-size: 13px;
            }

            .header .main-header .header-left .header-logo {
                margin-right: 12px !important;
            }

            .header .main-header .header-left .header-logo img {
                width: 140px !important;
                max-height: 38px !important;
            }

            .header-right {
                gap: 8px !important;
            }

            .premium-search-input {
                width: 140px;
                font-size: 12.5px;
                height: 34px !important;
                min-height: 34px !important;
                max-height: 34px !important;
                line-height: 34px;
                padding: 0 12px 0 30px !important;
            }

            .premium-search-input:focus {
                width: 165px;
            }

            .header-search .search-icon {
                left: 12px;
                font-size: 13px;
            }

            .header-account .account-toggle {
                height: 34px;
                padding: 0 12px;
                font-size: 12.5px;
                gap: 4px;
            }

            .header-account .btn-sign-in {
                height: 34px;
                padding: 0 12px;
                font-size: 12.5px;
                gap: 5px;
            }

            .header .main-menu li ul.sub-menu.two-col {
                min-width: 480px !important;
                max-width: 520px !important;
                grid-template-columns: repeat(3, minmax(145px, 1fr)) !important;
                gap: 2px 6px !important;
                padding: 8px 10px !important;
            }

            .header .main-menu li ul.sub-menu li a {
                font-size: 12px !important;
                padding: 5px 7px !important;
                gap: 6px !important;
            }

            .header .main-menu li ul.sub-menu li a i {
                width: 22px;
                height: 22px;
                font-size: 11px;
            }
        }

        @media (min-width: 1200px) and (max-width: 1399.98px) {
            .header .container {
                padding-left: 16px;
                padding-right: 16px;
            }

            .header .main-header .header-left .header-logo {
                margin-right: 14px !important;
            }

            .header .main-header .header-left .header-logo img {
                width: 150px !important;
                max-height: 40px !important;
            }

            .header .main-menu > li > a {
                padding: 8px 9px;
                font-size: 13.5px;
            }

            .header-right {
                gap: 10px !important;
            }

            .header .main-menu li ul.sub-menu.two-col {
                min-width: 560px !important;
                max-width: 600px !important;
                grid-template-columns: repeat(3, minmax(165px, 1fr)) !important;
                gap: 3px 6px !important;
            }

            .header .main-menu li ul.sub-menu li a {
                font-size: 12.5px !important;
                padding: 5px 8px !important;
            }

            .premium-search-input {
                width: 155px;
                font-size: 13px;
                height: 36px !important;
                min-height: 36px !important;
                max-height: 36px !important;
                line-height: 36px;
                padding: 0 14px 0 34px !important;
            }

            .premium-search-input:focus {
                width: 190px;
            }

            .header-account .account-toggle,
            .header-account .btn-sign-in {
                height: 36px;
                padding: 0 14px;
                font-size: 13px;
            }
        }

        @media (max-width: 767.98px) {
            .header .main-header {
                min-height: 64px !important;
            }

            .header .main-header .header-left .header-logo img {
                width: 145px !important;
                max-height: 36px !important;
            }
        }

        @media (max-width: 575.98px) {
            .header .container {
                padding-left: 14px !important;
                padding-right: 14px !important;
            }

            .header .main-header {
                min-height: 58px !important;
                padding: 4px 0 !important;
            }

            .header .main-header .header-left .header-logo img {
                width: 130px !important;
                max-height: 32px !important;
            }

            .burger-icon,
            .header .main-header .burger-icon {
                width: 42px !important;
                height: 42px !important;
                min-width: 42px !important;
                max-width: 42px !important;
                border-radius: 10px !important;
                gap: 4px !important;
            }

            .header .main-header .burger-icon span,
            .burger-icon span {
                width: 18px !important;
                max-width: 18px !important;
                height: 2px !important;
                min-height: 2px !important;
            }

            .mobile-header-wrapper-style {
                width: 88%;
                max-width: 320px;
                border-radius: 18px 0 0 18px;
            }
        }
