/* ==========================================================================
   GAD International Institute — navy & gold theme (from the brand logo)
   All colours are tokens; every page (public, learner, admin) uses them.
   ========================================================================== */
:root {
  --bg: #06132b;
  --bg-2: #091a37;
  --surface: #0b1e3f;
  --card: #0c2145;
  --card-2: #112b57;
  --border: #1a3563;
  --border-2: #2a4a80;
  --text: #f3f5fa;
  --text-2: #c6cfe0;
  --muted: #8796b3;
  --primary: #c9a25a;
  --primary-2: #b08a45;
  --primary-3: #e3c68a;
  --primary-ink: #1d1404;
  --primary-soft: rgba(201, 162, 90, .14);
  --navy: #0a2249;
  --gold: #c9a25a;
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
  --danger: #f87171; --danger-soft: rgba(248, 113, 113, .12);
  --info: #60a5fa; --info-soft: rgba(96, 165, 250, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-3); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: .2em 0 .6em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.08rem; }
hr { border: 0; border-top: 1px solid var(--border); }
code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; }
blockquote { margin: 0; }
::selection { background: var(--primary); color: var(--primary-ink); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.page { padding: 32px 0 64px; min-height: 60vh; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .inline { display: inline; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.section { margin: 48px 0; }
.eyebrow { color: var(--primary); font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 480px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border: 1px solid rgba(201, 162, 90, .45); border-radius: 999px; background: var(--primary-soft); color: var(--primary-3); font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
[dir="rtl"] .link-arrow { padding: 8px 18px 8px 10px; }
.link-arrow::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1404' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / 15px no-repeat; transition: transform .2s; flex-shrink: 0; }
[dir="ltr"] .link-arrow::after { transform: scaleX(-1); }
.link-arrow:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.link-arrow:hover::after { background-color: var(--primary-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c68a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E"); transform: translateX(-3px); }
[dir="ltr"] .link-arrow:hover::after { transform: scaleX(-1) translateX(-3px); }
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- header ---------- */
.site-header { background: rgba(6, 19, 43, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark { width: 34px; height: 34px; color: var(--primary); }
.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.main-nav a { color: var(--text-2); font-size: .93rem; padding: 22px 12px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); border-bottom-color: var(--primary); }
.user-nav { display: flex; gap: 14px; align-items: center; }
.user-nav > a:not(.btn), .user-nav button.link { color: var(--text-2); font-size: .93rem; }
.icon-btn { color: var(--text-2); display: inline-flex; position: relative; }
.icon-btn .badge { position: absolute; top: -6px; inset-inline-end: -8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--primary-ink); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 20px; cursor: pointer; font: inherit; font-weight: 600; font-size: .93rem; text-align: center; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-3); color: var(--primary-ink); box-shadow: 0 6px 20px rgba(201, 162, 90, .35); }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-outline, .btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-outline:hover, .btn-ghost:hover { background: var(--card-2); color: var(--text); box-shadow: none; }
.btn-danger { background: var(--danger); color: #2a0b0b; } .btn-danger:hover { background: #fca5a5; color: #2a0b0b; }
.btn-sm { padding: 5px 12px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
button.link { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }

/* ---------- cards & surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.card-body { padding: 16px 18px; }
.box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.box > h2:first-child, .box > h3:first-child { margin-top: 0; }
.staff-reply { background: var(--primary-soft); border-color: var(--border-2); }
.tag { display: inline-block; background: var(--primary-soft); color: var(--primary-3); border-radius: 999px; padding: 1px 10px; font-size: .75rem; font-weight: 600; }
.badge { background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 0 6px; font-size: .7rem; font-weight: 700; line-height: 1.6; }
.status { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--card-2); color: var(--text-2); }
.status-paid, .status-active, .status-published, .status-answered, .status-sent, .status-attended { background: var(--ok-soft); color: var(--ok); }
.status-pending, .status-due, .status-pending_review, .status-partially_paid, .status-open, .status-draft { background: var(--warn-soft); color: var(--warn); }
.status-cancelled, .status-rejected, .status-failed, .status-expired, .status-suspended { background: var(--danger-soft); color: var(--danger); }
.price strong { font-size: 1.15rem; color: var(--text); } .price del { color: var(--muted); margin-inline-start: 8px; font-size: .9rem; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert.success { background: var(--ok-soft); color: #bbf7d0; border-color: rgba(74, 222, 128, .25); }
.alert.error { background: var(--danger-soft); color: #fecaca; border-color: rgba(248, 113, 113, .25); }
.alert.info { background: var(--info-soft); color: #bfdbfe; border-color: rgba(96, 165, 250, .25); }
.alert a { color: inherit; text-decoration: underline; }
.progress { background: var(--card-2); border-radius: 999px; height: 7px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-2), var(--primary)); border-radius: 999px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: .9rem; }
.stat b { display: block; font-size: 1.5rem; color: var(--text); margin-bottom: 2px; }
.impersonating { background: var(--warn); color: #241a00; text-align: center; padding: 6px; }
.impersonating .btn { background: #241a00; color: #fff; }
details > summary { cursor: pointer; color: var(--primary); }
details.box > summary { color: var(--text); font-weight: 600; }

/* ---------- home: hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 40px 0 56px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary-3); border: 1px solid rgba(201, 162, 90, .25); border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 600; }
.hero-pill .icon { color: var(--warn); width: 1em; height: 1em; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.12; letter-spacing: -.01em; margin: 18px 0 16px; font-weight: 800; }
.hero h1 .accent { color: var(--primary); display: block; }
.hero p.lead { color: var(--text-2); font-size: 1.12rem; max-width: 520px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-search { display: flex; gap: 8px; margin-top: 22px; max-width: 520px; }
.hero-search input { flex: 1; }
.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(201, 162, 90, .2), rgba(29, 74, 143, .18) 55%, transparent 70%), radial-gradient(circle, transparent, transparent 60%, transparent 70%); }
.hero-art svg { position: relative; width: min(520px, 100%); height: auto; }

/* features strip */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border); margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); background: var(--bg-2); }
.feature { display: flex; gap: 14px; align-items: center; padding: 24px 20px; }
.feature + .feature { border-inline-start: 1px solid var(--border); }
.feature .icon { width: 32px; height: 32px; color: var(--primary); }
.feature b { display: block; font-size: .92rem; }
.feature span { color: var(--muted); font-size: .82rem; }

/* categories */
.categories { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.category { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 14px; min-height: 130px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: .9rem; text-align: center; transition: .2s; }
.category .icon { width: 30px; height: 30px; color: var(--primary-3); }
.category:hover { border-color: var(--primary); color: var(--text); background: var(--card-2); transform: translateY(-2px); }

/* course cards */
.course-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.course-card { display: flex; flex-direction: column; }
.course-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card .thumb { aspect-ratio: 16 / 8; overflow: hidden; position: relative; display: block; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.thumb-placeholder::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 90%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.thumb-placeholder .icon { width: 56px; height: 56px; position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.thumb-recorded { background: linear-gradient(135deg, #123a7a, #0e2c60 60%, #0a1d40); }
.thumb-live { background: linear-gradient(135deg, #8a6528, #a8823e 45%, #4b3410); }
.thumb-program { background: linear-gradient(135deg, #0d4a5a, #0f5f6b 55%, #072b36); }
.thumb-v0 { background: linear-gradient(135deg, #0e2c60, #1d4a8f 60%, #0a1d40); }
.course-card .card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { margin: 0; font-size: 1rem; line-height: 1.45; }
.course-card h3 a { color: var(--text); }
.course-card .rating { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.course-card .rating .star { color: var(--warn); }
.course-card .meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.course-card .meta .price { margin-inline-start: auto; }
.course-card .meta .price strong { font-size: 1rem; }
.pill { border-radius: 6px; padding: 1px 8px; font-size: .72rem; font-weight: 600; }
.pill-best { background: rgba(201, 162, 90, .16); color: var(--primary-3); }
.pill-new { background: var(--info-soft); color: #93c5fd; }
.pill-free { background: var(--ok-soft); color: var(--ok); }
.pill-type { background: var(--card-2); color: var(--text-2); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--border-2); border-radius: 18px; padding: 36px 28px; text-align: center; background: radial-gradient(120% 140% at 0% 100%, rgba(201, 162, 90, .35), transparent 50%), linear-gradient(135deg, #0f2a55, #0a1d3d); }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { color: var(--text-2); margin: 0 0 18px; }
.cta-band .learners { position: absolute; inset-inline-end: 28px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; text-align: start; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #0f2a55; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--primary-ink); margin-inline-start: -10px; }
.avatars span:first-child { margin-inline-start: 0; }
.learners b { display: block; font-size: .9rem; } .learners small { color: var(--muted); font-size: .75rem; }

/* testimonials / events */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.quote p { color: var(--text-2); margin: 8px 0 12px; }
.quote footer { color: var(--muted); font-size: .85rem; }
.stars { color: var(--warn); letter-spacing: 2px; }
.event-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 16px; }
.event-date { min-width: 62px; text-align: center; background: var(--primary-soft); border-radius: var(--radius-sm); padding: 8px 6px; color: var(--primary-3); }
.event-date b { display: block; font-size: 1.4rem; line-height: 1.1; color: var(--text); }
.event-card h3 { margin: 4px 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 48px 0 0; margin-top: 24px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-grid h4 { font-size: .9rem; margin: 0 0 12px; }
.footer-grid a:not(.logo) { display: block; color: var(--text-2); font-size: .88rem; padding: 3px 0; }
.footer-grid a:not(.logo):hover { color: var(--text); }
.footer-grid p { color: var(--muted); font-size: .88rem; }
.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a { color: var(--text-2) !important; display: inline-flex !important; padding: 0 !important; }
.socials .icon { width: 20px; height: 20px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; }
.newsletter .btn { padding: 0 14px; }
.copyright { border-top: 1px solid var(--border); margin-top: 40px; padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; }
.copyright a { color: var(--muted); } .copyright a + a { border-inline-start: 1px solid var(--border-2); padding-inline-start: 10px; margin-inline-start: 10px; }
.wa-float { position: fixed; right: 18px; left: auto; bottom: 18px; background: #25d366; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 40; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=search], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: .93rem; background: var(--bg-2); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
input[type=file] { padding: 8px; }
input[type=file]::file-selector-button { background: var(--card-2); color: var(--text); border: 1px solid var(--border-2); border-radius: 8px; padding: 4px 10px; margin-inline-end: 10px; cursor: pointer; font: inherit; }
textarea { min-height: 110px; resize: vertical; } textarea.editor { min-height: 260px; }
.form-grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field-help { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: normal; color: var(--text); margin-bottom: 4px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; max-height: 300px; overflow: auto; }
.form-heading { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin: 18px 0 0; color: var(--primary-3); font-size: 1rem; }
.auth-box { max-width: 460px; margin: 24px auto; padding: 32px; }
.auth-box h1 { text-align: center; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filters > * { width: auto; flex: 1 1 160px; }
.filters > .btn, .filters > label { flex: 0 0 auto; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
th { background: var(--card-2); font-weight: 600; white-space: nowrap; color: var(--text-2); font-size: .84rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, .table-wrap tr:hover td { background: rgba(255, 255, 255, .015); }
.box table th { background: transparent; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; white-space: nowrap; }
.pagination { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.pagination > * { padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text-2); font-size: .88rem; }
.pagination .current { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pagination .disabled { color: var(--muted); opacity: .6; }

/* ---------- learner area ---------- */
.student-layout { display: grid; gap: 24px; grid-template-columns: 250px 1fr; }
.student-nav { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; align-self: start; position: sticky; top: 88px; }
.student-nav a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--text-2); font-size: .92rem; }
.student-nav a:hover { background: var(--card-2); color: var(--text); }
.student-nav a.active { background: var(--primary-soft); color: var(--primary-3); font-weight: 600; }

/* learning hall */
.learn-layout { display: grid; gap: 24px; grid-template-columns: 1fr 340px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.curriculum .level-title { background: var(--primary-soft); color: var(--primary-3); padding: 6px 12px; border-radius: 8px; margin-top: 16px; font-weight: 700; font-size: .9rem; }
.done { color: var(--ok); }
.lesson-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.question { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.question.correct { border-color: rgba(74, 222, 128, .5); } .question.wrong { border-color: rgba(248, 113, 113, .5); }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-2); border-inline-end: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-sidebar a, .admin-sidebar button.link { display: block; color: var(--text-2); padding: 7px 12px; border-radius: 8px; font-size: .9rem; width: 100%; text-align: start; }
.admin-sidebar a:hover { background: var(--card-2); color: var(--text); }
.admin-sidebar a.active { background: var(--primary-soft); color: var(--primary-3); font-weight: 600; }
.admin-sidebar .logo { padding: 0 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text); }
.admin-sidebar .logo:hover { background: none; }
.menu-group { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; margin: 18px 12px 6px; }
.admin-main { padding: 24px 28px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.admin-top h1 { margin: 0; font-size: 1.4rem; }
.admin-top .who { color: var(--muted); font-size: .88rem; }
.builder-level { border: 1px solid var(--border-2); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; background: var(--card); }
.builder-module { border: 1px dashed var(--border-2); border-radius: var(--radius-sm); padding: 12px; margin: 12px 0; background: var(--bg-2); }

/* ---------- certificate & receipt (printable, always light) ---------- */
.certificate, .receipt { color: #1d1b26; background: #fff; }
.certificate h1, .certificate h2, .receipt h1 { color: #0a2249; }
.certificate .muted, .receipt .muted { color: #6b6780; }
.certificate table th, .receipt table th { background: #f4f1ea; color: #1d1b26; }
.certificate td, .receipt td, .receipt th { border-color: #e4e1ee; }
.certificate { border: 12px double #b8924c; padding: 48px; text-align: center; max-width: 900px; margin: auto; border-radius: 6px; }
.certificate h1 { font-size: 2.2rem; } .certificate .name { font-size: 2rem; font-weight: 800; margin: 16px 0; }
.receipt { max-width: 720px; margin: auto; padding: 32px; border-radius: var(--radius); }
@media print {
  .site-header, .site-footer, .student-nav, .no-print, .wa-float { display: none !important; }
  body { background: #fff; } .page { padding: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-inline-start: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 4px; border-bottom: 0; }
  .main-nav a.active { color: var(--primary); }
  .header-inner { justify-content: space-between; }
  .user-nav .hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-art { min-height: 0; order: -1; } .hero-art svg { width: min(360px, 90%); }
  .student-layout, .learn-layout, .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .student-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .student-nav a { white-space: nowrap; }
  .cta-band .learners { position: static; transform: none; justify-content: center; margin-top: 18px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-inline-start: 0; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-box { padding: 22px; }
  .admin-main { padding: 16px; }
}
[dir="ltr"] .icon-arrow-flip, [dir="ltr"] .newsletter .icon, [dir="ltr"] .btn .icon-arrow { transform: scaleX(-1); }
.show-sm { display: none; }
@media (max-width: 900px) { .main-nav .show-sm { display: block; } .logo { font-size: .95rem; } }
.static-banner { background: linear-gradient(90deg, #8a6528, #b8924c); color: #fffaf0; text-align: center; padding: 8px 16px; font-size: .86rem; }
.static-banner a { color: #fff; font-weight: 700; text-decoration: underline; margin-inline-start: 6px; }
.error-page { text-align: center; padding: 64px 0; }
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--primary); line-height: 1; }

/* ---------- brand (GAD logo) ---------- */
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { height: 40px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1rem; font-weight: 700; }
.brand-text small { font-family: "Playfair Display", Georgia, serif; font-size: .62rem; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.brand-lg .brand-mark { height: 64px; } .brand-lg .brand-text b { font-size: 1.2rem; } .brand-lg .brand-text small { font-size: .7rem; }
.brand-motto { font-family: "Playfair Display", Georgia, serif; letter-spacing: .22em; font-size: .72rem; color: var(--gold); margin-top: 10px; }
.hero h1 .accent { background: linear-gradient(90deg, #e3c68a, #c9a25a 60%, #a8823e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold-rule { height: 2px; width: 72px; border: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 12px 0; }
.certificate .cert-logo { width: 150px; margin: 0 auto 8px; }
.receipt .cert-logo { width: 90px; }
@media (max-width: 560px) { .brand-text small { display: none; } .brand-mark { height: 34px; } }
.brand-lg { flex-direction: column; align-items: flex-start; gap: 8px; }
.brand-motto { letter-spacing: .14em; font-size: .64rem; white-space: nowrap; }
/* feature switches (admin) */
.feature-group h3 { margin-bottom: 10px; }
.feature-switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); font-weight: normal; cursor: pointer; color: var(--text); margin: 0; }
.feature-switch:first-of-type { border-top: 0; }
.feature-switch input { position: absolute; opacity: 0; pointer-events: none; }
.feature-switch .switch { flex: 0 0 40px; height: 22px; border-radius: 999px; background: var(--border-2); position: relative; transition: background .15s; margin-top: 2px; }
.feature-switch .switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.feature-switch input:checked + .switch { background: var(--primary); }
.feature-switch input:checked + .switch::after { inset-inline-start: 21px; }
.feature-switch input:focus-visible + .switch { box-shadow: 0 0 0 3px var(--primary-soft); }
.feature-switch small { display: block; font-size: .8rem; }
.warn-text { color: var(--warn); }
.show-sm-inline { display: none; } @media (max-width: 900px) { .show-sm-inline { display: inline-flex; } }

/* Header: brand and user actions take equal sides so the menu sits at the page centre. */
@media (min-width: 901px) {
  .site-header .brand, .site-header .user-nav { flex: 1 1 0; min-width: 0; }
  .site-header .user-nav { justify-content: flex-end; }
  .site-header .main-nav { flex: 0 0 auto; }
}

/* ---------- custom YouTube player (public/js/yt-player.js) ---------- */
.yt-player { outline: none; user-select: none; }
.yt-player:focus-visible { box-shadow: 0 0 0 3px var(--primary); }
.yt-player .yt-frame, .yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The frame is taller than the box: the video keeps its size (it is width-limited) while YouTube's
   top and bottom bars (title, "More videos", logo) sit in the letterbox area outside the visible box. */
.yt-player > .yt-frame, .yt-player > iframe { top: -30%; height: 160%; inset-inline: 0; bottom: auto; pointer-events: none; }
.yt-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.yt-cover { position: absolute; inset: 0; z-index: 3; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; display: grid; place-items: center; transition: opacity .25s; }
.yt-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 19, 43, .85), rgba(6, 19, 43, .25)); }
.yt-player.is-playing .yt-cover { opacity: 0; pointer-events: none; }
.yt-big-play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s; }
.yt-big-play svg { width: 34px; height: 34px; margin-left: 4px; }
.yt-cover:hover .yt-big-play { transform: scale(1.06); }
.yt-bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 26px 12px 10px; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); color: #fff; opacity: 0; transition: opacity .25s; }
.yt-bar[hidden] { display: none; }
.yt-player.show-bar .yt-bar, .yt-player:not(.is-playing) .yt-bar, .yt-player:focus-within .yt-bar { opacity: 1; }
.yt-player:not(.is-started) .yt-bar { opacity: 0; pointer-events: none; }
.yt-btn { background: none; border: 0; color: #fff; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; font: inherit; font-weight: 700; font-size: .85rem; }
.yt-btn:hover { background: rgba(255, 255, 255, .14); }
.yt-btn:focus-visible { outline: 2px solid var(--primary); }
.yt-btn svg { width: 22px; height: 22px; }
.yt-speed { width: auto; padding: 0 8px; }
.yt-player .i-pause, .yt-player.is-playing .i-play, .yt-player .i-muted, .yt-player.is-muted .i-vol { display: none; }
.yt-player.is-playing .i-pause, .yt-player.is-muted .i-muted { display: block; }
.yt-time { font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; opacity: .9; }
.yt-seek { position: relative; flex: 1; height: 18px; cursor: pointer; touch-action: none; }
.yt-seek::before, .yt-seek-buf, .yt-seek-fill { content: ""; position: absolute; inset-inline-start: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.yt-seek::before { inset-inline-end: 0; background: rgba(255, 255, 255, .25); }
.yt-seek-buf { background: rgba(255, 255, 255, .35); width: 0; }
.yt-seek-fill { background: var(--primary); width: 0; }
.yt-seek-fill::after { content: ""; position: absolute; inset-inline-end: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--primary-3); transform: scale(0); transition: transform .15s; }
.yt-seek:hover .yt-seek-fill::after, .yt-seek:focus-visible .yt-seek-fill::after { transform: scale(1); }
.yt-seek:hover::before, .yt-seek:hover .yt-seek-buf, .yt-seek:hover .yt-seek-fill { height: 6px; margin-top: -3px; }
.yt-player:fullscreen { border-radius: 0; border: 0; }
@media (max-width: 640px) { .yt-time { display: none; } .yt-big-play { width: 62px; height: 62px; } }

/* ---------- arrow pills & arrow buttons (same look as the home page "link-arrow") ---------- */
:root {
  --arrow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1404' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  --arrow-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c68a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}
/* Back link: pill with the arrow circle at the start, pointing back. */
.link-back { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 8px; border: 1px solid rgba(201, 162, 90, .45); border-radius: 999px; background: var(--primary-soft); color: var(--primary-3); font-size: .9rem; font-weight: 600; white-space: nowrap; max-width: 100%; transition: background .2s, color .2s, border-color .2s; }
[dir="rtl"] .link-back { padding: 7px 8px 7px 18px; }
.link-back::before { content: ""; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--primary) var(--arrow-dark) center / 15px no-repeat; transition: transform .2s; }
[dir="rtl"] .link-back::before { transform: scaleX(-1); }
.link-back:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.link-back:hover::before { background-color: var(--primary-ink); background-image: var(--arrow-gold); }
[dir="rtl"] .link-back:hover::before { transform: scaleX(-1) translateX(-3px); }
[dir="ltr"] .link-back:hover::before { transform: translateX(-3px); }
p:has(> .link-back) { margin: 0 0 18px; }

/* Solid button that leads forward: arrow circle at the end. */
.btn-arrow { display: inline-flex; align-items: center; gap: 10px; }
.btn-arrow::after { content: ""; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--primary-ink) var(--arrow-gold) center / 14px no-repeat; transition: transform .2s; }
[dir="ltr"] .btn-arrow::after { transform: scaleX(-1); }
.btn-arrow:hover::after { transform: translateX(-3px); }
[dir="ltr"] .btn-arrow:hover::after { transform: scaleX(-1) translateX(-3px); }

/* Outline button that leads back: arrow circle at the start. */
.btn-back { display: inline-flex; align-items: center; gap: 10px; }
.btn-back::before { content: ""; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: var(--primary) var(--arrow-dark) center / 14px no-repeat; transition: transform .2s; }
[dir="rtl"] .btn-back::before { transform: scaleX(-1); }
[dir="rtl"] .btn-back:hover::before { transform: scaleX(-1) translateX(-3px); }
[dir="ltr"] .btn-back:hover::before { transform: translateX(-3px); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- course content sidebar: a progress path ---------- */
.learn-layout > aside.box { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.cur-progress { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 4px 0 14px; font-size: .85rem; color: var(--text-2); }
.cur-progress b { color: var(--primary-3); font-size: .95rem; }
.cur-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-top: 8px; overflow: hidden; }
.cur-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-2), var(--primary-3)); }
[dir="rtl"] .cur-bar span { margin-inline-start: 0; background: linear-gradient(270deg, var(--primary-2), var(--primary-3)); }
.cur-module { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: rgba(255, 255, 255, .015); transition: border-color .2s; }
.cur-module[open] { border-color: var(--border-2); background: rgba(255, 255, 255, .03); }
.cur-module > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--text); }
.cur-module > summary::-webkit-details-marker { display: none; }
.cur-module > summary:hover { color: var(--primary-3); }
.cur-module-title { flex: 1; min-width: 0; }
.cur-count { font-size: .75rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 1px 9px; }
.cur-count.is-complete { color: var(--primary-ink); background: var(--primary); }
.cur-chev { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.cur-module[open] .cur-chev { transform: rotate(180deg); }
.cur-path { list-style: none; margin: 0; padding: 2px 10px 10px; }
.cur-path li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; }
.cur-path li + li::before { content: ""; position: absolute; inset-inline-start: 19px; top: -10px; height: 18px; width: 2px; background: var(--border-2); border-radius: 2px; }
.cur-path li.is-done + li::before { background: var(--primary-2); }
.cur-path li:hover { background: rgba(255, 255, 255, .04); }
.cur-node { position: relative; z-index: 1; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--card); border: 2px solid var(--border-2); transition: .2s; }
.cur-node svg, .cur-node .icon { width: 15px; height: 15px; }
.cur-path li.is-done .cur-node { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.cur-path li.is-current { background: var(--primary-soft); }
.cur-path li.is-current .cur-node { border-color: var(--primary-3); color: var(--primary-3); box-shadow: 0 0 0 4px rgba(201, 162, 90, .18); }
.cur-path li.is-current.is-done .cur-node { color: var(--primary-ink); }
.cur-path li.is-quiz .cur-node { border-style: dashed; color: var(--primary-3); }
.cur-path li a { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; color: var(--text-2); padding-top: 3px; }
.cur-path li a:hover { color: var(--text); }
.cur-title { font-size: .9rem; font-weight: 600; line-height: 1.45; }
.cur-path li.is-current .cur-title { color: var(--primary-3); }
.cur-meta { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cur-meta .icon { width: 14px; height: 14px; }
@media (max-width: 1024px) { .learn-layout > aside.box { position: static; max-height: none; } }

/* Full-bleed bands (100vw) count the scrollbar width; clip so the page never scrolls sideways. */
html, body { overflow-x: clip; }

/* Phones: smaller WhatsApp bubble tucked into the corner, and room under the footer so it never sits on the last links. */
@media (max-width: 640px) {
  .wa-float { width: 44px; height: 44px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 22px; height: 22px; }
  .site-footer { padding-bottom: 64px; }
}

/* Icons that replaced text symbols (stars, check marks). */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; letter-spacing: 0; }
.stars .icon { width: 1em; height: 1em; }
.stars .star-empty { opacity: .45; }
.btn .icon, .done .icon, .alert .icon { width: 1.05em; height: 1.05em; }
.answer-mark { display: inline-flex; vertical-align: middle; }
.question.correct .answer-mark { color: var(--ok); }
.question.wrong .answer-mark { color: var(--danger, #f87171); }

/* Categories: an incomplete last row sits centred instead of leaving a gap. */
.categories { display: flex; flex-wrap: wrap; justify-content: center; }
.categories > .category { flex: 1 1 170px; max-width: 240px; }

/* A section with only one or two courses centres them instead of leaving empty columns. */
.course-grid--few { grid-template-columns: repeat(auto-fit, minmax(255px, 320px)); justify-content: center; }

/* Phones: the hero picture is a small accent, so the headline is on the first screen. */
@media (max-width: 640px) {
  .hero { gap: 8px; padding-top: 12px; }
  .hero-art svg { width: 170px; }
  .hero-art::before { width: 190px; }
}

/* Course page on phones: sticky price + main action bar. */
.buy-bar { display: none; }
@media (max-width: 900px) {
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; z-index: 30; margin: 16px calc(50% - 50vw) 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 19, 43, .96); border-top: 1px solid var(--border-2); backdrop-filter: blur(8px); }
  .buy-bar .price { margin: 0; }
  .buy-bar .price strong { font-size: 1.15rem; }
  .buy-bar .price del { font-size: .85rem; color: var(--muted); }
  .buy-bar .btn { flex-shrink: 0; }
  body:has(.buy-bar) .wa-float { bottom: 78px; }
}
#enroll { scroll-margin-top: 90px; }

/* Admin sidebar: each group folds; the group holding the current page starts open. */
.menu-section { margin-top: 4px; }
.menu-section > summary.menu-group { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; margin: 0; padding: 9px 12px; border-radius: 8px; font-size: .78rem; color: var(--text-2); }
.menu-section > summary::-webkit-details-marker { display: none; }
.menu-section > summary:hover { background: var(--card-2); color: var(--text); }
.menu-section[open] > summary { color: var(--primary-3); }
.menu-chev { width: 14px; height: 14px; transition: transform .2s; }
.menu-section[open] .menu-chev { transform: rotate(180deg); }
.menu-section > a { padding-inline-start: 22px; }
.menu-divider { border-top: 1px solid var(--border); margin: 14px 12px 8px; }

/* Video lesson without a video yet. */
.video-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 35%, rgba(201, 162, 90, .14), transparent 60%), var(--card); color: var(--text-2); }
.video-soon .icon { width: 44px; height: 44px; color: var(--primary); }
.video-soon b { color: var(--text); font-size: 1.05rem; }
.video-soon span { font-size: .9rem; }

/* Admin dashboard: "before going live" checklist. */
.launch-check { margin-bottom: 20px; }
.launch-check > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.launch-check > summary::-webkit-details-marker { display: none; }
.launch-check > summary h2 { margin: 0; }
.launch-check .tag.is-done { color: var(--ok); }
.launch-check ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.launch-check li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card-2); }
.launch-check li > .icon { color: var(--danger); margin-top: 3px; }
.launch-check li.is-ok > .icon { color: var(--ok); }
.launch-check li div { display: grid; gap: 2px; }
.launch-check li.is-ok b { color: var(--text-2); font-weight: 500; }

/* Footer: everything centred. */
.site-footer .footer-grid { text-align: center; }
.site-footer .footer-grid > :first-child { display: flex; flex-direction: column; align-items: center; }
.site-footer .brand { justify-content: center; }
.site-footer .footer-grid p { max-width: 520px; margin-inline: auto; }
.site-footer .socials { justify-content: center; }
.site-footer .socials:empty { display: none; }
.site-footer .copyright { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.site-footer .brand-lg { align-items: center; }
.site-footer .brand-text { align-items: center; text-align: center; }
@media (max-width: 560px) {
  /* Two link columns per row on phones: the last one spans the row so it sits in the middle. */
  .site-footer .footer-grid > :last-child:nth-child(even) { grid-column: 1 / -1; }
}
