/* ═══════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   Add these at the bottom of your style.css
   ═══════════════════════════════════════════════ */

/* ── Large tablets (max 1199px) ── */
@media (max-width: 1199.98px) {

    .section-title { font-size: 2.2rem; }

    .home-page .hero-title { font-size: 3.5rem; }

    .home-page .globe-wrapper {
        width: 550px;
        height: 550px;
    }

    .home-page .btn-role {
        padding: 15px 26px;
    }
}

/* ── Tablets (max 991px) ── */
@media (max-width: 991.98px) {

    /* NAVBAR */
    .navbar { height: auto; padding: 12px 0; }

    .navbar-collapse {
        background: rgba(255,255,255,0.98);
        border-top: 1px solid #e2e8f0;
        padding: 1rem 0.5rem 1.25rem;
        border-radius: 0 0 14px 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        margin-top: 8px;
    }

    .navbar-nav { gap: 0 !important; }

    .navbar-nav .nav-item { border-bottom: 1px solid #f1f5f9; }

    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        border-radius: 0;
    }

    .navbar-nav .nav-link.active::after { display: none; }

    .navbar .d-flex.align-items-center {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 0.5rem 0.25rem;
        gap: 0.75rem;
    }

    /* GLOBAL */
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2rem; }

    .work-card { padding: 28px 24px; }

    /* HOME */
    .home-page .hero-section { padding: 60px 0 50px; }
    .home-page .hero-title { font-size: 3rem; }
    .home-page .hero-desc { font-size: 1.1rem; margin-bottom: 32px; }

    .home-page .globe-wrapper {
        width: 480px;
        height: 480px;
    }

    .home-page .search-area {
        max-width: 90%;
        flex-wrap: wrap;
    }

    .home-page .search-area input { min-width: 0; flex: 1 1 60%; }
    .home-page .btn-search { flex: 1 1 auto; justify-content: center; }

    .home-page .role-buttons { gap: 12px; }
    .home-page .btn-role { padding: 14px 22px; font-size: 0.95rem; }

    /* STUDENT */
    .student-page .hero,
    .university-page .hero,
    .consultant-page .hero { padding: 80px 0; }

    .student-page .cta-section,
    .university-page .cta-section,
    .consultant-page .cta-section { padding: 60px 0; }

    /* COURSES */
    .courses-page .filter-section {
        position: static;
        max-height: none;
        margin-bottom: 24px;
    }

    .courses-page .search-hero { top: 0; }

    /* EVENTS */
    .events-page .hero-section { padding: 70px 0; }
    .events-page .sticky-filters { top: 0; }
}

