/* ============================================================
   mobile.css — Neriah MBBS
   Covers: index, colleges, countries, about, contact, faq, process
   Breakpoints: 480px (phone), 768px (tablet)
   ============================================================ */

/* ── Global box-sizing reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Prevent horizontal scroll on all pages ── */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav.navbar {
    padding: 0 16px;
    height: 60px;
  }
  .nav-logo-icon { width: 34px; height: 34px; font-size: 15px; }
  .nav-logo-text { font-size: 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .mobile-nav {
    top: 60px;
    padding: 12px 16px 20px;
  }
  .mobile-nav a {
    padding: 12px 10px;
    font-size: 14px;
  }

  /* WhatsApp float — move up so it doesn't cover seminar popup */
  .wa-float {
    bottom: auto;
    top: 70px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* ══════════════════════════════════════════════
   INDEX — HERO
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: 80px 16px 40px;
    min-height: auto;
    align-items: flex-start;
  }
  .hero-content {
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 16px;
  }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }
  .hero-title { font-size: 32px; margin-bottom: 14px; }
  .hero-sub   { font-size: 14px; margin-bottom: 20px; }

  .hero-btns  { flex-direction: column; gap: 10px; }
  .hero-btns a { width: 100%; text-align: center; padding: 13px 20px; border-radius: 12px; }

  .hero-stats { gap: 16px; margin-top: 20px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 22px; }
  .hero-stat .lbl { font-size: 11px; }

  .floating-cards { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 72px 12px 32px; }
  .hero-title { font-size: 26px; }
  .hero-sub   { font-size: 13px; }
}

/* ══════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
  }
  .trust-item {
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }
  .trust-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .trust-item:last-child      { grid-column: 1 / -1; border-bottom: none; justify-content: center; }
  .trust-text { font-size: 12px; }
  .trust-icon { font-size: 16px; }
}

/* ══════════════════════════════════════════════
   TABS — COLLEGES SECTION (index + colleges page)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tabs-section { padding: 48px 0; }
  .tabs-nav {
    gap: 8px;
    padding: 0 4px;
    justify-content: center;
  }
  .tab-btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 10px;
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  .sub-tabs { gap: 6px; padding: 0 4px; }
  .sub-tab  { padding: 7px 14px; font-size: 12px; }

  .colleges-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .college-card { padding: 0 0 16px; }
  .cc-img-wrap  {
    width: 100%;
    margin: 0 0 14px 0;
    border-radius: 14px 14px 0 0;
    height: 140px;
  }
  .cc-body { padding: 0 16px; }
  .cc-name { font-size: 15px; }
  .cc-country { font-size: 12px; }
  .cc-tags { gap: 5px; }
  .cc-tag  { font-size: 10px; padding: 2px 8px; }
  .cc-fee-row { gap: 10px; margin: 8px 0 12px; }
  .cc-fee-value { font-size: 14px; }
  .cc-actions { flex-direction: row; gap: 8px; }
  .cc-btn-details,
  .cc-btn-enquire { font-size: 12px; padding: 8px 10px; }
}

/* ══════════════════════════════════════════════
   COUNTRIES GRID (index + countries page)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .countries-section { padding: 48px 0; }
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .country-card { padding: 16px 10px; border-radius: 14px; }
  .country-card .flag { width: 52px; height: 36px; margin: 0 auto 10px; }
  .country-card .cname { font-size: 12px; }
  .country-card .csub  { font-size: 10px; }
  .country-card .cfee  { font-size: 11px; }
}
@media (max-width: 480px) {
  .countries-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .country-card   { padding: 14px 8px; }
}

/* ══════════════════════════════════════════════
   WHY US SECTION
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .why-section { padding: 48px 0; }
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .why-card  { padding: 20px 16px; border-radius: 14px; }
  .why-icon  { width: 44px; height: 44px; font-size: 20px; margin-bottom: 12px; }
  .why-title { font-size: 14px; }
  .why-text  { font-size: 13px; }
}
@media (max-width: 480px) {
  .why-grid  { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   PROCESS STEPS (index)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .process-section { padding: 48px 0; }
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .process-steps::before { display: none; }
  .step {
    max-width: 100%;
    min-width: unset;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
  }
  .step-num {
    width: 44px; height: 44px;
    font-size: 16px; margin: 0;
    flex-shrink: 0;
  }
  .step-content { flex: 1; }
  .step-title { font-size: 14px; margin-bottom: 4px; }
  .step-text  { font-size: 12px; }
}

/* ══════════════════════════════════════════════
   ENQUIRY FORM (index)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .enquiry-section { padding: 48px 0; }
  .enquiry-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .enquiry-info h2 { font-size: 24px; }
  .enquiry-info p  { font-size: 14px; }
  .contact-item .ci-val  { font-size: 14px; }

  .form-card  { padding: 22px 16px; border-radius: 16px; }
  .form-title { font-size: 17px; margin-bottom: 18px; }
  .form-row   { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 12px; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; padding: 12px 14px; } /* 16px = no iOS zoom */
  .cat-toggle { gap: 8px; }
  .cat-btn    { font-size: 13px; padding: 10px 8px; }
  .form-submit { font-size: 15px; padding: 14px; }
}

