/* ===================================
   Mobile Responsive Styles
   Applied only on screens <= 768px
   =================================== */

@media (max-width: 768px) {
    /* Root Variables for Mobile */
    :root {
        --section-padding: 3rem 1.25rem;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Container */
    .container {
        padding: 0 1.25rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* ===================================
       Navigation - Mobile
       =================================== */
    .navbar {
        width: 100%;
        overflow: visible;
        position: fixed;
        z-index: 1000;
    }

    .nav-content {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        overflow: visible;
    }

    .nav-logo {
        font-size: 1rem;
        flex: 1;
        min-width: 0;
        margin-right: 1rem;
    }

    .nav-logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo-img {
        height: 40px;
        width: 40px;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100vw;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0;
        border-top: 1px solid var(--border-dark);
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--brand-cyan);
        padding-left: 0.5rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-cta {
        background: var(--brand-cyan);
        color: #000000 !important;
        padding: 1rem 1.5rem !important;
        border-radius: 8px;
        text-align: center;
        margin-top: 1rem;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        position: relative;
        z-index: 1001;
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .mobile-menu-toggle span {
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Prevent all sections from overflow */
    section {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ===================================
       Hero Section - Mobile
       =================================== */
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-background {
        width: 100%;
        overflow: hidden;
    }

    .hero-grid {
        width: 100%;
    }

    .hero-badge {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        max-width: 90%;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Hero Stats - 2 Column Layout */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Hero Actions - 2 Column */
    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    /* ===================================
       About Section - Mobile
       =================================== */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .section-title-large {
        font-size: clamp(2rem, 8vw, 2.75rem);
        margin-bottom: 1.5rem;
    }

    .about-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    /* Image Grid - 2 Column Layout */
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .grid-item {
        border-radius: 10px;
    }

    .grid-label {
        font-size: 1rem;
    }

    /* ===================================
       Impact Stats - Mobile (2 Column)
       =================================== */
    .impact-section {
        padding: 3rem 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Impact Grid - 2 Column Layout */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .impact-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
        min-height: 300px;
    }

    .impact-icon {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

    .impact-number {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .impact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .impact-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* ===================================
       Benefits Section - Mobile (2 Column)
       =================================== */
    .benefits-section {
        padding: 3rem 1.25rem;
    }

    .section-header-split {
        margin-bottom: 2.5rem;
    }

    .section-title-split {
        font-size: clamp(2rem, 8vw, 2.5rem);
        gap: 0.35rem;
    }

    .split-divider {
        font-size: 1.5rem;
    }

    /* Bento Grid - 2 Column Layout */
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .bento-card.large,
    .bento-card.medium,
    .bento-card.small {
        grid-column: span 1;
        min-height: 280px;
        padding: 1.75rem 1.25rem;
    }

    /* First card spans 2 columns */
    .bento-card.large:first-child {
        grid-column: span 2;
        min-height: 300px;
    }

    .bento-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .bento-card p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .benefit-icon {
        height: 48px;
        margin-bottom: 1rem;
    }

    .popular-badge,
    .value-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
        top: 1rem;
        right: 1rem;
    }

    /* Story Content */
    .bento-story {
        padding: 1.75rem 1.25rem;
    }

    .story-icon {
        height: 40px;
        margin-bottom: 1rem;
    }

    .story-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .story-author strong {
        font-size: 1rem;
    }

    .story-author span {
        font-size: 0.8rem;
    }

    .benefits-cta {
        margin-top: 2rem;
    }

    /* ===================================
       Events Section - Mobile
       =================================== */
    .events-section {
        padding: 3rem 1.25rem;
    }

    .events-grid {
        gap: 1.25rem;
    }

    /* Event Cards - 2 Column Layout */
    .event-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .event-date {
        width: fit-content;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
    }

    .date-day {
        font-size: 1.75rem;
    }

    .date-month {
        font-size: 0.8rem;
    }

    .event-content h3 {
        font-size: 1.25rem;
    }

    .event-meta {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .event-content p {
        font-size: 0.9rem;
    }

    /* ===================================
       FAQ Section - Mobile
       =================================== */
    .faq-section {
        padding: 3rem 1.25rem;
    }

    .faq-container {
        max-width: 100%;
    }

    .faq-item {
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .faq-icon {
        font-size: 1.25rem;
    }

    .faq-answer p {
        padding: 0 1.5rem 1.25rem;
        font-size: 0.9rem;
    }

    /* ===================================
       CTA Section - Mobile
       =================================== */
    .cta-section {
        padding: 3rem 1.25rem;
    }

    .cta-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        margin-bottom: 0.75rem;
    }

    .cta-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* ===================================
       Newsletter - Mobile
       =================================== */
    .newsletter-section {
        padding: 3rem 1.25rem;
    }

    .newsletter-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .newsletter-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Newsletter Form - 2 Column */
    .newsletter-form {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
    }

    .newsletter-form input {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .newsletter-form .btn {
        padding: 0.875rem 1.5rem;
        white-space: nowrap;
    }

    /* ===================================
       Footer - Mobile (2 Column)
       =================================== */
    .footer {
        padding: 3rem 1.25rem 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    /* First column spans 2 columns */
    .footer-col:first-child {
        grid-column: span 2;
    }

    .footer-logo img {
        height: 35px;
        width: 35px;
    }

    .footer-logo h3 {
        font-size: 1rem;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-col ul li {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }

    .footer-col p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1.5rem;
        gap: 1rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-legal {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .footer-legal a {
        font-size: 0.8rem;
    }
}

/* ===================================
   Extra Small Devices (< 480px)
   Single Column Fallback
   =================================== */
@media (max-width: 480px) {
    /* Force single column on very small screens */
    .hero-stats,
    .impact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large:first-child {
        grid-column: span 1;
    }

    .footer-col:first-child {
        grid-column: span 1;
    }

    /* Smaller text on tiny screens */
    .hero-title {
        font-size: 1.75rem;
    }

    .impact-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
