/* ============================================================
   OUTBOUND EDUCATION — GLOBAL RESPONSIVE SYSTEM
   Applies to: ALL pages (index, about, destinations,
               canada, usa, australia, uk, and any future pages)
   Desktop layout is UNTOUCHED — only mobile/tablet rules here
   Breakpoints: 1024px (tablet) · 768px (mobile) · 480px (small)
   ============================================================ */

/* ── TABLET (≤1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Root */
  :root { --pad-x: 32px; }

  /* Nav — hide links and WA icon, keep logo + CTA */
  .nav-links { display: none !important; }
  .btn-wa-nav { display: none !important; }

  /* Hero — country pages (canada/usa/australia/uk) */
  .hero-inner { max-width: 100%; padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(38px, 6vw, 56px); }
  .hero-ctas { flex-wrap: wrap; gap: 10px; }

  /* About hero stats */
  .about-hero-stats { padding: 24px 32px; }

  /* Fact strip — wrap into 2 cols */
  .facts-inner { flex-wrap: wrap; }
  .fact-item { flex: 1 1 45%; border-bottom: 1px solid var(--border, rgba(15,28,46,0.10)); }
  .fact-item:last-child { border-right: none; }

  /* Grids → 2 columns */
  .why-grid { grid-template-columns: 1fr 1fr; }
  .uni-grid { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .cost-grid { grid-template-columns: 1fr; }
  .visa-grid { grid-template-columns: 1fr; }

  /* Process steps — wrap */
  .steps { flex-wrap: wrap; gap: 20px; }
  .steps::before { display: none; }
  .step { flex: 1 1 30%; }

  /* Final CTA — stack vertically */
  .final-cta-inner { grid-template-columns: 1fr !important; gap: 36px; }

  /* About page */
  .who-grid { grid-template-columns: 1fr; }
  .who-image-wrap { display: none; }
  .mission-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .global-stats { grid-template-columns: 1fr; max-width: 380px; }

  /* Destinations page */
  .dest-grid { grid-template-columns: 1fr 1fr !important; }
  .dest-grid--3, .dest-grid--4 { grid-template-columns: 1fr 1fr !important; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Homepage specifics */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .difference-grid, .online-grid { grid-template-columns: 1fr; gap: 40px; }
  .difference-image-wrap { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-bar-inner { flex-wrap: wrap; height: auto; padding: 16px 0; }
  .trust-item { border-right: none; padding: 10px 20px; }
  .trust-div { display: none; }
}

/* ── MOBILE (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

  /* Root */
  :root { --pad-x: 20px; }

  /* Nav */
  .nav-inner { height: 64px; }
  .btn-nav-cta { font-size: 12px; padding: 8px 16px; }

  /* Hero — country pages */
  .hero { min-height: 480px; }
  .hero-inner { padding: 48px 0 40px; }
  .hero h1 { font-size: clamp(34px, 8vw, 48px); letter-spacing: -1px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-wa { width: 100%; justify-content: center; }
  .hero-tag { font-size: 10px; margin-bottom: 14px; }

  /* About hero */
  .about-hero { padding: 64px 0 52px; }
  .about-hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .about-hero-stats { flex-direction: column; padding: 20px 24px; }
  .hs-item { padding: 14px 0; border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hs-item:last-child { border-bottom: none; }
  .hs-val { font-size: 32px; }

  /* Fact strip — single column */
  .fact-item { flex: 1 1 100%; border-right: none; }

  /* All grids → 1 column */
  .why-grid { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .cost-grid { grid-template-columns: 1fr; }
  .visa-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }

  /* Why items — slightly more compact */
  .why-item { padding: 14px 16px; }
  .why-text { font-size: 13px; }

  /* Uni cards */
  .uni-card { padding: 16px 14px; }
  .uni-name { font-size: 13.5px; }

  /* Cost cards */
  .cost-amount { font-size: 32px; }

  /* Visa cards */
  .visa-card { padding: 20px 18px; }
  .visa-list li { font-size: 12.5px; }

  /* Process steps */
  .steps { flex-direction: column; gap: 16px; }
  .step { flex: 1 1 100%; padding: 0; }
  .step-desc { max-width: 100%; }
  .step-num { width: 48px; height: 48px; font-size: 16px; }

  /* Final CTA */
  .cta-h { font-size: clamp(28px, 7vw, 38px); }
  .cta-btns { flex-direction: column; gap: 10px; }
  .cta-btns .btn-primary,
  .cta-btns .btn-wa { width: 100%; justify-content: center; }

  /* Lead form */
  .form-wrap { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }

  /* Section headings */
  .st { font-size: clamp(28px, 6vw, 36px); }
  .sec { padding: 52px 0; }
  .sec-sub { font-size: 13.5px; margin-bottom: 28px; }

  /* Destinations page */
  .dest-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .dest-card-name { font-size: 18px; }
  .dest-hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .dest-search-wrap { padding: 0 4px; }
  .why-section .why-grid { grid-template-columns: 1fr; }
  .why-section .why-card { padding: 24px 18px; }
  .global-stats { grid-template-columns: 1fr; max-width: 100%; }
  .gs-val { font-size: 44px; }

  /* About page */
  .who-desc { font-size: 14.5px; }
  .why-card { padding: 24px 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .mission-card { padding: 28px 22px; }
  .mc-heading { font-size: 22px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-license span { flex-direction: column; gap: 6px; }
  .footer-license span::before,
  .footer-license span::after { display: none; }

  /* Homepage */
  .courses-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { min-width: unset; width: 100%; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; padding: 0 0 24px; border-bottom: 1px solid rgba(255,255,255,0.07); }
}

/* ── SMALL MOBILE (≤480px) ────────────────────────────────── */
@media (max-width: 480px) {

  /* Root */
  :root { --pad-x: 16px; }

  /* Hero */
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-sub { font-size: 13.5px; }
  .hero-tag { display: none; }

  /* Courses — single column on very small */
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { padding: 16px 14px; }
  .course-icon { font-size: 22px; }

  /* Destinations — single column on very small */
  .dest-grid { grid-template-columns: 1fr !important; }

  /* Form */
  .form-wrap { padding: 20px 14px; }
  .btn-submit { font-size: 13px; padding: 13px; }

  /* Steps */
  .step-num { width: 44px; height: 44px; font-size: 15px; }
  .step-title { font-size: 12.5px; }
  .step-desc { font-size: 11px; }

  /* Fact strip */
  .fact-val { font-size: 14px; }
  .fact-sub { font-size: 10px; }

  /* Footer */
  .footer-logo .logo-main { font-size: 22px; }
  .nav-logo img { height: 44px; }
  .btn-nav-cta { padding: 7px 14px; font-size: 11.5px; }

  /* About hero */
  .hs-val { font-size: 28px; }
}

/* ── WA FLOATING BUTTON — all screen sizes ────────────────── */
.wa-float {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  top: auto !important;
  left: auto !important;
  z-index: 9999 !important;
}

@media (max-width: 768px) {
  .wa-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 20px !important;
    right: 16px !important;
  }
  .wa-float svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ── MOBILE NAV HAMBURGER (future-proofing) ───────────────── */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border, rgba(15,28,46,0.10));
    border-radius: 6px;
    cursor: pointer;
  }
}


/* ════════════════════════════════════════
   GLOBAL UI POLISH — CONSISTENCY PASS
   ════════════════════════════════════════ */

/* Consistent card hover elevation - all card types */
.why-card:hover, .uni-card:hover, .course-card:hover,
.cost-card:hover, .visa-card:hover, .svc-card:hover,
.gs-card:hover, .pillar:hover, .why-item:hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Remove any box-shadow from non-hovered cards for cleaner rest state */
.uni-card, .cost-card, .visa-card {
  box-shadow: none;
}

/* Consistent section eyebrow sizing across pages */
.eyebrow {
  font-size: 10.5px !important;
  letter-spacing: 0.13em !important;
}

/* Consistent fact-strip label sizing */
.fact-label { font-size: 9.5px !important; }
.fact-val   { font-size: 15px !important; font-weight: 600 !important; }
.fact-sub   { font-size: 11px !important; }

/* Course card text consistency */
.course-name { font-size: 12.5px !important; font-weight: 600 !important; }
.course-tag  { font-size: 10.5px !important; }

/* Uni card consistency */
.uni-rank { font-size: 9.5px !important; letter-spacing: 0.1em !important; }
.uni-name { font-size: 14px !important; font-weight: 600 !important; }
.uni-city { font-size: 11.5px !important; }

/* Why-item consistency */
.why-text { font-size: 13.5px !important; line-height: 1.62 !important; }

/* Cost card consistency */
.cost-label  { font-size: 10px !important; letter-spacing: 0.1em !important; }
.cost-amount { font-size: 36px !important; }
.cost-period { font-size: 11.5px !important; }
.cost-note   { font-size: 12px !important; line-height: 1.6 !important; }

/* Visa card consistency */
.visa-card-title { font-size: 14px !important; }
.visa-list li    { font-size: 13px !important; line-height: 1.55 !important; }

/* Step consistency */
.step-title { font-size: 13px !important; font-weight: 600 !important; }
.step-desc  { font-size: 11.5px !important; line-height: 1.55 !important; }

/* CTA form consistency */
.form-title { font-size: 14px !important; font-weight: 600 !important; }

/* Breadcrumb consistency */
.bc-inner, .breadcrumb-inner { font-size: 12px !important; }

/* Hero tag - clean, no animation required */
.hero-tag {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
}
.hero-tag i { display: none !important; }  /* Remove all pulse dots globally */

/* About hero tag */
.about-hero-tag { font-size: 11px !important; letter-spacing: 0.1em !important; }

/* Section subtitle (sec-sub) consistency */
.sec-sub {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  font-weight: 300 !important;
}

/* Remove heavy outer glow from buttons except on hover */
.btn-primary { box-shadow: none; }

/* Consistent border-radius for all inputs/selects */
.form-field input, .form-field select {
  font-size: 13px !important;
}

/* ── testimonial stars — clean, not emoji ── */
.testi-stars {
  font-size: 12px !important;
  letter-spacing: 2px;
  color: #C8102E !important;
  opacity: 0.7;
  font-family: serif;
}
/* ── spec-icon SVG sizing ── */
.spec-icon svg { width: 22px; height: 22px; color: inherit; }
/* ── summer card icon SVG sizing ── */
.summer-card-icon { display: flex; align-items: center; justify-content: center; }
.summer-card-icon svg { width: 22px; height: 22px; color: rgba(255,255,255,0.7); }

/* ── Announcement strip responsive ── */
@media(max-width:768px) {
  .announce-strip { padding: 7px 0; }
  .announce-text { font-size: 10.5px; letter-spacing: 0; }
  nav { top: 32px !important; }
}
@media(max-width:480px) {
  .announce-strip { padding: 6px 0; }
  nav { top: 30px !important; }
}

/* ── Global footer link color fix ── */
footer a { color: inherit; text-decoration: none; }
footer .footer-ci a { color: rgba(255,255,255,0.38) !important; }
footer .footer-ci a:hover { color: rgba(255,255,255,0.8) !important; }
footer .footer-links a { color: rgba(255,255,255,0.38) !important; }
footer .footer-links a:hover { color: rgba(255,255,255,0.8) !important; }

/* ════════════════════════════════════════════════════════
   MOBILE HAMBURGER MENU & DRAWER
   ════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover { background: rgba(15,28,46,0.06); }
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy, #0F1C2E);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: all; }

.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,28,46,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.mobile-drawer.open .mobile-drawer-overlay { opacity: 1; }

.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: var(--cream, #F7F4EF);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(15,28,46,0.15);
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(15,28,46,0.08);
}
.mobile-drawer-logo img { height: 42px; width: auto; }
.mobile-drawer-close {
  width: 32px; height: 32px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--gray, #6B7280);
  font-size: 18px; line-height: 1;
  transition: background 0.15s;
}
.mobile-drawer-close:hover { background: rgba(15,28,46,0.06); color: var(--navy, #0F1C2E); }

.mobile-drawer-nav {
  flex: 1;
  padding: 12px 0;
}
.mobile-drawer-link {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy, #0F1C2E);
  text-decoration: none;
  border-bottom: 1px solid rgba(15,28,46,0.05);
  transition: background 0.15s;
  font-family: 'Outfit', sans-serif;
}
.mobile-drawer-link:hover { background: rgba(15,28,46,0.04); }
.mobile-drawer-link.active { color: var(--red, #C8102E); }

.mobile-drawer-group { border-bottom: 1px solid rgba(15,28,46,0.05); }
.mobile-drawer-group-title {
  padding: 14px 24px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light, #9CA3AF);
}
.mobile-drawer-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px 10px 32px;
  font-size: 14px;
  color: var(--gray, #6B7280);
  text-decoration: none;
  transition: background 0.15s;
  font-family: 'Outfit', sans-serif;
}
.mobile-drawer-sublink:hover { background: rgba(15,28,46,0.04); color: var(--navy, #0F1C2E); }

.mobile-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(15,28,46,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-drawer-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: #25D366;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s;
}
.mobile-drawer-wa:hover { background: #1da851; }
.mobile-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  background: var(--navy, #0F1C2E);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s;
}
.mobile-drawer-cta:hover { background: #1C2E45; }

/* Show hamburger at 1024px and below */
@media (max-width: 1024px) {
  .mobile-menu-btn { display: flex !important; }
  .mobile-drawer { display: block !important; }
}

/* ════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE REFINEMENTS
   ════════════════════════════════════════════════════════ */

/* ── Global overrides ── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ── Hero images ── */
.hero-bg { object-position: center; }
.ielts-hero-right img { object-fit: cover; width: 100%; height: 100%; }

/* ── Prevent overflow on all grids ── */
.modules-grid, .trust-grid, .flow-grid,
.detail-grid, .features-list, .band-table { max-width: 100%; }

/* ── Band table mobile ── */
@media (max-width: 640px) {
  .band-table { font-size: 12px; }
  .band-table th, .band-table td { padding: 9px 10px; }
  .band-score { font-size: 15px; }
}

/* ── Facts strip ── */
@media (max-width: 768px) {
  .facts-inner { grid-template-columns: 1fr 1fr; }
  .fact-item { border-bottom: 1px solid var(--border); }
  .fact-item:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .facts-inner { grid-template-columns: 1fr; }
  .fact-item { border-right: none !important; }
}

/* ── IELTS/PTE/test prep hero (split layout) ── */
@media (max-width: 1024px) {
  .ielts-hero { grid-template-columns: 1fr; min-height: auto; }
  .ielts-hero-right { display: none; }
  .ielts-hero-left { padding: 52px 20px 48px; }
  .ielts-hero-h1 { font-size: clamp(32px, 7vw, 52px); }
  .ielts-pills { gap: 6px; }
  .ielts-pill { padding: 6px 10px; }
  .ielts-pill-val { font-size: 18px; }
  .ielts-ctas { flex-direction: column; gap: 10px; }
  .ielts-ctas a { width: 100%; justify-content: center; text-align: center; }
}

/* ── Prog overview strip (test prep pages) ── */
@media (max-width: 900px) {
  .prog-overview-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .prog-overview-inner { grid-template-columns: 1fr 1fr; }
  .prog-stat { border-bottom: 1px solid var(--border); }
}

/* ── Module cards ── */
@media (max-width: 900px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; }
}

/* ── Detail grid (features + score table) ── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Trust grid ── */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── Flow steps ── */
@media (max-width: 900px) {
  .flow-grid { flex-wrap: wrap; gap: 24px; }
  .flow-grid::before { display: none; }
  .flow-step { flex: 1 1 calc(33% - 16px); min-width: 120px; }
}
@media (max-width: 560px) {
  .flow-step { flex: 1 1 calc(50% - 12px); }
}

/* ── Mid CTA ── */
@media (max-width: 768px) {
  .mid-cta { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .mid-cta-btns { flex-direction: column; width: 100%; }
  .mid-cta-btns a { width: 100% !important; justify-content: center; text-align: center; }
}

/* ── Final CTA ── */
@media (max-width: 900px) {
  .final-cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-btns { flex-direction: column; gap: 10px; }
  .cta-btns a { width: 100%; justify-content: center; text-align: center; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Section paddings ── */
@media (max-width: 768px) {
  .sec { padding: 52px 0; }
  .final-cta { padding: 56px 0; }
  h2.st { font-size: clamp(24px, 5.5vw, 36px); }
  .sec-sub { font-size: 14px; }
}
@media (max-width: 480px) {
  .sec { padding: 40px 0; }
  :root { --pad-x: 16px; }
}

/* ── Country page specific ── */
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .cost-grid { grid-template-columns: 1fr; }
  .visa-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .uni-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
}

/* ── Footer mobile ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { padding: 0 var(--pad-x); }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-socials { justify-content: center; }
}

/* ── Breadcrumb ── */
@media (max-width: 480px) {
  .bc-inner, .breadcrumb-inner { font-size: 11px; flex-wrap: wrap; }
}

/* ── Programs page specific ── */
@media (max-width: 900px) {
  .pathway-grid { grid-template-columns: 1fr 1fr; }
  .prog-types { grid-template-columns: 1fr 1fr; }
  .fields-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .prog-types { grid-template-columns: 1fr; }
  .fields-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* ── Test prep page cards ── */
@media (max-width: 900px) {
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .prog-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
  .prog-card-actions { flex-direction: column; gap: 8px; }
  .btn-enroll, .btn-view { text-align: center; }
}

/* ── Destinations page ── */
@media (max-width: 768px) {
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { max-width: 100%; }
}
@media (max-width: 480px) {
  .dest-grid { grid-template-columns: 1fr; }
}

/* ── WA float button ── */
.wa-float { bottom: 20px; right: 20px; }
@media (max-width: 480px) {
  .wa-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 22px; height: 22px; }
}

/* ── Accepted strip ── */
@media (max-width: 640px) {
  .accepted-strip, .ielts-accepted-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .accepted-tags { gap: 5px; }
}

/* ── How-steps (test prep pages) ── */
@media (max-width: 768px) {
  .how-steps { flex-wrap: wrap; gap: 20px; }
  .how-steps::before { display: none; }
  .how-step { flex: 1 1 calc(33% - 14px); min-width: 100px; }
}
@media (max-width: 480px) {
  .how-step { flex: 1 1 calc(50% - 10px); }
}

/* ── FAQ ── */
@media (max-width: 640px) {
  .faq-q { font-size: 13px; padding: 15px 16px; }
  .faq-a { padding: 0 16px 14px; font-size: 13px; }
}

/* ── About page ── */
@media (max-width: 768px) {
  .pillar-grid, .gs-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .pillar-grid, .gs-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}

/* ── Prevent button overflow ── */
.btn-primary, .btn-wa, .btn-enroll, .btn-view,
.btn-wa-hero, .btn-ghost, .btn-enroll-primary {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 640px) {
  .btn-primary, .btn-wa { white-space: normal; }
}

/* ── Footer mobile standardisation (global) ── */
@media(max-width:900px){
  .footer-top{grid-template-columns:1fr 1fr !important;gap:32px !important}
}
@media(max-width:560px){
  .footer-top{grid-template-columns:1fr !important;gap:24px !important}
  .footer-bottom{flex-direction:column !important;gap:14px !important;text-align:center !important;align-items:center !important}
  .footer-socials{justify-content:center !important}
  footer .footer-inner{padding:48px 20px 28px !important}
  .footer-copy{font-size:11px !important}
  .footer-license span{font-size:10px !important}
  .social-btn{width:34px !important;height:34px !important}
}

/* ── Dropdown hover stability fix ── */
.nav-dropdown { position: relative; }
.dropdown-menu { top: 100% !important; padding-top: 4px; }
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 14px;
}