/* ══════════════════════════════════════════════
   TESTIMONIALS (index)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .testimonials-section { padding: 48px 0; }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .testimonial-card { padding: 20px 16px; border-radius: 14px; }
  .t-text  { font-size: 13px; }
  .t-name  { font-size: 13px; }
  .t-info  { font-size: 11px; }
  .t-avatar { width: 36px; height: 36px; font-size: 14px; }
}

/* ══════════════════════════════════════════════
   FAQ (index + faq page)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .faq-section { padding: 48px 0; }
  .faq-q  { padding: 16px 16px; font-size: 14px; }
  .faq-a  { font-size: 13px; }
  .faq-item.open .faq-a { padding: 0 16px 16px; }
}

/* ══════════════════════════════════════════════
   SECTION HEADERS (all pages)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section-header { margin-bottom: 32px; }
  h2.sec-title    { font-size: 26px; }
  .sec-sub        { font-size: 14px; }
  .section-tag    { font-size: 10px; padding: 5px 12px; }
  .section-pad    { padding: 48px 0; }
  .container      { padding: 0 16px; }
}

/* ══════════════════════════════════════════════
   PAGE BANNERS (colleges, countries, about, process, faq, contact)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-banner     { min-height: 220px; margin-top: 60px; }
  .pb-content,
  .page-banner-content { padding: 40px 16px 28px; }
  .page-banner h1  { font-size: 26px; }
  .page-banner p   { font-size: 13px; }
  .breadcrumb      { font-size: 11px; gap: 6px; margin-top: 12px; }

  /* about.php specific banner */
  .page-banner.pb-about { min-height: 280px; }
}

/* ══════════════════════════════════════════════
   COLLEGES PAGE — filter bar
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .filter-bar {
    padding: 14px 14px;
    gap: 10px;
    border-radius: 12px;
  }
  .filter-bar label { display: none; }
  .filter-select {
    font-size: 14px;
    padding: 9px 12px;
    min-width: unset;
    flex: 1;
  }
  .filter-count { font-size: 12px; width: 100%; margin-left: 0; }
}

/* ══════════════════════════════════════════════
   COUNTRIES PAGE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Country detail cards if present */
  .country-detail-grid,
  .ctry-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .ctry-hero-content { padding: 28px 16px; }
}

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Two-col → single col layouts */
  .about-grid,
  .team-grid,
  .stats-grid,
  .mission-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  /* Stats row → 2x2 grid */
  .stats-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .stat-card { padding: 20px 14px; border-radius: 14px; }
  .stat-num  { font-size: 28px; }
  .stat-lbl  { font-size: 12px; }
}

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .contact-grid,
  .contact-wrap {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .contact-form-card { padding: 20px 16px; border-radius: 16px; }
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea { font-size: 16px; } /* prevent iOS zoom */
  .contact-info-card { padding: 20px 16px; }
  .map-embed iframe { height: 200px; border-radius: 12px; }
}

