/* ============================================================
   AdmissionEU — Responsive Breakpoints
   ============================================================ */

/* ── Tablet (≤ 992px) ──────────────────────────────────────── */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero { padding: 3.5rem 0 4.5rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .cta-banner { padding: 2.5rem 2rem; margin: 0; border-radius: var(--radius-lg); }
    .cta-banner h2 { font-size: 1.6rem; }
}

/* ── Mobile Navigation (≤ 768px) ───────────────────────────── */
@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .top-bar-right { width: 100%; justify-content: flex-end; }

    .mobile-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.35s var(--ease);
        z-index: 999;
        gap: 0.15rem;
        overflow-y: auto;
    }
    .main-nav.open { right: 0; }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius);
    }

    .btn-apply {
        margin-left: 0 !important;
        margin-top: 1rem;
        text-align: center;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        background: transparent;
    }
    .dropdown-menu a { padding: 0.5rem 0.75rem; }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }

    /* Hero */
    .hero { padding: 2.5rem 0 3.5rem; }
    .hero h1 { font-size: 1.85rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-search { flex-direction: column; }
    .hero-search input { padding: 0.75rem 1rem; }
    .hero-search button { width: 100%; justify-content: center; padding: 0.75rem; }
    .hero-stats { grid-template-columns: 1fr; }

    /* Grids */
    .uni-grid { grid-template-columns: 1fr; }
    .country-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .features-grid { grid-template-columns: 1fr; }

    /* Section */
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    /* CTA */
    .cta-banner { padding: 2rem 1.25rem; }
    .cta-banner h2 { font-size: 1.35rem; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
}

/* ── Small Mobile (≤ 480px) ────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .hero h1 { font-size: 1.6rem; }
    .hero-badge { font-size: 0.72rem; }

    .stat-card { padding: 1rem; gap: 0.85rem; }
    .stat-icon { width: 44px; height: 44px; font-size: 1.15rem; }
    .stat-number { font-size: 1.3rem; }

    .country-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .country-card { padding: 1rem; }
    .country-flag { font-size: 2rem; }

    .uni-card-header { padding: 1rem 1.15rem; }
    .uni-card-body { padding: 1rem 1.15rem; }

    .btn-lg { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
}
