/* ============================================================
   GO CAMTY ACADEMY — Main Stylesheet
   Design System: #e30b13 (Red), #2F5080 (Navy), clean modern
   ============================================================ */

/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
  /* Brand */
  --gc-red:         #e30b13;
  --gc-red-dark:    #c00a11;
  --gc-red-light:   #ff3d44;
  --gc-red-pale:    #fdeaeb;
  --gc-navy:        #2F5080;
  --gc-navy-dark:   #1e3560;
  --gc-navy-light:  #4a6fa5;
  --gc-navy-pale:   #eaf0f9;

  /* Neutrals */
  --gc-gray-50:  #f8f9fb;
  --gc-gray-100: #f1f3f7;
  --gc-gray-200: #e4e8ef;
  --gc-gray-300: #ccd4e0;
  --gc-gray-500: #8a94a6;
  --gc-gray-700: #4a5568;
  --gc-gray-900: #1a202c;

  /* Accents */
  --gc-gold:     #f5a623;
  --gc-green:    #27ae60;
  --gc-teal:     #0abfbc;

  /* Typography */
  --font-primary:   'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 90px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.15);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Bootstrap overrides */
  --bs-primary:    var(--gc-red);
  --bs-primary-rgb: 227, 11, 19;
  --bs-body-font-family: var(--font-primary);
  --bs-body-color: var(--gc-gray-900);
  --bs-link-color: var(--gc-navy);
  --bs-link-hover-color: var(--gc-navy-dark);
}

/* ── 2. Base & Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gc-gray-900);
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--gc-navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gc-navy-dark); }

/* ── 3. Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gc-gray-900);
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gc-red);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gc-gray-500);
  max-width: 560px;
  margin: .75rem auto 0;
}

.py-section { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }

.bg-light-alt { background: var(--gc-gray-50); }

/* ── 4. Buttons ────────────────────────────────────────────── */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  letter-spacing: .02em;
}

.btn-primary {
  background: var(--gc-red);
  border-color: var(--gc-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(227,11,19,.3);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gc-red-dark);
  border-color: var(--gc-red-dark);
  box-shadow: 0 6px 20px rgba(227,11,19,.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--gc-navy);
  color: var(--gc-navy);
}
.btn-outline-primary:hover {
  background: var(--gc-navy);
  border-color: var(--gc-navy);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--gc-gray-700);
  padding: .4rem .6rem;
}
.btn-ghost:hover { color: var(--gc-red); }

.btn-hero {
  padding: .85rem 2rem;
  font-size: 1rem;
}
.btn-hero-outline {
  padding: .85rem 2rem;
  font-size: 1rem;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* ── 5. Announcement Bar ───────────────────────────────────── */
.announcement-bar {
  position: relative;
  z-index: 1100;
  text-align: center;
  padding: .6rem 3rem;
  font-size: .875rem;
  font-weight: 500;
}

.announcement-inner { display: inline-flex; align-items: center; gap: .5rem; }

.announcement-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: .5rem;
}
.announcement-link:hover { opacity: .85; color: inherit; }

.announcement-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  opacity: .8;
  padding: .35rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  font-size: .9rem;
  transition: opacity var(--transition), background var(--transition);
}
.announcement-close:hover { opacity: 1; background: rgba(0,0,0,.15); }

/* ── 6. Header / Navbar ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: all var(--transition);
}

#mainNav {
  background: #fff;
  padding: .6rem 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

#mainNav.scrolled {
  padding: .4rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.12);
}

/* Logo handling: dark = default, light = on hero */
.logo-light { display: none; }
.logo-dark  { display: block; }

.navbar-brand img { height: 48px; width: auto; }

/* Nav links */
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: .93rem;
  color: var(--gc-gray-700);
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--gc-red);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gc-red);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  margin-top: .5rem;
  animation: dropIn .2s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-menu-programs { min-width: 260px; }

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  transition: background var(--transition);
}
.dropdown-item:hover { background: var(--gc-gray-50); }

.dropdown-icon {
  width: 36px; height: 36px;
  background: var(--gc-red-pale);
  color: var(--gc-red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-item strong { display: block; font-size: .92rem; color: var(--gc-gray-900); }
.dropdown-item small  { color: var(--gc-gray-500); font-size: .78rem; }

/* Language switcher */
.btn-lang {
  background: var(--gc-gray-100);
  border: 1px solid var(--gc-gray-200);
  color: var(--gc-gray-700);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: .4rem;
  transition: all var(--transition);
}
.btn-lang:hover { background: var(--gc-gray-200); color: var(--gc-gray-900); }
.btn-lang::after { display: none; }

.lang-dropdown { min-width: 160px; }
.lang-option.active { color: var(--gc-red); font-weight: 600; }

/* CTA nav button */
.btn-cta-nav {
  background: var(--gc-red);
  border-color: var(--gc-red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(227,11,19,.3);
}
.btn-cta-nav:hover {
  background: var(--gc-red-dark);
  border-color: var(--gc-red-dark);
  color: #fff;
}

/* Mobile navbar */
@media (max-width: 991px) {
  .navbar-collapse { padding: 1rem 0; }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-actions { padding-bottom: 1rem; }
}

/* ── 7. Page Hero (gradient) ───────────────────────────────── */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--gc-navy-dark) 0%, var(--gc-navy) 40%, var(--gc-red) 100%);
  position: relative;
  overflow: hidden;
}
.bg-gradient-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.text-white-50 { color: rgba(255,255,255,.5) !important; }
.text-white-75 { color: rgba(255,255,255,.75) !important; }

