﻿:root {
  --dark-green: #384862;
  --emerald: #536989;
  --gold: #8ea1c1;
  --gold-light: #dbe6f4;
  --cream: #f3f6fa;
  --white: #ffffff;
  --ink: #24324a;
  --muted: #6f7c78;
  --line: rgba(56, 72, 98, 0.14);
  --shadow: 0 24px 70px rgba(56, 72, 98, 0.16);
  --soft-shadow: 0 14px 35px rgba(56, 72, 98, 0.12);
  --heading: "Cormorant Garamond", Georgia, serif;
  --display: "Poppins", sans-serif;
  --body: "Inter", sans-serif;
  --islamic-arch-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='170' viewBox='0 0 220 170'%3E%3Cg fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg opacity='.20' stroke-width='1.8'%3E%3Cpath d='M28 170V88C28 54 54 31 83 13c29 18 55 41 55 75v82'/%3E%3Cpath d='M48 170V92c0-24 17-41 35-54 18 13 35 30 35 54v78'/%3E%3Cpath d='M83 52 102 84 83 116 64 84Z'/%3E%3Cpath d='M83 68 99 84 83 100 67 84Z'/%3E%3Cpath d='M83 31v106M39 84h88M53 54l60 60M113 54l-60 60'/%3E%3C/g%3E%3Cg opacity='.13' stroke-width='1.5'%3E%3Cpath d='M138 170V88c0-34 26-57 55-75 29 18 55 41 55 75v82'/%3E%3Cpath d='M158 170V92c0-24 17-41 35-54 18 13 35 30 35 54v78'/%3E%3Cpath d='M193 52 212 84 193 116 174 84Z'/%3E%3Cpath d='M193 31v106M149 84h88M163 54l60 60M223 54l-60 60'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.12'%3E%3Ccircle cx='83' cy='84' r='4'/%3E%3Ccircle cx='193' cy='84' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-sprite {
  display: none;
}

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

.section-pad {
  padding: 110px 0;
}

.soft-section {
  background:
    radial-gradient(circle at top left, rgba(142, 161, 193, 0.11), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, #f3f6fa 100%);
}

.section-pattern {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 16% 24%, rgba(219, 230, 244, 0.15), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.10), transparent 25%),
    linear-gradient(135deg, rgba(56, 72, 98, 0.98), rgba(83, 105, 137, 0.90));
}

.section-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.50;
  background-image: var(--islamic-arch-pattern);
  background-position: center top;
  background-size: 220px 170px;
  mix-blend-mode: screen;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--dark-green);
  color: var(--gold-light);
  transition: opacity .5s ease, visibility .5s ease;
  animation: loaderExit .55s ease 1.5s forwards;
}

.loader-mark {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(142, 161, 193, 0.45);
  border-radius: 50%;
  font-family: var(--heading);
  font-size: 2rem;
  box-shadow: 0 0 0 10px rgba(142, 161, 193, 0.08);
  animation: pulse 1.4s ease-in-out infinite;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  background: transparent;
}

.topbar {
  display: none;
}

.topbar-inner,
.topbar-links,
.social-links {
  display: flex;
  align-items: center;
}

.topbar-inner {
  min-height: 42px;
  justify-content: space-between;
  gap: 18px;
}

.topbar-links {
  gap: 20px;
  flex-wrap: wrap;
}

.topbar a,
.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar svg {
  color: var(--gold-light);
}

.social-links {
  gap: 8px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(142, 161, 193, 0.36);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--dark-green);
}

.navbar {
  position: relative;
  overflow: hidden;
  background-color: var(--dark-green);
  background-image:
    linear-gradient(90deg, rgba(56, 72, 98, 0.92), rgba(56, 72, 98, 0.88)),
    var(--islamic-arch-pattern);
  background-position: center, center top;
  background-size: auto, 176px 136px;
  border-bottom: 0;
  box-shadow: 0 14px 34px rgba(36, 50, 74, 0.18);
  backdrop-filter: none;
  transition: box-shadow .3s ease;
}

.nav-inner {
  position: relative;
  z-index: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 42px;
  width: 100%;
  max-width: none;
  padding: 0 44px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: max-content;
}

.navbar .brand {
  position: relative;
  align-self: stretch;
  gap: 14px;
  min-width: min(32vw, 405px);
  padding: 0 92px 0 48px;
  color: var(--dark-green);
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 100%, 0% 100%);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 5px;
  border: 1px solid rgba(142, 161, 193, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    linear-gradient(135deg, rgba(142, 161, 193, 0.36), rgba(56, 72, 98, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(0, 0, 0, 0.15);
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16));
}

.logo-ring {
  fill: rgba(56, 72, 98, 0.96);
  stroke: var(--gold);
  stroke-width: 2.4;
}

.logo-arch,
.logo-path {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2.25;
}

.logo-book-left,
.logo-book-right {
  fill: rgba(248, 245, 239, 0.95);
  stroke: var(--gold-light);
  stroke-width: 1.7;
}

.logo-star {
  fill: var(--gold);
  stroke: var(--gold-light);
  stroke-width: .8;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.12;
}

.brand strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.6vw, 36px);
}

.nav-menu > a:not(.btn) {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
  position: relative;
  transition: color .25s ease;
}

.nav-menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-menu > a:hover,
.nav-menu > a.active {
  color: var(--white);
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle .close-icon {
  display: none;
}

.site-header.scrolled .navbar {
  background-color: var(--dark-green);
  box-shadow: 0 16px 40px rgba(36, 50, 74, 0.22);
  border-color: transparent;
}

.site-header.scrolled .nav-menu > a:not(.btn),
.site-header.scrolled .nav-toggle {
  color: var(--white);
}

.site-header.scrolled .brand {
  color: var(--dark-green);
}

.site-header.scrolled .brand small {
  color: var(--gold);
}

.site-header.scrolled .brand-mark {
  border-color: rgba(142, 161, 193, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 239, 0.84)),
    linear-gradient(135deg, rgba(142, 161, 193, 0.26), rgba(56, 72, 98, 0.08));
  box-shadow: 0 10px 26px rgba(56, 72, 98, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.15;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

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

.btn-gold {
  background: linear-gradient(135deg, #cfdaf0, var(--gold));
  color: #24324a;
  box-shadow: 0 14px 30px rgba(142, 161, 193, 0.24);
}

.btn-gold:hover {
  box-shadow: 0 18px 38px rgba(142, 161, 193, 0.32);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: var(--white);
  color: var(--dark-green);
}

.btn-outline {
  width: 100%;
  color: var(--dark-green);
  border-color: rgba(56, 72, 98, 0.14);
  background: rgba(56, 72, 98, 0.04);
  min-height: 44px;
}

.btn-outline:hover {
  background: var(--dark-green);
  color: var(--white);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 150px 0 76px;
}

.hero.section-pattern::before {
  opacity: 0.38;
  background-size: 260px 200px;
  background-position: center 26px;
}

.hero.section-pattern::after {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, 0.07) 30.5% 31.2%, transparent 32%),
    repeating-conic-gradient(from 45deg, rgba(255, 255, 255, 0.10) 0deg 4deg, transparent 4deg 18deg);
  opacity: 0.34;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 58px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin: 22px 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.hero-trust span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  max-width: 520px;
  margin-left: auto;
  padding: 15px;
  border: 1px solid rgba(142, 161, 193, 0.42);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.26);
}

.hero-image-wrap::before,
.hero-image-wrap::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(142, 161, 193, 0.42);
  pointer-events: none;
}

.hero-image-wrap::before {
  inset: -18px 34px 34px -18px;
  border-radius: 34px;
}

.hero-image-wrap::after {
  right: -24px;
  bottom: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 161, 193, 0.28), transparent 70%);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  filter: saturate(1.04) contrast(1.04);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 1.4s ease;
}

.hero-image.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slider-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(36, 50, 74, 0.42);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-slider-dot.active {
  width: 28px;
  background: var(--gold-light);
}

.arabic-medallion {
  position: absolute;
  top: -24px;
  right: 32px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbe6f4, var(--gold));
  color: var(--dark-green);
  font-family: var(--heading);
  font-size: 2.5rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.hero-stat {
  position: absolute;
  z-index: 4;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  animation: floatCard 5.5s ease-in-out infinite;
}

.hero-stat strong,
.hero-stat span {
  display: block;
  line-height: 1.15;
}

.hero-stat strong {
  color: var(--dark-green);
  font-size: 1.32rem;
  font-weight: 900;
}

