/* =====================================================
   mobile.css — Enrol Now Mobile Interface
   Activates at max-width: 640px only.
   Zero impact on desktop / tablet (> 640px).
   ===================================================== */

/* ─── ELEMENTS hidden on desktop, shown only on mobile ─── */
.mob-hamburger { display: none; }
.mob-drawer    { display: none; }
.mob-bottom-nav{ display: none; }

@media (max-width: 640px) {

  /* ─── Show mobile-only elements ─── */
  .mob-hamburger { display: flex; }
  .mob-drawer    { display: block; }

  /* ─── HAMBURGER BUTTON ─── */
  .mob-hamburger {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: .2s ease;
    flex-shrink: 0;
  }
  .mob-hamburger:hover { background: var(--primary-light); border-color: var(--primary); }
  .mob-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .25s ease;
  }
  .mob-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mob-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mob-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ─── NAVBAR overrides ─── */
  .nav-inner { padding: 0 16px; height: 56px; }
  .nav-links { display: none !important; }
  .nav-cta   { display: none !important; }

  /* ─── MOBILE DRAWER ─── */
  .mob-drawer {
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 99;
    transform: translateY(-110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    padding: 8px 0 16px;
  }
  .mob-drawer.open { transform: translateY(0); }
  .mob-drawer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: .2s ease;
  }
  .mob-drawer a:last-child { border-bottom: none; }
  .mob-drawer a:hover, .mob-drawer a.active { color: var(--primary); background: var(--primary-light); }
  .mob-drawer .drawer-icon { font-size: 1.2rem; width: 28px; text-align: center; }
  .mob-drawer .drawer-apply {
    margin: 12px 16px 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 13px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 10px !important;
    border-bottom: none !important;
    box-shadow: 0 4px 16px rgba(26,86,219,.3);
  }
  .mob-drawer .drawer-apply:hover { background: var(--primary-dark) !important; }

  /* ─── BOTTOM TAB BAR ─── */
  .mob-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }
  .mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
    position: relative;
  }
  .mob-tab .tab-icon { font-size: 1.35rem; line-height: 1; }
  .mob-tab.active { color: var(--primary); }
  .mob-tab.active::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
  }
  .mob-tab:hover { color: var(--primary); }
  .mob-tab .tab-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    background: var(--danger);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
  }
  .mob-tab .tab-badge.visible { display: flex; }

  /* ─── HERO (home page) ─── */
  .hero { padding: 52px 20px 44px; text-align: center; }
  .hero h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 14px; }
  .hero p  { font-size: .92rem; margin-bottom: 28px; }
  .hero-badge { font-size: .78rem; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .btn-hero-primary, .btn-hero-outline { display: block; width: 100%; padding: 14px; font-size: .95rem; }

  /* ─── STATS BAR ─── */
  .stats-inner { grid-template-columns: repeat(2, 1fr) !important; gap: 0; }
  .stat-item {
    padding: 14px 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .stat-num { font-size: 1.6rem; }

  /* ─── SECTION COMMONS ─── */
  .section { padding: 44px 16px; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 1.4rem; }

  /* ─── FEATURES GRID ─── */
  .features-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .feature-card { padding: 20px; display: flex; align-items: flex-start; gap: 14px; }
  .feature-icon { width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; }
  .feature-card h3 { font-size: .97rem; margin-bottom: 6px; }
  .feature-card p  { font-size: .85rem; }

  /* ─── UNIVERSITY CHIPS ─── */
  .uni-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  .uni-chip { padding: 14px 8px; }
  .uni-avatar { width: 42px; height: 42px; margin-bottom: 8px; }
  .uni-chip span { font-size: .75rem; }

  /* ─── HOW IT WORKS ─── */
  .steps-grid { grid-template-columns: 1fr !important; gap: 0; }
  .step-card { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 20px 0; border-bottom: 1px solid var(--border); }
  .step-card:last-child { border-bottom: none; }
  .step-num { margin: 0; flex-shrink: 0; width: 40px; height: 40px; font-size: 1rem; }
  .step-card h3 { font-size: .97rem; margin-bottom: 4px; }
  .step-card p  { font-size: .85rem; }

  /* ─── TESTIMONIALS ─── */
  .testimonials { padding: 44px 16px; }
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .testi-card { padding: 18px; }

  /* ─── CTA BANNER ─── */
  .cta-banner { padding: 48px 20px; }
  .cta-banner h2 { font-size: 1.35rem; margin-bottom: 10px; }
  .cta-banner p  { font-size: .9rem; margin-bottom: 24px; }
  .btn-cta-white { padding: 13px 28px; font-size: .95rem; }

  /* ─── FOOTER ─── */
  .footer { padding: 36px 16px 20px; }
  .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }

  /* ─── UNIVERSITY PAGE ─── */
  .page-hero { padding: 32px 16px; }
  .page-hero h1 { font-size: 1.35rem; }
  .filters-bar { top: 56px; padding: 12px 16px; }
  .filters-inner { flex-direction: column; gap: 8px; }
  .search-wrap { min-width: 0; width: 100%; }
  .filter-select { width: 100%; min-width: 0; }
  .courses-section { padding: 16px; }
  .courses-grid { grid-template-columns: 1fr; gap: 14px; }
  .course-card { padding: 18px; }
  .card-meta { grid-template-columns: 1fr 1fr; gap: 8px 12px; }

} /* end @media 640px */
