/* ============================================================
   Site chrome — shared header & footer for every public page.
   Mirrors the refined homepage look (warm paper + amber accents,
   espresso footer) so the header and footer are identical across
   the site. Self-contained: works even on pages that don't load
   landing.css (terms, privacy, payment success).

   Every rule is scoped to .header / .footer-new and their children,
   so admin/staff/student pages (which never use those classes) are
   unaffected. On the homepage the more specific .ep-home rules in
   home.css win — but the values are identical, so it renders the same.
   ============================================================ */

/* ---------------------------------------------------------------- Header */
.header {
  background: rgba(244, 245, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #1b1e23;
  border-top: none;
  border-bottom: 1px solid rgba(20, 22, 26, 0.1);
  box-shadow: 0 1px 0 rgba(20, 22, 26, 0.04), 0 10px 30px rgba(20, 22, 26, 0.05);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.header .logo-image {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-left: 0;
}

.header .logo-text h1 {
  font-family: "Fraunces", "Georgia", serif;
  color: #1b1e23;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.header .logo-text .tagline {
  color: #828893;
  font-size: 0.92rem;
  opacity: 1;
  letter-spacing: 0.01em;
  margin: 0;
}

.header .contact-info {
  margin-right: 0;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- Language switcher (native <select> in a pill) ---------- */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 22, 26, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-switcher:hover {
  border-color: rgba(224, 168, 0, 0.5);
  background: #fff;
  box-shadow: 0 6px 16px rgba(20, 22, 26, 0.08);
}

.lang-switcher .lang-globe {
  color: #7a5d00;
  font-size: 0.9rem;
  pointer-events: none;
}

.lang-switcher .lang-caret {
  color: #1b1e23;
  font-size: 0.62rem;
  pointer-events: none;
}

.lang-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  color: #1b1e23;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 6px 11px 8px;
  cursor: pointer;
}

.lang-select:focus-visible {
  outline: 2px solid rgba(224, 168, 0, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Option list is OS-rendered; force readable colours regardless of page theme. */
.lang-select option {
  color: #1b1e23;
  background: #fff;
}

/* Suppress Google Translate's injected top banner / tooltips so the page
   layout is not pushed down or visually disrupted. */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
body { top: 0 !important; }

.header .cta {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #9a7400 0%, #7a5d00 100%);
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(224, 168, 0, 0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.header .cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(224, 168, 0, 0.32);
}

.header .cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #7a5d00;
  border: 1px solid rgba(154, 116, 0, 0.35);
  transition: background 0.22s ease, color 0.22s ease;
}

.header .cta-secondary:hover {
  background: rgba(154, 116, 0, 0.08);
}

@media (max-width: 768px) {
  .header .container {
    justify-content: center;
    text-align: center;
  }
  .header .logo {
    gap: 12px;
  }
  .header .logo-image {
    height: 58px;
    margin-left: 0;
  }
  .header .logo-text h1 {
    font-size: 1.15rem;
  }
  .header .contact-info {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-right: 0;
  }
}

/* ---------------------------------------------------------------- Footer */
.footer-new {
  background: #1c1f24;
  color: #f6f7f9;
  padding: 28px 20px 36px;
  text-align: center;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.footer-new .footer-container {
  max-width: 1100px;
  margin: auto;
}

.footer-new .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin: 8px 0 18px;
}

.footer-new .footer-links a {
  color: #f6f7f9;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-new .footer-links a:hover {
  color: #ecc23e;
}

.footer-new .footer-helpline {
  margin: 16px 0;
  font-size: 1rem;
  font-weight: 600;
}

.footer-new .footer-helpline a {
  color: #f2c230;
  text-decoration: none;
  white-space: nowrap;
}

.footer-new .copyright {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(237, 240, 245, 0.8);
}

.footer-new .trademark {
  font-size: 0.8rem;
  color: rgba(237, 240, 245, 0.6);
  margin-top: 8px;
}

.footer-new .footer-disclaimer-title {
  margin-top: 26px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f6f7f9;
}

.footer-new .footer-small {
  font-size: 0.8rem;
  margin-top: 10px;
  color: rgba(237, 240, 245, 0.7);
}

.footer-new .footer-desc {
  margin: 14px auto 0;
  max-width: 760px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(237, 240, 245, 0.62);
}

.footer-new .developer-link {
  background: #ff6600;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-new .footer-links {
    gap: 14px;
  }
  .footer-new .footer-desc {
    font-size: 0.75rem;
  }
}

/* Brand-yellow header CTA — bright fill, dark text */
.header .cta {
  background: linear-gradient(135deg, #ffce33 0%, #f5b400 100%);
  color: #1b1e23;
  box-shadow: 0 12px 26px rgba(245, 180, 0, 0.28);
}
.header .cta:hover {
  filter: brightness(1.03);
  box-shadow: 0 18px 34px rgba(245, 180, 0, 0.34);
}
