/* Extracted from includes/header.php */
        /* --- HEADER STRUCTURE --- */
.h-header {
    background-color: #0b132b;
    color: #fff;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.h-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* --- LOGO --- */
.h-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    z-index: 1002;
    flex-shrink: 0;
    margin-right: 30px;
}

.h-logo .logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.h-logo span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #00A2FF;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* --- NAVIGATION --- */
.h-navbar {
    flex: 1;
    display: flex;
    justify-content: center;
}

.h-nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    width: 100%;
}

.h-nav-item {
    position: relative;
    white-space: nowrap;
}

.h-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 1500;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.h-nav-link:hover, .h-nav-link.active-page {
    color: #00c9a7;
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- DROPDOWNS --- */
.h-dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Desktop Hover Behavior */
@media (min-width: 993px) {
    /* :focus-within so keyboard users can open the menu (hover alone excludes them) */
    .h-dropdown:hover .h-dropdown-menu,
    .h-dropdown:focus-within .h-dropdown-menu {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    
    .h-dropdown:hover .h-dropdown-icon,
    .h-dropdown:focus-within .h-dropdown-icon {
        transform: rotate(180deg);
    }
    
    .h-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #1c2541;
        padding: 0.75rem 0;
        display: flex;
        flex-direction: column;
        min-width: 240px;
        max-width: 320px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        border-radius: 6px;
        border: 1px solid rgba(255,255,255,0.1);
        
        /* Transition Setup */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    /* Dropdown columns for larger menus */
    .h-dropdown-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-width: 360px;
        max-width: 400px;
    }
    
    .h-dropdown-column {
        display: flex;
        flex-direction: column;
    }
    
    .h-dropdown-header {
        color: #00c9a7;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0.5rem;
    }
    
    .h-dropdown-item {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 10px;
        border-left: 2px solid transparent;
    }
    
    .h-dropdown-item i {
        width: 16px;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .h-dropdown-item:hover {
        color: #fff;
        background-color: rgba(0,201,167,0.1);
        border-left: 2px solid #00c9a7;
        padding-left: 1.8rem;
    }
}

/* --- CONTACT BAR --- */
.h-contact-bar {
    background: linear-gradient(90deg, #0d1b48, #1a2a6c);
    padding: 8px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.h-contact-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-contact-info {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.h-contact-info i {
    margin-right: 5px;
    color: #ff6b6b;
}

.h-contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.h-contact-info a:hover {
    color: #00c9a7;
}

.h-contact-info span {
    color: rgba(255, 255, 255, 0.6);
}

/* Search + Language wrapper (transparent on desktop) */
.h-search-lang-row {
    display: contents;
}

/* Search Bar */
.h-search-bar {
    width: 280px;
    position: relative;
    margin-left: auto;
}

.h-search-bar input {
    width: 100%;
    padding: 8px 15px 8px 15px;
    padding-right: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 13px;
    transition: all 0.3s ease;
}

.h-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.h-search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
}

.h-search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

/* Social Icons */
.h-social-icons {
    margin-left: 20px;
}

.h-social-icons a {
    color: white;
    text-decoration: none;
    margin-left: 12px;
    transition: color 0.3s;
    font-size: 16px;
}

.h-social-icons a:hover {
    color: #00c9a7;
}

/* Adjust body padding for the fixed header */
body {
    padding-top: 110px; /* Adjusted for the new combined header height */
}

/* --- MEDIUM SCREENS (1200px–1399px) --- */
@media (min-width: 1200px) and (max-width: 1399px) {
    .h-nav-menu {
        gap: 0.2rem;
    }
    
    .h-nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.82rem;
    }
    
    .h-logo span {
        font-size: 1.4rem;
    }
    
    .h-logo .logo-img {
        height: 36px;
    }
    
    .h-search-bar {
        width: 250px;
    }
}

/* --- COMPACT DESKTOP (992px–1199px) --- */
@media (min-width: 993px) and (max-width: 1199px) {
    .h-container {
        padding: 0 1.5rem;
    }
    
    .h-nav-menu {
        gap: 0.15rem;
    }
    
    .h-nav-link {
        padding: 0.35rem 0.45rem;
        font-size: 0.8rem;
    }
    
    .h-logo span {
        font-size: 1.3rem;
    }
    
    .h-logo .logo-img {
        height: 34px;
    }
    
    .h-contact-container {
        padding: 0 1.5rem;
    }
    
    .h-contact-info {
        gap: 12px;
        font-size: 13px;
    }
    
    .h-search-bar {
        width: 230px;
    }
    
    .h-dropdown-columns {
        min-width: 320px;
    }
}

/* --- HAMBURGER FOR TABLETS AND MOBILE --- */
.h-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1003;
    margin-left: 15px;
}

.h-hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- TABLET VIEW (≤992px) --- */
@media (max-width: 992px) {
    body {
        padding-top: 110px !important; /* Total header height */
        margin: 0 !important;
    }
    
    .h-hamburger {
        display: flex;
    }
    
    /* Hamburger Animation */
    .h-hamburger.active .h-hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
    }
    .h-hamburger.active .h-hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .h-hamburger.active .h-hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .h-contact-bar {
        display: block;
        position: relative;
        margin-top: 0 !important;
        padding: 8px 0;
        background: #0d1b48;
    }
    
    .h-contact-container {
        flex-direction: column;
        gap: 10px;
        padding: 0 1rem;
        overflow: hidden;
    }

    .h-contact-info {
        flex-direction: row;
        gap: 8px; /* Further reduced gap */
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 3px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        font-size: 8pt; /* User specifically requested 8pt */
    }

    .h-contact-info i {
        font-size: 8pt;
        margin-right: 2px;
    }

    .h-contact-info span {
        display: inline-block;
        color: rgba(255, 255, 255, 0.3);
        margin: 0 2px;
        font-size: 8pt;
    }

    /* Search bar (reduced) on the left, language switcher on the right, same row */
    .h-search-lang-row {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        margin: 5px 0;
    }

    .h-search-bar {
        flex: 1;
        min-width: 0;
        width: auto;
        margin: 0;
    }

    .h-lang {
        margin: 0 !important;
        flex-shrink: 0;
    }

    .h-social-icons {
        display: none !important;
    }

    .h-social-icons a {
        font-size: 1.1rem;
    }
    
    /* Adjust header height for mobile */
    .h-container {
        height: 70px;
        padding: 0 1.5rem;
    }
    
    /* Hide desktop navigation */
    .h-navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background-color: #0b132b;
        padding: 5rem 0 2rem;
        transition: right 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 1001;
        justify-content: flex-start;
    }
    
    .h-navbar.active {
        right: 0;
    }
    
    .h-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        justify-content: flex-start;
    }
    
    .h-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .h-nav-link {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        justify-content: space-between;
    }
    
    /* Mobile Dropdown - Accordion Style */
    .h-dropdown-menu {
        display: none;
        background-color: #060b19;
        position: static;
        width: 100%;
        padding: 0;
        box-shadow: inset 0 3px 6px rgba(0,0,0,0.3);
        border: none;
        opacity: 1;
        transform: none;
        visibility: visible;
    }
    
    .h-nav-item.dropdown-active .h-dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .h-nav-item.dropdown-active .h-dropdown-icon {
        transform: rotate(180deg);
    }
    .h-nav-item.dropdown-active .h-nav-link {
        color: #00c9a7;
    }

    .h-dropdown-item {
        padding: 1rem 1.5rem 1rem 2.5rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        color: rgba(255, 255, 255, 0.8) !important;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 15px;
        transition: all 0.2s ease;
    }
    
    .h-dropdown-item i {
        color: #00c9a7;
        width: 20px;
        text-align: center;
        font-size: 1.1rem;
    }

    .h-dropdown-item:hover {
        background-color: rgba(0, 201, 167, 0.1);
        color: #fff !important;
        padding-left: 2.8rem;
    }
    
    .h-dropdown-columns {
        grid-template-columns: 1fr;
        min-width: unset;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBILE VIEW (≤768px) --- */
@media (max-width: 768px) {
    .h-container {
        padding: 0 1rem;
    }
    
    .h-logo span {
        font-size: 1.3rem;
    }
    
    .h-logo .logo-img {
        height: 34px;
    }
    
    .h-navbar {
        width: 280px;
    }
}

/* --- EXTRA SMALL SCREENS (≤480px) --- */
@media (max-width: 480px) {
    .h-logo span {
        display: block;
        font-size: 1.2rem;
    }
    
    .h-logo .logo-img {
        height: 32px;
    }
    
    .h-navbar {
        width: 85%;
    }
    
    .h-nav-link {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Overlay */
.h-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.h-overlay.active { 
    display: block; 
    opacity: 1; 
}

body.menu-open { 
    overflow: hidden; 
}

/* Suggestions dropdown */
.suggestions-box {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    z-index: 1005;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
    transition: all 0.2s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f8f9fa;
    color: #00A2FF;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.suggestion-category {
    font-size: 12px;
    color: #666;
    float: right;
}

.suggestion-description {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: block;
}

.no-suggestions {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}
    /* --- LANGUAGE SWITCHER --- */
    .h-lang { position: relative; margin-right: 14px; flex-shrink: 0; }
    .h-lang-btn {
        display: flex; align-items: center; gap: 6px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.18);
        color: #fff; padding: 5px 10px; border-radius: 6px;
        cursor: pointer; font-size: 0.82rem; font-weight: 600;
        transition: background 0.2s ease;
    }
    .h-lang-btn:hover { background: rgba(255,255,255,0.16); }
    .h-lang-btn .h-lang-caret { font-size: 0.6rem; opacity: 0.8; }
    .h-lang-menu {
        position: absolute; right: 0; top: calc(100% + 6px);
        background: #1c2541; border: 1px solid rgba(255,255,255,0.12);
        border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        min-width: 190px; padding: 6px 0; display: none; z-index: 1200;
        max-height: 340px; overflow-y: auto;
    }
    .h-lang-menu::-webkit-scrollbar { width: 8px; }
    .h-lang-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 8px; }
    .h-lang-menu.open { display: block; }
    .h-lang-option {
        display: flex; align-items: center; gap: 9px;
        padding: 8px 14px; color: rgba(255,255,255,0.85);
        cursor: pointer; font-size: 0.85rem; white-space: nowrap;
    }
    .h-lang-option:hover, .h-lang-option.active { background: rgba(0,201,167,0.14); color: #fff; }
    .h-lang-flag { font-size: 1rem; line-height: 1; }

    /* Hide Google Translate banner/artifacts */
    .goog-te-banner-frame.skiptranslate,
    .goog-te-gadget-icon,
    #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
    .goog-text-highlight { background: none !important; box-shadow: none !important; }
    body { top: 0 !important; position: static !important; }
    .skiptranslate iframe { visibility: hidden !important; height: 0 !important; }
    
        /* --- AUTH (Google sign-in / user avatar) --- */
        .h-auth-item { display: flex; align-items: center; }
        .h-google-btn {
            display: inline-flex !important; align-items: center; gap: 8px;
            background: #fff; color: #1f2937 !important; border-radius: 9999px;
            padding: 8px 16px !important; font-weight: 600; border: 1px solid #e5e7eb;
            transition: box-shadow .2s, transform .2s;
        }
        .h-google-btn img { width: 18px; height: 18px; }
        .h-google-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,.18); transform: translateY(-1px); }

        .h-user { position: relative; }
        .h-avatar {
            width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85);
            background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-weight: 700;
            font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
            overflow: hidden; padding: 0;
        }
        .h-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .h-avatar:hover { box-shadow: 0 0 0 3px rgba(37,99,235,.35); }

        .h-user-dropdown {
            position: absolute; top: calc(100% + 10px); right: 0; min-width: 220px; background: #fff;
            color: #1f2937; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
            overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-6px);
            transition: opacity .18s, transform .18s, visibility .18s; z-index: 1200;
        }
        .h-user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
        .h-user-info { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
        .h-user-name { font-weight: 700; font-size: .95rem; }
        .h-user-email { font-size: .8rem; color: #64748b; word-break: break-all; }
        .h-user-logout {
            display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: #dc2626 !important;
            font-weight: 600; text-decoration: none;
        }
        .h-user-logout:hover { background: #fef2f2; }

        /* --- Sign-in modal --- */
        .sx-auth-overlay {
            position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center;
            justify-content: center; padding: 20px; background: rgba(15, 23, 42, .55);
            -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
        }
        .sx-auth-overlay[hidden] { display: none; }
        .sx-auth-dialog {
            position: relative; width: 100%; max-width: 400px; background: #fff; color: #0f172a;
            border-radius: 16px; padding: 34px 30px 26px; text-align: center;
            box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
            animation: sxAuthIn .18s ease-out;
        }
        @keyframes sxAuthIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
        @media (prefers-reduced-motion: reduce) { .sx-auth-dialog { animation: none; } }
        .sx-auth-close {
            position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: none;
            background: transparent; color: #64748b; font-size: 1.6rem; line-height: 1; cursor: pointer;
            border-radius: 50%; transition: background .15s, color .15s;
        }
        .sx-auth-close:hover { background: #f1f5f9; color: #0f172a; }
        .sx-auth-logo { width: 52px; height: 52px; object-fit: contain; margin-bottom: 12px; }
        .sx-auth-title { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; }
        .sx-auth-sub { margin: 0 0 20px; font-size: .92rem; color: #64748b; }
        .sx-auth-google {
            display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
            padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
            color: #1f2937 !important; font-weight: 600; text-decoration: none;
            transition: box-shadow .2s, transform .2s;
        }
        .sx-auth-google:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .16); transform: translateY(-1px); }
        .sx-auth-google img { width: 20px; height: 20px; }
        .sx-auth-note { margin: 14px 0 0; font-size: .78rem; color: #94a3b8; }
        @media (max-width: 480px) {
            .sx-auth-dialog { padding: 28px 20px 22px; }
            .sx-auth-title { font-size: 1.15rem; }
        }
    
