/* Header, mega menu, footer, hero — EduMall-style light theme */

/* ---------- Top announcement bar ---------- */
.site-topbar {
  background: var(--secondary);
  color: #c7cbe0;
  font-size: 0.8125rem;
  text-align: center;
}
.site-topbar__inner {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.site-topbar a { color: var(--accent-yellow); font-weight: 700; }
.site-topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--header-height);
}
.site-header__logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  white-space: nowrap;
}
.site-header__logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-header__logo span { color: var(--primary); }

.site-header__category {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.875rem; font-weight: 700; color: var(--secondary);
  white-space: nowrap; cursor: pointer;
}
.site-header__category:hover { border-color: var(--primary); color: var(--primary); }
.site-header__category svg:last-child { color: var(--muted); }

.site-header__search { flex: 1; max-width: 380px; position: relative; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box__input {
  width: 100%;
  padding: 11px 52px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-alt) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%238a90a6" stroke-width="2" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/></svg>') no-repeat 14px center;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: border-color .15s ease, background-color .15s ease;
}
.search-box__input:focus { outline: none; border-color: var(--primary); background-color: var(--white); }
.search-box__submit {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.search-box__submit:hover { background: var(--primary-hover); }
.search-box__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 360px; overflow-y: auto;
  display: none;
  z-index: 60;
}
.search-box__results.is-open { display: block; }
.search-box__group-label { padding: var(--space-2) var(--space-3) 4px; font-size: 0.75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.search-box__result { display: block; padding: var(--space-2) var(--space-3); font-size: 0.875rem; border-radius: var(--radius-sm); }
.search-box__result:hover { background: var(--surface-alt); }

.site-header__nav { display: flex; gap: var(--space-4); align-items: center; margin-left: auto; }
.site-header__nav-link { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); padding: var(--space-2) 0; }
.site-header__nav-link:hover { color: var(--primary); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.site-header__hamburger { display: none; background: none; border: none; cursor: pointer; padding: var(--space-2); color: var(--secondary); }

.mega-menu { position: relative; }
.mega-menu__panel {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  min-width: 560px;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2) var(--space-4);
}
.mega-menu:hover .mega-menu__panel,
.mega-menu:focus-within .mega-menu__panel { display: grid; }
.mega-menu__panel a { display: block; padding: 6px 0; font-size: 0.8125rem; color: var(--text-secondary); border-radius: var(--radius-sm); }
.mega-menu__panel a:hover { color: var(--primary); }

@media (max-width: 900px) {
  .site-header__category span { display: none; }
  .site-header__nav { display: none; }
  .site-header__hamburger { display: block; }
  .site-header__nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) var(--space-4) var(--space-4);
    z-index: 40;
  }
  .site-header__nav.is-open .site-header__nav-link { padding: var(--space-3) 0; width: 100%; border-bottom: 1px solid var(--border); }
  .site-header__nav.is-open .mega-menu { width: 100%; }
  .site-header__nav.is-open .mega-menu__panel { position: static; display: block; box-shadow: none; border: none; min-width: 0; padding: 0 0 0 var(--space-3); grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header__search { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-alt);
  color: var(--text-secondary);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-5);
}
.site-footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--secondary); margin-bottom: var(--space-3); }
.site-footer__brand span { color: var(--primary); }
.site-footer__tagline { font-size: 0.8125rem; color: var(--muted); max-width: 240px; }
.site-footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.site-footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-muted); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.site-footer__social a:hover { background: var(--primary); color: var(--white); }
.site-footer__heading { color: var(--secondary); font-size: 0.8125rem; font-weight: 800; margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer__grid a { display: block; padding: 5px 0; font-size: 0.8125rem; color: var(--text-secondary); }
.site-footer__grid a:hover { color: var(--primary); }
.site-footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--muted);
  flex-wrap: wrap; gap: var(--space-3);
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Register/CTA band (above footer, all pages) ---------- */
.newsletter-band {
  background: var(--accent-blue-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); flex-wrap: wrap;
  color: var(--secondary);
}
.newsletter-band__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.newsletter-band__content { display: flex; align-items: center; gap: var(--space-4); flex: 1; min-width: 240px; }
.newsletter-band__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 2px; }