.hero-wave-sm { line-height: 0; }
.hero-wave-sm svg { display: block; width: 100%; height: 50px; }

/* ── 8. Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-nav { background: var(--gc-gray-50); }
.breadcrumb { font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gc-gray-300); }
.breadcrumb-item a { color: var(--gc-navy); }
.breadcrumb-item.active { color: var(--gc-gray-500); }

/* ── 9. Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--gc-gray-900);
  color: rgba(255,255,255,.75);
}

.footer-main { padding: 70px 0 50px; }

.footer-tagline {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 320px;
  margin-top: .75rem;
}

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .75rem;
}
.footer-contact-list li {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
}
.footer-contact-list i { color: var(--gc-red-light); font-size: 1rem; }
.footer-contact-list a { color: rgba(255,255,255,.65); }
.footer-contact-list a:hover { color: #fff; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--gc-red);
  color: #fff;
  transform: translateY(-2px);
}

.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  padding: .3rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 500;
}

/* Newsletter */
.footer-newsletter .form-control {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
  color: #fff;
  font-size: .85rem;
}
.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter .form-control:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--gc-red);
  box-shadow: 0 0 0 3px rgba(227,11,19,.2);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}

.footer-copy { font-size: .82rem; color: rgba(255,255,255,.45); }

.footer-legal-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.footer-legal-links a:hover { color: #fff; }

.footer-payments i {
  font-size: 1.4rem;
  color: rgba(255,255,255,.35);
}

/* ── 10. Cookie Consent ────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 800px;
  width: calc(100% - 2rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gc-gray-200);
  padding: 1.25rem 1.5rem;
  animation: slideUp .35s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-text { flex: 1; min-width: 220px; }
.cookie-consent-text strong { display: block; margin-bottom: .25rem; color: var(--gc-gray-900); }
.cookie-consent-text p { margin: 0; font-size: .82rem; color: var(--gc-gray-500); }
.cookie-consent-text a { color: var(--gc-navy); text-decoration: underline; }

.cookie-consent-actions { flex-shrink: 0; }

/* ── 11. Prose (legal / FAQ answer content) ────────────────── */
.prose {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gc-gray-700);
}
.prose h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .75rem; color: var(--gc-gray-900); }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; color: var(--gc-gray-900); }
.prose p  { margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose a  { color: var(--gc-red); text-decoration: underline; }
.prose strong { color: var(--gc-gray-900); }
.prose hr { border: none; border-top: 1px solid var(--gc-gray-200); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .92rem; }
.prose th { background: var(--gc-gray-100); padding: .65rem 1rem; text-align: left; font-weight: 600; }
.prose td { padding: .65rem 1rem; border-bottom: 1px solid var(--gc-gray-200); }

/* ── 12. Sidebar (FAQ) ─────────────────────────────────────── */
.faq-sidebar { background: var(--gc-gray-50); border-radius: var(--radius-md); padding: 1.25rem; }

.sidebar-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gc-gray-500);
  margin-bottom: .75rem;
}

