/* ============================================================
   GLOBAL MOBILE SETTINGS
============================================================ */
html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.menu-toggle, .mobile-cta, .menu-overlay { display: none; }
@media screen and (max-width: 900px) {
.container { padding: 0 20px !important; }
.page-wrap { display: block; min-height: 100vh; padding-bottom: 50px; margin-top: 80px !important; }
input, select, textarea { font-size: 16px !important; }
}

/* ============================================================
   RESPONSIVE SWITCHING FOR EVENTS PAGE
============================================================ */

@media screen and (max-width: 900px) {
    /* Hide the Desktop Calendar on Mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Show the Mobile Dropdown List on Mobile */
    .mobile-only {
        display: block !important;
    }
}
/* ============================================================
   NAVIGATION & HAMBURGER MENU
============================================================ */
@media screen and (max-width: 900px) {
.top-nav { position: fixed; top: 0; width: 100%; padding: 12px 0 !important; background: rgba(7, 8, 10, 0.8) !important; backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255, 255, 255, 0.05); z-index: 1000; }
.nav-inner { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; height: 50px; }
.brand { font-size: 1.1rem !important; display: flex; flex-direction: column; line-height: 1; }
.nav-cta { display: none !important; }
.menu-toggle { display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); color: white; cursor: pointer; z-index: 1001; }
.nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #07080a; flex-direction: column !important; align-items: center; justify-content: center; gap: 25px !important; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.5); border-left: 1px solid rgba(157, 109, 245, 0.2); }
.nav-links.active { right: 0; }
.nav-links a { font-size: 1.2rem !important; font-weight: 800; letter-spacing: 1px; }
.nav-links a.active { color: var(--brand) !important; background: rgba(157, 109, 245, 0.1); padding: 10px 20px; border-radius: 8px; border-left: 3px solid var(--brand); }
.mobile-cta { display: block !important; background: var(--brand); padding: 12px 30px; border-radius: 8px; color: white !important; font-weight: 800; }
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 999; }
.menu-overlay.active { display: block; }
}

/* ============================================================
   HERO & CONTENT SECTIONS
============================================================ */
@media screen and (max-width: 900px) {
.hero-split { padding: 40px 0 !important; }
.split-grid { display: flex !important; flex-direction: column !important; text-align: center; gap: 30px; }
.hero-main h1 { font-size: 2.5rem !important; line-height: 1.1; }
.hero-actions { display: flex; flex-direction: column; gap: 15px; }
.btn-main, .btn-ghost { margin: 0 !important; width: 100%; text-align: center; }
.hero-visual { width: 100%; max-width: 500px; margin: 0 auto; }
.main-img { width: 100% !important; height: auto !important; position: relative !important; }
.reasons-grid { grid-template-columns: 1fr !important; gap: 20px; }
}

/* ============================================================
   STATS ANCHOR
============================================================ */
@media screen and (max-width: 900px) {
.stats-anchor { margin-top: 20px !important; }
.floating-stats { flex-direction: column !important; gap: 40px; padding: 40px 20px !important; }
.stat-divider { width: 50%; height: 1px !important; }
.stat-box .num { font-size: 1.8rem !important; }
.stat-box .label { font-size: 0.6rem !important; }
}

/* ============================================================
   PARTNERS & TEAMS PAGES
============================================================ */
@media screen and (max-width: 900px) {
.page-header { text-align: center; padding: 40px 0 !important; }
.page-header h1 { font-size: 2.2rem !important; }
.header-desc { text-align: center; }
.partners-grid-modern { grid-template-columns: 1fr !important; }
.p-header { flex-direction: column; text-align: center; }
.p-card { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
}

/* ============================================================
   EVENTS (CALENDAR) PAGE
============================================================ */
@media screen and (max-width: 900px) {
.calendar-glass { padding: 10px !important; margin: 20px 10px !important; overflow-x: auto; background: rgba(255, 255, 255, 0.01); }
#calendar { min-width: 600px; font-size: 0.8rem; }
.fc .fc-toolbar { flex-direction: column; gap: 15px; }
.fc-event { padding: 2px !important; font-size: 0.6rem !important; }
}

/* ============================================================
   FOOTER SECTION
============================================================ */
@media screen and (max-width: 900px) {
.footer-grid { grid-template-columns: 1fr !important; text-align: center; gap: 40px; }
.footer-brand, .footer-bio { max-width: 100% !important; margin: 0 auto; align-items: center; }
.bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================================
   UI ENHANCEMENTS & ANIMATIONS
============================================================ */
@media (max-width: 900px) {
.p-card:active, .reason-card:active, .btn-main:active { transform: scale(0.96); background: rgba(157, 109, 245, 0.15); transition: 0.1s; }
}
.back-to-top { position: fixed; bottom: 20px; right: 20px; background: var(--brand); color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; z-index: 99; box-shadow: 0 4px 15px rgba(0,0,0,0.3); opacity: 0; transition: 0.3s; pointer-events: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
@keyframes low-shake { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(2deg); } 75% { transform: rotate(-2deg); } }
.btn-discord, .p-btn i.fa-discord { animation: low-shake 5s infinite ease-in-out; }
.partners-status { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 15px; border: 1px dashed rgba(157, 109, 245, 0.3); margin: 20px 0; }

/* ============================================================
   MOBILE EVENTS DROPDOWNS (PRO DESIGN)
============================================================ */

/* Hide on Mobile, Show on Desktop */
.desktop-only {
    display: block;
}

/* Hide on Desktop, Show on Mobile */
.mobile-only {
    display: none;
}

/* Mobile Styles for Dropdowns */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
        padding-bottom: 50px;
    }

    /* The Main Month Container */
    .month-dropdown {
        margin-bottom: 24px;
        
        /* Clean Glass Background */
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        overflow: hidden;
        
        /* Depth */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* Subtle hover lift for the whole box */
    .month-dropdown:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* The Header (Month Name) */
    .month-header {
        background: rgba(157, 109, 245, 0.15); /* Darker purple tint */
        padding: 18px 20px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.95rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        
        /* Subtle inner border */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        
        transition: background 0.3s;
    }

    .month-header:hover {
        background: rgba(157, 109, 245, 0.25);
    }

    /* The Chevron Icon (Replacing the +) */
    .month-header::after {
        content: '\f078'; /* FontAwesome Chevron Down */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.8rem;
        color: var(--brand);
        transition: transform 0.3s ease;
    }

    .month-dropdown.open .month-header::after {
        transform: rotate(180deg);
    }

    /* The List of Events */
    .event-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother slide */
        background: rgba(0, 0, 0, 0.1);
    }

    /* Individual Event Row */
    .event-item {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none !important;
        color: #fff !important;
        transition: background 0.2s, padding-left 0.2s;
    }

    .event-item:hover {
        background: rgba(255, 255, 255, 0.06);
        padding-left: 25px; /* Slide effect */
    }

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

    /* The Date Badge */
    .event-date {
        font-size: 0.8rem;
        color: #fff;
        font-weight: 700;
        background: rgba(157, 109, 245, 0.2); /* Purple Background */
        border: 1px solid rgba(157, 109, 245, 0.3); /* Purple Border */
        padding: 5px 10px;
        border-radius: 6px;
        white-space: nowrap;
        
        /* Subtle Glow */
        box-shadow: 0 2px 8px rgba(157, 109, 245, 0.15);
    }

    /* The Event Title */
    .event-name {
        font-weight: 600;
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }
}