/* ============================================================
   AuStudyFinder — Main Stylesheet
   ============================================================ */

/* Accessibility helpers */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:absolute; top:-40px; left:0; background:var(--au-blue,#00367a); color:#fff; padding:8px 16px; z-index:9999; text-decoration:none; transition:top .2s; }
.skip-link:focus { top:0; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --au-blue: #00367a;
  --au-gold: #ffcc00;
  --au-green: #006644;
  --accent: #0066cc;
  --accent-light: #e8f1fb;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --card-hover: 0 4px 16px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--au-blue);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  position: relative;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-au { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -.3px; white-space: nowrap; }
.logo-dot { color: var(--au-gold); }

/* Desktop nav */
.nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.nav-cta {
  background: var(--au-gold);
  color: var(--au-blue) !important;
  font-weight: 700;
  margin-left: 4px;
}
.nav-cta:hover { background: #ffe033; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background .2s;
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--au-blue) 0%, #0052a3 60%, #004494 100%);
  padding: 52px 20px 44px;
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-title {
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -.5px;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── SEARCH BAR ───────────────────────────────────────────── */
.search-wrapper { position: relative; margin-bottom: 24px; }
.search-bar {
  display: flex; align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  gap: 6px;
}
.search-icon { font-size: 18px; flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none; outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  min-width: 0;
}
.search-input::placeholder { color: #9ca3af; }
.search-btn {
  background: var(--accent);
  color: var(--white);
  border: none; cursor: pointer;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 14px; font-weight: 600;
  transition: background .2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.search-btn:hover { background: #004fa3; }

.suggestions-box {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--card-hover); z-index: 200;
  overflow: hidden;
}
.suggestions-box.hidden { display: none; }
.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: background .15s;
}
.suggestion-item:hover { background: var(--accent-light); }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 10px 24px;
}
.stat-item { text-align: center; padding: 0 18px; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--au-gold); }
.stat-label { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.2); flex-shrink: 0; }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }

.tab-section { display: none; }
.tab-section.active { display: block; }

/* ── FILTERS ──────────────────────────────────────────────── */
.filters-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.filter-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  min-width: 145px;
}
.filter-select:focus { border-color: var(--accent); }

.clear-filters-btn {
  background: none; border: 1.5px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: all .2s;
  align-self: flex-end;
}
.clear-filters-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESULTS ──────────────────────────────────────────────── */
.results-header {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 14px;
  min-height: 20px;
}
.results-header strong { color: var(--text); }
.results-grid { display: flex; flex-direction: column; gap: 10px; }

