/* =============================================================
   Origin IT Institute — Global Stylesheet
   Palette: Black / White foundation, Purple + Blue accents
   ============================================================= */

:root {
  --ink: #0a0a0f;
  --ink-soft: #14141c;
  --surface: #ffffff;
  --surface-alt: #f5f5fa;
  --muted: #6b6b7a;
  --border: #e6e6ef;

  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --blue: #2563eb;
  --blue-light: #3b82f6;

  --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --gradient-dark: linear-gradient(160deg, #0a0a0f 0%, #191233 60%, #1c1140 100%);

  --shadow-sm: 0 2px 8px rgba(10, 10, 15, 0.06);
  --shadow-md: 0 8px 24px rgba(37, 37, 90, 0.12);
  --shadow-lg: 0 20px 48px rgba(20, 10, 60, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-dark);
  background: rgba(124, 58, 237, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--gradient-dark); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }

/* ---------- FAQ accordion (AEO/GEO — Q&A format AI answer engines cite directly) ---------- */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: rgba(124,58,237,0.3); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 0;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px; color: var(--muted); line-height: 1.7; }


.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  border-color: rgba(124,58,237,0.35);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-dark); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* Blur applied via a pseudo-element (not the header itself) so the header
   never becomes a CSS containing block for its fixed-position mobile menu. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #fff;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; bottom: -8px;
  width: 100%; height: 2px;
  background: var(--gradient-primary);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer;
  padding: 8px; margin: -8px; line-height: 1; min-width: 44px; min-height: 44px;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 72px 0 0 0;
    flex-direction: column; gap: 0;
    background: var(--ink);
    padding: 12px 24px 32px;
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  top: -220px; right: -160px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(37,99,235,0.3), transparent 70%);
  bottom: -200px; left: -140px;
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.8rem; font-family: var(--font-heading); background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-visual .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-visual .badge-row span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(124,58,237,0.25); }

.course-card { display: flex; flex-direction: column; height: 100%; }
.course-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 20px;
}
/* Admin-uploaded course logo replaces the emoji icon above when set —
   same size/shape, but an actual image instead of a gradient + emoji. */
.course-card .icon.course-card-logo {
  object-fit: cover;
  background: var(--surface-alt);
}
.course-card .tags { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-alt); color: var(--muted);
}
.tag.popular { background: rgba(124,58,237,0.1); color: var(--purple-dark); }
.course-card .price { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; margin-top: auto; padding-top: 16px; }
.course-card .price span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }

.stat-card { text-align: center; }
.stat-card strong { display: block; font-size: 2.4rem; font-family: var(--font-heading); background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: 0.9rem; }

.instructor-card { text-align: center; }
.instructor-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; font-weight: 700; font-family: var(--font-heading);
}
.instructor-card .role { color: var(--purple-dark); font-size: 0.88rem; font-weight: 600; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}
textarea { resize: vertical; min-height: 120px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; }
.alert-success { background: rgba(34,197,94,0.1); color: #15803d; border: 1px solid rgba(34,197,94,0.25); }
.alert-error { background: rgba(239,68,68,0.1); color: #b91c1c; border: 1px solid rgba(239,68,68,0.25); }

/* ---------- Table (admin) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface-alt); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--muted); }
tr:hover td { background: rgba(124,58,237,0.03); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-completed { background: rgba(34,197,94,0.12); color: #15803d; }
.badge-in_progress { background: rgba(37,99,235,0.12); color: #1d4ed8; }
.badge-enrolled { background: rgba(124,58,237,0.12); color: #6d28d9; }
.badge-dropped { background: rgba(239,68,68,0.12); color: #b91c1c; }

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--surface-alt); }
.admin-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--gradient-dark); color: #fff;
  padding: 28px 20px;
}
.admin-sidebar .brand { margin-bottom: 40px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.72); font-weight: 500; font-size: 0.92rem;
  margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.admin-main { flex: 1; padding: 36px 40px; min-width: 0; }
.settings-card { max-width: 960px; }

/* Settings page tabs — organizes the long Settings form into sections so
   the admin isn't scrolling through one continuous page; every field is
   still part of the same single <form> and saves together as before. */
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.settings-tab-btn {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 8px 8px 0 0;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.settings-tab-btn:hover { color: var(--ink); background: var(--surface-alt); }
.settings-tab-btn.active { color: var(--purple-dark); border-bottom-color: var(--purple); }
.settings-tab-panel { display: none; animation: settingsTabFade .2s ease; }
.settings-tab-panel.active { display: block; }
@keyframes settingsTabFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .settings-tabs { gap: 2px; }
  .settings-tab-btn { padding: 10px 12px; font-size: 0.8rem; }
}
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 1.6rem; margin: 0; }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: 64px 0 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer-grid > div { flex: 1 1 160px; min-width: 160px; }
.footer-grid > div:first-child { flex: 2 1 260px; min-width: 220px; }
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,0.6); display: block; padding: 6px 0; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.82rem; }
@media (max-width: 760px) { .footer-grid > div { flex: 1 1 45%; } }

/* ---------- Misc ---------- */
.verify-result { margin-top: 28px; padding: 28px; border-radius: var(--radius-md); }
.verify-result.valid { background: rgba(34,197,94,0.08); border: 1.5px solid rgba(34,197,94,0.35); }
.verify-result.invalid { background: rgba(239,68,68,0.08); border: 1.5px solid rgba(239,68,68,0.35); }
.center-panel { max-width: 480px; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.reveal { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero v2 (Bangladesh government-certified redesign) ---------- */
.hero-v2 { padding: 88px 0 0; overflow: visible; }
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
}
@media (max-width: 900px) { .hero-v2-grid { grid-template-columns: 1fr; } }

.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.gov-badge-seal {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#f0b429,#d97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.gov-badge strong { display: block; color: #fff; font-size: 0.85rem; }
.gov-badge small { display: block; color: rgba(255,255,255,0.65); font-size: 0.74rem; }

.hero-cert-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid;
  border-image: var(--gradient-primary) 1;
  position: relative;
}
.hero-cert-card::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1.5px dashed rgba(124,58,237,0.25);
  border-radius: 16px;
  pointer-events: none;
}
.hero-cert-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero-cert-seal { font-size: 1.8rem; }
.hero-cert-card-top strong { display: block; font-family: var(--font-heading); font-size: 1rem; }
.hero-cert-card-top small { color: var(--muted); font-size: 0.78rem; }
.hero-cert-line { height: 1px; background: var(--border); margin: 6px 0 18px; }
.hero-cert-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin: 0; }
.hero-cert-course { color: var(--muted); font-size: 0.9rem; margin: 4px 0 18px; }
.hero-cert-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); }
.hero-cert-valid { color: #15803d; font-weight: 700; background: rgba(34,197,94,0.1); padding: 3px 10px; border-radius: 999px; }

.gov-mark {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.72rem;
  text-align: center;
}


/* =============================================================
   MOBILE RESPONSIVENESS HARDENING
   ============================================================= */

/* Prevent any accidental horizontal scroll from decorative blobs.
   NOTE: overflow-x on <html> or <body> breaks position:sticky for every
   descendant (any ancestor with non-visible overflow becomes the sticky
   containing block instead of the viewport) — this silently stopped the
   sticky header from staying pinned while scrolling on every theme.
   Individual decorative wrappers (.hero, .hero-v2, etc.) already clip
   their own blobs, so no global overflow rule is needed here. */
html, body { width: 100%; }
.hero-v2 { overflow: hidden; }

/* Fluid headings so long titles never overflow small screens */
h2 { font-size: clamp(1.5rem, 4.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.5rem); }
h4 { font-size: clamp(1rem, 3vw, 1.15rem); }

/* Brand text: always keep the site name visible, even on small phones —
   truncate gracefully with an ellipsis instead of hiding it outright. */
.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.nav-mobile-cta { display: none; }

@media (max-width: 480px) {
  .brand { gap: 8px; font-size: 1.05rem; }
  .brand-text { max-width: 34vw; }
  .nav-desktop-cta { display: none; }
}

/* ---------- Tablet & below ---------- */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero-v2 { padding: 64px 0 0; }
  .hero-v2-grid { gap: 36px; padding-bottom: 48px; }
  .form-card { padding: 30px 24px; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .hero { padding: 48px 0 56px !important; }
  .hero-v2 { padding: 44px 0 0 !important; }
  .hero-v2-grid { padding-bottom: 40px; }
  .section { padding: 52px 0; }

  .nav { padding: 14px 16px; }
  .brand-mark { width: 32px; height: 32px; font-size: 0.85rem; }

  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
  .hero-stats { gap: 20px; margin-top: 36px; }
  .hero-stat strong { font-size: 1.4rem; }

  .gov-badge { padding: 8px 14px 8px 10px; }
  .gov-badge strong { font-size: 0.78rem; }
  .gov-badge small { font-size: 0.68rem; }

  .hero-cert-card { padding: 22px 18px; }
  .hero-cert-name { font-size: 1.25rem; }

  .form-card { padding: 24px 18px; }
  .card { padding: 20px; }

  .footer-grid { flex-direction: column; gap: 28px; text-align: left; }
  .footer-grid > div, .footer-grid > div:first-child { flex-basis: auto; min-width: 0; }
  .site-footer { padding: 48px 0 24px; }

  .admin-main { padding: 20px 16px; }
  .admin-topbar h1 { font-size: 1.3rem; }
  .admin-sidebar { padding: 20px 16px; }

  table { font-size: 0.82rem; }
  th, td { padding: 10px 12px; }

  .btn { padding: 12px 22px; font-size: 0.9rem; }
}

@media (max-width: 380px) {
  .hero-stats { flex-direction: column; gap: 14px; }
  .badge-row span { font-size: 0.72rem; padding: 5px 10px; }
}


/* Mobile dropdown CTA button (Enroll Now) — overrides .nav-links a base styles */
@media (max-width: 900px) {
  .nav-links a.nav-mobile-cta {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 22px;
    border-bottom: none;
    color: #fff;
  }
}


/* Extra small-screen safety nets */
.hero-cert-footer { flex-wrap: wrap; gap: 8px; }
.gov-badge { flex-wrap: wrap; }
@media (max-width: 360px) {
  .gov-badge { text-align: left; }
}

.hero-cert-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 4px;
}

.brand-logo-img {
  object-fit: contain;
  background: transparent;
}

.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
}

/* =============================================================
   Site-wide scrolling ticker strip (below the header) — shown on
   every theme, admin-editable from Admin -> Settings. Base styling
   here matches the default "Creative" palette; each alternate theme
   (Professional / Interactive / Bold) overrides .site-marquee in its
   own stylesheet to match its look.
   ============================================================= */
.site-marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-marquee-track {
  display: inline-flex;
  gap: 40px;
  width: max-content;
  will-change: transform;
}
.site-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-marquee-track span::after {
  content: '\2605';
  -webkit-text-fill-color: var(--purple);
  color: var(--purple);
}
/* Links authored inside a ticker message (via the admin's rich-text editor)
   inherit whatever text treatment the theme applied to the surrounding
   span/gradient text, so a linked word never renders invisible against a
   background-clip:text gradient, and gets an underline + pointer cursor as
   the only visual cue that it's clickable. */
.site-marquee-track a {
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  color: inherit;
  -webkit-text-fill-color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  /* Fixed accent color (not currentColor) — the surrounding gradient text
     often sets color:transparent to reveal the background-clip gradient,
     which would make a currentColor underline invisible too. */
  text-decoration-color: var(--purple);
}
.site-marquee-track a:hover { opacity: 0.8; }
/* The scrolling animation itself is driven entirely by main.js (Web
   Animations API), which measures the real rendered width of the ticker
   content and repeats/animates it accordingly — this reads correctly
   whether the admin configured 1 short message or 10 long ones, and
   respects prefers-reduced-motion automatically (see main.js). */
@media (max-width: 640px) {
  .site-marquee { padding: 8px 0; font-size: 0.78rem; }
}

/* ---------- Rich-text editor (Quill) wrapper used by admin_footer.php ---------- */
.rich-editor-wrap { margin-bottom: 4px; }
.rich-editor-wrap .ql-toolbar.ql-snow {
  border-color: var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-alt);
}
.rich-editor-wrap .ql-container.ql-snow {
  border-color: var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.rich-editor-wrap .ql-editor { min-height: inherit; }
.rich-editor-source {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  background: #fff;
  color: var(--ink);
}
