:root {
  --bg: #edf3f9;
  --surface: #fbfdff;
  --ink: #14273b;
  --soft: #4d6278;
  --primary: #185782;
  --accent: #3d90c2;
  --line: #c0d5e6;
  --ok: #1e789f;
  --bg-glow-a: radial-gradient(circle at 8% 0%, rgba(61, 144, 194, 0.2), transparent 28%);
  --bg-glow-b: radial-gradient(circle at 100% 10%, rgba(24, 87, 130, 0.18), transparent 24%);
  --orb-a: radial-gradient(circle, rgba(61, 144, 194, 0.32), rgba(61, 144, 194, 0));
  --orb-b: radial-gradient(circle, rgba(24, 87, 130, 0.28), rgba(24, 87, 130, 0));
  --header-bg: rgba(237, 243, 249, 0.92);
  --hero-layer-a: rgba(255, 255, 255, 0.93);
  --hero-layer-b: rgba(229, 240, 250, 0.88);
  --hero-pattern: rgba(24, 87, 130, 0.05);
  --card-highlight-a: #ffffff;
  --card-highlight-b: #ebf3fa;
  --btn-grad-a: #1b5f90;
  --btn-grad-b: #134667;
  --nav-hover: rgba(24, 87, 130, 0.12);
  --impact-start: rgba(24, 87, 130, 0.18);
  --impact-end: rgba(61, 144, 194, 0.23);
  --footer-a: #091622;
  --footer-b: #102434;
}

body.model-classic {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #1e2c2b;
  --soft: #5a6b67;
  --primary: #0f5a3b;
  --accent: #b98746;
  --line: #d9ccb3;
  --ok: #168a57;
  --bg-glow-a: radial-gradient(circle at 8% 0%, rgba(185, 135, 70, 0.18), transparent 28%);
  --bg-glow-b: radial-gradient(circle at 100% 10%, rgba(15, 90, 59, 0.14), transparent 24%);
  --orb-a: radial-gradient(circle, rgba(185, 135, 70, 0.3), rgba(185, 135, 70, 0));
  --orb-b: radial-gradient(circle, rgba(15, 90, 59, 0.28), rgba(15, 90, 59, 0));
  --header-bg: rgba(249, 244, 235, 0.92);
  --hero-layer-a: rgba(255, 255, 255, 0.92);
  --hero-layer-b: rgba(250, 243, 228, 0.85);
  --hero-pattern: rgba(15, 90, 59, 0.03);
  --card-highlight-a: #fff;
  --card-highlight-b: #f8f2e5;
  --btn-grad-a: #0f5a3b;
  --btn-grad-b: #083f29;
  --nav-hover: rgba(15, 90, 59, 0.08);
  --impact-start: rgba(15, 90, 59, 0.12);
  --impact-end: rgba(185, 135, 70, 0.2);
  --footer-a: #0b1311;
  --footer-b: #101b18;
}

body.model-emerald {
  --bg: #edf7f3;
  --surface: #fbfffd;
  --ink: #14332b;
  --soft: #46685d;
  --primary: #0f6f52;
  --accent: #5ab08a;
  --line: #bfdcd0;
  --ok: #1a9c67;
  --bg-glow-a: radial-gradient(circle at 10% 0%, rgba(90, 176, 138, 0.2), transparent 26%);
  --bg-glow-b: radial-gradient(circle at 100% 12%, rgba(15, 111, 82, 0.18), transparent 25%);
  --orb-a: radial-gradient(circle, rgba(90, 176, 138, 0.32), rgba(90, 176, 138, 0));
  --orb-b: radial-gradient(circle, rgba(15, 111, 82, 0.3), rgba(15, 111, 82, 0));
  --header-bg: rgba(237, 248, 243, 0.9);
  --hero-layer-a: rgba(255, 255, 255, 0.93);
  --hero-layer-b: rgba(230, 248, 239, 0.88);
  --hero-pattern: rgba(15, 111, 82, 0.045);
  --card-highlight-a: #ffffff;
  --card-highlight-b: #ecf8f2;
  --btn-grad-a: #0f6f52;
  --btn-grad-b: #0b4c39;
  --nav-hover: rgba(15, 111, 82, 0.12);
  --impact-start: rgba(15, 111, 82, 0.16);
  --impact-end: rgba(90, 176, 138, 0.22);
  --footer-a: #081d16;
  --footer-b: #0f2b22;
}

