/* Mobile Responsiveness & Adaptations */

/* Large Tablets / Small Desktops (Max 1200px) */
@media (max-width: 1200px) {
    .benefit-grid {
        grid-template-columns: 1fr !important;
    }

    .upcoming-event-card h2 {
        font-size: 2.2rem !important;
    }

    .upcoming-event-card .event-info {
        padding: 40px !important;
    }

    .upcoming-event-card .event-info div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Medium Screens (Max 992px) */
@media (max-width: 992px) {
    .upcoming-event-card,
    .footbal-live-card {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .event-flyer {
        height: 300px !important;
        order: 1 !important;
    }

    .event-info {
        order: 2 !important;
        padding: 40px 30px !important;
        align-items: center !important;
        text-align: center;
    }

    .event-actions {
        justify-content: center;
    }

    .benefit-grid {
        text-align: left;
    }
}

/* Tablet & Smaller Laptops (Max 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Tablet */
    }

    .span-3,
    .span-4 {
        grid-column: span 2;
        /* Span full width of the 2 columns */
    }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {

    /* Global Adjustments */
    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 80px 0;
        /* Reduced vertical padding */
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.8rem;
        /* Smaller Hero Text */
    }

    h2 {
        font-size: 2rem;
    }

    .info-block h4 {
        font-size: 1.2rem;
    }

    /* Header & Navigation */
    #main-header {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
        background: rgba(11, 11, 12, 0.95);
        /* More opaque on mobile */
        padding: 15px 20px;
    }

    #main-header .container {
        justify-content: space-between;
    }

    #main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        z-index: 1000;
        padding-top: 100px;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        opacity: 0;
        pointer-events: none;
    }

    #main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    #main-nav a {
        font-size: 2rem;
        /* Large text for mobile */
        color: var(--text-primary);
        font-family: var(--font-serif);
        font-style: italic;
    }

    .logo img {
        height: 35px;
        /* Slightly smaller logo */
        position: relative;
        z-index: 1002;
        /* Above the menu overlay */
    }

    /* Mobile Toggle Button */
    .mobile-menu-toggle {
        display: block;
        width: 28px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1002;
        /* Ensure it's above the menu overlay */
    }

    /* Hamburger to X animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        position: absolute;
        transition: 0.3s;
        border-radius: 2px;
    }

    .mobile-menu-toggle span:nth-child(1) {
        top: 0;
    }

    .mobile-menu-toggle span:nth-child(2) {
        top: 9px;
    }

    .mobile-menu-toggle span:nth-child(3) {
        top: 18px;
    }

    /* Hero Review Widget Mobile */
    .hero-review-widget {
        margin-top: 30px;
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
        width: 100%;
    }

    /* Hide Status Badge on very small screens if crowded */
    .status-badge {
        display: none;
    }

    /* Hero Section */
    #hero {
        padding-top: 120px;
        /* More space for fixed header */
        min-height: auto;
        padding-bottom: 60px;
    }

    /* Bento Grid Stacking */
    .bento-grid {
        grid-template-columns: 1fr;
        /* Single Column */
        gap: 20px;
    }

    .span-2,
    .span-3,
    .span-4,
    .row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Specific Card Adjustments */
    .bento-card {
        padding: 30px;
        min-height: 250px;
        /* Ensure cards have height */
    }

    .bento-card.image-card {
        min-height: 300px;
    }

    /* Stats Row (The 50+, Time, Rating card) */
    .bento-card.span-4 {
        flex-direction: column !important;
        gap: 30px;
        padding: 40px 20px;
        height: auto !important;
        min-height: auto !important;
    }

    .bento-card.span-4>div {
        width: 100% !important;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .bento-card.span-4>div:last-child {
        border-bottom: none;
    }

    /* Hide the vertical dividers in the stats card */
    .bento-card.span-4>div[style*="width: 1px"] {
        display: none !important;
    }

    /* Horizontal Cards Stacking (Events & Football) */
    .upcoming-event-card,
    .footbal-live-card {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .event-flyer {
        height: auto !important;
        order: 2 !important;
        width: 100% !important;
    }

    .event-flyer img {
        height: auto !important;
        object-fit: contain !important;
    }

    .event-info {
        order: 1 !important;
        padding: 40px 20px !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Stack tags vertically on mobile */
    .event-info>div:first-child {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .event-info h2 {
        font-size: 2.2rem !important;
    }

    /* Info Grid (Menu Highlight) */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        text-align: center;
        padding-top: 30px;
    }

    .footer-bottom span:first-child {
        order: 1;
    }

    .footer-bottom span:last-of-type {
        order: 2;
    }

    .footer-collaboration {
        order: 3;
        margin-top: 5px;
    }

    .footer-bottom span {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-review-widget .reviews-count {
        display: none;
    }

    .carousel-slide {
        aspect-ratio: 3 / 2 !important;
    }
}