/* 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 ---------- */

/* Pages toolbar — cross-page navigation (sits above the topbar) */
.pages-bar {
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.pages-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 42px;
}
.pages-bar .pages-label {
  color: var(--gold-deep);
  white-space: nowrap;
}
.pages-bar .pages-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.pages-bar a {
  color: var(--charcoal);
  padding: 4px 0;
  position: relative;
}
.pages-bar a:hover { color: var(--emerald); }
.pages-bar a.active {
  color: var(--emerald-deep);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.pages-bar a.pages-donate {
  color: var(--emerald-deep);
  border: 1px solid var(--gold);
  padding: 5px 14px;
}
.pages-bar a.pages-donate:hover {
  background: var(--emerald-deep);
  color: var(--gold-soft);
  border-color: var(--emerald-deep);
}

.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-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mobile-close:hover { border-color: var(--gold); color: var(--emerald-deep); }
.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;
  z-index: 0;
}
.program > .container { position: relative; z-index: 1; }

.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); }

/* ---------- Journal / Latest Articles ---------- */
.journal {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}
.journal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("patterns/arabesque.svg");
  background-size: 640px 640px;
  background-position: top center;
  opacity: 0.045;
  pointer-events: none;
}
.journal > .container { position: relative; z-index: 1; }

.journal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.journal-head .left .section-label { margin-bottom: 22px; }
.journal-head .left h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  color: var(--emerald-deep);
  margin: 0;
  letter-spacing: -0.01em;
}
.journal-head .left h2 em { font-style: italic; color: var(--gold-deep); }
.journal-head .view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  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: 6px;
  white-space: nowrap;
}
.journal-head .view-all:hover { color: var(--gold-deep); }
.journal-head .view-all .arrow { transition: transform 0.25s ease; }
.journal-head .view-all:hover .arrow { transform: translateX(4px); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  border: 1px solid var(--rule);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(20, 61, 49, 0.4);
  border-color: var(--gold);
}
.article-thumb {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      rgba(201, 168, 76, 0.08) 0 9px,
      rgba(201, 168, 76, 0.02) 9px 18px),
    var(--parchment-deep);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--rule);
}
.article-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-thumb .ph {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  line-height: 1.7;
  padding: 20px;
}
.article-thumb .ph span { display: block; }
.article-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--emerald-deep);
  background: var(--gold);
  padding: 6px 12px;
}
.article-body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.article-meta .sep {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--emerald-deep);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.article-card:hover h3 { color: var(--gold-deep); }
.article-excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  margin: 0 0 24px;
}
.article-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dotted var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-author .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg,
      var(--parchment-deep) 0 6px,
      var(--parchment) 6px 12px);
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.article-author .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.2;
}
.article-foot .read {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--gold-deep);
  transition: transform 0.25s ease;
}
.article-card:hover .article-foot .read { transform: translateX(4px); color: var(--emerald); }
.article-card .stretch-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- Article page ---------- */
.article-hero {
  background: var(--emerald-deep);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.article-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("patterns/zellige.svg");
  background-size: 300px 300px;
  opacity: 0.1;
  z-index: 0;
}
.article-hero .vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(800px 460px at 80% 10%, rgba(201, 168, 76, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(13, 42, 34, 0.3) 0%, var(--emerald-deep) 100%);
  pointer-events: none;
}
.article-hero .container {
  position: relative; z-index: 2;
  padding: clamp(40px, 6vw, 64px) var(--pad) clamp(56px, 8vw, 88px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: rgba(245, 239, 226, 0.6); }
.article-hero .article-tag-inline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--emerald-deep);
  background: var(--gold);
  padding: 7px 14px;
  margin-bottom: 26px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 500;
  color: var(--parchment);
  margin: 0 0 24px;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.article-hero h1 em { font-style: italic; color: var(--gold-soft); }
.article-hero .standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: rgba(245, 239, 226, 0.82);
  max-width: 620px;
  margin: 0 0 40px;
}
.article-hero .byline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
}
.article-hero .byline .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg,
      rgba(201, 168, 76, 0.18) 0 6px,
      rgba(13, 42, 34, 0.5) 6px 12px);
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.article-hero .byline .who .name {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--parchment);
  font-weight: 500;
  line-height: 1.2;
}
.article-hero .byline .who .det {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 4px;
}

