/* ==========================================
   Legball Federation - Full Responsive Styles
   Breakpoints:
   - ≤480px   : Mobile Small
   - 481-600px: Mobile Large
   - 601-768px: Tablet Portrait
   - 769-1024px: Tablet Landscape
   - 1025px+  : Desktop
   ========================================== */

/* --- Base Variables --- */
:root {
    --container-padding: 50px;
}

/* ==========================================
   1. Ultra Wide Desktop (1920px+)
   ========================================== */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    .hero-content h1 {
        font-size: 64px;
    }
    .section-title {
        font-size: 36px;
    }
}

/* ==========================================
   2. Large Desktop (1440px - 1919px)
   ========================================== */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1360px;
    }
}

/* ==========================================
   2.5 Laptops & Small Desktops (1025px - 1439px)
   ========================================== */
@media (max-width: 1439px) {
    :root {
        --container-padding: 40px;
    }
    
    .container {
        padding: 0 var(--container-padding);
    }
    
    .nav-links > li > a {
        padding: 15px 10px;
        font-size: 12px;
    }
}

/* ==========================================
   3. Tablet Landscape & Small Laptops (769px - 1024px)
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --container-padding: 30px;
    }



    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo-box {
        justify-content: center;
    }

    .header-right {
        justify-content: center;
    }



    .nav-links > li > a {
        font-size: 11px;
        padding: 12px 6px;
    }

    /* Hero */
    .hero-slider {
        height: auto;
    }

    .hero {
        height: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 16px;
    }

    .hero-content .banner-desc,
    .hero-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* Components & Grids */
    .obj-grid,
    .cs-grid,
    .about-grid,
    .fed-grid,
    .values-grid,
    .tourney-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .about-grid.reverse .about-image-box {
        grid-row: 1;
    }

    .timeline-wrapper {
        display: none;
    }

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

    .leader-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }

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

    .inner-banner {
        height: 200px;
        background-size: cover;
        background-position: center 12%;
        background-repeat: no-repeat;
    }

    .section-padding {
        padding: 50px 0;
    }

    /* Featured Event */
    .featured-event {
        margin-top: -60px;
    }

    .event-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px;
    }

    .event-details h2 {
        font-size: 28px;
    }

    /* Footer */
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Gallery */
    .gal-grid {
        grid-template-columns: 1fr;
    }

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


}

