/* ===========================================================
   Moddaker Academy — shared design system for standalone pages
   Brand: teal (#00566a / #003d4d) + gold (#b8923c / #d4af37) + white
   =========================================================== */
:root {
  --teal: #00566a;
  --teal-deep: #003d4d;
  --teal-soft: #e8f1f3;
  --gold: #b8923c;
  --gold-bright: #d4af37;
  --gold-soft: #faf3e0;
  --ink: #013a48;
  --slate: rgba(0, 86, 106, 0.72);
  --cream: #f3f7f8;
  --line: rgba(0, 86, 106, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lexend', sans-serif;
  color: var(--slate);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- Top bar ---------- */
/* The native header/nav is replaced at runtime by .md-topbar (site-header.js).
   Hide it up-front so it never flashes before the deferred script runs — this
   was causing the header to appear to render twice/many times on load. The
   injected bar uses class .md-topbar (not .topbar) so it is unaffected. */
header.topbar, nav.nav { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: inline-flex; align-items: center; }
.topbar .brand img { height: 38px; width: auto; display: block; }
.topbar nav { display: flex; align-items: center; gap: 26px; }
.topbar nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: color .2s ease;
}
.topbar nav a:hover, .topbar nav a.active { color: var(--gold); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--teal);
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--teal);
  transition: all .2s ease;
}
.back-link:hover { background: var(--teal); color: #fff; }
.back-link svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .topbar nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; border-radius: 999px;
  padding: 14px 28px; cursor: pointer; transition: all .2s ease;
  border: 2px solid transparent; font-family: inherit;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #00566a; box-shadow: 0 10px 26px rgba(184, 146, 60, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(184, 146, 60, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(184, 146, 60, 0.22) 0%, rgba(184, 146, 60, 0) 45%),
    linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; padding: 72px 24px 88px; text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; letter-spacing: .22em; text-transform: uppercase;
  font-size: 12px; font-weight: 700; color: var(--gold-bright); margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Lexend', sans-serif; font-weight: 800;
  font-size: clamp(30px, 5vw, 50px); line-height: 1.1; color: #fff; letter-spacing: -.01em;
}
.hero h1 .accent {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; color: var(--gold-bright);
}
.hero p {
  margin: 20px auto 0; max-width: 600px;
  font-size: clamp(15px, 2.1vw, 18px); color: rgba(255, 255, 255, 0.82);
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero with media (image beside text) */
.hero-split .hero-inner {
  max-width: 1140px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 50px; align-items: center; text-align: left;
}
.hero-split .hero-inner > div:not(.hero-media) {
  align-self: start;
  padding-top: 28px;
}
.hero-split .eyebrow { margin-bottom: 16px; }
.hero-split h1 { font-size: clamp(28px, 4.4vw, 46px); }
.hero-split p { margin-left: 0; }
.hero-split .hero-cta { justify-content: flex-start; }
.hero-media {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 32, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.hero-media .badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.95); color: var(--teal);
  border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 12px 30px rgba(0, 32, 42, 0.3);
}
.hero-media .badge b { font-size: 20px; color: var(--gold); display: block; line-height: 1; }
.hero-media .badge span { font-size: 12px; color: var(--slate); }
@media (max-width: 860px) {
  .hero-split .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-cta { justify-content: center; }
  .hero-media { order: -1; }
}

/* Hero stats */
.hero-stats {
  position: relative; z-index: 1; margin: 40px auto 0; max-width: 760px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.hero-split .hero-stats { margin-left: 0; }
.hero-stats .stat {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 16px 10px;
}
.hero-stats .stat b { display: block; font-size: 18px; color: var(--gold-bright); font-weight: 800; }
.hero-stats .stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }

/* ---------- Section scaffolding ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 76px 24px; }
.section.tight { padding: 56px 24px; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.section-head .eyebrow { color: var(--gold); }
.section-head h2 {
  font-family: 'Lexend', sans-serif; font-weight: 800; color: var(--ink);
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.01em;
}
.section-head p { margin-top: 14px; font-size: 16px; color: var(--slate); }
.bg-cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h3 {
  font-family: 'Lexend', sans-serif; color: var(--ink); font-weight: 800;
  font-size: 22px; margin: 34px 0 12px;
}
.prose p { font-size: 16px; color: var(--slate); margin-bottom: 16px; }
.prose ul { list-style: none; display: grid; gap: 11px; margin: 8px 0 22px; }
.prose li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: rgba(0, 86, 106, 0.8); }
.prose li svg { width: 18px; height: 18px; stroke: var(--gold); flex: 0 0 auto; margin-top: 3px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 54px rgba(10, 58, 78, 0.14); border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; display: block; }
.split-text h2 {
  font-family: 'Lexend', sans-serif; color: var(--ink); font-weight: 800;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.18; letter-spacing: -.01em;
}
.split-text .eyebrow { color: var(--gold); }
.split-text p { margin-top: 14px; font-size: 16px; color: var(--slate); }
.split-text ul { list-style: none; display: grid; gap: 11px; margin-top: 20px; }
.split-text li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: rgba(0, 86, 106, 0.8); }
.split-text li svg { width: 18px; height: 18px; stroke: var(--gold); flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10, 58, 78, 0.1); border-color: rgba(184, 146, 60, 0.5); }
.feature .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: 0 8px 20px rgba(184, 146, 60, 0.4);
}
.feature .ic svg { width: 24px; height: 24px; stroke: #fff; }
.feature h3 { font-family: 'Lexend', sans-serif; color: var(--ink); font-weight: 800; font-size: 18px; }
.feature p { margin-top: 9px; font-size: 14.5px; color: var(--slate); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Card grid (courses) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(10, 58, 78, 0.12); border-color: rgba(184, 146, 60, 0.5); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.level {
  position: absolute; top: 12px; left: 12px; background: rgba(0, 86, 106, 0.92); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-icon {
  position: absolute; bottom: -22px; right: 18px; width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(184, 146, 60, 0.4);
}
.card-icon svg { width: 24px; height: 24px; stroke: #fff; }
.card-body { padding: 30px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: 'Lexend', sans-serif; font-weight: 800; color: var(--ink); font-size: 20px; }
.card-body .desc { margin-top: 10px; font-size: 14.5px; color: var(--slate); }
.card-body ul { list-style: none; margin: 16px 0 22px; display: grid; gap: 9px; }
.card-body li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: rgba(0, 86, 106, 0.78); }
.card-body li svg { width: 17px; height: 17px; stroke: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.card-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--teal);
  border: 1.6px solid var(--teal); border-radius: 999px; padding: 11px 18px; transition: all .2s ease;
}
.card-cta:hover { background: var(--teal); color: #fff; }
.card-cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card-cta:hover svg { transform: translateX(3px); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 34px 28px; position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10, 58, 78, 0.12); }
.plan.featured { border: none; color: #fff; background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); box-shadow: 0 26px 56px rgba(0, 61, 77, 0.3); }
.plan .tag {
  position: absolute; top: 18px; right: 18px; background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #00566a; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.plan h3 { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 20px; color: var(--ink); }
.plan.featured h3 { color: #fff; }
.plan .price { margin: 16px 0 4px; font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 40px; color: var(--teal); line-height: 1; }
.plan.featured .price { color: var(--gold-bright); }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--slate); }
.plan.featured .price span { color: rgba(255, 255, 255, 0.7); }
.plan .per { font-size: 13.5px; color: var(--slate); }
.plan.featured .per { color: rgba(255, 255, 255, 0.7); }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 24px 0 28px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(0, 86, 106, 0.82); }
.plan.featured li { color: rgba(255, 255, 255, 0.9); }
.plan li svg { width: 18px; height: 18px; stroke: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.plan.featured li svg { stroke: var(--gold-bright); }
.plan .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- Teachers ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(10, 58, 78, 0.12); }
.tcard .ph { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard .info { padding: 18px 18px 22px; }
.tcard h3 { font-family: 'Lexend', sans-serif; color: var(--ink); font-weight: 800; font-size: 17px; }
.tcard .role { color: var(--gold); font-size: 13px; font-weight: 600; margin-top: 2px; }
.tcard p { margin-top: 9px; font-size: 13.5px; color: var(--slate); }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.cinfo {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 20px;
}
.cinfo .ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); }
.cinfo .ic svg { width: 20px; height: 20px; stroke: var(--teal); }
.cinfo h4 { font-family: 'Lexend', sans-serif; color: var(--ink); font-size: 15px; font-weight: 700; }
.cinfo p, .cinfo a { font-size: 14px; color: var(--slate); display: block; }
.cinfo a:hover { color: var(--gold); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: 0 18px 44px rgba(10, 58, 78, 0.08); }
.form .row { display: grid; gap: 6px; margin-bottom: 16px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form input, .form textarea, .form select {
  font-family: inherit; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--teal); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(184, 146, 60, 0.5); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink);
  font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; font-size: 15px; color: var(--slate); }

/* ---------- Closing CTA ---------- */
.closing { background: var(--cream); }
.closing-context { border-bottom: 0; }
.course-enquiry { border-bottom: 0; }
.closing-card { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.closing-inner {
  background:
    radial-gradient(120% 140% at 90% 0%, rgba(184, 146, 60, 0.25) 0%, rgba(184, 146, 60, 0) 50%),
    linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: 26px; padding: 54px 32px; text-align: center; color: #fff; box-shadow: 0 24px 60px rgba(0, 61, 77, 0.25);
}
.closing-inner h2 { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: clamp(24px, 4vw, 34px); color: #fff; }
.closing-inner p { margin: 14px auto 28px; max-width: 520px; color: rgba(255, 255, 255, 0.85); font-size: 16px; }

/* ---------- Global responsive ---------- */
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 20px 70px; }
  .section { padding: 56px 20px; }
}