body.model-ocean {
  --bg: #edf3f9;
  --surface: #fbfdff;
  --ink: #14273b;
  --soft: #4d6278;
  --primary: #185782;
  --accent: #3d90c2;
  --line: #c0d5e6;
  --ok: #1e789f;
  --bg-glow-a: radial-gradient(circle at 8% 0%, rgba(61, 144, 194, 0.2), transparent 28%);
  --bg-glow-b: radial-gradient(circle at 100% 10%, rgba(24, 87, 130, 0.18), transparent 24%);
  --orb-a: radial-gradient(circle, rgba(61, 144, 194, 0.32), rgba(61, 144, 194, 0));
  --orb-b: radial-gradient(circle, rgba(24, 87, 130, 0.28), rgba(24, 87, 130, 0));
  --header-bg: rgba(237, 243, 249, 0.92);
  --hero-layer-a: rgba(255, 255, 255, 0.93);
  --hero-layer-b: rgba(229, 240, 250, 0.88);
  --hero-pattern: rgba(24, 87, 130, 0.05);
  --card-highlight-a: #ffffff;
  --card-highlight-b: #ebf3fa;
  --btn-grad-a: #1b5f90;
  --btn-grad-b: #134667;
  --nav-hover: rgba(24, 87, 130, 0.12);
  --impact-start: rgba(24, 87, 130, 0.18);
  --impact-end: rgba(61, 144, 194, 0.23);
  --footer-a: #091622;
  --footer-b: #102434;
}

body.model-sunset {
  --bg: #faf1ec;
  --surface: #fffdfb;
  --ink: #37221e;
  --soft: #6f4f48;
  --primary: #9a4a2a;
  --accent: #d98f5f;
  --line: #e3c7b9;
  --ok: #b3603e;
  --bg-glow-a: radial-gradient(circle at 6% 0%, rgba(217, 143, 95, 0.25), transparent 30%);
  --bg-glow-b: radial-gradient(circle at 100% 8%, rgba(154, 74, 42, 0.18), transparent 26%);
  --orb-a: radial-gradient(circle, rgba(217, 143, 95, 0.35), rgba(217, 143, 95, 0));
  --orb-b: radial-gradient(circle, rgba(154, 74, 42, 0.3), rgba(154, 74, 42, 0));
  --header-bg: rgba(251, 241, 235, 0.9);
  --hero-layer-a: rgba(255, 255, 255, 0.94);
  --hero-layer-b: rgba(251, 235, 226, 0.89);
  --hero-pattern: rgba(154, 74, 42, 0.045);
  --card-highlight-a: #fffdfb;
  --card-highlight-b: #fbeee5;
  --btn-grad-a: #a6542e;
  --btn-grad-b: #7c3920;
  --nav-hover: rgba(154, 74, 42, 0.13);
  --impact-start: rgba(154, 74, 42, 0.17);
  --impact-end: rgba(217, 143, 95, 0.24);
  --footer-a: #24130f;
  --footer-b: #3a1f17;
}

body.model-royal {
  --bg: #f1effa;
  --surface: #fffefe;
  --ink: #251f3b;
  --soft: #5f5980;
  --primary: #40307f;
  --accent: #7d68c6;
  --line: #d1c8ea;
  --ok: #5e49ad;
  --bg-glow-a: radial-gradient(circle at 8% 0%, rgba(125, 104, 198, 0.22), transparent 28%);
  --bg-glow-b: radial-gradient(circle at 100% 8%, rgba(64, 48, 127, 0.18), transparent 26%);
  --orb-a: radial-gradient(circle, rgba(125, 104, 198, 0.34), rgba(125, 104, 198, 0));
  --orb-b: radial-gradient(circle, rgba(64, 48, 127, 0.3), rgba(64, 48, 127, 0));
  --header-bg: rgba(241, 239, 250, 0.9);
  --hero-layer-a: rgba(255, 255, 255, 0.93);
  --hero-layer-b: rgba(235, 230, 251, 0.89);
  --hero-pattern: rgba(64, 48, 127, 0.05);
  --card-highlight-a: #fffefe;
  --card-highlight-b: #f0ebfb;
  --btn-grad-a: #4a3794;
  --btn-grad-b: #32255f;
  --nav-hover: rgba(64, 48, 127, 0.13);
  --impact-start: rgba(64, 48, 127, 0.18);
  --impact-end: rgba(125, 104, 198, 0.24);
  --footer-a: #140f26;
  --footer-b: #22193b;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  overflow-x: hidden;
  background:
    var(--bg-glow-a),
    var(--bg-glow-b),
    var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(12px);
  pointer-events: none;
}

body::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -60px;
  background: var(--orb-a);
  animation: floatOrbOne 12s ease-in-out infinite;
}

body::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -90px;
  background: var(--orb-b);
  animation: floatOrbTwo 14s ease-in-out infinite;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  animation: headerSlideIn 0.7s ease;
}

.top,
.nav,
.wrap,
.footer {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0 0.3rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-shell {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #000;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 204, 179, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.logo-shell img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.logo-white {
  display: none;
}

.logo-shell.small {
  width: 54px;
  height: 54px;
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--soft);
  font-size: 0.78rem;
}

.langs { display: flex; gap: 0.35rem; align-items: center; }

.theme-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.lang {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.lang.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang:hover,
.theme-toggle:hover { transform: translateY(-1px); }

.theme-model {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  max-width: 110px;
}

.nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.2rem 0 0.9rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.2rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--primary);
  transition: transform 0.25s ease;
}
.nav a:hover {
  color: var(--primary);
  background: var(--nav-hover);
}
.nav a:hover::after { transform: scaleX(1); }

.nav a.active {
  color: #fff;
  background: linear-gradient(130deg, var(--btn-grad-a), var(--btn-grad-b));
}

.wrap { padding: 2rem 0 3rem; display: grid; gap: 1.2rem; }

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 1.15rem;
  box-shadow: 0 12px 28px rgba(30, 44, 43, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cardLiftIn 0.6s ease both;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(30, 44, 43, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--hero-layer-a), var(--hero-layer-b)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      var(--hero-pattern) 12px,
      var(--hero-pattern) 16px
    );
}

.hero::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 50%;
  height: 300%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  animation: heroShine 7s linear infinite;
}

.hero h1 {
  margin: 0.45rem 0 0.45rem;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  font-family: "Alegreya", Georgia, serif;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  background: linear-gradient(130deg, var(--btn-grad-a), var(--btn-grad-b));
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 55%;
  height: 220%;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.24);
  transition: left 0.45s ease;
}

.btn:hover::after { left: 130%; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.quick-link {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: linear-gradient(150deg, var(--card-highlight-a), var(--card-highlight-b));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(27, 39, 37, 0.13);
}

.quick-link h3 {
  margin: 0;
  color: var(--primary);
}

.quick-link p {
  margin: 0.35rem 0 0;
  color: var(--soft);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.courses-root {
  display: grid;
  gap: 1rem;
}

.course-group {
  margin-bottom: 1rem;
}

.course-group h3 {
  margin: 0.1rem 0 0.6rem;
}

.course-group-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 224, 0.95));
  box-shadow: 0 14px 24px rgba(10, 20, 18, 0.09);
}

.course-group-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 90, 59, 0.09);
  color: var(--primary);
  margin: 0.05rem 0 0.72rem;
}

.course-note-card {
  background: linear-gradient(155deg, rgba(15, 90, 59, 0.09), rgba(185, 135, 70, 0.12));
}

.course-note-card p {
  margin: 0.4rem 0 0;
}

.course-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(155deg, #fff, #f8f2e5);
  box-shadow: 0 10px 20px rgba(22, 33, 30, 0.09);
}

.compact-card {
  padding: 0.62rem;
}

.course-card-flyer {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 0.45rem;
}

.flyer-button {
  width: 100%;
  border: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(248, 241, 225, 0.9));
  padding: 0;
  text-align: left;
  cursor: pointer;
  border-radius: 11px;
  overflow: hidden;
}

.flyer-button-text {
  display: block;
  margin: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0b6d45);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.34rem 0.55rem;
}

.details-btn {
  width: 100%;
}

.course-card h3 {
  margin: 0.15rem 0 0.3rem;
  font-family: "Alegreya", Georgia, serif;
}

.course-card p {
  margin: 0;
  color: var(--soft);
}

.course-meta {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.course-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.14rem 0.52rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.86);
}

.enroll-status {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.enroll-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(160deg, #fff, #f7f1e6);
}

.enroll-card h3 {
  margin: 0 0 0.38rem;
  color: var(--primary);
}

.enroll-card p {
  margin: 0.2rem 0;
}

.course-modal[hidden] {
  display: none !important;
}

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
}

.course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 10, 0.68);
}

.course-modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 94vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #ffffff, #f4efe2);
  padding: 0.95rem;
}