.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--gc-gray-700);
  font-size: .88rem;
  transition: all var(--transition);
  margin-bottom: .15rem;
}
.sidebar-cat-link:hover { background: #fff; color: var(--gc-red); }
.sidebar-cat-link.active {
  background: var(--gc-red-pale);
  color: var(--gc-red);
  font-weight: 600;
}
.sidebar-cat-link i { font-size: .9rem; flex-shrink: 0; }

/* ── 13. Utility / Misc ────────────────────────────────────── */
.table-primary-light { background: #f0f5ff; }

/* Spinner overlay */
.price-loading {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--gc-gray-500);
  justify-content: flex-end;
  margin-bottom: .5rem;
}

/* Auth page full layout */
.auth-page { min-height: 100vh; display: flex; }
.auth-split { display: flex; width: 100%; min-height: 100vh; }

.auth-brand-panel {
  background: linear-gradient(145deg, var(--gc-navy-dark) 0%, var(--gc-navy) 50%, #1a3a6b 100%);
  width: 42%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(227,11,19,.15) 0%, transparent 60%);
}

.auth-logo { z-index: 1; }

.auth-brand-content {
  z-index: 1;
  color: rgba(255,255,255,.85);
}
.auth-brand-content h2 { color: #fff; font-size: 1.8rem; margin-bottom: .75rem; }
.auth-brand-content p { color: rgba(255,255,255,.65); font-size: .95rem; }

.auth-benefits {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.auth-benefits li {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}
.auth-benefits i { color: #4ade80; font-size: 1rem; }

.auth-brand-image { z-index: 1; flex: 1; display: flex; align-items: flex-end; }
.auth-brand-image img { border-radius: var(--radius-md); opacity: .85; }

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: #fff;
  overflow-y: auto;
}

.auth-form-wrap { width: 100%; max-width: 440px; }

.auth-form-header { margin-bottom: 1.75rem; }
.auth-form-header h1 { color: var(--gc-gray-900); }
.auth-form-header p { color: var(--gc-gray-500); margin: .3rem 0 0; font-size: .9rem; }

.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gc-gray-300); font-size: .82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gc-gray-200);
}

/* Password strength */
.strength-bar { height: 4px; background: var(--gc-gray-200); border-radius: 2px; margin-bottom: .25rem; }
.strength-fill { height: 100%; border-radius: 2px; transition: width .3s, background .3s; }

/* Program type tabs in register */
.program-tab-btn {
  background: var(--gc-gray-50);
  border: 2px solid var(--gc-gray-200);
  border-radius: var(--radius-md);
  padding: .65rem .5rem;
  cursor: pointer;
  transition: all var(--transition);
  font-size: .82rem;
  color: var(--gc-gray-700);
}
.program-tab-btn input { display: none; }
.program-tab-btn i { font-size: 1.2rem; color: var(--gc-gray-400); }
.program-tab-btn.selected,
.program-tab-btn:has(input:checked) {
  border-color: var(--gc-red);
  background: var(--gc-red-pale);
  color: var(--gc-red);
}
.program-tab-btn.selected i,
.program-tab-btn:has(input:checked) i { color: var(--gc-red); }

/* Toggle password visibility */
.btn-toggle-pass {
  cursor: pointer;
  background: var(--gc-gray-50);
  border-left: 0;
  transition: color var(--transition);
}
.btn-toggle-pass:hover { color: var(--gc-red); }

@media (max-width: 768px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 1.5rem; }
}

/* ── 14. Contact page ──────────────────────────────────────── */
.contact-info-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff;
  border: 1px solid var(--gc-gray-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--gc-gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* ── 15. Mobile Offcanvas Nav ──────────────────────────────── */
.offcanvas {
  --bs-offcanvas-width: 300px;
  --bs-offcanvas-bg: #fff;
}

.offcanvas-header {
  padding: 1rem 1.25rem;
}
.offcanvas-header .btn-close { opacity: .6; }

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  color: var(--gc-gray-800);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 1px solid var(--gc-gray-100);
  position: relative;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--gc-red-pale);
  color: var(--gc-red);
}
.mobile-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gc-red);
  border-radius: 0 2px 2px 0;
}
.mobile-nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--gc-gray-400);
}
.mobile-nav-link:hover i,
.mobile-nav-link.active i { color: var(--gc-red); }

.mobile-nav-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mobile-nav-link span small {
  font-size: .72rem;
  color: var(--gc-gray-400);
  font-weight: 400;
  margin-top: .1rem;
}
.mobile-nav-sub { padding-left: 2.75rem; }

.mobile-nav-divider {
  padding: .5rem 1.25rem .3rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gc-gray-400);
  background: var(--gc-gray-50);
  border-bottom: 1px solid var(--gc-gray-100);
}

.mobile-nav-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--gc-gray-100);
  background: var(--gc-gray-50);
}