/* ===========================================================
   Shared site footer (injected by site-footer.js)
   =========================================================== */
.site-footer { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: rgba(255, 255, 255, 0.82); }
.sf-cta {
  max-width: 1140px; margin: 0 auto; padding: 44px 24px; display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sf-cta h3 { font-family: 'Lexend', sans-serif; font-weight: 800; color: #fff; font-size: clamp(20px, 3vw, 26px); }
.sf-cta p { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); margin-top: 6px; max-width: 460px; }
.sf-main {
  max-width: 1140px; margin: 0 auto; padding: 50px 24px 36px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px;
}
.sf-brand .wordmark { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 22px; color: #fff; letter-spacing: .02em; }
.sf-brand .wordmark span { color: var(--gold-bright); }
.sf-brand p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.7); max-width: 320px; }
.sf-social { display: flex; gap: 12px; margin-top: 20px; }
.sf-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; transition: transform .2s ease, filter .2s ease; }
.sf-social a:hover { transform: translateY(-3px); filter: brightness(1.08); }
.sf-social svg { width: 19px; height: 19px; fill: #fff; }
.sf-social .fb { background: #1877f2; box-shadow: 0 4px 12px rgba(24,119,242,.4); }
.sf-social .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); box-shadow: 0 4px 12px rgba(214,36,159,.35); }
.sf-social .wa { background: #25d366; }
.sf-col h4 { font-family: 'Lexend', sans-serif; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.sf-col a { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.75); padding: 5px 0; transition: color .2s ease, padding-left .2s ease; }
.sf-col a:hover { color: var(--gold-bright); padding-left: 4px; }
.sf-contact .ci { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.sf-contact .ci svg { width: 17px; height: 17px; stroke: var(--gold-bright); flex: 0 0 auto; margin-top: 3px; }
.sf-contact .ci a { color: rgba(255, 255, 255, 0.78); }
.sf-contact .ci a:hover { color: var(--gold-bright); }
.sf-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); text-align: center;
  padding: 22px 24px; font-size: 13px; color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 900px) { .sf-main { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 540px) { .sf-main { grid-template-columns: 1fr; } .sf-cta { flex-direction: column; align-items: flex-start; } }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 61, 77, 0.35); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all .25s ease; z-index: 60; border: none;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--teal-deep); }
