/* 1. Import the Poppins Font */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2');
}

/* Include bolder weights for headings (Optional but highly recommended for Poppins) */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; 
}

:root {
    --page-pad: clamp(16px, 3vw, 48px);
    --content-max: 1200px;
    --text-base: 16px;
}

body {
    background: #f9fafb;
    color: #222;
    font-size: var(--text-base);
    line-height: 1.5;
    font-family: 'Poppins', sans-serif; 
}

/* SITE NAV (shared across all pages) */
.site-nav {
    background: #fff;
    padding: 16px var(--page-pad);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Let the header stretch full width so the logo sits fully left */
    max-width: none;
    margin: 0;
}

.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}

.site-nav-icon {
    font-size: 28px;
    color: #22c55e;
}

.site-nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.site-nav-brand strong {
    font-size: 18px;
    color: #222;
}

.site-nav-brand span {
    font-size: 12px;
    color: #64748b;
}

.site-nav-links {
    display: flex;
    gap: 8px;
}

.site-nav-links a {
    text-decoration: none;
    color: #475569;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
}

.site-nav-links a:hover {
    color: #1e40af;
    background: #f1f5f9;
}

.site-nav-links a.active {
    color: #2563eb;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Logout button – same style across all pages */
.site-nav-links a.nav-logout {
    margin-left: 8px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #475569;
}

.site-nav-links a.nav-logout:hover {
    background: #f3f4f6;
    color: #1e40af;
}

/* Legacy navbar (kept for backwards compatibility) */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 20px 60px;
    background: #fff;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #333;
}

.navbar .active {
    background: #e8f0ff;
    padding: 6px 14px;
    border-radius: 8px;
}

/* HERO */
.hero {
    display: flex;
    padding: 80px var(--page-pad);
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    color: white;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    width: 50%;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-text p {
    margin-bottom: 25px;
}

/* Fix the spacing so they don't overlap the stats */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px; /* This pushes the stats down! */
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Base button styling */
.hero-buttons .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0; /* Prevents unwanted overlapping */
}

/* White button for "Donate Now" */
/* Fix the spacing for the top hero section */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px; 
    margin-top: 20px;
}

/* =========================================
   GLOBAL BUTTON STYLES (Applies everywhere)
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0; 
}

/* Solid white button (Used in Hero and CTA) */
.btn.primary {
    background: #ffffff;
    color: #2563eb;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to make it pop */
}

.btn.primary:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Transparent outline button (Used for Donor Login) */
.btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-buttons .btn.primary:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-2px); /* Cool little lift effect on hover */
}

/* Outline button for "Donor Login" */
.hero-buttons .btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-buttons .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Make sure stats have a little breathing room too */
.stats {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}


.stats div span {
    display: block;
    font-size: 14px;
}

/* HERO IMAGE */
.hero-image {
    width: 50%;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
}


.donation-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    color: #222;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
}

/* =========================================
   FEATURES SECTION (Modern Grid)
   ========================================= */
.features {
    padding: 100px var(--page-pad);
    background: #ffffff; /* Keeps it crisp white against the blue/green hero */
}

.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.features-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.features-header .subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    text-align: left; /* Left alignment reads better in cards */
}

.feature-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
    transform: translateY(-4px); /* Gentle lift on hover */
}

/* Custom Icon Styling */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #dcfce7; 
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon svg {
    stroke: #16a34a; 
}

.feature-card:nth-child(even) .feature-icon {
    background: #dbeafe; /* Crisp pastel blue */
}

.feature-card:nth-child(even) .feature-icon svg {
    stroke: #2563eb; /* Deep blue lines for even cards */
}

/* Make every second card's icon blue for visual variety */
.feature-card:nth-child(even) .feature-icon {
    background: #eff6ff; /* Soft blue */
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   STEPS SECTION (Modern Cards)
   ========================================= */
.steps {
    padding: 80px var(--page-pad);
    text-align: center;
    background: #f8fafc; /* Adds a very soft background to separate this section */
}

.steps h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 48px;
}