.hero-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.stat-one { left: -36px; top: 16%; }
.stat-two { right: -12px; top: 38%; animation-delay: .9s; }
.stat-three { left: -24px; bottom: 20%; animation-delay: 1.4s; }
.stat-four { right: 24px; bottom: -22px; animation-delay: .45s; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hero-glow-one {
  width: 290px;
  height: 290px;
  left: 8%;
  bottom: 12%;
  background: rgba(142, 161, 193, 0.14);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: 4%;
  top: 16%;
  background: rgba(255, 255, 255, 0.08);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

.image-panel {
  position: relative;
}

.image-panel::before {
  content: "";
  position: absolute;
  inset: -22px 42px 42px -22px;
  z-index: 0;
  border: 1px solid rgba(142, 161, 193, 0.34);
  border-radius: 30px;
}

.image-panel img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.image-badge {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 34px;
  max-width: 210px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  border-left: 4px solid var(--gold);
}

.image-badge strong {
  display: block;
  color: var(--emerald);
  font-size: 2rem;
  line-height: 1;
}

.image-badge span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.content-panel h2,
.section-heading h2,
.cta h2,
.contact-copy h2 {
  font-family: var(--heading);
  color: var(--dark-green);
  font-size: clamp(2.35rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.content-panel p,
.section-heading p,
.icon-card p,
.contact-copy p,
.cta p {
  color: var(--muted);
}

.content-panel p {
  margin: 20px 0 26px;
  font-size: 1.02rem;
}

.feature-list,
.contact-highlights {
  display: grid;
  gap: 12px;
}

.feature-list div,
.contact-highlights div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--dark-green);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(56, 72, 98, 0.06);
}

.feature-list svg,
.contact-highlights svg {
  flex: 0 0 auto;
  color: var(--gold);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading p {
  margin-top: 14px;
  font-size: 1rem;
}

.course-grid,
.why-grid,
.teacher-grid,
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.course-card,
.icon-card,
.teacher-card,
.contact-card,
.contact-form {
  border: 1px solid rgba(56, 72, 98, 0.1);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(56, 72, 98, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.course-card:hover,
.icon-card:hover,
.teacher-card:hover,
.contact-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow);
  border-color: rgba(142, 161, 193, 0.38);
}

.course-card {
  overflow: hidden;
}

.course-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  transition: transform .45s ease;
}

.course-card:hover img {
  transform: scale(1.06);
}

.course-body {
  padding: 22px;
}

.course-meta,
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.course-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.course-meta svg {
  color: var(--gold);
}

.course-body h3,
.icon-card h3,
.teacher-card h3,
.contact-card h3 {
  color: var(--dark-green);
  font-family: var(--display);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.course-body h3 {
  margin: 16px 0 8px;
}

.course-body p {
  min-height: 78px;
  color: var(--muted);
  font-size: 0.94rem;
}

.course-footer {
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stars {
  color: var(--gold);
  letter-spacing: 0;
  white-space: nowrap;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.icon-card {
  padding: 30px;
}

.icon-card > svg {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 16px;
  color: var(--gold);
  background: rgba(142, 161, 193, 0.12);
  margin-bottom: 22px;
}

.icon-card p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.teacher-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-card {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(142, 161, 193, 0.14), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(83, 105, 137, 0.10), transparent 34%);
  pointer-events: none;
}

.teacher-card::after {
  content: "Ø¹Ù„Ù…";
  position: absolute;
  right: 22px;
  bottom: 8px;
  color: rgba(56, 72, 98, 0.05);
  font-family: var(--heading);
  font-size: 5rem;
  line-height: 1;
}

.teacher-top,
.teacher-card h3,
.teacher-summary,
.teacher-details {
  position: relative;
  z-index: 1;
}

.teacher-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.teacher-number {
  color: rgba(56, 72, 98, 0.18);
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
}

.teacher-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(142, 161, 193, 0.12);
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.teacher-summary {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.teacher-details {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.teacher-details span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(56, 72, 98, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark-green);
  font-size: 0.82rem;
  font-weight: 850;
}

.testimonials {
  background:
    radial-gradient(circle at 20% 10%, rgba(142, 161, 193, 0.10), transparent 28%),
    var(--cream);
}

.testimonial-shell {
  max-width: 880px;
  margin-inline: auto;
  position: relative;
}

.testimonial-track {
  position: relative;
  min-height: 290px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(56, 72, 98, 0.1);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(142, 161, 193, 0.18);
}

.testimonial p {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 1.08rem;
}

.testimonial h3 {
  color: var(--dark-green);
  font-family: var(--display);
}

.testimonial small {
  color: var(--muted);
  font-weight: 800;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(56, 72, 98, 0.25);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.testimonial-dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--gold);
}

.cta {
  padding: 95px 0;
  text-align: center;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
}

.cta h2 {
  color: var(--white);
  margin-top: 8px;
}

.cta p {
  max-width: 620px;
  margin: 16px auto 28px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-actions {
  justify-content: center;
}

.footer {
  background:
    radial-gradient(circle at 12% 0, rgba(142, 161, 193, 0.12), transparent 30%),
    #2d3b55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 40px;
  padding: 70px 0 46px;
}

.brand-footer {
  margin-bottom: 18px;
}

.footer p {
  color: rgba(255, 255, 255, 0.72);
}

.footer h3 {
  margin-bottom: 16px;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1rem;
}

.footer a:not(.brand) {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.72);
  transition: color .25s ease, transform .25s ease;
}

.footer a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer svg {
  color: var(--gold-light);
  margin-right: 8px;
  vertical-align: -2px;
}

.footer-social {
  margin-top: 20px;
}

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.page-hero {
  min-height: 470px;
  display: grid;
  align-items: center;
  padding-top: 130px;
  background:
    linear-gradient(135deg, rgba(56, 72, 98, 0.82), rgba(83, 105, 137, 0.58)),
    url("https://images.unsplash.com/photo-1577561426384-62154a1e9457?auto=format&fit=crop&w=1600&q=85") center 48%/cover;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  margin: 10px auto;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--gold-light);
}

.contact-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  padding: 30px;
  text-align: center;
}

.contact-card > svg {
  width: 56px;
  height: 56px;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(142, 161, 193, 0.12);
  color: var(--gold);
}

.contact-card p {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 150px;
}

.contact-copy p {
  margin: 18px 0 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 32px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--dark-green);
  font-weight: 900;
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(56, 72, 98, 0.14);
  border-radius: 15px;
  background: #fbfaf7;
  color: var(--ink);
  padding: 13px 15px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 134px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(142, 161, 193, 0.75);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(142, 161, 193, 0.14);
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
  border-color: #c54646;
}

.error-message {
  display: none;
  color: #b33434;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-row.invalid .error-message {
  display: block;
}

.form-submit {
  width: 100%;
  border: 0;
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  color: var(--emerald);
  font-weight: 800;
}

.map-section {
  padding: 0 0 110px;
}

.map-wrap {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(56, 72, 98, 0.12);
  box-shadow: var(--shadow);
  background: var(--white);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: min(56vw, 470px);
  min-height: 320px;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .22s;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(142, 161, 193, 0.08); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 18px rgba(142, 161, 193, 0.03); }
}