/* ---------- Hero (generic — used on home, stream, study-abroad) ---------- */
.hero {
  position: relative;
  background: var(--surface-alt);
  padding: var(--space-8) 0 var(--space-6);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 16px;
  font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: var(--space-4); box-shadow: var(--shadow-sm);
}
.hero__title { font-size: 2.75rem; max-width: 780px; margin: 0 auto var(--space-4); }
.hero__title .accent { color: var(--primary); }
.hero__subtitle { color: var(--text-secondary); max-width: 560px; margin: 0 auto var(--space-5); font-size: 1.0625rem; }
.hero__search { max-width: 620px; margin: 0 auto; }
.hero__search .search-box__input { padding: 16px 60px 16px 46px; font-size: 1rem; border-radius: var(--radius-pill); box-shadow: var(--shadow); }
.hero__search .search-box__submit { width: 42px; height: 42px; }
.hero__doodle { position: absolute; opacity: 0.4; z-index: 1; color: var(--primary); }
@media (max-width: 640px) {
  .hero__title { font-size: 2rem; }
  .hero__doodle { display: none; }
}

/* ---------- Home hero (two-column, image collage) ---------- */
.hero--home { padding: var(--space-8) 0; }
.hero--home__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
  position: relative; z-index: 2;
}
.hero--home__copy { text-align: left; }
.hero--home__title { font-size: 2.75rem; margin: 0 0 var(--space-4); }
.hero--home__title .accent-primary { color: var(--primary); }
.hero--home__title .accent-orange { color: var(--accent-orange); }
.hero--home__subtitle { color: var(--text-secondary); font-size: 1.0625rem; max-width: 460px; margin: 0 0 var(--space-5); }
.hero--home__search { max-width: 460px; margin: 0 0 var(--space-6); }

.hero-collage { position: relative; }
.hero-collage__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
}
.hero-collage__tile {
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-collage__tile--tall { grid-row: span 2; min-height: 340px; background: linear-gradient(150deg, var(--primary), #0d3aa8); }
.hero-collage__tile--a { min-height: 160px; background: linear-gradient(150deg, var(--accent-orange), #ff8f66); }
.hero-collage__tile--b { min-height: 160px; background: linear-gradient(150deg, var(--secondary), #262e50); }
.hero-collage__tile svg { opacity: 0.9; }
.hero-collage__badge {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--white); color: var(--secondary);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  max-width: 200px;
}
.hero-collage__badge-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-yellow-soft); color: var(--accent-yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 900px) {
  .hero--home__grid { grid-template-columns: 1fr; }
  .hero--home__copy { text-align: center; }
  .hero--home__subtitle, .hero--home__search { margin-left: auto; margin-right: auto; }
  .hero-collage__badge { display: none; }
}
@media (max-width: 640px) {
  .hero--home__title { font-size: 2rem; }
}

/* ---------- Feature strip (solid blue, 4 items) ---------- */
.feature-strip { background: var(--primary); }
.feature-strip__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: var(--space-5) 0;
}
.feature-strip__item {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--white);
  padding: var(--space-2) var(--space-5);
  border-left: 1px solid rgba(255,255,255,0.18);
}
.feature-strip__item:first-child { border-left: none; padding-left: 0; }
.feature-strip__icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-strip__text { font-size: 0.875rem; font-weight: 700; line-height: 1.3; }
@media (max-width: 900px) {
  .feature-strip__row { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .feature-strip__item { border-left: none; padding-left: 0; }
}
@media (max-width: 560px) {
  .feature-strip__row { grid-template-columns: 1fr; }
}

/* ---------- Stat badges (kept for stream/inner-page heroes) ---------- */
.stat-badge-row { display: flex; justify-content: center; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-6); }
.stat-badge { display: flex; align-items: center; gap: 12px; text-align: left; }
.stat-badge__icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-badge__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--secondary); line-height: 1.1; }
.stat-badge__label { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Stream chips (pill tags, used across many pages) ---------- */
.stream-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stream-chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.stream-chip:hover { border-color: var(--primary); color: var(--primary); }
.stream-chip.is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }
