:root {
  --green-950: #082f25;
  --green-900: #0b3d30;
  --green-800: #125440;
  --green-700: #197052;
  --green-600: #258866;
  --green-100: #dcf0e7;
  --green-50: #edf7f2;
  --gold-500: #c99a3d;
  --gold-400: #d9ad57;
  --gold-100: #f5e8c9;
  --ink: #17211d;
  --muted: #617069;
  --line: #dfe7e2;
  --cream: #faf8f1;
  --white: #ffffff;
  --shadow-sm: 0 10px 30px rgba(8, 47, 37, 0.08);
  --shadow-lg: 0 24px 70px rgba(8, 47, 37, 0.15);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.announcement {
  position: relative;
  z-index: 30;
  padding: 9px 20px;
  color: rgba(255, 255, 255, 0.88);
  background: var(--green-950);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.announcement a {
  margin-left: 8px;
  color: var(--gold-400);
  white-space: nowrap;
}

.announcement a svg {
  width: 12px;
  height: 12px;
  margin-left: 3px;
  vertical-align: -2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid rgba(223, 231, 226, 0.8);
  background: rgba(250, 248, 241, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 162px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links > a {
  position: relative;
  padding: 27px 0;
}

.nav-links > a::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-500);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-links > a:hover::after,
.nav-links > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 21px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta,
.button-primary {
  color: var(--white);
  background: var(--green-800);
  box-shadow: 0 10px 24px rgba(18, 84, 64, 0.2);
}

.button-secondary {
  border-color: var(--line);
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.72);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(18, 84, 64, 0.2);
}

.button svg,
.nav-cta svg {
  width: 18px;
  height: 18px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-button svg {
  width: 21px;
  height: 21px;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 100px;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 154, 61, 0.16), transparent 25%),
    linear-gradient(145deg, #fdfbf5 0%, #eef6f1 100%);
}

.hero::before,
.subject-hero::before {
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(18, 84, 64, 0.1);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -290px;
  left: -130px;
  box-shadow: 0 0 0 55px rgba(18, 84, 64, 0.025), 0 0 0 110px rgba(18, 84, 64, 0.018);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 29px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-500);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.subject-hero h1,
.section-title {
  margin-bottom: 22px;
  color: var(--green-950);
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 72px);
}

.hero h1 span,
.section-title span {
  color: var(--green-700);
}

.hero-copy > p {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  display: flex;
  margin-top: 33px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-note span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-800);
  background: var(--green-100);
}

.hero-note svg {
  width: 17px;
  height: 17px;
}

.hero-visual {
  position: relative;
  min-height: 548px;
}

.hero-image-shell {
  position: absolute;
  inset: 20px 0 0 50px;
  overflow: hidden;
  border-radius: 45% 45% 28px 28px;
  background: var(--green-100);
  box-shadow: var(--shadow-lg);
}

.hero-image-shell::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 47, 37, 0.34), transparent 48%);
  content: "";
}

.hero-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arabic-seal {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -22px;
  display: grid;
  width: 118px;
  height: 118px;
  place-content: center;
  border: 8px solid var(--cream);
  border-radius: 50%;
  color: var(--green-950);
  background: var(--gold-400);
  box-shadow: var(--shadow-sm);
  font-family: "Amiri", serif;
  font-size: 26px;
  line-height: 1.15;
  text-align: center;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 14px 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.floating-card-one {
  bottom: 62px;
  left: 0;
}

.floating-card-two {
  right: -26px;
  bottom: 147px;
}

.floating-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--green-800);
  background: var(--green-100);
}

.floating-icon.gold {
  color: #79581a;
  background: var(--gold-100);
}

.floating-icon svg {
  width: 21px;
  height: 21px;
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  color: var(--green-950);
  font-size: 14px;
}

.floating-card small {
  color: var(--muted);
  font-size: 11px;
}

.stats-strip {
  position: relative;
  z-index: 5;
  margin-top: -1px;
  color: var(--white);
  background: var(--green-950);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-family: "Lora", Georgia, serif;
  font-size: 29px;
  line-height: 1;
}

.stat span {
  max-width: 100px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--white);
}

.section-heading {
  display: flex;
  margin-bottom: 46px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-title {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 50px);
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.subject-card {
  position: relative;
  display: flex;
  min-height: 315px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 25px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(8, 47, 37, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.subject-card:hover {
  border-color: rgba(37, 136, 102, 0.36);
  box-shadow: var(--shadow-sm);
  transform: translateY(-6px);
}

.subject-card-visual {
  position: absolute;
  inset: 0 0 112px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green-50), #f8f3e7);
}

.subject-card-visual::after {
  position: absolute;
  top: 23px;
  right: 24px;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(18, 84, 64, 0.12);
  border-radius: 50%;
  content: "";
}

.subject-card-visual img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.subject-card:hover .subject-card-visual img {
  transform: scale(1.07) rotate(-2deg);
}

.subject-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 15px;
}

.subject-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--green-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.subject-card h3 {
  margin-bottom: 0;
  color: var(--green-950);
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
}

.card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-800);
  transition: transform 180ms ease;
}

.subject-card:hover .card-arrow {
  transform: rotate(-35deg);
}

.card-arrow svg {
  width: 17px;
  height: 17px;
}

.learning-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 80px;
}

.learning-visual {
  position: relative;
  min-height: 530px;
}

.learning-visual img {
  width: calc(100% - 45px);
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.quote-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 86%);
  border-radius: var(--radius-md);
  padding: 25px;
  color: var(--white);
  background: var(--green-900);
  box-shadow: var(--shadow-lg);
}

.quote-card .arabic {
  margin-bottom: 8px;
  color: var(--gold-400);
  font-family: "Amiri", serif;
  font-size: 27px;
  text-align: right;
}

.quote-card p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.learning-copy .section-title {
  margin-bottom: 24px;
}

.learning-copy > p {
  max-width: 610px;
  color: var(--muted);
}

.feature-list {
  display: grid;
  margin-top: 34px;
  grid-template-columns: repeat(2, 1fr);
  gap: 23px 28px;
}

.feature-item {
  display: flex;
  gap: 13px;
}

.feature-check {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--green-800);
  background: var(--green-100);
}

.feature-check svg {
  width: 15px;
  height: 15px;
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  margin-bottom: 3px;
  color: var(--green-950);
  font-size: 14px;
}

.feature-item span {
  color: var(--muted);
  font-size: 12px;
}

.cta-section {
  padding: 30px 0 100px;
}

.cta-box {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 320px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-radius: var(--radius-lg);
  padding: 60px 70px;
  color: var(--white);
  background: var(--green-950);
}

