/* Azhar Australia — Homepage styles
   Aesthetic: deeply traditional, ornate. Heavy use of geometric motifs.
   Palette: emerald (#1B4D3E), gold (#C9A84C), parchment (#F5EFE2), charcoal (#2C2A26)
*/

:root {
  --emerald: #143d31;
  --emerald-deep: #0d2a22;
  --emerald-soft: #1f5645;
  --gold: #C9A84C;
  --gold-soft: #d9bd6e;
  --gold-deep: #a4842f;
  --parchment: #F5EFE2;
  --parchment-deep: #ebe3d0;
  --charcoal: #2C2A26;
  --charcoal-soft: #5a554c;
  --rule: #d8cfb8;

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Inter Tight", -apple-system, system-ui, sans-serif; /* used sparingly: small caps labels only */
  --font-arabic: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--parchment);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  /* subtle paper texture via layered gradients */
  background-image:
    radial-gradient(1200px 600px at 10% -100px, rgba(201, 168, 76, 0.06), transparent 60%),
    radial-gradient(900px 500px at 110% 200px, rgba(20, 61, 49, 0.05), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Typography utilities ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold-deep);
}
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 10px 3px;
  vertical-align: middle;
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  font-feature-settings: "kern", "liga";
  line-height: 1.35;
}

/* small caps section labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}
.section-label::before,
.section-label::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* Decorative star — used as inline ornament */
.ornament {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: middle;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}
.btn-primary {
  background: var(--gold);
  color: var(--emerald-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(164, 132, 47, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(245, 239, 226, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}
.btn-ghost-dark:hover {
  background: var(--emerald);
  color: var(--parchment);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--emerald-deep);
  color: var(--parchment);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar .topbar-left { color: var(--gold-soft); display: flex; gap: 22px; }
.topbar .topbar-right { display: flex; gap: 22px; opacity: 0.85; }
.topbar a:hover { color: var(--gold); }

.nav {
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
.nav.is-stuck { box-shadow: 0 8px 30px -12px rgba(20, 61, 49, 0.18); }

.nav .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--emerald);
}
.brand-text { line-height: 1.1; }
.brand-text .en {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--emerald-deep);
}
.brand-text .ar {
  font-family: var(--font-arabic);
  font-size: 16px;
  color: var(--gold-deep);
  direction: rtl;
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal);
}
.nav-links a {
  position: relative;
  padding: 8px 0;
}
.nav-links a:hover { color: var(--emerald); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; gap: 12px; align-items: center; }

/* mobile menu toggle (hidden at desktop) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  padding: 0;
  position: relative;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle .bar {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--charcoal);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle .bar:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle .bar:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--parchment);
  z-index: 999;
  padding: 96px 32px 48px;
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 16px 40px -16px rgba(20, 61, 49, 0.18);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--charcoal);
  padding: 14px 0;
  border-bottom: 1px dotted var(--rule);
}
.mobile-menu nav a:hover { color: var(--emerald); }
.mobile-menu .mobile-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.mobile-menu .mobile-contact {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  text-align: center;
}
.mobile-menu .mobile-contact a { color: var(--emerald-deep); }
body.menu-open { overflow: hidden; }

/* timetable grid: 1.4fr on the right by default, stacks on mobile */
.sem-grid.sem-grid--timetable { grid-template-columns: 1fr 1.4fr; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--emerald-deep);
  color: var(--parchment);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  opacity: 0.18;
  z-index: 0;
  background-image: url("patterns/zellige.svg");
  background-size: 320px 320px;
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(201, 168, 76, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(13, 42, 34, 0.4) 0%, var(--emerald-deep) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--gold-soft);
  margin-bottom: 28px;
}
.hero-arabic {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.2;
  color: var(--parchment);
  margin: 0 0 18px;
  font-weight: 400;
}
.hero-title {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  margin: 0 0 24px;
  color: var(--parchment);
  font-weight: 400;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero-sub {
  font-size: 19px;
  max-width: 540px;
  color: rgba(245, 239, 226, 0.78);
  margin: 0 0 40px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-side {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
}
.hero-medallion {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-medallion svg.frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: var(--gold);
  opacity: 0.85;
}
.hero-medallion .calligraphy {
  font-family: var(--font-arabic);
  font-size: clamp(54px, 7vw, 92px);
  color: var(--gold);
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.25);
}
.hero-medallion .calligraphy small {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 18px;
  font-weight: 500;
}

.hero-bottom-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
  position: relative; z-index: 2;
}

