/* ==========================================================================
   Athahseen Quran Academy (أكاديمية التحسين للدراسات القرآنية)
   Modern Institutional Platform Theme
   Palette: Deep Midnight Navy (#0a1f38), Brand Royal Blue (#1d58d8), Soft Ice Ground (#f6f9fc), Pure White (#ffffff), Madinah Gold (#c59b27)
   ========================================================================== */

:root {
  /* Color Combo from Provided Architecture */
  --bg: #f8fafc;
  --bg-pure: #ffffff;
  --surface: #f0f5fb;
  --surface-ice: #e8f1fc;
  --surface-card: #ffffff;

  --ink: #0a1f38;
  --muted: #1e293b;
  --ink-secondary: #334155;

  --royal-blue: #1d58d8;
  --royal-blue-hover: #1646b0;
  --royal-blue-tint: #eff6ff;
  --royal-gradient: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);

  --accent-gold: #c59b27;
  --accent-gold-hover: #ad8318;
  --gold-tint: #fef9ed;

  --deep-navy: #0a1f38;
  --deep-navy-card: #0f2746;
  --deep-navy-surface: #14325a;

  /* Typography: Plus Jakarta Sans for crisp modern clarity */
  --font-display: 'Plus Jakarta Sans', 'Alexandria', sans-serif;
  --font-text: 'Plus Jakarta Sans', 'Alexandria', sans-serif;
  --font-arabic-quran: 'Amiri', serif;
  --font-malayalam: 'Noto Sans Malayalam', sans-serif;

  /* Strict 5 Size Steps (clamp values across 390px, 768px, 1440px) */
  --step-small: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);        /* Step 1: 16px - 17px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);      /* Step 2: 17px - 19px */
  --step-lead: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);         /* Step 3: ~20-24px */
  --step-h2: clamp(1.75rem, 1.35rem + 1.5vw, 2.35rem);          /* Step 4: ~28-38px */
  --step-display: clamp(2.35rem, 1.2rem + 3.8vw, 4.75rem);       /* Step 5: ~38-72px */

  /* Layout Frame & Grid */
  --margin: 24px;
  --gutter: 24px;
  --section-gap: clamp(4.5rem, 7vw, 6.5rem);
  --container-max: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-subtle: none;
  --shadow-float: none;
  --border-subtle: none;

  /* Motion Curves */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 180ms;
}

/* --------------------------------------------------------------------------
   Motion Layer & Entrances
   -------------------------------------------------------------------------- */
.reveal-elem {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

html[dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] {
  direction: ltr;
}

/* Malayalam Typography & Flow */
html[lang="ml"] {
  font-family: var(--font-malayalam);
}

html[lang="ml"] body,
html[lang="ml"] button,
html[lang="ml"] input,
html[lang="ml"] select,
html[lang="ml"] a {
  font-family: var(--font-malayalam);
  letter-spacing: normal;
}

html[lang="ml"] h1,
html[lang="ml"] h2,
html[lang="ml"] h3,
html[lang="ml"] h4,
html[lang="ml"] .hero-brand-title,
html[lang="ml"] .section-heading-title {
  font-family: var(--font-malayalam);
  letter-spacing: normal;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

html[lang="ml"] .hero-brand-title {
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
}

html[lang="ml"] .site-nav {
  gap: clamp(0.5rem, 0.85vw, 1rem);
}

html[lang="ml"] .nav-link {
  font-size: clamp(0.8rem, 0.75rem + 0.15vw, 0.875rem);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
  overflow-wrap: break-word;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--royal-blue);
  outline-offset: 3px;
}

::selection {
  background-color: var(--royal-blue);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Container & Section Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin);
  box-sizing: border-box;
}

.section-padding {
  padding-block: var(--section-gap);
}

.section-header-block {
  text-align: center;
  max-width: 68ch;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-top-kicker {
  display: inline-block;
  font-size: var(--step-small);
  font-weight: 700;
  color: var(--royal-blue);
  background-color: var(--royal-blue-tint);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.section-heading-title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtext {
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Buttons & Micro-interactions
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-text);
  font-size: var(--step-small);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--t-hover) var(--ease-out);
  cursor: pointer;
  text-align: center;
}

