/* ================= HEADER ================= */
    .header {
        background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
        color: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .header-container {
        max-width: 1400px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }

    .logo-section {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .logo-img {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        border: 3px solid white;
        object-fit: cover;
    }

    .logo-text h1 {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .logo-text p {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    /* ================= NAV ================= */
    .nav-menu {
        display: flex;
        list-style: none;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-menu li a {
        color: white;
        text-decoration: none;
        padding: 0.6rem 0.9rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
        display: block;
        white-space: nowrap;
    }

    .nav-menu li a:hover {
        background: rgba(255,255,255,0.3);
    }

    .nav-menu li a.active {
        background: rgba(255, 236, 65, 0.559);
        color: #f7f7f7;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(234, 213, 181, 0.2);
    }

    /* Hamburger Menu */
    .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: 0.3s;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* ================= DROPDOWN NAVIGATION STYLES ================= */
    .dropdown {
        position: relative;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer; /* ✅ ADDED: ensure cursor shows pointer */
    }

    .dropdown-toggle i {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    /* ✅ CHANGED: Replaced :hover with .active class so it works on both desktop click AND mobile */
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* ❌ REMOVED: CSS hover on icon — now icon only rotates on .active (click only) */

    .dropdown-content {
        position: absolute;
        background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
        min-width: 200px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        border-radius: 8px;
        z-index: 1000;
        top: 100%;
        left: 0;
        margin-top: 5px;
        overflow: hidden;
        /* SMOOTH: max-height + opacity + slide instead of display:none */
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height 0.35s ease, opacity 0.28s ease, transform 0.28s ease;
    }

    .dropdown-content a {
        color: white !important;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        white-space: nowrap;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.2);
    }

    /* ❌ REMOVED: CSS hover for desktop — dropdown now opens on CLICK only, not hover */

    /* SMOOTH: open state — expand height, fade in, slide down */
    .dropdown.active .dropdown-content {
        max-height: 200px;
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    /* ================= RESPONSIVE HEADER ================= */
    @media (min-width: 1400px) {
        .header-container { max-width: 1600px; }
    }

    @media (max-width: 1399px) and (min-width: 1200px) {
        .header-container { padding: 1rem 1.5rem; }
        .nav-menu li a { padding: 0.5rem 0.8rem; font-size: 0.95rem; }
    }

    @media (max-width: 1199px) and (min-width: 1024px) {
        .header-container { padding: 1rem 1.5rem; }
        .nav-menu { gap: 0.3rem; }
        .nav-menu li a { padding: 0.5rem 0.7rem; font-size: 0.9rem; }
    }

    @media (max-width: 1023px) and (min-width: 900px) {
        .header-container { padding: 1rem; }
        .nav-menu { gap: 0.25rem; }
        .nav-menu li a { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
    }

    @media (max-width: 899px) and (min-width: 768px) {
        .header-container { padding: 1rem; }
        .logo-img { width: 50px; height: 50px; }
        .logo-text h1 { font-size: 0.9rem; }
        .logo-text p { font-size: 0.75rem; }
        .hamburger { display: flex; }
        .nav-menu {
            position: fixed;
            top: 82px;
            right: -100%;
            flex-direction: column;
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            width: 100%;
            max-width: 320px;
            padding: 2rem 1rem;
            gap: 0;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            border-radius: 0 0 0 10px;
            height: calc(100vh - 82px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .nav-menu.active { right: 0; }
        .nav-menu li { width: 100%; }
        .nav-menu li a { display: block; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1rem; }
        .dropdown { width: 100%; }
        .dropdown-toggle { justify-content: space-between; width: 100%; }
        /* ✅ CHANGED: Removed separate mobile rule — now unified under .dropdown.active .dropdown-content above */
        .dropdown-content { position: static; background: rgba(0,0,0,0.2); margin-left: 15px; min-width: auto; box-shadow: none; margin-top: 0; }
        .dropdown-content a { padding: 10px 16px; font-size: 0.9rem; }
    }

    @media (max-width: 767px) and (min-width: 600px) {
        .header-container { padding: 0.875rem; }
        .logo-img { width: 45px; height: 45px; }
        .logo-text h1 { font-size: 0.85rem; }
        .logo-text p { font-size: 0.7rem; }
        .hamburger { display: flex; }
        .nav-menu {
            position: fixed;
            top: 75px;
            right: -100%;
            flex-direction: column;
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            width: 100%;
            max-width: 300px;
            padding: 2rem 1rem;
            gap: 0;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            border-radius: 0 0 0 10px;
            height: calc(100vh - 75px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .nav-menu.active { right: 0; }
        .nav-menu li { width: 100%; }
        .nav-menu li a { display: block; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
        .dropdown { width: 100%; }
        .dropdown-toggle { justify-content: space-between; width: 100%; }
        .dropdown-content { position: static; background: rgba(0,0,0,0.2); margin-left: 15px; min-width: auto; box-shadow: none; margin-top: 0; }
        .dropdown-content a { padding: 10px 16px; font-size: 0.9rem; }
    }

    @media (max-width: 599px) and (min-width: 480px) {
        .header-container { padding: 0.75rem; }
        .logo-img { width: 42px; height: 42px; }
        .logo-text h1 { font-size: 0.8rem; }
        .logo-text p { font-size: 0.68rem; }
        .hamburger { display: flex; }
        .hamburger span { width: 23px; }
        .nav-menu {
            position: fixed;
            top: 70px;
            right: -100%;
            flex-direction: column;
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            width: 100%;
            max-width: 280px;
            padding: 1.75rem 1rem;
            gap: 0;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            border-radius: 0 0 0 10px;
            height: calc(100vh - 70px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .nav-menu.active { right: 0; }
        .nav-menu li { width: 100%; }
        .nav-menu li a { display: block; padding: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
        .dropdown { width: 100%; }
        .dropdown-toggle { justify-content: space-between; width: 100%; }
        .dropdown-content { position: static; background: rgba(0,0,0,0.2); margin-left: 15px; min-width: auto; box-shadow: none; margin-top: 0; }
        .dropdown-content a { padding: 10px 16px; font-size: 0.9rem; }
    }

    @media (max-width: 479px) {
        .header-container { padding: 0.65rem; }
        .logo-img { width: 38px; height: 38px; border: 2px solid white; }
        .logo-text h1 { font-size: 0.72rem; }
        .logo-text p { font-size: 0.62rem; }
        .hamburger { display: flex; }
        .hamburger span { width: 22px; height: 2.5px; }
        .nav-menu {
            position: fixed;
            top: 65px;
            right: -100%;
            flex-direction: column;
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            width: 100%;
            max-width: 250px;
            padding: 1.5rem 0.875rem;
            gap: 0;
            box-shadow: -2px 0 10px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            border-radius: 0 0 0 10px;
            height: calc(100vh - 65px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .nav-menu.active { right: 0; }
        .nav-menu li { width: 100%; }
        .nav-menu li a { display: block; padding: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
        .dropdown { width: 100%; }
        .dropdown-toggle { justify-content: space-between; width: 100%; }
        .dropdown-content { position: static; background: rgba(0,0,0,0.2); margin-left: 15px; min-width: auto; box-shadow: none; margin-top: 0; }
        .dropdown-content a { padding: 10px 16px; font-size: 0.9rem; }
    }

    @media (max-width: 319px) {
        .header-container { padding: 0.5rem; }
        .logo-img { width: 35px; height: 35px; }
        .logo-text h1 { font-size: 0.65rem; }
        .logo-text p { font-size: 0.55rem; }
    }
/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}