/* ---------- Credentials strip ---------- */
.credentials {
  background: var(--emerald);
  color: var(--parchment);
  padding: 32px 0;
  position: relative;
}
.credentials::before, .credentials::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background-image: url("patterns/border.svg");
  background-size: 80px 6px;
  background-repeat: repeat-x;
  opacity: 0.5;
}
.credentials::before { top: 0; }
.credentials::after { bottom: 0; }
.credentials .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: center;
}
.cred-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(201, 168, 76, 0.3);
}
.cred-item:last-child { border-right: none; }
.cred-item .num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.cred-item .num.text {
  font-size: 20px;
  letter-spacing: 0.04em;
}
.cred-item .label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.85);
}

/* ---------- Section base ---------- */
section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 130px) 0; }

.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.section-head .section-label { margin-bottom: 24px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.section-head h2 em { font-style: italic; color: var(--gold-deep); }
.section-head .lede {
  max-width: 640px;
  margin: 0 auto;
  color: var(--charcoal-soft);
  font-size: 19px;
  line-height: 1.7;
}

/* Decorative divider — geometric star */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 48px auto;
  color: var(--gold);
}
.divider .line {
  flex: 0 0 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.divider .star {
  width: 18px; height: 18px;
}

/* ---------- About ---------- */
.about {
  background: var(--parchment);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 16px 0 22px;
  line-height: 1.15;
}
.about-copy h2 em { font-style: italic; color: var(--gold-deep); }
.about-copy p {
  color: var(--charcoal-soft);
  font-size: 19px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.about-copy .read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--emerald);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.about-copy .read-more:hover { color: var(--gold-deep); }

/* Quranic / hadith pull quote card */
.quote-card {
  background: linear-gradient(180deg, #fbf6e8 0%, var(--parchment) 100%);
  border: 1px solid var(--rule);
  padding: 56px 48px 48px;
  position: relative;
  text-align: center;
}
.quote-card::before, .quote-card::after {
  content: "";
  position: absolute;
  width: 90px; height: 90px;
  background-image: url("patterns/corner.svg");
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--gold);
}
.quote-card::before { top: -1px; left: -1px; }
.quote-card::after { bottom: -1px; right: -1px; transform: rotate(180deg); }
.quote-card .ar {
  font-family: var(--font-arabic);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.5;
  color: var(--emerald-deep);
  direction: rtl;
  margin: 0 0 24px;
  font-weight: 400;
}
.quote-card .translation {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--charcoal);
  margin: 0 0 16px;
}
.quote-card .source {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Program section (single program with subjects) ---------- */
.program {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  position: relative;
  overflow: hidden;
}
.program::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("patterns/arabesque.svg");
  background-size: 600px 600px;
  opacity: 0.05;
  pointer-events: none;
}