/* ── 16. Flag images ───────────────────────────────────────── */
.flag-img {
  display: inline-block;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Fix lang button on mobile — no overflow */
.btn-lang-mobile {
  padding: .35rem .6rem;
  font-size: .8rem;
  gap: .3rem;
}
.btn-lang-mobile::after { display: none; }
.lang-code-text { font-weight: 700; }

/* ── 17. Hero wave gap fix ─────────────────────────────────── */
.hero-section {
  /* Ensure no gap between hero bg and wave */
  padding-bottom: 0 !important;
}
.hero-wave {
  margin-top: 3rem;
  line-height: 0;
  /* Make the wave SVG fill match body bg exactly */
  position: relative;
  z-index: 1;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
  /* fill must match next section bg - set via fill attribute in SVG */
}

/* The dark strip between hero and next section fix:
   The .how-section starts right after, give it no top padding gap */
.how-section {
  padding-top: 60px;
}

/* ── 18. Dark text on dark bg fixes ────────────────────────── */

/* Gradient sections with light text: force white on any text inside */
.bg-gradient-primary .section-label,
.bg-gradient-primary h1,
.bg-gradient-primary h2,
.bg-gradient-primary p,
.bg-gradient-primary .lead {
  color: #fff;
}
.bg-gradient-primary .text-muted,
.bg-gradient-primary .section-label {
  color: rgba(255,255,255,.65) !important;
}

/* Teacher CTA section (gradient) */
.teacher-cta-section h2,
.teacher-cta-section p { color: #fff; }
.teacher-cta-section p { color: rgba(255,255,255,.8); }

/* CTA card section */
.cta-card .cta-title,
.cta-card .cta-subtitle,
.cta-card .cta-no-cc { color: #fff; }
.cta-card .cta-subtitle { color: rgba(255,255,255,.75); }

/* Footer dark background text */
.site-footer { color: rgba(255,255,255,.75); }
.site-footer .footer-heading { color: #fff; }

/* ── 19. Navbar logo sizing fix ────────────────────────────── */
.navbar-brand img {
  height: 46px;
  width: auto;
  max-width: 180px;
}

/* ── 20. Responsive navbar desktop override ─────────────────── */
/* Hide the d-lg-none mobile cluster on desktop */
@media (min-width: 992px) {
  .navbar-collapse.d-none.d-lg-flex {
    display: flex !important;
  }
}

/* ── 21. nav.logout translation key fallback ────────────────── */

/* ── 22. Global overflow fix (prevents AOS horizontal scroll) ── */
html, body {
  overflow-x: hidden !important;
}

/* ── 23. Offcanvas z-index + header fix ────────────────────────── */
/* Offcanvas must appear ABOVE the sticky header */
.offcanvas {
  z-index: 1060 !important;   /* header is 1050 */
}
.offcanvas-backdrop {
  z-index: 1055 !important;
}
/* Offcanvas logo sizing */
.offcanvas-header .offcanvas-brand img,
.offcanvas-header img {
  max-height: 38px;
  width: auto;
}

/* ── 24. Pointer-events fix for gradient bg overlay ────────────── */
/* The ::before pseudo-element pattern blocks clicks on text/buttons */
.bg-gradient-primary::before {
  pointer-events: none !important;
}
/* Also apply to all section variants */
.hero-section::before,
.hiw-hero::before,
.about-hero::before,
.teacher-cta-section::before,
.cta-card::before {
  pointer-events: none !important;
}

/* ── 25. FAQ search: hide browser autocomplete dropdown ─────────── */
#faqSearchInput {
  autocomplete: off;
}

/* ── 26. Toast notification system ─────────────────────────────── */
.gc-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 360px;
  pointer-events: none;
}

.gc-toast {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: .85rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border-left: 4px solid var(--gc-navy);
  pointer-events: all;
  animation: toastIn .3s ease forwards;
  font-size: .88rem;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.gc-toast.hiding {
  animation: toastOut .3s ease forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(30px); }
}

.gc-toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.gc-toast-body { flex: 1; }
.gc-toast-title { font-weight: 700; display: block; margin-bottom: .1rem; }
.gc-toast-msg   { color: var(--gc-gray-700); line-height: 1.4; }
.gc-toast-close {
  background: none; border: none;
  color: var(--gc-gray-400); cursor: pointer;
  font-size: 1rem; padding: 0; line-height: 1;
  flex-shrink: 0;
}
.gc-toast-close:hover { color: var(--gc-gray-900); }

.gc-toast-success { border-left-color: var(--gc-green); }
.gc-toast-success .gc-toast-icon { color: var(--gc-green); }
.gc-toast-error   { border-left-color: var(--gc-red); }
.gc-toast-error   .gc-toast-icon { color: var(--gc-red); }
.gc-toast-warning { border-left-color: var(--gc-gold); }
.gc-toast-warning .gc-toast-icon { color: var(--gc-gold); }
.gc-toast-info    { border-left-color: var(--gc-navy); }
.gc-toast-info    .gc-toast-icon { color: var(--gc-navy); }

@media (max-width: 576px) {
  .gc-toast-container { left: 1rem; right: 1rem; max-width: none; bottom: 1rem; }
}

/* ── Static / Legal Pages ──────────────────────────────────── */
.static-page-hero {
  border-bottom: 1px solid var(--gc-gray-200);
}

.legal-toc-hint {
  font-size: .875rem;
}

.last-updated-row {
  font-size: .875rem;
}

@media print {
  .site-header, .site-footer, .announcement-bar,
  .breadcrumb-nav, .last-updated-row .btn { display: none !important; }
  .prose { font-size: 12pt; line-height: 1.6; }
}