/* ══════════════════════════════════════════════
   PROCESS PAGE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .proc-hero { padding: 80px 16px 36px; }
  .proc-hero h1 { font-size: 28px; }
  .proc-hero p  { font-size: 14px; }

  .timeline-section { padding: 48px 0; }
  .timeline::before { left: 22px; }

  .tl-item {
    gap: 14px;
    margin-bottom: 24px;
  }
  .tl-num-wrap { width: 44px; }
  .tl-num {
    width: 44px; height: 44px;
    font-size: 16px;
    border-width: 2px;
  }
  .tl-icon { font-size: 16px; margin-bottom: 2px; }
  .tl-body {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .tl-body:hover { transform: none; } /* disable slide on mobile */
  .tl-title { font-size: 16px; }
  .tl-desc  { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
  .tl-bullets li { font-size: 13px; gap: 6px; }
  .tl-duration { font-size: 11px; padding: 5px 12px; margin-top: 10px; }
  .tl-tag { font-size: 10px; padding: 3px 10px; }

  /* Docs grid */
  .docs-section { padding: 48px 0; }
  .docs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .doc-card { padding: 14px 12px; gap: 10px; border-radius: 10px; }
  .doc-icon { font-size: 20px; }
  .doc-text { font-size: 12px; }
  .doc-sub  { font-size: 11px; }

  /* CTA box */
  .proc-cta  { padding: 48px 0; }
  .cta-box   { padding: 28px 16px; border-radius: 16px; }
  .cta-box h2 { font-size: 22px; }
  .cta-box p  { font-size: 13px; }
  .cta-btns  { flex-direction: column; gap: 10px; align-items: stretch; }
  .btn-gold,
  .btn-outline-w { text-align: center; padding: 13px 20px; font-size: 14px; }
}
@media (max-width: 480px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   FAQ PAGE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .faq-hero,
  .faq-banner { padding: 80px 16px 36px; }
  .faq-categories { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .faq-cat-btn { padding: 8px 14px; font-size: 12px; }
  .faq-list { padding: 0 4px; }
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  footer { padding: 48px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }
  .footer-brand p { max-width: 100%; font-size: 13px; }
  .footer-col h4  { font-size: 11px; margin-bottom: 14px; }
  .footer-col ul  { gap: 8px; }
  .footer-col ul li a { font-size: 13px; }
  .footer-bottom  { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom p { font-size: 12px; }

  /* Quick links — 2 column on mobile */
  .footer-col:nth-child(2) ul,
  .footer-col:nth-child(3) ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ══════════════════════════════════════════════
   SEMINAR POPUP — bottom sheet (already in seminar_popup.php)
   Extra safe-area & z-index insurance here
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  #seminarTeaser {
    z-index: 9990;
  }
  #seminarModal {
    z-index: 10000;
  }
  /* Ensure wa-float doesn't clash with teaser */
  .wa-float {
    bottom: auto !important;
    top: 70px !important;
    right: 14px !important;
  }
}

/* ══════════════════════════════════════════════
   COLLEGE DETAIL PAGE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .college-detail-grid,
  .cd-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .cd-hero-content { padding: 28px 16px; }
  .cd-sidebar { order: -1; } /* show sidebar above content on mobile */
  .cd-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; }
  .cd-tab  { white-space: nowrap; padding: 8px 14px; font-size: 12px; flex-shrink: 0; }
  .cd-fee-table td,
  .cd-fee-table th { padding: 10px 10px; font-size: 12px; }
  .cd-info-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .cd-info-card { padding: 14px 12px; }
}

/* ══════════════════════════════════════════════
   UTILITIES — prevent content overflow
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  img { max-width: 100%; height: auto; }
  table { width: 100%; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .container { overflow-x: hidden; }

  /* Section padding standardize */
  section.section-pad { padding: 48px 0; }

  /* Buttons — full width on very small screens */
  .btn-primary,
  .btn-outline {
    padding: 12px 20px;
    font-size: 14px;
  }
}
/* ══════════════════════════════════════════════
   ENHANCED MOBILE — Professional Fixes v2
   Added: better touch targets, smooth animations,
   improved form UX, sticky CTA, scroll indicators
══════════════════════════════════════════════ */

/* ── Smooth scrolling ── */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

/* ── Better touch targets (min 44px) ── */
@media (max-width: 768px) {
  a, button, [role="button"] { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  nav a, .mobile-nav a { min-height: 44px; }
}

/* ══════════════════════════════════════════════
   HERO — Mobile Premium Upgrade
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: 76px 14px 36px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-content {
    padding: 28px 20px 24px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
    opacity: 0.85;
  }
  .hero-btns {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-btns a {
    width: 100%;
    font-size: 15px;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    justify-content: center;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
    text-align: center;
  }
  .hero-stat {
    padding: 10px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
  }
  .hero-stat .num { font-size: 20px; font-weight: 800; }
  .hero-stat .lbl { font-size: 10px; opacity: 0.6; line-height: 1.3; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 26px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .hero-stat .num { font-size: 18px; }
}

/* ══════════════════════════════════════════════
   NAVBAR — Mobile Premium
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  nav.navbar {
    height: 58px;
    padding: 0 14px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-nav a {
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 2px;
    transition: background 0.2s;
  }
  .mobile-nav a:hover,
  .mobile-nav a:active { background: rgba(255,255,255,0.06); }
  .hamburger { padding: 10px; gap: 5px; }
  .hamburger span { width: 22px; height: 2px; border-radius: 2px; }
}

/* ══════════════════════════════════════════════
   COLLEGE CARDS — Mobile Premium
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .colleges-grid { padding: 0 2px; }
  .college-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  .cc-img-wrap {
    height: 150px;
    border-radius: 0;
    position: relative;
  }
  .cc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .cc-body { padding: 14px 16px 16px; }
  .cc-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
  .cc-tags { flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
  .cc-tag {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 8px;
    font-weight: 600;
  }
  .cc-fee-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
  }
  .cc-actions { display: flex; gap: 8px; }
  .cc-btn-details,
  .cc-btn-enquire {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 10px 8px;
    border-radius: 10px;
    font-weight: 600;
  }
}

/* ══════════════════════════════════════════════
   FORMS — Mobile Premium (no iOS zoom)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .form-card {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .form-group {
    margin-bottom: 14px;
  }
  .form-group label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
    display: block;
    opacity: 0.8;
  }
  .form-group input,
  .form-group select,
  .form-group textarea,
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea {
    font-size: 16px !important; /* critical: prevents iOS auto-zoom */
    padding: 13px 14px;
    border-radius: 12px;
    width: 100%;
    line-height: 1.5;
  }
  .form-group textarea { min-height: 100px; resize: none; }
  .form-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
  }
}