.program-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.program-headline .left h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin: 18px 0 0;
  color: var(--emerald-deep);
  font-weight: 500;
}
.program-headline .left h2 em { font-style: italic; color: var(--gold-deep); }
.program-headline .right {
  font-size: 19px;
  color: var(--charcoal-soft);
  line-height: 1.7;
}
.program-headline .right .meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.program-headline .meta-item .k {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}
.program-headline .meta-item .v {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--emerald-deep);
  font-weight: 500;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  position: relative;
  z-index: 1;
  background: var(--parchment);
}
.subject {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--parchment);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}
.subject:hover {
  background: linear-gradient(180deg, #fbf6e8 0%, var(--parchment) 100%);
}
.subject:hover .subject-num { color: var(--gold-deep); }
.subject:hover .subject-arrow { transform: translate(4px, -4px); opacity: 1; }
.subject.featured {
  background: var(--emerald-deep);
  color: var(--parchment);
}
.subject.featured:hover { background: var(--emerald); }
.subject.featured .subject-num { color: var(--gold); }
.subject.featured .subject-name { color: var(--parchment); }
.subject.featured .subject-ar { color: var(--gold-soft); }
.subject.featured .subject-desc { color: rgba(245, 239, 226, 0.78); }
.subject.featured .subject-arrow { color: var(--gold); }
.subject.featured .featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.subject.featured .featured-badge::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--gold);
}

.subject-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 16px;
  font-weight: 500;
  font-style: italic;
}
.subject-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 4px;
  line-height: 1.15;
}
.subject-ar {
  font-family: var(--font-arabic);
  font-size: 22px;
  color: var(--gold-deep);
  direction: rtl;
  margin-bottom: 14px;
  display: block;
}
.subject-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin: 0;
}
.subject-arrow {
  position: absolute;
  top: 32px; right: 28px;
  width: 22px; height: 22px;
  color: var(--gold-deep);
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* ---------- Why Azhar curriculum ---------- */
.why {
  background: var(--emerald-deep);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("patterns/zellige.svg");
  background-size: 280px 280px;
  opacity: 0.08;
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.why-copy .section-label { color: var(--gold); }
.why-copy .section-label::before, .why-copy .section-label::after { background: var(--gold); }
.why-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.1;
  font-weight: 500;
  color: var(--parchment);
  margin: 22px 0 24px;
}
.why-copy h2 em { font-style: italic; color: var(--gold-soft); }
.why-copy .lede {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(245, 239, 226, 0.78);
  margin-bottom: 36px;
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.25);
}
.why-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  align-items: start;
}
.why-list .num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  width: 36px;
}
.why-list h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--parchment);
  margin: 0 0 6px;
}
.why-list p {
  font-size: 16.5px;
  color: rgba(245, 239, 226, 0.72);
  margin: 0;
  line-height: 1.6;
}