/* ── INITIAL STATE ────────────────────────────────────────── */
.initial-state {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted);
}
.initial-icon { font-size: 52px; margin-bottom: 14px; }
.initial-state h2, .initial-state h3 { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.initial-state p { font-size: 15px; margin-bottom: 20px; }
.quick-searches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.quick-label { font-size: 13px; font-weight: 500; }
.quick-btn {
  background: var(--accent-light); color: var(--accent);
  border: 1.5px solid #bdd7f5; border-radius: 20px;
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.quick-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── COURSE CARD ──────────────────────────────────────────── */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  border: 1.5px solid transparent;
  display: flex; gap: 16px; align-items: flex-start;
}
.course-card:hover {
  box-shadow: var(--card-hover);
  transform: translateY(-1px);
  border-color: var(--accent);
}
.card-left { flex: 1; min-width: 0; }
.card-right { flex-shrink: 0; text-align: right; }

.course-code {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.course-name {
  font-size: 16px; font-weight: 600;
  color: var(--au-blue);
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-word;
}
.institution-name {
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 10px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11px; font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.tag-level { background: #eff6ff; color: #1d4ed8; }
.tag-field { background: #f0fdf4; color: #15803d; }
.tag-state { background: #fefce8; color: #854d0e; }
.tag-expired { background: #fef2f2; color: #dc2626; }

.card-fee {
  font-size: 17px; font-weight: 700;
  color: var(--au-blue);
  margin-bottom: 4px;
}
.card-fee-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.card-duration { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ── LOADING & EMPTY ──────────────────────────────────────── */
.loading-spinner {
  text-align: center; padding: 48px;
  color: var(--text-muted); font-size: 15px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center; padding: 52px 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 28px; flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  padding: 0 10px;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 780px; width: 100%;
  max-height: 90vh;
  overflow: hidden;
  padding: 0 28px 28px;
  transform: scale(.96);
  transition: transform .25s;
  display: flex;
  flex-direction: column;
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  display: flex; justify-content: flex-end;
  padding: 14px 0 10px;
  flex-shrink: 0;
}
.modal-body { overflow-y: auto; flex: 1; padding-bottom: 8px; }
.modal { display: flex; flex-direction: column; overflow: hidden; }

.modal-close {
  background: var(--bg); border: none;
  width: 32px; height: 32px;
  border-radius: 50%; font-size: 14px;
  cursor: pointer; color: var(--text-muted);
  transition: background .2s; flex-shrink: 0;
}
.modal-close:hover { background: var(--border); }

.modal-course-code { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.modal-course-name { font-size: 22px; font-weight: 700; color: var(--au-blue); margin-bottom: 4px; line-height: 1.3; }
.modal-institution { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }

.modal-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 20px;
}
.modal-field-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.modal-field-value { font-size: 15px; font-weight: 500; color: var(--text); }
.modal-field-value.big { font-size: 19px; font-weight: 700; color: var(--au-blue); }

.modal-section-title { font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }

.modal-locations { display: flex; flex-wrap: wrap; gap: 8px; }
.location-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 13px;
}
.location-chip strong { color: var(--accent); }

.modal-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }

.website-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-size: 14px;
  font-weight: 500; margin-top: 4px;
}
.website-link:hover { text-decoration: underline; }

/* ── SCHOLARSHIP GOOGLE BUTTON ────────────────────────────── */
.scholarship-google-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--au-green), #008855);
  color: var(--white);
  padding: 12px 22px; border-radius: 10px;
  text-decoration: none; font-size: 15px; font-weight: 600;
  transition: opacity .2s, transform .15s;
  margin-top: 4px;
}
.scholarship-google-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── PACKAGE RECOMMENDATIONS ──────────────────────────────── */
.pkg-badge-info {
  font-size: 11px; font-weight: 500;
  background: #fff3cd; color: #856404;
  padding: 2px 9px; border-radius: 20px;
  margin-left: 8px; vertical-align: middle;
}
.packages-list { display: flex; flex-direction: column; gap: 10px; }

.package-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fafbff;
  transition: border-color .2s;
}
.package-card:hover { border-color: var(--au-blue); }

.package-courses { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.package-course-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.package-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: .3px;
}
.package-badge.current { background: var(--au-blue); color: var(--white); }
.package-badge.companion { background: var(--au-green); color: var(--white); }
.package-course-name { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; word-break: break-word; }
.package-dur { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.package-plus {
  font-size: 18px; font-weight: 700; color: var(--text-muted);
  text-align: center; line-height: 1;
}
.package-summary {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
}
.package-total-dur strong, .package-total-cost strong { color: var(--au-blue); }
.pkg-credit-note {
  font-size: 12px; color: #92400e;
  background: #fef3c7; border: 1px solid #fde68a;
  border-radius: 6px; padding: 6px 10px; margin: 6px 0;
}

/* ── SCHOLARSHIPS ─────────────────────────────────────────── */
.scholarships-header { margin-bottom: 24px; }
.scholarships-header h2 { font-size: 26px; font-weight: 700; color: var(--au-blue); margin-bottom: 8px; }
.scholarships-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.scholarship-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.scholarship-search-input {
  flex: 1; min-width: 200px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; outline: none;
  transition: border-color .2s;
}
.scholarship-search-input:focus { border-color: var(--accent); }

.scholarships-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.scholarship-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
  border: 1.5px solid transparent;
  transition: all .2s;
  display: flex; flex-direction: column;
}
.scholarship-card:hover { box-shadow: var(--card-hover); border-color: var(--au-gold); }

.scholarship-provider { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.scholarship-name { font-size: 16px; font-weight: 700; color: var(--au-blue); margin-bottom: 10px; line-height: 1.4; }
.scholarship-value {
  display: inline-block;
  background: #fff8e6; color: #92400e;
  font-size: 13px; font-weight: 600;
  padding: 3px 12px; border-radius: 20px;
  margin-bottom: 10px;
}
.scholarship-desc { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; flex: 1; }
.scholarship-eligibility { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.scholarship-eligibility strong { color: var(--text); }
.scholarship-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.scholarship-tag { background: var(--accent-light); color: var(--accent); font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 20px; }
.scholarship-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--au-blue); color: var(--white);
  padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background .2s; align-self: flex-start;
}
.scholarship-link:hover { background: var(--accent); }

/* ── ABOUT ────────────────────────────────────────────────── */
.about-content h2 { font-size: 26px; font-weight: 700; color: var(--au-blue); margin-bottom: 22px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 32px; }
.about-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--card-shadow);
}
.about-icon { font-size: 30px; margin-bottom: 10px; }
.about-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.about-card p, .about-card ul { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.about-card ul { padding-left: 16px; }
.about-card li { margin-bottom: 5px; }

.about-links h3 { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.links-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ext-link {
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--accent); text-decoration: none;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.ext-link:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--au-blue);
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.footer a { color: var(--au-gold); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  ≤ 1024px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .logo-dot { font-size: 15px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 768px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Mobile nav ── */
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #002a60;
    flex-direction: column;
    padding: 8px 0 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }

  .nav-link {
    border-radius: 0;
    padding: 13px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-link:last-child { border-bottom: none; }
  .nav-cta {
    margin: 8px 16px 0;
    border-radius: var(--radius-sm);
    text-align: center;
    padding: 13px 24px;
    border-bottom: none;
  }

  /* ── Hero ── */
  .hero { padding: 36px 16px 32px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 22px; }

  /* ── Stats bar → 2×2 grid on mobile ── */
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
    padding: 12px 16px;
    gap: 0;
    width: 100%;
    max-width: 320px;
  }
  .stat-item { padding: 10px 8px; }
  .stat-num { font-size: 20px; }
  .stat-divider { display: none; }

  /* ── Main ── */
  .main-content { padding: 20px 14px 48px; }

  /* ── Filters → full width stack ── */
  .filters-row { flex-direction: column; padding: 14px 16px; gap: 10px; }
  .filter-group { width: 100%; }
  .filter-select { min-width: unset; width: 100%; }
  .clear-filters-btn { width: 100%; text-align: center; padding: 10px; }

  /* ── Course card → stack layout ── */
  .course-card { flex-direction: column; gap: 12px; padding: 16px; }
  .card-right { text-align: left; display: flex; gap: 16px; align-items: baseline; }
  .card-fee { font-size: 16px; }
  .card-fee-label { display: none; }
  .card-duration { margin-top: 0; }

  /* ── Prevent iOS zoom on input focus (font-size must be ≥ 16px) ── */
  .search-input,
  .filter-select,
  .scholarship-search-input { font-size: 16px; }

  /* ── Modal → near-fullscreen bottom sheet on mobile ── */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 0 16px 28px;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-header {
    position: sticky;
    top: 0;
    background: var(--white);
    padding: 16px 0 12px;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    flex-shrink: 0;
  }
  .modal-body { overflow-y: auto; flex: 1; }
  .modal-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-course-name { font-size: 19px; }
  .modal-field-value.big { font-size: 17px; }

  /* ── Scholarships → single column ── */
  .scholarships-grid { grid-template-columns: 1fr; }
  .scholarship-search-row { flex-direction: column; }
  .scholarship-search-input { min-width: unset; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; }

  /* ── Pagination ── */
  .page-btn { min-width: 36px; height: 36px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE  ≤ 480px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .logo-dot { display: none; }
  .logo-text { font-size: 16px; }

  .hero { padding: 28px 14px 28px; }
  .hero-title { font-size: 22px; }

  .search-bar { padding: 5px 5px 5px 14px; }
  .search-btn { padding: 9px 16px; font-size: 13px; }

  /* Stats bar → single column on very small screens */
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    max-width: 260px;
    margin: 0 auto;
    display: grid;
  }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 10px; }

  .quick-btn { font-size: 12px; padding: 5px 12px; }

  .modal { padding: 18px 14px 24px; }
  .scholarship-google-btn { font-size: 14px; padding: 11px 18px; }
}