/* Fixed the typo: It is now perfectly matched to steps-grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces exactly 3 equal columns */
    gap: 32px;
    max-width: var(--content-max);
    margin: 0 auto;
}

/* The Card Styling */
.step {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Premium Hover Effect */
.step:hover {
    transform: translateY(-5px); /* Lifts the card up slightly */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* The Number Circle */
.step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #eff6ff; /* Soft blue background */
    color: #2563eb; /* Deep blue text */
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 24px auto;
}

.step h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.step p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* CTA */
.cta {
    padding: 60px var(--page-pad);
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    color: white;
    text-align: center;
}

.cta h2 {
    margin-bottom: 20px;
    font-size: 36px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 18px;
}


/* Global mobile responsiveness */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        gap: 28px;
    }

    .hero-grid {
        flex-direction: column;
        gap: 32px;
    }

    .hero-text,
    .hero-image {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ADD THIS: Stacks the cards in 1 single column on mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .site-nav-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .site-nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================
   CLEAN SITE FOOTER
========================= */

.site-footer {
    background: #0f172a;
    color: #cbd5e1;

    /* controls height */
    padding: 48px var(--page-pad) 24px;

    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;

    max-width: var(--content-max);
    margin: 0 auto;
}

.site-footer h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
}

.site-footer p {
    margin-bottom: 6px;
    line-height: 1.6;
    opacity: 0.9;
}

/* bottom strip */
.footer-bottom {
    margin-top: 24px;
    padding-top: 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;
    font-size: 13px;
    opacity: 0.75;
}

.footer-tagline {
    margin-top: 6px;
}


/* =========================================
   HERO CAROUSEL STYLES
   ========================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    /* You can adjust this height to match your preferred image aspect ratio */
    aspect-ratio: 4/3; 
    border-radius: 20px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the box without squishing */
    /* Add a smooth fade effect instead of a hard cut */
    animation: heroFade 1.5s ease-in-out;
}

@keyframes heroFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Ensure the donation tag stays above the sliding images */
.hero-image .donation-tag {
    z-index: 10; 
}
/* Mobile Footer Fix (For iPhones and Androids) */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Forces the 3 columns to stack into 1 */
        gap: 40px; 
        text-align: center; /* Centers the text so it looks neat on phones */
    }
    
    .footer-meta {
        /* Aligns the checkmarks nicely in the center for the Transparency section */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   NAVIGATION STYLES (Desktop & Mobile)
   ========================================= */

/* Dark overlay for mobile drawer */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10040;
}
.nav-overlay.active { display: block; }