.why-art {
  position: relative;
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
}
.why-art .frame {
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.4);
  pointer-events: none;
}
.why-art .frame::before, .why-art .frame::after {
  content: "";
  position: absolute;
  width: 70px; height: 70px;
  background-image: url("patterns/corner.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}
.why-art .frame::before { top: -1px; left: -1px; }
.why-art .frame::after { bottom: -1px; right: -1px; transform: rotate(180deg); }
.why-art .placeholder {
  position: absolute;
  inset: 28px;
  background:
    repeating-linear-gradient(135deg,
      rgba(201, 168, 76, 0.06) 0 8px,
      rgba(201, 168, 76, 0.02) 8px 16px),
    rgba(13, 42, 34, 0.4);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(201, 168, 76, 0.7);
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.why-art .placeholder span { display: block; line-height: 1.7; }
.why-art .calligraphy-overlay {
  font-family: var(--font-arabic);
  font-size: clamp(80px, 12vw, 160px);
  color: rgba(201, 168, 76, 0.18);
  position: relative;
  z-index: 2;
  line-height: 1;
}

/* ---------- Faculty ---------- */
.faculty .faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.scholar {
  text-align: center;
}
.scholar-portrait {
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
  border-radius: 50%;
  position: relative;
  background:
    repeating-linear-gradient(45deg,
      var(--parchment-deep) 0 10px,
      var(--parchment) 10px 20px);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.scholar-portrait::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.4;
  pointer-events: none;
}
.scholar-portrait .ph {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  padding: 16px;
}
.scholar h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 4px;
}
.scholar .ar-name {
  font-family: var(--font-arabic);
  font-size: 18px;
  color: var(--gold-deep);
  margin-bottom: 16px;
  display: block;
}
.scholar .role {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.scholar .creds {
  font-size: 16px;
  color: var(--charcoal-soft);
  line-height: 1.6;
  font-style: italic;
  max-width: 260px;
  margin: 0 auto;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--parchment);
  position: relative;
}
.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("patterns/arabesque.svg");
  background-size: 700px 700px;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.testi {
  background: #fbf6e8;
  border: 1px solid var(--rule);
  padding: 40px 36px 36px;
  position: relative;
}
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
  position: absolute;
  top: 12px;
  left: 28px;
  opacity: 0.4;
}
.testi blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.65;
  color: var(--charcoal);
  margin: 32px 0 28px;
  font-style: italic;
  position: relative;
}
.testi .stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 14px;
}
.testi .name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0 0 4px;
}
.testi .meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Admissions CTA banner ---------- */
.cta-banner {
  background: var(--emerald-deep);
  color: var(--parchment);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("patterns/zellige.svg");
  background-size: 240px 240px;
  opacity: 0.12;
}
.cta-banner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 8px;
  background-image: url("patterns/border.svg");
  background-size: 80px 6px;
  background-repeat: repeat-x;
  opacity: 0.7;
}
.cta-banner .container { position: relative; z-index: 1; padding: clamp(80px, 10vw, 120px) var(--pad); }
.cta-banner .ar {
  font-family: var(--font-arabic);
  font-size: clamp(32px, 4vw, 50px);
  color: var(--gold);
  margin: 0 0 16px;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
  font-weight: 500;
  color: var(--parchment);
  margin: 0 0 18px;
}
.cta-banner h2 em { font-style: italic; color: var(--gold-soft); }
.cta-banner p {
  font-size: 19px;
  color: rgba(245, 239, 226, 0.8);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.cta-banner .cycle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  padding: 8px 16px;
  border: 1px solid rgba(201, 168, 76, 0.4);
}
.cta-banner .cycle .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

/* ---------- Footer ---------- */
.footer {
  background: #0a1f19;
  color: rgba(245, 239, 226, 0.65);
  font-size: 16px;
}
.footer .container { padding-top: 72px; padding-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}
.footer h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 22px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--gold-soft); }

.footer-brand .brand-text .en { color: var(--parchment); }
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(245, 239, 226, 0.65);
  margin: 18px 0 20px;
  font-size: 18px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-brand .accred {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-brand .accred svg { color: var(--gold); }

.footer-contact .row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}
.footer-contact .row svg { color: var(--gold); margin-top: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 226, 0.4);
}
.footer-bottom .lang {
  display: flex;
  gap: 14px;
}
.footer-bottom .lang button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  padding: 4px 8px;
}
.footer-bottom .lang button.active { color: var(--gold); border-bottom: 1px solid var(--gold); }

.socials {
  display: flex; gap: 12px;
}
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold-soft);
  transition: all 0.25s ease;
}
.socials a:hover { background: var(--gold); color: var(--emerald-deep); border-color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-side { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
  .nav .container { grid-template-columns: auto 1fr auto; gap: 16px; }
  .sem-grid.sem-grid--timetable { grid-template-columns: 1fr; }
  .credentials .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cred-item { border-right: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .program-headline { grid-template-columns: 1fr; gap: 32px; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-art { aspect-ratio: 16/9; max-width: 600px; margin: 0 auto; }
  .faculty .faculty-grid { grid-template-columns: 1fr; gap: 56px; max-width: 420px; margin: 0 auto; }
  .testi-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .nav .container { grid-template-columns: auto 1fr auto; height: 72px; gap: 12px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 12px; }
  .nav .brand-logo { height: 44px; width: 160px; }
  .subjects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 18px; }
  .partners-grid { grid-template-columns: 1fr; }
}