/* ── Mobile (max 767px) ── */
@media (max-width: 767.98px) {

    /* GLOBAL */
    .section-padding { padding: 44px 0; }
    .section-title { font-size: 1.7rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }

    .work-card { padding: 22px 18px; border-radius: 16px; }

    /* NAVBAR */
    .btn-signup { width: 100%; text-align: center; }

    /* HOME */
    .home-page .hero-section { padding: 48px 0 40px; min-height: unset; }
    .home-page .hero-title { font-size: 2.2rem; text-shadow: none; }
    .home-page .hero-desc { font-size: 1rem; margin-bottom: 24px; padding: 0 8px; }

    .home-page .globe-wrapper {
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 1;
    }

    .home-page .search-area {
        flex-direction: column;
        padding: 10px;
        border-radius: 16px;
        gap: 8px;
        margin-bottom: 28px;
    }

    .home-page .search-area input {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }

    .home-page .btn-search {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        border-radius: 12px;
    }

    .home-page .role-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 12px;
    }

    .home-page .btn-role {
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .home-page .popup-card {
        width: 190px;
        font-size: 11px;
        padding: 0;
    }

    .home-page .popup-code { font-size: 15px; }
    .home-page .popup-name { font-size: 11px; }
    .home-page .rank-value { font-size: 18px; }

    /* STUDENT */
    .student-page .hero { padding: 60px 0; }
    .student-page .hero h1 { font-size: 2rem; }
    .student-page .feature-card { padding: 20px; }
    .student-page .journey-card { padding: 18px; }
    .student-page .step-num { width: 36px; height: 36px; margin-right: 14px; }
    .student-page .cta-section { padding: 48px 0; }
    .student-page .btn-white,
    .student-page .btn-outline-white { width: 100%; margin-bottom: 10px; text-align: center; }

    /* UNIVERSITY */
    .university-page .hero { padding: 60px 0; }
    .university-page .hero h1 { font-size: 2rem; }
    .university-page .feature-card { padding: 20px; }
    .university-page .journey-card { padding: 18px; }
    .university-page .step-num { width: 36px; height: 36px; margin-right: 14px; }
    .university-page .cta-section { padding: 48px 0; }
    .university-page .btn-white,
    .university-page .btn-outline-white { width: 100%; margin-bottom: 10px; text-align: center; }
    .university-page .key-feature-card { padding: 20px; }

    /* CONSULTANT */
    .consultant-page .hero { padding: 60px 0; }
    .consultant-page .hero h1 { font-size: 2rem; }
    .consultant-page .feature-card { padding: 20px; }
    .consultant-page .key-feature-card { padding: 20px; }
    .consultant-page .stats-section { padding: 40px 0; margin: 20px 0; }
    .consultant-page .stat-val { font-size: 2rem; }
    .consultant-page .cta-section { padding: 48px 0; }
    .consultant-page .btn-white { width: 100%; margin-bottom: 10px; text-align: center; }

    /* COURSES */
    .courses-page .hero-section { padding: 40px 0; }
    .courses-page .hero-section h1 { font-size: 1.8rem; }
    .courses-page .stats-box { padding: 14px 10px; }
    .courses-page .filter-section { padding: 16px; border-radius: 12px; }
    .courses-page .course-card { padding: 18px; }
    .courses-page .apply-btn,
    .courses-page .view-btn { padding: 10px 14px; font-size: 0.9rem; }
    .courses-page .search-hero { position: static; padding: 14px 0; }

    /* EVENTS */
    .events-page .hero-section { padding: 52px 0; }
    .events-page .hero-section h1 { font-size: 1.9rem; }
    .events-page .hero-icon { font-size: 2.5rem; }

    .events-page .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
        align-items: stretch;
    }

    .events-page .search-input { padding: 12px; font-size: 0.95rem; }

    .events-page .filter-btn {
        border-radius: 12px;
        justify-content: center;
        width: 100%;
    }

    .events-page .sticky-filters { position: static; }

    .events-page .filter-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .events-page .event-content { padding: 16px; }

    .events-page .event-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .events-page .participant-list {
        grid-template-columns: 1fr;
    }

    .events-page .widget-card { padding: 18px; border-radius: 16px; }
    .events-page .stat-value { font-size: 1.5rem; }

    /* FOOTER */
    /* .footer { padding: 48px 0 28px; }
    .footer h6 { margin-bottom: 16px; }

    .footer .row > div:not(:last-child) {
        margin-bottom: 32px;
    } */

    .footer { padding: 48px 0 28px; }

.footer .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

/* Brand/logo column — full width */
.footer .row > div:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin-bottom: 30px;
    text-align: left;
}

/* Company, Resources, Legal — exactly 50% each */
.footer .row > div:nth-child(2),
.footer .row > div:nth-child(3),
.footer .row > div:nth-child(4) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 16px !important;
    margin-bottom: 28px;
}

/* Legal — left aligned, starts from left column */
.footer .row > div:nth-child(4) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.footer h6 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer a {
    font-size: 13px;
    line-height: 2.4;
    display: block;
    color: #94a3b8;
}

.footer a:hover { color: #3b82f6; }
}

/* ── Small phones (max 575px) ── */
@media (max-width: 575.98px) {

    /* GLOBAL */
    .section-title { font-size: 1.5rem; }
    .section-padding { padding: 36px 0; }

    /* HOME */
    .home-page .hero-title { font-size: 1.9rem; }
    .home-page .hero-desc { font-size: 0.9rem; }

    .home-page .globe-wrapper {
        max-width: 300px;
    }

    /* STUDENT / UNIVERSITY / CONSULTANT heroes */
    .student-page .hero h1,
    .university-page .hero h1,
    .consultant-page .hero h1 { font-size: 1.7rem; }

    .student-page .hero p,
    .university-page .hero p,
    .consultant-page .hero p { font-size: 0.95rem; }

    /* COURSES */
    .courses-page .hero-section h1 { font-size: 1.5rem; }
    .courses-page .stats-box { margin-bottom: 8px; }

    /* EVENTS */
    .events-page .hero-section h1 { font-size: 1.6rem; }

    /* FOOTER */
    .footer .col-lg-4 { text-align: center; }
    .footer .col-lg-4 .d-flex { justify-content: center; }
    .footer .col-lg-4 p { margin: 0 auto; }
}

/* ── Horizontal scroll fix for filter pills ── */
@media (max-width: 767.98px) {
    .events-page .sticky-filters .d-flex {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .events-page .sticky-filters .d-flex::-webkit-scrollbar { display: none; }

    .events-page .filter-pill { flex-shrink: 0; }
}

/* ── Courses filter pills horizontal scroll on mobile ── */
@media (max-width: 767.98px) {
    .courses-page .d-flex.flex-wrap.gap-2 {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .courses-page .d-flex.flex-wrap.gap-2::-webkit-scrollbar { display: none; }
}