.article-feature {
  max-width: 1000px;
  margin: -56px auto 0;
  padding: 0 var(--pad);
  position: relative;
  z-index: 5;
}
.article-feature .frame {
  position: relative;
  aspect-ratio: 16/9;
  border: 1px solid var(--rule);
  background:
    repeating-linear-gradient(135deg,
      rgba(201, 168, 76, 0.08) 0 10px,
      rgba(201, 168, 76, 0.02) 10px 20px),
    var(--parchment-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(13, 42, 34, 0.55);
}
.article-feature .frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-feature .frame .ph {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  line-height: 1.8;
}
.article-feature .frame .ph span { display: block; }
.article-feature .caption {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-top: 14px;
  text-align: center;
}

.article-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) var(--pad);
}
.article-prose > p {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.8;
  color: var(--charcoal);
  margin: 0 0 26px;
}
.article-prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 78px;
  line-height: 0.78;
  float: left;
  margin: 8px 16px 0 0;
  color: var(--gold-deep);
  font-weight: 600;
}
.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--emerald-deep);
  line-height: 1.2;
  margin: 52px 0 18px;
}
.article-prose h2 em { font-style: italic; color: var(--gold-deep); }
.article-prose h2 .ar {
  font-family: var(--font-arabic);
  font-size: 0.7em;
  color: var(--gold-deep);
  direction: rtl;
  display: block;
  margin-top: 6px;
}
.article-prose .ayah {
  text-align: center;
  margin: 44px 0;
  padding: 36px 32px;
  background: linear-gradient(180deg, #fbf6e8 0%, var(--parchment) 100%);
  border: 1px solid var(--rule);
  position: relative;
}
.article-prose .ayah .ar {
  font-family: var(--font-arabic);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.6;
  color: var(--emerald-deep);
  direction: rtl;
  margin: 0 0 16px;
}
.article-prose .ayah .tr {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--charcoal);
  margin: 0 0 12px;
}
.article-prose .ayah .src {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.article-prose blockquote {
  margin: 44px 0;
  padding: 8px 0 8px 32px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(23px, 2.6vw, 29px);
  line-height: 1.45;
  color: var(--emerald-deep);
}
.article-prose blockquote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 18px;
}
.article-prose ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.article-prose ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--charcoal);
}
.article-prose ul li::before {
  content: "✦";
  position: absolute;
  left: 0; top: 9px;
  color: var(--gold);
  font-size: 12px;
}
.article-prose .prose-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 52px auto;
  color: var(--gold);
}
.article-prose .prose-divider::before,
.article-prose .prose-divider::after {
  content: "";
  width: 70px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.article-prose .prose-divider span { font-size: 14px; }

.article-sharebar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 8vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.article-sharebar .tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-sharebar .tags span {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: #fbf6e8;
}
.article-sharebar .share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.article-sharebar .share a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  color: var(--gold-deep);
  transition: all 0.25s ease;
}
.article-sharebar .share a:hover { background: var(--gold); color: var(--emerald-deep); border-color: var(--gold); }

/* related articles reuse .journal / .articles-grid inside a parchment-deep band */
.article-related {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
}