@keyframes loaderExit {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 650px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-image-wrap {
    margin-inline: auto;
  }

  .course-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-grid,
  .contact-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-copy {
    position: static;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

  .container {
    width: min(100% - 30px, 720px);
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-links {
    justify-content: center;
    gap: 10px 16px;
  }

  .topbar .social-links {
    display: none;
  }

  .nav-inner {
    min-height: 68px;
    gap: 14px;
    padding: 0 15px 0 0;
  }

  .navbar .brand {
    min-width: min(76vw, 330px);
    padding: 0 54px 0 16px;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0% 100%);
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 15px;
    right: 15px;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(56, 72, 98, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

  .nav-menu > a:not(.btn) {
    color: var(--dark-green);
    padding: 12px 10px;
  }

  .nav-menu > a:not(.btn)::after {
    bottom: 4px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  body.nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.nav-open .nav-toggle .menu-icon {
    display: none;
  }

  body.nav-open .nav-toggle .close-icon {
    display: block;
  }

  .hero {
    padding-top: 178px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .content-panel {
    text-align: center;
  }

  .testimonial {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial img {
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .section-pad {
    padding: 78px 0;
  }

  .topbar {
    font-size: 0.76rem;
  }

  .topbar-inner {
    min-height: 54px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 14px;
  }

  .navbar .brand {
    min-width: min(78vw, 300px);
    padding: 0 44px 0 14px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.66rem;
  }

  .hero {
    min-height: auto;
    padding: 170px 0 74px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-image-wrap {
    max-width: 430px;
    padding: 10px;
    border-radius: 26px;
  }

  .hero-slider {
    grid-column: 1 / -1;
    border-radius: 20px;
  }

  .hero-image {
    border-radius: 20px;
  }

  .arabic-medallion {
    width: 68px;
    height: 68px;
    top: -18px;
    right: 18px;
    font-size: 2rem;
  }

  .hero-stat {
    position: static;
    min-width: 0;
    animation: none;
  }

  .hero-image-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-image-wrap::before,
  .hero-image-wrap::after {
    display: none;
  }

  .course-grid,
  .why-grid,
  .teacher-grid,
  .contact-card-grid,
  .footer-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .course-body p {
    min-height: auto;
  }

  .image-panel::before {
    inset: -14px 24px 24px -14px;
  }

  .image-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -44px auto 0;
  }

  .testimonial-track {
    min-height: 430px;
  }

  .testimonial {
    padding: 26px 20px;
  }

  .testimonial img {
    width: 118px;
    height: 118px;
  }

  .page-hero {
    min-height: 390px;
    padding-top: 142px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .map-section {
    padding-bottom: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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