.cta-box::after {
  position: absolute;
  top: -130px;
  right: -70px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(217, 173, 87, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(217, 173, 87, 0.04), 0 0 0 96px rgba(217, 173, 87, 0.025);
  content: "";
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  max-width: 700px;
  margin-bottom: 16px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 600;
  line-height: 1.17;
}

.cta-copy p {
  max-width: 670px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.cta-box .button {
  position: relative;
  z-index: 1;
  color: var(--green-950);
  background: var(--gold-400);
}

.subject-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 84px;
  background: linear-gradient(145deg, #fdfbf5 0%, #eaf4ef 100%);
}

.subject-hero::before {
  right: -260px;
  bottom: -280px;
  box-shadow: 0 0 0 60px rgba(18, 84, 64, 0.025), 0 0 0 120px rgba(18, 84, 64, 0.018);
}

.breadcrumbs {
  display: flex;
  margin-bottom: 38px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.subject-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 70px;
}

.subject-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid #cce1d7;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subject-kicker svg {
  width: 14px;
  height: 14px;
}

.subject-hero h1 {
  max-width: 740px;
  font-size: clamp(38px, 5vw, 64px);
}

.subject-hero-copy > p {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.subject-emblem {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid rgba(18, 84, 64, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-sm);
}

.subject-emblem::before,
.subject-emblem::after {
  position: absolute;
  border: 1px solid rgba(201, 154, 61, 0.3);
  border-radius: 50%;
  content: "";
}

.subject-emblem::before {
  width: 245px;
  height: 245px;
}

.subject-emblem::after {
  width: 195px;
  height: 195px;
}

.subject-emblem img {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.subject-number {
  position: absolute;
  top: 22px;
  right: 25px;
  color: rgba(8, 47, 37, 0.16);
  font-family: "Lora", Georgia, serif;
  font-size: 34px;
}

.subject-main {
  padding: 88px 0 105px;
}

.subject-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  align-items: start;
  gap: 70px;
}

.content-block + .content-block {
  margin-top: 72px;
}

.content-heading {
  display: flex;
  margin-bottom: 27px;
  align-items: center;
  gap: 13px;
}

.content-heading-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--green-800);
  background: var(--green-100);
}

.content-heading-icon svg {
  width: 20px;
  height: 20px;
}

.content-heading h2 {
  margin-bottom: 2px;
  color: var(--green-950);
  font-family: "Lora", Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
}

.content-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.outcome-card {
  display: flex;
  min-height: 106px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--white);
}

.outcome-number {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 10px;
  font-weight: 800;
}

.outcome-card p {
  margin-bottom: 0;
  color: #3f4d47;
  font-size: 13px;
  line-height: 1.55;
}

.module-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.module-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

.module-row:last-child {
  border-bottom: 0;
}

.module-index {
  color: var(--gold-500);
  font-family: "Lora", Georgia, serif;
  font-size: 18px;
  text-align: center;
}

.module-row strong,
.module-row span {
  display: block;
}

.module-row strong {
  margin-bottom: 2px;
  color: var(--green-950);
  font-size: 13px;
}

.module-row span {
  color: var(--muted);
  font-size: 11px;
}

.module-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 5px var(--green-100);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-grid.single {
  grid-template-columns: minmax(0, 660px);
}

.video-grid.empty {
  display: block;
}

.video-empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  border: 1px dashed #b9cec3;
  border-radius: var(--radius-md);
  padding: 35px;
  color: var(--muted);
  background: var(--green-50);
  text-align: center;
}

.video-empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 16px;
  color: var(--green-700);
  background: var(--green-100);
}

.video-empty-icon svg {
  width: 25px;
  height: 25px;
}

.video-empty h3 {
  margin-bottom: 5px;
  color: var(--green-950);
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
}

.video-empty p {
  max-width: 430px;
  margin-bottom: 0;
  font-size: 12px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(8, 47, 37, 0.05);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #061b15;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  padding: 18px 19px 20px;
}