/* ---------- Azhar Projects · Timeline preview ---------- */
.projects {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
}
.projects > .container { position: relative; z-index: 1; }
.tl-preview {
  position: relative;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbf6e8 0%, var(--parchment) 100%);
  padding: 36px 40px 0;
  margin-top: 8px;
  display: block;
  color: inherit;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.tl-preview:hover {
  border-color: var(--gold);
  box-shadow: 0 34px 70px -38px rgba(20, 61, 49, 0.45);
  transform: translateY(-3px);
}
.tl-legend {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.tl-legend .key { display: inline-flex; align-items: center; gap: 10px; }
.tl-legend .sw { width: 16px; height: 14px; flex-shrink: 0; }
.tl-legend .sw.caliphate { background: var(--emerald-deep); }
.tl-legend .sw.dynasty { border: 1px solid var(--gold-deep); background: rgba(201, 168, 76, 0.14); }
.tl-legend .sw.scholar { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.tl-legend .hint { margin-left: auto; color: var(--gold-deep); letter-spacing: 0.18em; }

.tl-track {
  position: relative;
  height: 318px;
  margin-top: 30px;
  pointer-events: none;
}
.tl-row { position: absolute; left: 0; right: 0; height: 44px; }
.tl-bar {
  position: absolute;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(44, 42, 38, 0.05) 0 7px, transparent 7px 14px);
}
.tl-bar .yr {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.75;
}
.tl-bar.dynasty-gold { border-color: var(--gold-deep); color: #8a6d26; background-color: rgba(201, 168, 76, 0.16); }
.tl-bar.dynasty-green { border-color: #3f6f58; color: #2c5341; background-color: rgba(31, 86, 69, 0.13); }
.tl-bar.dynasty-clay { border-color: #b9794e; color: #944f2c; background-color: rgba(185, 121, 78, 0.13); }
.tl-bar.dynasty-peach { border-color: #c79068; color: #9c5a32; background-color: rgba(199, 144, 104, 0.15); }
.tl-bar.spine {
  background-color: var(--emerald-deep);
  background-image: none;
  border-color: var(--emerald-deep);
  color: var(--parchment);
}
.tl-bar.spine.faded { background-image: repeating-linear-gradient(135deg, rgba(245, 239, 226, 0.07) 0 8px, transparent 8px 16px); }
.tl-bar.spine .yr { color: var(--gold-soft); opacity: 1; }
.tl-bar.small { font-size: 13px; padding: 0 10px; gap: 6px; justify-content: center; }

.tl-axis {
  position: absolute;
  left: 0; right: 0; bottom: 70px;
  height: 1px;
  background: var(--rule);
}
.tl-tick {
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--charcoal-soft);
  padding-top: 14px;
}
.tl-tick::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 8px;
  background: var(--rule);
  transform: translateX(-50%);
}
.tl-scholar {
  position: absolute;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-scholar .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--gold);
  margin-bottom: 8px;
}
.tl-scholar .stem {
  position: absolute;
  bottom: 42px;
  width: 1px; height: 30px;
  background: var(--gold);
  opacity: 0.5;
}
.tl-scholar .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--gold-deep);
  background: var(--parchment);
  padding: 7px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--emerald-deep);
  white-space: nowrap;
}
.tl-scholar .chip .yr { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.1em; color: var(--gold-deep); }

.tl-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(245, 239, 226, 0) 0%, var(--parchment) 78%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.tl-open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  padding: 15px 30px;
  background: var(--gold);
  color: var(--emerald-deep);
  border: 1px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.25s ease;
}
.tl-preview:hover .tl-open {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 14px 34px -14px rgba(164, 132, 47, 0.6);
}
.tl-open .arrow { transition: transform 0.25s ease; }
.tl-preview:hover .tl-open .arrow { transform: translateX(4px); }

/* related articles reuse .journal / .articles-grid inside a parchment-deep band */
.article-related-anchor {}

/* ---------- Journal listing / category page ---------- */
.listing-hero {
  background: var(--emerald-deep);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.listing-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("patterns/zellige.svg");
  background-size: 300px 300px;
  opacity: 0.1;
  z-index: 0;
}
.listing-hero .vignette {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(800px 460px at 78% 0%, rgba(201, 168, 76, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(13, 42, 34, 0.25) 0%, var(--emerald-deep) 100%);
  pointer-events: none;
}
.listing-hero .container {
  position: relative; z-index: 2;
  padding: clamp(48px, 7vw, 84px) var(--pad) clamp(48px, 7vw, 80px);
  text-align: center;
}
.listing-hero .section-label { color: var(--gold); margin-bottom: 22px; }
.listing-hero .section-label::before,
.listing-hero .section-label::after { background: var(--gold); }
.listing-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05;
  font-weight: 500;
  color: var(--parchment);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.listing-hero h1 em { font-style: italic; color: var(--gold-soft); }
.listing-hero .standfirst {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  color: rgba(245, 239, 226, 0.82);
  max-width: 600px;
  margin: 0 auto 40px;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(245, 239, 226, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 4px 4px 4px 20px;
}
.search-bar svg { color: var(--gold-soft); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--parchment);
  font-family: var(--font-display);
  font-size: 19px;
  padding: 14px 0;
}
.search-bar input::placeholder { color: rgba(245, 239, 226, 0.5); font-style: italic; }
.search-bar button {
  background: var(--gold);
  color: var(--emerald-deep);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 22px;
  transition: background 0.25s ease;
}
.search-bar button:hover { background: var(--gold-soft); }

/* filter / category bar */
.filter-bar {
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 88px;
  z-index: 20;
}
.filter-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}
.filter-bar .lbl {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-right: 8px;
}
.chip {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal-soft);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.chip:hover { border-color: var(--gold); color: var(--emerald); }
.chip.active {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: var(--gold-soft);
}

