/* ==========================================================================
   Responsive Styles (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Show Hamburger Menu */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1001; /* Ensure it stays above everything */
        margin-left: 15px;
    }

    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--trc-navy);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hide the inner glass nav background on mobile */
    .main-nav {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    /* Mobile Dropdown Container */
    .nav-list {
        position: absolute;
        top: 110%; /* Drops down just below the header */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
        
        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Active state (when toggled via JS) */
    .nav-list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Mobile Menu Items */
    .nav-item {
        border-right: none;
        border-bottom: 1px solid rgba(20, 51, 81, 0.05);
        padding: 0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item a {
        padding: 15px 25px;
        justify-content: space-between; /* Puts chevron on the right */
        font-size: 16px;
    }

    /* Adjust Donate Button for Mobile */
    .donate-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    /* Footer Adjustments */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}