.video-meta small {
  display: block;
  margin-bottom: 7px;
  color: var(--green-600);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.video-meta h3 {
  margin-bottom: 0;
  color: var(--green-950);
  font-size: 13px;
  line-height: 1.5;
}

.subject-sidebar {
  position: sticky;
  top: 110px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.sidebar-card + .sidebar-card {
  margin-top: 17px;
}

.sidebar-card h3 {
  margin-bottom: 17px;
  color: var(--green-950);
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
}

.meta-list {
  display: grid;
  gap: 14px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--green-700);
  background: var(--green-50);
}

.meta-icon svg {
  width: 17px;
  height: 17px;
}

.meta-item span,
.meta-item strong {
  display: block;
}

.meta-item span {
  color: var(--muted);
  font-size: 10px;
}

.meta-item strong {
  color: var(--ink);
  font-size: 12px;
}

.sidebar-card .button {
  width: 100%;
  margin-top: 21px;
}

.mini-subject-list {
  display: grid;
  gap: 4px;
}

.mini-subject {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  padding: 8px 10px;
  color: #405048;
  font-size: 11px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.mini-subject:hover,
.mini-subject.current {
  color: var(--green-900);
  background: var(--green-50);
}

.mini-subject svg {
  width: 14px;
  height: 14px;
}

.related-section {
  padding: 88px 0;
  background: var(--white);
}

.related-section .section-heading {
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.related-card {
  display: flex;
  min-height: 90px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px;
  background: var(--cream);
  transition: transform 180ms ease, border-color 180ms ease;
}

.related-card:hover {
  border-color: #b8d5c8;
  transform: translateY(-3px);
}

.related-card img {
  width: 53px;
  height: 53px;
  flex: 0 0 auto;
  object-fit: contain;
}

.related-card small,
.related-card strong {
  display: block;
}

.related-card small {
  color: var(--green-600);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.related-card strong {
  color: var(--green-950);
  font-size: 12px;
  line-height: 1.4;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #06271f;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.55fr 0.7fr 0.85fr;
  gap: 80px;
  padding: 72px 0 55px;
}

.footer-brand img {
  width: 185px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 450px;
  margin-bottom: 0;
  font-size: 12px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 13px;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-contact {
  display: grid;
  gap: 13px;
}

.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1020px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-menu {
    position: fixed;
    z-index: 24;
    inset: 119px 0 0;
    display: block;
    padding: 25px 20px 40px;
    background: var(--cream);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .menu-open .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-menu a {
    display: flex;
    min-height: 55px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--green-950);
    font-weight: 800;
  }

  .hero-grid,
  .subject-hero-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-grid {
    gap: 50px;
  }

  .subject-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
  }

  .footer-main {
    gap: 40px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .announcement {
    font-size: 10px;
  }

  .nav-shell {
    min-height: 70px;
  }

  .brand img {
    width: 140px;
  }

  .mobile-menu {
    inset: 107px 0 0;
  }

  .hero {
    padding: 64px 0 75px;
  }

  .hero-grid,
  .subject-hero-grid,
  .learning-grid,
  .subject-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-image-shell {
    inset: 20px 15px 0 28px;
  }

  .arabic-seal {
    right: 0;
    width: 96px;
    height: 96px;
    font-size: 22px;
  }

  .floating-card-two {
    right: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    min-height: 290px;
  }

  .learning-grid {
    gap: 46px;
  }

  .learning-visual {
    min-height: 480px;
  }

  .learning-visual img {
    height: 445px;
  }

  .feature-list,
  .outcome-grid,
  .video-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding-bottom: 75px;
  }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 45px 30px;
  }

  .cta-box .button {
    justify-self: start;
  }

  .subject-hero {
    padding: 48px 0 65px;
  }

  .subject-emblem {
    min-height: 310px;
  }

  .subject-main {
    padding: 70px 0 80px;
  }

  .subject-sidebar {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 405px;
  }

  .hero-image-shell {
    inset: 20px 8px 0;
  }

  .floating-card {
    padding: 10px 12px;
  }

  .floating-card-one {
    bottom: 24px;
  }

  .floating-card-two {
    right: 5px;
    bottom: 101px;
  }

  .floating-icon {
    width: 35px;
    height: 35px;
  }

  .arabic-seal {
    width: 82px;
    height: 82px;
    border-width: 6px;
    font-size: 19px;
  }

  .stat {
    min-height: 98px;
    gap: 9px;
  }

  .stat strong {
    font-size: 24px;
  }

  .stat span {
    font-size: 9px;
  }

  .learning-visual {
    min-height: 410px;
  }

  .learning-visual img {
    width: calc(100% - 20px);
    height: 380px;
  }

  .quote-card {
    padding: 20px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .subject-hero h1 {
    font-size: 38px;
  }

  .module-row {
    grid-template-columns: 35px 1fr auto;
    padding: 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
    padding: 21px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