.course-modal-close {
  position: sticky;
  top: 0.25rem;
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  z-index: 3;
}

.course-modal-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.course-modal-flyer {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.course-modal-copy h3 {
  margin: 0.2rem 0 0.5rem;
}

.course-modal-copy ul {
  margin: 0.25rem 0 0.6rem;
  padding-left: 1.05rem;
}

.course-modal-copy li {
  margin: 0.2rem 0;
}

body.modal-open {
  overflow: hidden;
}

body.courses-page {
  background:
    radial-gradient(circle at 9% 0%, rgba(185, 135, 70, 0.2), transparent 25%),
    radial-gradient(circle at 100% 8%, rgba(15, 90, 59, 0.18), transparent 24%),
    linear-gradient(180deg, #f2efe7 0%, #f7f4ec 35%, #f0ede3 100%);
}

body.courses-page .hero.card {
  border: 1px solid rgba(15, 90, 59, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 240, 226, 0.96));
}

body.courses-page .card {
  border-radius: 16px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.sponsor-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(155deg, #fff, #f8f2e5);
  box-shadow: 0 10px 20px rgba(20, 32, 31, 0.08);
}

.sponsor-card h3 {
  margin: 0;
  color: var(--primary);
}

.sponsor-card .price {
  margin: 0.38rem 0 0.45rem;
  color: var(--accent);
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.45rem;
}

.sponsor-card p {
  margin: 0;
  color: var(--soft);
}

.impact-band {
  background:
    linear-gradient(135deg, var(--impact-start), var(--impact-end)),
    var(--surface);
}

.character-zone {
  position: relative;
  overflow: hidden;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.character-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(160deg, #fff, #f7f1e7);
  text-align: center;
}

.character-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  position: relative;
  animation: bobCharacter 3s ease-in-out infinite;
  box-shadow: inset -8px -10px 20px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(20, 32, 30, 0.15);
}

.character-avatar::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 28px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, 0.3);
}