/* ==========================================
   4. Tablet Portrait (481px - 768px)
   ========================================== */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }



    .header {
        padding: 8px 0;
    }

    /* Logo */
    .header-right {
        display: none;
    }

    .logo-img {
        width: 55px;
        height: 55px;
    }

    .logo-text h1 {
        font-size: 17px;
    }

    .logo-text p {
        font-size: 11px;
    }

    /* Navigation Mobile */
    .menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
        padding: 12px 0;
    }



    .nav-container {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links > li > a {
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-top: none;
        width: 100%;
    }

    .has-drop.active .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 11px 35px;
        color: rgba(255, 255, 255, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
    }

    /* Hero Slider */
    .hero-slider {
        height: auto;
        margin-top: 0;
    }

    .hero {
        height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-content h2 {
        font-size: 14px;
    }

    .hero-content .banner-desc,
    .hero-content p {
        font-size: 13px;
        margin-bottom: 12px;
        display: none; /* Hide description on small screens */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .announcement-ticker-wrapper {
        height: 40px !important;
    }

    .ticker-label {
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    .ticker-content marquee {
        font-size: 13px !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 22px;
    }

    /* About Section */
    .about-section {
        padding: 30px 0;
    }

    .about-text {
        font-size: 14px;
    }

    /* Leadership */
    .leadership {
        padding: 40px 0 50px;
    }

    .leader-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .leader-card {
        width: 100%;
        max-width: 300px;
    }

    .leader-img {
        width: 110px;
        height: 110px;
    }

    /* Featured Event */
    .featured-event {
        margin-top: -40px;
    }

    .event-box {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .event-details h2 {
        font-size: 22px;
    }

    .event-details p {
        font-size: 14px;
    }

    .event-info-list li {
        font-size: 14px;
        gap: 12px;
        padding: 10px 0;
    }

    .event-timer {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .timer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .timer-box h3 {
        font-size: 26px;
    }

    /* Upcoming Events Grid */
    .event-grid {
        grid-template-columns: 1fr !important;
    }

    /* Journey Section */
    .timeline-wrapper {
        display: none;
    }

    .timeline-desc {
        padding: 20px;
        margin: 0 10px;
    }

    /* Objectives */
    .objectives-section {
        padding: 40px 0;
    }

    .obj-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .key-functions {
        padding: 25px 20px;
    }

    /* Key Initiatives */
    .init-card {
        flex-direction: column;
    }

    .init-img {
        height: 220px;
        flex: none;
    }

    .init-content {
        padding: 25px 20px;
    }

    /* Centers & Stats */
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .stat-box h3 {
        font-size: 24px;
    }

    /* Gallery */
    .gallery {
        padding: 40px 0;
    }

    .gal-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

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

    .gal-subgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Reports */
    .reports {
        padding: 40px 0;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .report-card {
        padding: 25px 20px;
    }

    /* Partners */
    .partners {
        padding: 30px 0;
    }

    .partner-logos {
        gap: 10px;
    }

    .p-logo {
        width: 130px;
        height: 70px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    .footer-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 25px;
    }

    .f-logo {
        flex-direction: column;
        align-items: center;
    }

    .f-social a {
        margin: 0 8px;
        font-size: 20px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 25px;
    }

    .f-col h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 0;
    }

    .f-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .f-bottom-links a {
        margin-left: 0;
    }

    /* Inner Banner */
    .inner-banner {
        height: 160px !important;
        margin-top: 0 !important;
    }

    .inner-banner h1,
    .banner-title {
        font-size: 28px !important;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        clip-path: none;
        padding: 30px 20px;
    }

    .map-placeholder {
        padding-left: 20px;
        height: 280px;
    }

    /* About page grid */
    .about-grid-2 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* State officials */
    .officials-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    /* Section Padding */
    .section-padding {
        padding: 40px 0 !important;
    }

    /* Tally table scroll */
    .tally-container {
        overflow-x: auto;
    }
}

/* ==========================================
   5. Mobile Large (481px - 600px)
   ========================================== */
@media (max-width: 600px) {
    :root {
        --container-padding: 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content h2 {
        font-size: 12px;
    }

    /* Timer - 2x2 grid on small screens */
    .timer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .event-box {
        padding: 20px 15px;
    }

    .featured-event {
        margin-top: -20px;
    }

    .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gal-subgrid {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        text-align: center;
    }

    .f-logo {
        flex-direction: column;
    }

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

    /* Partners */
    .partner-logos {
        gap: 8px;
    }

    .p-logo {
        width: 100px;
        height: 55px;
    }

    /* Key Functions */
    .key-functions {
        padding: 20px 15px;
    }

    .kf-header h3 {
        font-size: 16px;
    }

    /* Objectives list */
    .obj-list li {
        font-size: 14px;
    }

    .num-box {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-right: 10px;
    }

    /* Leadership */
    .leader-card {
        max-width: 280px;
    }

    .leader-img {
        width: 100px;
        height: 100px;
    }

    /* About text */
    .about-text {
        font-size: 13px;
    }
}

/* ==========================================
   6. Mobile Small (≤480px)
   ========================================== */
@media (max-width: 480px) {
    :root {
        --container-padding: 12px;
    }



    .logo-img {
        width: 48px;
        height: 48px;
    }

    .logo-text h1 {
        font-size: 15px;
    }

    .logo-text p {
        font-size: 10px;
    }



    /* Hero */
    .hero-slider {
        height: auto;
        margin-top: 0;
    }

    .hero {
        height: auto;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .hero-buttons .btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    /* Announcement ticker */
    .announcement-ticker-wrapper {
        height: 36px !important;
    }

    /* Section title */
    .section-title {
        font-size: 18px;
    }

    /* Event box */
    .event-box {
        padding: 18px 12px;
        border-radius: 15px;
    }

    .event-details h2 {
        font-size: 19px;
    }

    .timer-box h3 {
        font-size: 22px;
    }

    .timer-box span {
        font-size: 10px;
    }

    /* Buttons */
    .btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    /* Inner banner */
    .inner-banner {
        height: 140px !important;
    }

    .inner-banner h1,
    .banner-title {
        font-size: 22px !important;
    }

    /* Leadership card */
    .leader-card {
        max-width: 260px;
        padding: 25px 15px;
    }

    /* Gallery */
    .gal-subgrid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-links-grid {
        grid-template-columns: 1fr;
    }

    .f-col h4 {
        font-size: 15px;
    }

    /* Featured event */
    .featured-event {
        margin-top: 0;
    }
}

/* ==========================================
   7. Extra Small (≤375px)
   ========================================== */
@media (max-width: 375px) {
    .logo-text h1 {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .hero-slider,
    .hero {
        height: auto;
    }

    .btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .section-title {
        font-size: 16px;
    }

    .event-details h2 {
        font-size: 17px;
    }

    .timer-box h3 {
        font-size: 20px;
    }
}

/* ==========================================
   Accessibility & Utilities
   ========================================== */
.overflow-hidden {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.header,
footer {
    width: 100%;
    overflow-x: hidden;
}

/* Tables - horizontal scroll on mobile */
@media (max-width: 768px) {
    .tally-table,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}