/* listing body */
.listing {
  background: var(--parchment);
  position: relative;
}
.listing .container { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(72px, 10vw, 120px); }
.listing-count {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.listing-count .now { color: var(--emerald-deep); }
.listing-count .line { flex: 1; height: 1px; background: var(--rule); }

/* featured lead article (wide horizontal card) */
.feature-lead {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbf6e8 0%, var(--parchment) 100%);
  margin-bottom: 48px;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-lead:hover { border-color: var(--gold); box-shadow: 0 28px 60px -34px rgba(20, 61, 49, 0.4); }
.feature-lead .thumb {
  position: relative;
  min-height: 340px;
  background:
    repeating-linear-gradient(135deg, rgba(201, 168, 76, 0.09) 0 10px, rgba(201, 168, 76, 0.02) 10px 20px),
    var(--parchment-deep);
  display: grid;
  place-items: center;
  border-right: 1px solid var(--rule);
}
.feature-lead .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-lead .thumb .ph {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); text-align: center; line-height: 1.8;
}
.feature-lead .thumb .ph span { display: block; }
.feature-lead .lead-tag {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--emerald-deep); background: var(--gold); padding: 6px 12px;
}
.feature-lead .body {
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-lead .kicker {
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 18px;
}
.feature-lead h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.12; color: var(--emerald-deep);
  margin: 0 0 16px; letter-spacing: -0.01em;
}
.feature-lead p {
  font-size: 18px; line-height: 1.65; color: var(--charcoal-soft); margin: 0 0 26px;
}
.feature-lead .meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.feature-lead .meta .sep { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.feature-lead .stretch-link { position: absolute; inset: 0; z-index: 2; }

/* empty state */
.listing-empty {
  display: none;
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--rule);
}
.listing-empty.show { display: block; }
.listing-empty .ar {
  font-family: var(--font-arabic); font-size: 40px; color: var(--gold-deep); direction: rtl; margin-bottom: 18px;
}
.listing-empty p { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--charcoal-soft); margin: 0; }

/* pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 64px;
}
.pagination a, .pagination span {
  min-width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.1em;
  border: 1px solid var(--rule);
  color: var(--charcoal-soft);
  padding: 0 14px;
  transition: all 0.22s ease;
}
.pagination a:hover { border-color: var(--gold); color: var(--emerald); }
.pagination .current { background: var(--emerald-deep); border-color: var(--emerald-deep); color: var(--gold-soft); }
.pagination .ends { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- 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; }
  .articles-grid { grid-template-columns: 1fr; gap: 28px; max-width: 480px; margin: 0 auto; }
  .journal-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .tl-preview { padding: 28px 22px 0; }
  .tl-track { height: 300px; }
  .tl-bar { font-size: 15px; padding: 0 10px; gap: 8px; }
  .tl-bar .yr { display: none; }
  .tl-legend { gap: 18px; }
  .tl-legend .hint { display: none; }
  .feature-lead { grid-template-columns: 1fr; }
  .feature-lead .thumb { min-height: 240px; border-right: none; border-bottom: 1px solid var(--rule); }
  .filter-bar { position: static; }
}
@media (max-width: 720px) {
  .topbar { display: none; }
  .pages-bar .container { height: auto; padding: 10px 0; flex-direction: column; gap: 10px; align-items: flex-start; }
  .pages-bar .pages-links { flex-wrap: wrap; gap: 14px 20px; }
  .article-feature { margin-top: -36px; }
  .article-hero .byline { flex-wrap: wrap; }
  .article-sharebar { flex-direction: column; align-items: flex-start; }
  .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; }
}

/* ===================================================================
   Consolidation pass — 8 September 2026
   =================================================================== */

/* These three values were previously applied at runtime by
   tweaks-panel.jsx, a prototyping panel that was shipping to every
   visitor along with a development build of React and an in-browser
   Babel compiler. The panel has been removed; its settings are baked
   in here so the site renders exactly as it did before.
   The commented values are the original stylesheet defaults — restore
   them to get the more muted gold and the visible hero pattern back. */
:root {
  --gold:      oklch(0.74 0.18 40);   /* was #C9A84C */
  --gold-soft: oklch(0.82 0.14 40);   /* was #d9bd6e */
  --gold-deep: oklch(0.58 0.16 40);   /* was #a4842f */
}
.hero-bg { opacity: 0; }              /* was 0.18 */

/* The logo had no sizing rule outside the 720px breakpoint, so on any
   screen wider than that it rendered at its natural 420x220 inside an
   88px-tall nav bar. The mobile rule also forced 160x44, which does not
   match the logo's 21:11 aspect ratio and squashed it. */
.brand-logo  { height: 56px; width: auto; display: block; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
@media (max-width: 720px) {
  .nav .brand-logo { height: 44px; width: auto; }
}