/* ══════════════════════════════════════════════
   SEMINAR POPUP — Mobile Bottom Sheet Premium
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  #seminarModal .modal-content,
  .seminar-modal-content {
    border-radius: 24px 24px 0 0 !important;
    padding: 24px 16px 32px !important;
    max-height: 90svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .seminar-modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto 20px;
  }
  .seminar-form input,
  .seminar-form select {
    font-size: 16px !important;
    padding: 13px 14px !important;
    border-radius: 12px !important;
  }
  .seminar-form .submit-btn,
  .seminar-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 14px;
  }

  /* Teaser bar at bottom */
  #seminarTeaser {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 14px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

/* ══════════════════════════════════════════════
   STICKY BOTTOM CTA — Mobile only
   Adds WhatsApp + Call CTA bar at bottom
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8888;
    display: flex;
    gap: 0;
    background: #0d1b35;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  }
  .mobile-sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .mobile-sticky-cta .cta-call {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
    margin-right: 8px;
  }
  .mobile-sticky-cta .cta-wa {
    background: linear-gradient(135deg,#25d366,#128c7e);
    color: #fff;
  }
  /* Push footer above sticky bar */
  body { padding-bottom: 70px; }
  body.no-sticky-cta { padding-bottom: 0; }
}

/* ══════════════════════════════════════════════
   COUNTRY CARDS — Premium Mobile
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .countries-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .country-card {
    padding: 16px 10px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s;
  }
  .country-card:active { transform: scale(0.97); }
}
@media (max-width: 380px) {
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════
   ADMIN PANEL — Mobile Responsive
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-260px);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0 !important; padding: 16px; }
  .sidebar-toggle-btn {
    display: flex !important;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: #0d1426;
    border: 1px solid #1e2d45;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    color: #e2e8f0;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(4px);
  }
  .sidebar-overlay.show { display: block; }
  .top-bar h1 { font-size: 18px; margin-left: 50px; }
  table { font-size: 12px; }
  th, td { padding: 9px 10px; }
  .city-stats { grid-template-columns: repeat(3,1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .city-stats { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .top-bar { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════
   SAFE AREA (iPhone notch/home bar)
══════════════════════════════════════════════ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .mobile-sticky-cta {
      padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  }
}

/* ══════════════════════════════════════════════
   ANIMATIONS — subtle & professional
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .college-card,
  .country-card,
  .why-card,
  .stat-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .college-card:active,
  .country-card:active { transform: scale(0.98); }
}

/* ══════════════════════════════════════════════
   HORIZONTAL SCROLL TABS — colleges page
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap !important;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start !important;
  }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; }
  .sub-tabs { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  .sub-tabs::-webkit-scrollbar { display: none; }
  .sub-tab { flex-shrink: 0; }
}

/* ══════════════════════════════════════════════
   CRITICAL MOBILE FIXES — Added
   Issue: mobile.css was not linked in header.php
   Fix: Ensure hero fills screen, no zoom issues
══════════════════════════════════════════════ */

/* Prevent pinch-zoom layout shift */
@media (max-width: 768px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  /* Hero: use svh for mobile browser chrome awareness */
  .hero {
    min-height: 100svh;
    padding: 74px 14px 36px;
  }

  /* Fix hero content not centering properly */
  .hero {
    justify-content: center;
  }

  /* Ensure hero-content doesn't overflow */
  .hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Nav logo image fit */
  .nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
  }

  /* Mobile nav: ensure it drops below correct nav height */
  .mobile-nav {
    top: 58px;
  }

  /* Social float buttons — move up on mobile to avoid overlap with sticky CTA */
  .social-float-wrap {
    bottom: 80px;
    right: 14px;
  }
  .social-float-btn {
    width: 44px;
    height: 44px;
  }
  .social-float-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  .hero {
    padding: 70px 10px 30px;
  }
  .hero-content {
    padding: 20px 14px;
  }
  .hero-title {
    font-size: 24px;
  }
}