.btn-royal-solid {
  background-color: var(--royal-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='60' viewBox='0 0 200 60'%3E%3Cdefs%3E%3ClinearGradient id='btnGlow' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%232563eb'/%3E%3Cstop offset='100%25' stop-color='%231d4ed8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='200' height='60' rx='10' fill='url(%23btnGlow)'/%3E%3C/svg%3E");
  background-size: cover;
  color: #ffffff;
}

.btn-royal-solid:hover {
  background-color: var(--royal-blue-hover);
  background-image: none;
  transform: translateY(-1px);
}

.btn-royal-outline {
  background-color: #ffffff;
  color: var(--royal-blue);
  border: 2px solid rgba(29, 88, 216, 0.3);
}

.btn-royal-outline:hover {
  background-color: var(--royal-blue-tint);
  border-color: var(--royal-blue);
}

.btn-gold-accent {
  background-color: var(--accent-gold);
  color: #0a1f38;
  font-weight: 800;
}

.btn-gold-accent:hover {
  background-color: var(--accent-gold-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Site Header: Modern Bar with Frosted Backdrop
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1360px;
  width: 100%;
  min-height: 70px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.9vw, 1.25rem);
  flex-shrink: 1;
}

.nav-link {
  font-size: clamp(0.85rem, 0.78rem + 0.16vw, 0.92rem);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color var(--t-hover) var(--ease-out);
}

.nav-link:hover {
  color: var(--royal-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.only-wide {
  display: inline-flex;
  white-space: nowrap;
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface);
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  gap: 0.2rem;
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.3rem 0.65rem;
  font-size: var(--step-small);
  font-weight: 700;
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--t-hover) var(--ease-out);
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--royal-blue);
}

.menu-toggle {
  display: none;
  color: var(--ink);
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION: Modern Centered Platform Hero
   -------------------------------------------------------------------------- */
.hero-modern-section {
  position: relative;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' viewBox='0 0 1440 900'%3E%3Cdefs%3E%3CradialGradient id='heroGlow' cx='50%25' cy='0%25' r='85%25'%3E%3Cstop offset='0%25' stop-color='%23edf5fc'/%3E%3Cstop offset='50%25' stop-color='%23f4f8fd'/%3E%3Cstop offset='100%25' stop-color='%23f8fafc'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1440' height='900' fill='url(%23heroGlow)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center top;
  padding-top: clamp(2.25rem, 3.8vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-emblem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 18px;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.hero-emblem-img {
  height: clamp(52px, 5vw, 68px);
  width: auto;
  object-fit: contain;
}

.hero-headings-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: clamp(0.9rem, 1.3vw, 1.25rem);
}

.hero-welcome-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.35rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.hero-brand-title {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 800;
  color: var(--royal-blue);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-subheading-lead {
  font-size: var(--step-lead);
  color: var(--ink);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: clamp(1.35rem, 2.2vw, 1.85rem);
}

.city-royal-accent {
  color: var(--royal-blue);
  font-weight: 800;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.25rem, 3.5vw, 3.25rem);
}

.btn-hero-primary {
  padding: 1rem 2.25rem;
  font-size: var(--step-body);
}

.btn-hero-secondary {
  padding: 1rem 2.25rem;
  font-size: var(--step-body);
}

/* Elevated Hero Showcase Visual */
.hero-showcase-wrapper {
  width: 100%;
  max-width: 1160px;
}

.showcase-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.showcase-main-photo {
  width: 100%;
  height: clamp(320px, 42vw, 540px);
  object-fit: cover;
  filter: contrast(1.05);
}

.showcase-pill-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--deep-navy);
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  max-width: 90%;
}

.pulse-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  flex-shrink: 0;
}

