/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet Layout (Min Width: 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    /* Layout Spacing */
    section {
        padding: 80px 0;
    }

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

    /* Hero */
    .hero-title {
        font-size: 44px;
        margin-bottom: 20px;
    }
    
    .hero-desc {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .hero-ctas {
        flex-direction: row;
        max-width: none;
        justify-content: center;
        gap: 16px;
    }

    .hero-ctas .btn {
        width: auto;
    }

    /* Stats Grid: Switch from 1-column to 2x2 grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Courses & Faculty: Change from horizontal swipe to grids */
    .swipeable-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .course-card, .faculty-card {
        flex: none;
    }

    /* Catalog Filters */
    .filter-selectors {
        flex-direction: row;
        gap: 16px;
    }

    .filter-select {
        flex: 1;
    }

    /* Gallery Grid: Grid representation */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .gallery-item {
        flex: none;
    }

    /* Inner Page Layouts */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .course-detail-layout {
        grid-template-columns: 2fr 1fr;
        align-items: start;
        gap: 40px;
    }

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

/* --------------------------------------------------------------------------
   Desktop Layout (Min Width: 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    /* Header Styles: Enable desktop navigation and hide mobile hamburger & overlay */
    .menu-toggle {
        display: none !important;
    }

    .mobile-nav-overlay,
    .mobile-nav-overlay.active,
    .mobile-nav-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .header-enroll-bar {
        display: none; /* Hide top mobile action bar */
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .desktop-nav-link {
        font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
        font-size: 14.5px;
        font-weight: 700;
        color: #cbd5e1;
        position: relative;
        padding: 6px 0;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .desktop-nav-link:hover, .desktop-nav-link.active {
        color: #ffffff;
    }

    .desktop-nav-link.active::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #0969ff;
        border-radius: 2px;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hero Section: Two Column Grid */
    .hero-section {
        padding: 100px 0;
        text-align: left;
    }

    .hero-section .container {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 40px;
    }

    .badge-wrapper {
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 52px;
        line-height: 1.1;
    }

    .hero-desc {
        margin: 0 0 40px 0;
    }

    .hero-ctas {
        justify-content: flex-start;
        margin: 0;
    }

    .hero-illustration {
        margin-top: 0;
    }

    .hero-illustration img {
        max-width: 100%;
    }

    /* Statistics: Switch to 4-column row layout */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    /* Featured Courses: 3-column row */
    .swipeable-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Faculty grid: 4-column row */
    .faculty-section .swipeable-row {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Sticky Mobile Bottom Navigation: Hide on desktop */
    .mobile-bottom-nav {
        display: none;
    }

    /* Footer: 4 columns row */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 40px;
    }

    .site-footer {
        padding: 80px 0 50px; /* Reduce bottom padding since bottom nav is hidden */
    }

    /* Inner Page Layouts */
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Large Desktop Layout (Min Width: 1280px)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
    .container {
        padding: 0;
    }
}
