/* ===================================
   MOBILE RESPONSIVE STYLES - CLEAN VERSION
   =================================== */

@media (max-width: 1024px) {

    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* White sidebar menu from right - solid white */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 80px 0 20px 0 !important;
        gap: 0 !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        align-items: stretch !important;
    }

    /* Dark mode sidebar - black background */
    body.dark-mode .nav-menu {
        background: rgba(0, 0, 0, 0.95) !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5) !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        list-style: none !important;
    }

    .nav-menu a {
        display: block !important;
        padding: 15px 25px !important;
        color: #1f2937 !important;
        font-size: 16px !important;
        border-left: 3px solid transparent !important;
        text-decoration: none !important;
    }

    /* Dark mode menu links */
    body.dark-mode .nav-menu a {
        color: #F1F5F9 !important;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(37, 99, 235, 0.05) !important;
        border-left-color: #2563eb !important;
        color: #2563eb !important;
    }

    /* Dark mode hover/active states */
    body.dark-mode .nav-menu a:hover,
    body.dark-mode .nav-menu a.active {
        background: rgba(37, 99, 235, 0.15) !important;
        border-left-color: #60A5FA !important;
        color: #60A5FA !important;
    }

    .nav-cta {
        margin: 20px 25px !important;
        width: calc(100% - 50px) !important;
    }

    /* Theme toggle button inside mobile menu */
    .theme-toggle {
        position: absolute !important;
        top: 32px !important;
        left: 20px !important;
        right: auto !important;
        z-index: 1001 !important;
        width: 44px !important;
        height: 44px !important;
    }

    /* ===================================
       SIMPLE HORIZONTAL SCROLL - CENTERED WITH DOTS
       =================================== */

    .services-grid,
    .resources-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding: 30px 7.5vw 30px 7.5vw !important;
        scroll-padding-left: 7.5vw !important;
        scroll-padding-right: 7.5vw !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        scroll-behavior: smooth !important;
        scroll-snap-type: x mandatory !important;
    }

    /* Hide scrollbar Webkit */
    .services-grid::-webkit-scrollbar,
    .resources-grid::-webkit-scrollbar {
        display: none !important;
    }

    .services-grid>*,
    .resources-grid>* {
        flex: 0 0 75vw !important;
        width: 75vw !important;
        max-width: 320px !important;
        margin: 0 !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        transform: none;
        opacity: 1;
        filter: none;
    }

    /* Pagination Dots */
    .carousel-dots {
        display: flex !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 5px !important;
        margin-bottom: 40px !important;
        width: 100% !important;
    }

    .carousel-dot {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background-color: #CBD5E1 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }

    /* Utility overrides */
    .service-card:first-child,
    .resource-card:first-child {
        margin-left: 0 !important;
    }

    .service-card:last-child,
    .resource-card:last-child {
        margin-right: 0 !important;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    .hero {
        padding: 2rem 0 !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

.carousel-dot.active {
    background-color: #2563EB !important;
    width: 24px !important;
    border-radius: 4px !important;

    /* Utility overrides */
    .service-card:first-child,
    .resource-card:first-child {
        margin-left: 0 !important;
    }

    .service-card:last-child,
    .resource-card:last-child {
        margin-right: 0 !important;
    }

    /* Typography Adjustments */
    .hero-title {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    .hero {
        padding: 2rem 0 !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}