.to-top svg { width: 20px; height: 20px; stroke: #fff; }

/* Language toggle */
.md-lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cairo', 'Lexend', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--teal); background: transparent; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--teal);
  transition: all .2s ease; white-space: nowrap; line-height: 1;
}
.md-lang-toggle:hover { background: var(--teal); color: #fff; }

/* Hide Google Translate chrome */
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate { display: none !important; }
.goog-te-gadget { height: 0; overflow: hidden; font-size: 0 !important; }
#google_translate_element { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   RTL / Arabic layout fixes
   Goal: ALL visual layouts stay identical to LTR — only text direction
   and alignment change.  The browser auto-reverses flex/grid when the CSS
   `direction` property is `rtl`; we freeze layout containers to `ltr` and
   re-apply `rtl` only on text-content elements.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1. Font */
html[dir="rtl"] body { font-family: 'Cairo', 'Lexend', sans-serif; }

/* 2. Freeze ALL multi-column grid/flex layout containers ──────────────────
      direction: ltr on these prevents the browser from auto-reversing the
      column order, keeping every section visually identical to the English
      version. */
html[dir="rtl"] .hero-split .hero-inner,
html[dir="rtl"] .hero-stats,
html[dir="rtl"] .split,
html[dir="rtl"] .features,
html[dir="rtl"] .grid,
html[dir="rtl"] .plans,
html[dir="rtl"] .team,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .sf-main,
html[dir="rtl"] .sf-cta { direction: ltr; }

/* 3. Hero-split: text column gets RTL content while staying on the left ── */
html[dir="rtl"] .hero-split .hero-inner > *:not(.hero-media) {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .hero-split .hero-cta { justify-content: flex-start; }
html[dir="rtl"] .hero-split p { margin-left: 0; }

/* 4. Split sections (image + text blocks): text column is RTL content ──── */
html[dir="rtl"] .split-text { direction: rtl; text-align: right; }

/* 5. Centered/non-split sections ─────────────────────────────────────────  */
html[dir="rtl"] .hero:not(.hero-split),
html[dir="rtl"] .section-head,
html[dir="rtl"] .closing-inner { direction: rtl; text-align: center; }

/* 6. Card & feature content — RTL text inside LTR grid cells ─────────────  */
html[dir="rtl"] .card-body  { direction: rtl; text-align: right; }
html[dir="rtl"] .feature    { direction: rtl; text-align: right; }
html[dir="rtl"] .plan       { direction: rtl; text-align: right; }
html[dir="rtl"] .tcard .info { direction: rtl; text-align: right; }
html[dir="rtl"] .cinfo       { direction: rtl; text-align: right; }

/* 7. Prose, FAQ, contact block ───────────────────────────────────────────  */
html[dir="rtl"] .prose          { direction: rtl; text-align: right; }
html[dir="rtl"] .faq            { direction: rtl; text-align: right; }
html[dir="rtl"] .contact-block  { direction: rtl; text-align: right; }

/* 8. Footer columns — inside frozen sf-main / sf-cta ────────────────────  */
html[dir="rtl"] .sf-col,
html[dir="rtl"] .sf-brand,
html[dir="rtl"] .sf-contact         { direction: rtl; text-align: right; }
html[dir="rtl"] .sf-contact .ci     { direction: rtl; }
/* Flip the hover-padding side */
html[dir="rtl"] .sf-col a { transition: color .2s ease, padding-right .2s ease; }
html[dir="rtl"] .sf-col a:hover { padding-left: 0; padding-right: 4px; }

/* 9. Hero stats inside a centered hero ──────────────────────────────────── */
html[dir="rtl"] .hero-stats .stat { direction: rtl; }

/* 10. Absolute-positioned badges — flip within their frozen LTR parent ──── */
html[dir="rtl"] .level     { left: auto; right: 12px; }
html[dir="rtl"] .card-icon { right: auto; left: 18px; }

/* 11. Fixed / utility elements ──────────────────────────────────────────── */
html[dir="rtl"] .to-top      { right: auto; left: 20px; }
html[dir="rtl"] .back-link svg { transform: scaleX(-1); }