.c-guide { background: radial-gradient(circle at 30% 25%, #f6f6f6, #8ba8d9 70%); animation-delay: 0s; }
.c-care { background: radial-gradient(circle at 30% 25%, #fff2df, #d3855b 70%); animation-delay: 0.35s; }
.c-dawah { background: radial-gradient(circle at 30% 25%, #e7ffe8, #4aa675 70%); animation-delay: 0.7s; }

.eyes {
  position: absolute;
  width: 28px;
  height: 8px;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.eyes::before,
.eyes::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #112;
  animation: blinkEyes 4.2s infinite;
}

.eyes::before { left: 0; }
.eyes::after { right: 0; }

.bot-btn {
  margin-top: 0.3rem;
  display: inline-block;
}
.btn.alt {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}

h2 {
  margin: 0.1rem 0 0.7rem;
  font-family: "Alegreya", Georgia, serif;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(15, 90, 59, 0.13), rgba(185, 135, 70, 0.2));
  border: 1px solid rgba(15, 90, 59, 0.16);
}

.icon-badge svg {
  width: 19px;
  height: 19px;
  fill: var(--primary);
}

h3 { margin: 0.1rem 0 0.4rem; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.kpi-strip article {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #fff, #f6f1e6);
  border-radius: 14px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  animation: softPulse 4s ease-in-out infinite;
}

.kpi-strip article:nth-child(2) { animation-delay: 0.4s; }
.kpi-strip article:nth-child(3) { animation-delay: 0.8s; }
.kpi-strip article:nth-child(4) { animation-delay: 1.2s; }

.feature-box {
  animation: floatingCard 5s ease-in-out infinite;
}

.feature-box:nth-child(2) { animation-delay: 0.6s; }
.feature-box:nth-child(3) { animation-delay: 1.2s; }
.feature-box:hover { animation-play-state: paused; }

.kpi-strip h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.35rem;
}

.kpi-strip p {
  margin: 0.22rem 0 0;
  color: var(--soft);
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.feature-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(150deg, #fff, #faf6ef);
}

.feature-box h3 {
  font-family: "Alegreya", Georgia, serif;
  line-height: 1.3;
  margin: 0.3rem 0 0.35rem;
}

.course-highlight {
  margin-bottom: 0.95rem;
  display: grid;
  gap: 0.65rem;
}

.course-flyer {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(10, 18, 15, 0.22);
}

.contact-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  background:
    linear-gradient(135deg, rgba(15, 90, 59, 0.1), rgba(185, 135, 70, 0.14)),
    var(--surface);
}

.contact-ribbon article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
}

.contact-ribbon h3 {
  margin: 0;
  font-size: 1rem;
}

.contact-ribbon p {
  margin: 0.2rem 0 0;
  color: var(--soft);
}

.grid {
  display: grid;
  gap: 0.8rem;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cols {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.5rem;
}

ul li {
  margin-bottom: 0.35rem;
}

.form {
  display: grid;
  gap: 0.6rem;
}
.form.compact { grid-template-columns: 1fr 1fr; }
.form.compact textarea,
.form.compact button,
.form.compact .chips { grid-column: 1 / -1; }

input, select, textarea, button {
  font: inherit;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: #fff;
}
button {
  border: none;
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(140deg, var(--btn-grad-a), var(--btn-grad-b));
  color: #fff;
}

.chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chip {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.small { color: var(--soft); font-size: 0.9rem; }

.small a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.payment-info-box {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(155deg, rgba(15, 90, 59, 0.07), rgba(185, 135, 70, 0.1));
}

.payment-info-box h3 {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 1rem;
}

.payment-info-box p {
  margin: 0.25rem 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.gallery-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.gallery-tile {
  min-height: 132px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 26px rgba(24, 35, 33, 0.14);
}

.gallery-tile img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 0.68rem 0.72rem 0.72rem;
  background: linear-gradient(160deg, #ffffff, #f5efe2);
}

.blog-feed {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.blog-post-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #fff, #f7f1e5);
}

.blog-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-post-content {
  padding: 0.75rem;
}

.blog-post-content h3 {
  margin: 0.2rem 0 0.4rem;
}

.blog-post-content p {
  margin: 0.2rem 0;
}

.gallery-tile h3 {
  margin: 0;
  color: var(--ink);
}

.gallery-tile p {
  margin: 0.22rem 0 0;
  color: var(--soft);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.contact-cards article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: linear-gradient(150deg, #fff, #f8f2e7);
}

.contact-cards h3 {
  margin: 0;
}

.contact-cards p,
.contact-cards a {
  margin: 0.25rem 0 0;
  color: var(--soft);
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.social-row a,
.footer-social a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.78);
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0.35rem 0 0.7rem;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, var(--footer-a), var(--footer-b));
  padding: 1.2rem 0 2rem;
  color: #d8e1de;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand p {
  margin: 0;
  color: #d8e1de;
}

.footer-social {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer .logo-shell {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.footer .logo-shell.small {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: block;
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) saturate(1.08);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--ok);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.whatsapp-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 40;
  text-decoration: none;
  background: #0ea765;
  color: #fff;
  font-weight: 700;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.theme-dark .whatsapp-fab {
  background: #18b978;
}

.reveal { opacity: 0; transform: translateY(14px); transition: 0.6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

body.model-emerald .card {
  box-shadow: 0 14px 28px rgba(9, 58, 43, 0.12);
}

body.model-ocean .card {
  box-shadow: 0 14px 28px rgba(11, 43, 71, 0.12);
}

body.model-sunset .card {
  box-shadow: 0 14px 28px rgba(72, 36, 22, 0.12);
}

body.model-royal .card {
  box-shadow: 0 14px 28px rgba(37, 24, 72, 0.13);
}

body.model-emerald .hero::after,
body.model-ocean .hero::after,
body.model-sunset .hero::after,
body.model-royal .hero::after {
  opacity: 0.72;
}

body.model-emerald .kpi-strip article,
body.model-emerald .feature-box,
body.model-emerald .course-card,
body.model-emerald .blog-post-card {
  border-color: rgba(15, 111, 82, 0.22);
}

body.model-ocean .kpi-strip article,
body.model-ocean .feature-box,
body.model-ocean .course-card,
body.model-ocean .blog-post-card {
  border-color: rgba(24, 87, 130, 0.24);
}

body.model-sunset .kpi-strip article,
body.model-sunset .feature-box,
body.model-sunset .course-card,
body.model-sunset .blog-post-card {
  border-color: rgba(154, 74, 42, 0.23);
}

body.model-royal .kpi-strip article,
body.model-royal .feature-box,
body.model-royal .course-card,
body.model-royal .blog-post-card {
  border-color: rgba(64, 48, 127, 0.24);
}

body.model-sunset .eyebrow,
body.model-royal .eyebrow {
  letter-spacing: 0.06em;
}

body.motion-low * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.12s !important;
}

body.motion-high .card {
  animation-duration: 0.95s;
}

body.motion-high .feature-box,
body.motion-high .kpi-strip article,
body.motion-high .character-avatar {
  animation-duration: 2.7s;
}

body.theme-dark {
  --bg: #0f1614;
  --surface: #15201d;
  --ink: #e4eeea;
  --soft: #a5bcb4;
  --primary: #2aa071;
  --accent: #e6bb6b;
  --line: #2a3d37;
  --ok: #36b983;
  background:
    radial-gradient(circle at 8% 0%, rgba(230, 187, 107, 0.08), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(42, 160, 113, 0.13), transparent 26%),
    var(--bg);
}

body.theme-dark .header {
  background: rgba(9, 14, 12, 0.9);
}

body.theme-dark .nav a {
  color: #dce9e4;
}

body.theme-dark .nav a:hover {
  background: rgba(230, 187, 107, 0.12);
  color: #f1d08e;
}

body.theme-dark .nav a::after {
  background: #f1d08e;
}

body.theme-dark .nav a.active {
  color: #0e1916;
  background: linear-gradient(135deg, #f1d08e, #d5aa5d);
}

body.theme-dark .card {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

body.theme-dark .icon-badge {
  background: linear-gradient(145deg, rgba(42, 160, 113, 0.22), rgba(230, 187, 107, 0.2));
  border-color: rgba(230, 187, 107, 0.28);
}

body.theme-dark .icon-badge svg {
  fill: #f1d08e;
}

body.theme-dark .hero,
body.theme-dark .kpi-strip article,
body.theme-dark .feature-box,
body.theme-dark .contact-ribbon article,
body.theme-dark .contact-cards article,
body.theme-dark .quick-link,
body.theme-dark .course-card,
body.theme-dark .sponsor-card,
body.theme-dark .enroll-card,
body.theme-dark .blog-post-card,
body.theme-dark .impact-band,
body.theme-dark .character-card {
  background:
    linear-gradient(145deg, rgba(20, 33, 29, 0.95), rgba(16, 27, 23, 0.9)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(230, 187, 107, 0.04) 12px,
      rgba(230, 187, 107, 0.04) 16px
    );
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: #0e1815;
  color: var(--ink);
}

body.theme-dark .lang,
body.theme-dark .theme-toggle,
body.theme-dark .theme-model,
body.theme-dark .btn.alt,
body.theme-dark .chip,
body.theme-dark .course-meta span,
body.theme-dark .social-row a,
body.theme-dark .footer-social a {
  background: #101a17;
  color: #dce9e4;
  border-color: var(--line);
}

body.theme-dark .small a {
  color: #f1d08e;
}

body.theme-dark .gallery-tile {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.35);
}

body.theme-dark .gallery-caption {
  background: linear-gradient(165deg, rgba(20, 32, 28, 0.95), rgba(16, 26, 23, 0.94));
}

body.theme-dark .logo-color {
  display: none;
}

body.theme-dark .logo-white {
  display: block;
}

body.lang-ur { font-family: "Noto Nastaliq Urdu", "Source Sans 3", sans-serif; }
body.lang-ar { direction: rtl; }

@media (max-width: 820px) {
  .grid.two, .form.compact, .feature-grid, .gallery-grid, .quick-grid, .character-grid, .course-grid, .sponsor-grid, .blog-feed { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-ribbon,
  .contact-cards {
    grid-template-columns: 1fr;
  }
  .cols { columns: 1; }
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .brand-copy strong {
    font-size: 0.95rem;
  }
  .footer-social {
    margin-top: 0.8rem;
  }
  .course-modal-grid {
    grid-template-columns: 1fr;
  }
}

body.theme-dark.model-emerald { --primary: #33b987; --accent: #9de2c8; }
body.theme-dark.model-ocean { --primary: #55a7de; --accent: #9dd3f2; }
body.theme-dark.model-sunset { --primary: #e28957; --accent: #f2be96; }
body.theme-dark.model-royal { --primary: #8a76da; --accent: #c3b6f4; }

@keyframes heroShine {
  0% { left: -120%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

@keyframes floatOrbOne {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(16px) translateX(-12px); }
}

@keyframes floatOrbTwo {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-14px) translateX(14px); }
}

@keyframes softPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(15, 90, 59, 0); }
  50% { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 90, 59, 0.16); }
}

@keyframes floatingCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes cardLiftIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bobCharacter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes blinkEyes {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(0.15); }
}

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