.showcase-pill-text {
  font-size: var(--step-small);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   SECTION 1: Pillars Cards / Editorial Columns
   -------------------------------------------------------------------------- */
.section-pillars {
  background-color: var(--surface);
}

.pillars-editorial-columns,
.pillars-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.pillar-column-item,
.pillar-card {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  background-color: #ffffff;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}

.pillar-column-item:hover,
.pillar-card:hover {
  transform: translateY(-3px);
  background-color: #f7fafd;
}

.pillar-column-title,
.pillar-card-title {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.pillar-column-desc,
.pillar-card-desc {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   SECTION 2: Core Distinctions
   -------------------------------------------------------------------------- */
.section-distinctions {
  background-color: var(--surface);
}

.distinctions-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.distinctions-statement-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.distinctions-lead-text {
  font-size: var(--step-lead);
  color: var(--muted);
  line-height: 1.55;
  max-width: 44ch;
}

.madinah-scholarly-quote {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-inline-start: 4px solid var(--royal-blue);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.madinah-scholarly-quote p {
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.madinah-scholarly-quote cite {
  font-size: var(--step-small);
  color: var(--ink-secondary);
  font-style: normal;
}

.distinctions-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.distinction-card-item {
  background-color: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  transition: transform var(--t-hover) var(--ease-out);
}

.distinction-card-item:hover {
  transform: translateX(4px);
}

.distinction-accent-bar {
  width: 4px;
  background-color: var(--royal-blue);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.distinction-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.distinction-item-title {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.distinction-item-desc {
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECTION 3: Educational Stages & Curriculum Suite
   -------------------------------------------------------------------------- */
.section-stages {
  background-color: var(--bg-pure);
}

.stages-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.85rem);
}

.stage-matrix-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.35rem) clamp(1.5rem, 2.2vw, 2.15rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
  position: relative;
}

.stage-matrix-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 88, 216, 0.35);
  box-shadow: 0 14px 34px -4px rgba(29, 88, 216, 0.09);
}

.stage-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stage-chip-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--royal-blue);
  background-color: var(--royal-blue-tint);
  border: 1px solid rgba(29, 88, 216, 0.16);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1.2;
}

.stage-domain-tag {
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.stage-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.stage-card-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 232, 240, 1) 0%, rgba(226, 232, 240, 0.35) 100%);
  margin: 1.2rem 0 1.35rem 0;
}

html[dir="rtl"] .stage-card-divider {
  background: linear-gradient(270deg, rgba(226, 232, 240, 1) 0%, rgba(226, 232, 240, 0.35) 100%);
}

.stage-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-highlights-list li {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  position: relative;
  padding-inline-start: 1.35rem;
}

.stage-highlights-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--royal-blue);
}

html[dir="rtl"] .stage-highlights-list li::before {
  left: auto;
  right: 0;
}

/* --------------------------------------------------------------------------
   SECTION 4: Placement Diagnostic Track
   -------------------------------------------------------------------------- */
.section-placement {
  background-color: var(--surface);
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

.section-placement .section-header-block {
  margin-bottom: clamp(1.15rem, 2vw, 1.65rem);
}

.placement-interactive-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.35rem, 2.2vw, 2rem);
  background-color: #ffffff;
  padding: clamp(1.4rem, 2.2vw, 2.15rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  align-items: stretch;
}

.placement-controls-area {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.stepper-step-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.step-badge-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

.stepper-options-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.step-choice-btn {
  padding: 0.65rem 0.65rem;
  font-size: clamp(0.76rem, 0.72rem + 0.14vw, 0.84rem);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  background-color: var(--bg);
  color: var(--ink-secondary);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  line-height: 1.35;
  transition: all var(--t-hover) var(--ease-out);
  cursor: pointer;
}

html[dir="rtl"] .step-choice-btn {
  text-align: center;
}

.step-choice-btn:hover {
  background-color: var(--surface-ice);
  color: var(--ink);
  border-color: rgba(29, 88, 216, 0.25);
}

.step-choice-btn.active {
  background-color: var(--royal-blue);
  color: #ffffff;
  border-color: var(--royal-blue);
  box-shadow: 0 4px 12px -2px rgba(29, 88, 216, 0.35);
  font-weight: 700;
}

/* Result Ticket */
.placement-result-card {
  background-color: var(--deep-navy);
  color: #ffffff;
  padding: 1.6rem 1.65rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -4px rgba(10, 31, 56, 0.18);
}

.result-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  justify-content: space-between;
}

.result-chip-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: rgba(96, 165, 250, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  align-self: flex-start;
}