/* ================= Desktop Layout (> 900px) ================= */
@media (min-width: 901px) {
    /* ✨ THIS IS THE FIX: Hides the mobile profile text and hamburger on Desktop */
    .mobile-menu-toggle,
    .nav-close-btn,
    .site-nav .nav-drawer-brand,
    .site-nav .nav-drawer-profile,
    .site-nav .nav-drawer-divider {
        display: none !important; 
    }

    .site-nav-links {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .site-nav-links > a {
        text-decoration: none;
        color: #475569;
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 6px;
    }

    .site-nav-links > a:hover {
        color: #1e40af;
        background: #f1f5f9;
    }

    .site-nav-links > a.active {
        color: #2563eb;
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .nav-drawer-footer { display: contents; }
    
    a.nav-logout.nav-logout--drawer {
        display: inline-flex;
        align-items: center;
        border: 1px solid #d1d5db;
        background: #f9fafb;
        color: #475569 !important;
    }
    
    a.nav-logout.nav-logout--drawer:hover { 
        background: #f3f4f6; 
        color: #1e40af !important; 
    }
    
    .nav-logout-icon { display: none; }
}

/* ================= Mobile Layout (<= 900px) ================= */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: #222;
        padding: 4px;
        z-index: 10035;
    }

    .site-nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: min(300px, 92vw);
        background: #ffffff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
        z-index: 10050;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding-bottom: 24px;
    }

    .site-nav-links.nav-open {
        transform: translate3d(0, 0, 0);
    }

    .nav-drawer-brand {
        display: block;
        padding: 56px 20px 12px;
        border-bottom: 1px solid #f1f5f9;
        background: #f8fafc;
    }

    .nav-drawer-brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
    .nav-drawer-brand-logo { width: 44px; height: 44px; }
    .nav-drawer-brand-text { font-size: 1.35rem; font-weight: 700; color: #2563eb; }

    .nav-drawer-profile { display: block; padding: 16px; }
    .nav-drawer-profile-card { background: #eff6ff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; display: flex; gap: 14px; }
    .nav-drawer-avatar { width: 48px; height: 48px; border-radius: 50%; background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
    .nav-drawer-profile-text { display: flex; flex-direction: column; gap: 4px; }
    .nav-drawer-profile-label { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; }
    .nav-drawer-profile-name { font-size: 16px; color: #0f172a; font-weight: 700; }
    .nav-drawer-profile-meta { font-size: 13px; color: #475569; }

    .nav-drawer-divider { height: 1px; background: #e2e8f0; margin: 8px 16px 12px; }

    .site-nav-links > a { margin: 0 8px; padding: 13px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #374151; text-decoration: none; }
    .site-nav-links > a:hover, .site-nav-links > a.active { background: #f0fdf4; color: #16a34a; }

    .nav-drawer-footer { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 20px 16px 8px; border-top: 1px solid #f1f5f9; }
    
    .nav-close-btn { position: absolute; top: 16px; right: 14px; background: #f1f5f9; border: none; border-radius: 10px; padding: 8px; cursor: pointer; color: #64748b; }
    
    a.nav-logout.nav-logout--drawer {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        padding: 15px; border-radius: 12px; background: #ef4444; color: #fff !important; font-weight: 600; text-decoration: none;
    }
}


    /* =========================================
   FIXED MOBILE NAVIGATION & DRAWER
   ========================================= */

/* Hide hamburger on desktop */
.mobile-menu-toggle {
    display: none !important;
}

/* Overlay behind the drawer */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10040;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-overlay.active {
    display: block;
}

/* Base Nav Container */
.site-nav {
    background: #fff;
    padding: 16px clamp(16px, 3vw, 48px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transform: none;
    filter: none;
    perspective: none;
}

.site-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    margin: 0;
}

.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}

/* Drawer-only UI: hidden on desktop */
.site-nav .nav-drawer-brand,
.site-nav .nav-drawer-profile,
.site-nav .nav-drawer-divider,
.site-nav .nav-close-btn {
    display: none !important;
}

.nav-drawer-footer {
    display: contents;
}

/* Mobile Layout (< 900px) */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10035;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: #222;
    }

    .site-nav-inner {
        position: relative;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 12px;
    }

    /* Slide-in drawer from the LEFT */
    .site-nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        width: min(300px, 92vw);
        max-width: 320px;
        background-color: #ffffff;
        background: #ffffff;
        padding: 0 0 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
        z-index: 10050;
        isolation: isolate;
        gap: 0;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav-links.nav-open {
        transform: translate3d(0, 0, 0);
    }

    /* Drawer Interior Styles */
    .site-nav .nav-drawer-brand {
        display: block !important;
        flex-shrink: 0;
        padding: 56px 20px 12px;
        border-bottom: 1px solid #f1f5f9;
        background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    }

    .nav-drawer-brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
    .nav-drawer-brand-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
    
    .nav-drawer-brand-text {
        font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;
        background: linear-gradient(90deg, #2563eb 0%, #16a34a 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }

    .site-nav .nav-drawer-profile { display: block !important; padding: 16px 16px 16px; flex-shrink: 0; }

    .nav-drawer-profile-card {
        background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%); border: 1px solid #e2e8f0;
        border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: flex-start;
    }

    .nav-drawer-profile-card--admin { background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%); }
    .nav-drawer-profile-card--guest { background: #f8fafc; }

    .nav-drawer-avatar {
        flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
        background: linear-gradient(145deg, #22c55e, #16a34a); color: #fff; font-weight: 700;
        font-size: 16px; display: flex; align-items: center; justify-content: center;
    }

    .nav-drawer-avatar--admin { background: linear-gradient(145deg, #f59e0b, #ea580c); }

    .nav-drawer-profile-text { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
    .nav-drawer-profile-label { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 600; }
    .nav-drawer-profile-name { font-size: 16px; color: #0f172a; font-weight: 700; }
    .nav-drawer-profile-meta, .nav-drawer-profile-desc { font-size: 13px; color: #475569; }

    .nav-drawer-profile-badge {
        display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase;
        color: #15803d; background: rgba(34, 197, 94, 0.15); padding: 4px 10px; border-radius: 999px;
    }
    .nav-drawer-profile-badge--admin { color: #c2410c; background: rgba(245, 158, 11, 0.2); }

    .site-nav .nav-drawer-divider { display: block !important; height: 1px; background: #e2e8f0; margin: 8px 16px 12px; }

    .site-nav-links > a { margin: 0 8px; width: auto; text-align: left; padding: 13px 16px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #374151; transition: background 0.18s, color 0.18s; text-decoration: none;}
    .site-nav-links > a:hover, .site-nav-links > a.active { background: #f0fdf4; color: #16a34a; }

    .nav-drawer-footer {
        display: flex !important; flex-direction: column; gap: 12px; margin-top: auto; padding: 20px 16px 8px;
        border-top: 1px solid #f1f5f9; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .nav-drawer-admin-link {
        display: flex; align-items: center; justify-content: center; padding: 12px 16px; font-size: 15px;
        font-weight: 600; border-radius: 12px; border: 2px solid #e2e8f0; background: #fff; color: #475569 !important; text-decoration: none;
    }

    .site-nav-links a.nav-logout.nav-logout--drawer {
        display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
        padding: 17px 22px; font-size: 16px; font-weight: 600; border-radius: 14px; color: #fff !important;
        background: linear-gradient(135deg, #2563eb 0%, #0d9488 55%, #22c55e 100%); text-decoration: none;
    }
    .site-nav-links a.nav-logout.nav-logout--login { background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%); }

    /* Close (X) button */
    .site-nav .nav-close-btn {
        display: flex !important; position: absolute; top: 16px; right: 14px; z-index: 2; background: #f1f5f9;
        border: none; border-radius: 10px; cursor: pointer; color: #64748b; padding: 8px; width: 40px; height: 40px;
        align-items: center; justify-content: center;
    }
}

/* Desktop Layout (> 901px) */
@media (min-width: 901px) {
    .site-nav .nav-drawer-brand, .site-nav .nav-drawer-profile,
    .site-nav .nav-drawer-divider, .site-nav .nav-close-btn { display: none !important; }
    
    .nav-drawer-footer { display: contents; }
    
    .site-nav-links {
        display: flex !important; flex-direction: row !important; align-items: center !important;
        justify-content: flex-end !important; gap: 8px !important; position: static !important;
        transform: none !important; width: auto !important; height: auto !important;
        background: transparent !important; box-shadow: none !important;
    }

    .site-nav-links a { text-decoration: none; color: #475569; padding: 8px 14px; font-size: 14px; border-radius: 6px; }
    .site-nav-links a:hover { color: #1e40af; background: #f1f5f9; }
    .site-nav-links a.active { color: #2563eb; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

    a.nav-logout.nav-logout--drawer {
        display: inline-flex; align-items: center; border: 1px solid #d1d5db; background: #f9fafb; color: #475569 !important;
    }
    a.nav-logout.nav-logout--drawer:hover { background: #f3f4f6; color: #1e40af !important; }
    a.nav-logout.nav-logout--drawer .nav-logout-icon { display: none; }
}

/* Ensure mobile elements are fully visible and clickable */
.mobile-menu-toggle {
    opacity: 1 !important;
    visibility: visible !important;
    color: #0f172a !important; /* Dark color for the hamburger icon */
    z-index: 10050 !important;
}

.site-nav-logo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
}