.result-program-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.result-program-desc {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label-tiny {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-value-text {
  font-size: 0.84rem;
  color: #ffffff;
  font-weight: 700;
}

.btn-result-enroll {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   SECTION 5: The Madinah Quranic Journey (Flagship Residency)
   -------------------------------------------------------------------------- */
.section-flagship {
  background-color: var(--bg-pure);
}

.flagship-feature-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: center;
}

.flagship-photo-cover {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.flagship-details-col {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.flagship-lead-text {
  font-size: var(--step-lead);
  color: var(--muted);
  line-height: 1.55;
}

.flagship-scholarly-seal {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-inline-start: 4px solid var(--accent-gold);
  width: 100%;
}

.seal-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--gold-tint);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seal-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.seal-supervisory-heading {
  font-size: var(--step-body);
  font-weight: 700;
  color: var(--ink);
}

.seal-caption-text {
  font-size: var(--step-small);
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   SECTION 6: Eelaf Convocations
   -------------------------------------------------------------------------- */
.section-eelaf {
  background-color: var(--surface);
}

.eelaf-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.eelaf-convocation-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-hover) var(--ease-out);
}

.eelaf-convocation-card:hover {
  transform: translateY(-4px);
}

.convocation-img-frame {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.convocation-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.eelaf-convocation-card:hover .convocation-img-frame img {
  transform: scale(1.04);
}

.convocation-tag-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(10, 31, 56, 0.9);
  color: #ffffff;
  font-size: var(--step-small);
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

html[dir="rtl"] .convocation-tag-badge {
  left: auto;
  right: 1rem;
}

.convocation-card-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.convocation-title {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.convocation-desc {
  font-size: var(--step-body);
  color: var(--muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECTION 7: Final Royal CTA Field
   -------------------------------------------------------------------------- */
.cta-royal-section {
  background-color: var(--deep-navy);
  color: #ffffff;
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 72ch;
  gap: 1.5rem;
}

.cta-sacred-kicker {
  font-size: var(--step-small);
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-hadith-quote {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.cta-supporting-sentence {
  font-size: var(--step-lead);
  color: #cbd7e6;
  line-height: 1.6;
}

.cta-button-wrapper {
  margin-top: 1rem;
}

.cta-action-btn {
  padding: 1.15rem 2.5rem;
  font-size: var(--step-lead);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   SITE FOOTER: Modern Institutional Directory Footer
   -------------------------------------------------------------------------- */
.site-footer-modern {
  background-color: #05101e;
  color: #ffffff;
  padding-block: 5rem 2.5rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.footer-primary-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 44ch;
}

.footer-brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-mission-summary {
  font-size: var(--step-body);
  color: #94a3b8;
  line-height: 1.6;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-column-heading {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  color: #ffffff;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-campus-link {
  font-size: var(--step-body);
  color: #cbd5e1;
}

.footer-nav-link {
  font-size: var(--step-body);
  color: #cbd5e1;
  transition: color var(--t-hover) var(--ease-out);
}

.footer-nav-link:hover {
  color: var(--royal-blue);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-crest-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-crest-symbol {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-rights-caption {
  font-size: var(--step-small);
  color: #94a3b8;
}

.back-to-top-anchor {
  font-size: var(--step-small);
  font-weight: 700;
  color: #cbd5e1;
  transition: color var(--t-hover) var(--ease-out);
}

.back-to-top-anchor:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1220px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .only-wide {
    display: none !important;
  }

  .site-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    padding: 1.75rem var(--margin);
    gap: 1.25rem;
  }

  .pillars-editorial-columns,
  .pillars-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .distinctions-split-layout {
    grid-template-columns: 1fr;
  }

  .stages-matrix-grid,
  .stages-modern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placement-interactive-card {
    grid-template-columns: 1fr;
  }

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

  .eelaf-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-primary-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --margin: 20px;
    --gutter: 16px;
  }

  .pillars-editorial-columns,
  .pillars-cards-grid {
    grid-template-columns: 1fr;
  }

  .stages-matrix-grid,
  .stages-modern-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stepper-options-row {
    grid-template-columns: 1fr;
  }

  .showcase-pill-indicator {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    bottom: 0.85rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background-color: rgba(10, 31, 56, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    gap: 0.55rem;
    justify-content: center;
  }

  .showcase-pill-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.76rem;
    line-height: 1.35;
    text-align: center;
    font-weight: 600;
  }

  .pulse-indicator-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --margin: 16px;
    --gutter: 12px;
  }

  .brand-logo-img {
    height: 42px;
    max-width: 90px;
  }

  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: var(--step-small);
  }

  .hero-emblem-badge {
    padding: 10px;
    border-radius: 16px;
  }

  .hero-emblem-img {
    height: 56px;
  }
}
