/* ==========================================================================
   Young Scholars School — Official Website Stylesheet
   Palette inspired directly by the School Emblem:
   - Emerald & Forest Green (Outer Crest & Motto Ring)
   - Soft Mint Botanical Tint (Inner Crest Field)
   - Warm Sunlight Gold (Iqra Book Rays)
   - Iqra Crimson Accent ("اقرأ" & Key Academic Highlights)
   - Deep Obsidian Charcoal ("SEEK KNOWLEDGE, RULE THE WORLD" Ribbon)
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --green-950: #052e18;
  --green-900: #064e27;
  --green-800: #0a6835;
  --green-700: #0b7a3e;
  --green-600: #11944c;
  --green-100: #e5f3df;
  --green-50: #f2f9ee;

  /* Logo Accents */
  --gold-600: #b87b1e;
  --gold-500: #d1932e;
  --gold-400: #e7b55a;
  --gold-100: #fdf5e4;
  --crimson-600: #b93829;
  --crimson-100: #fcecea;

  /* Neutrals & Surfaces */
  --ink-950: #101913;
  --ink-800: #223026;
  --ink-600: #46574b;
  --ink-500: #607065;
  --border-light: #dce6d9;
  --border-medium: #c7d7c2;
  --surface-paper: #fafcf9;
  --surface-white: #ffffff;
  --surface-cream: #f5f7f1;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  /* Shadows & Radii */
  --shadow-xs: 0 1px 3px rgba(10, 40, 20, 0.06);
  --shadow-sm: 0 4px 14px rgba(6, 78, 39, 0.07);
  --shadow-md: 0 12px 30px rgba(6, 60, 28, 0.10);
  --shadow-lg: 0 22px 52px rgba(5, 46, 24, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  /* Layout */
  --container: 1200px;
  --header-height: 78px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background-color: var(--surface-paper);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Subtle Islamic Geometric Background Pattern */
.geo-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230b7a3e' stroke-opacity='0.055' stroke-width='1'%3E%3Cpath d='M32 4 L40 24 L60 32 L40 40 L32 60 L24 40 L4 32 L24 24 Z'/%3E%3Ccircle cx='32' cy='32' r='12'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   Top Utility Strip
   ========================================================================== */
.top-strip {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(231, 181, 90, 0.22);
}

.top-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.5rem 0;
}

.top-strip__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.top-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-strip__item svg {
  width: 15px;
  height: 15px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.top-strip__link {
  transition: color var(--transition);
}

.top-strip__link:hover {
  color: var(--gold-400);
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(250, 252, 249, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  flex-shrink: 0;
}

.brand__logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 3px 8px rgba(6, 78, 39, 0.18));
  transition: transform var(--transition);
}

.brand:hover .brand__logo {
  transform: scale(1.04);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--green-950);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__motto {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-top: 2px;
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.45rem 0.68rem;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--ink-800);
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--green-800);
  background: var(--green-50);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
  color: var(--green-900);
}

/* Mobile Drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(16, 25, 19, 0.45);
  backdrop-filter: blur(4px);
  z-index: 999;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile__panel {
  background: var(--surface-white);
  padding: 1.25rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile__link {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-800);
}

.nav-mobile__link:hover {
  background: var(--green-50);
  color: var(--green-800);
}

.nav-mobile__cta {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 0.58rem 1.05rem;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(6, 78, 39, 0.24);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 78, 39, 0.32);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-600) 100%);
  color: var(--ink-950);
  box-shadow: 0 6px 18px rgba(184, 123, 30, 0.24);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 123, 30, 0.34);
}

.btn--outline {
  background: var(--surface-white);
  color: var(--green-900);
  border-color: var(--border-medium);
}

.btn--outline:hover {
  background: var(--green-50);
  border-color: var(--green-700);
  transform: translateY(-1px);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ==========================================================================
   Section Headers & Badges
   ========================================================================== */
.section {
  padding: 5.25rem 0;
}

.section--tinted {
  background: var(--surface-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section--emerald {
  background: linear-gradient(155deg, var(--green-950) 0%, var(--green-900) 58%, #0c5f33 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid rgba(11, 122, 62, 0.16);
  margin-bottom: 0.9rem;
}

.eyebrow--gold {
  background: rgba(231, 181, 90, 0.18);
  color: var(--gold-400);
  border-color: rgba(231, 181, 90, 0.35);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson-600);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-950);
  margin-bottom: 0.85rem;
}

.section--emerald .section-title {
  color: #fff;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-600);
  line-height: 1.72;
}

.section--emerald .section-lead {
  color: rgba(255, 255, 255, 0.84);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 3.75rem 0 4.25rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(197, 229, 186, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 8% 82%, rgba(231, 181, 90, 0.14) 0%, transparent 40%),
    linear-gradient(180deg, #f3f9f0 0%, var(--surface-paper) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3rem;
}

.hero__arabic {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.hero__iqra {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--crimson-600);
  background: var(--crimson-100);
  padding: 0.05rem 0.65rem;
  border-radius: 999px;
  line-height: 1.45;
}

.hero__badge-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--green-900);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  color: var(--ink-950);
  letter-spacing: -0.015em;
  margin-bottom: 1.15rem;
}

.hero__title span {
  color: var(--green-700);
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--ink-600);
  max-width: 600px;
  margin-bottom: 1.8rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-800);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--green-700);
  flex-shrink: 0;
}

/* Hero Visual Composition */
.hero__visual {
  position: relative;
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--green-950);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface-white);
  aspect-ratio: 4 / 3;
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__frame-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.25rem 1.25rem 1.05rem;
  background: linear-gradient(to top, rgba(5, 46, 24, 0.90), rgba(5, 46, 24, 0));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.hero__frame-caption {
  font-size: 0.88rem;
  font-weight: 600;
}

.hero__frame-caption small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
}

.hero__floating-crest {
  position: absolute;
  top: -16px;
  right: -12px;
  background: var(--surface-white);
  border-radius: 50%;
  padding: 7px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold-400);
  width: 88px;
  height: 88px;
  z-index: 2;
}

.hero__floating-crest img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero__mini-card {
  margin-top: 1rem;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.hero__mini-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.hero__mini-icon svg {
  width: 22px;
  height: 22px;
}

.hero__mini-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-950);
  line-height: 1.25;
}

.hero__mini-card span {
  font-size: 0.78rem;
  color: var(--ink-600);
}

/* ==========================================================================
   Stats / Key Highlights Band
   ========================================================================== */
.highlights-bar {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.highlight-pill {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.highlight-pill:hover {
  transform: translateY(-3px);
  border-color: var(--green-600);
  box-shadow: var(--shadow-sm);
}

.highlight-pill__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--green-50);
  color: var(--green-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.highlight-pill__icon--gold {
  background: var(--gold-100);
  color: var(--gold-600);
}

.highlight-pill__icon svg {
  width: 22px;
  height: 22px;
}

.highlight-pill h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 0.2rem;
}

.highlight-pill p {
  font-size: 0.84rem;
  color: var(--ink-600);
  line-height: 1.45;
}

/* ==========================================================================
   About & Principal's Message
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.25rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: var(--surface-white);
}

.about-media__main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
}

.about-media__caption {
  padding: 1rem 1.25rem;
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.about-media__caption strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink-950);
}

.about-media__caption span {
  font-size: 0.82rem;
  color: var(--ink-600);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.principal-quote {
  margin: 1.5rem 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--green-50);
  border-left: 4px solid var(--green-700);
  position: relative;
}

.principal-quote p {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-800);
  margin-bottom: 0.75rem;
}

.principal-quote footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-900);
}

.affiliation-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.affiliation-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.affiliation-item svg {
  width: 20px;
  height: 20px;
  color: var(--green-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.affiliation-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-950);
}

.affiliation-item span {
  font-size: 0.81rem;
  color: var(--ink-600);
}

/* ==========================================================================
   Islamic Ethos & Student Tarbiyat (Emerald Showcase Section)
   ========================================================================== */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ethos-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.ethos-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(231, 181, 90, 0.55);
}

.ethos-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ethos-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.ethos-card:hover .ethos-card__media img {
  transform: scale(1.05);
}

.ethos-card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(5, 46, 24, 0.86);
  color: var(--gold-400);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(231, 181, 90, 0.35);
}

.ethos-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.ethos-card__urdu {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: var(--gold-400);
  font-weight: 700;
}

.ethos-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: #fff;
  line-height: 1.28;
}

.ethos-card p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.ethos-card__points {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
}

.ethos-card__points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ethos-card__points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  flex-shrink: 0;
}

/* ==========================================================================
   Academics & Programs (Playgroup to Matric + Hifz)
   ========================================================================== */
.academics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.program-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-700), var(--gold-400));
  opacity: 0.85;
}

.program-card--featured::before {
  background: linear-gradient(90deg, var(--gold-500), var(--crimson-600));
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-600);
}

.program-card__level {
  display: inline-block;
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.program-card--featured .program-card__level {
  background: var(--gold-100);
  color: var(--gold-600);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink-950);
  margin-bottom: 0.6rem;
}

.program-card p {
  font-size: 0.91rem;
  color: var(--ink-600);
  margin-bottom: 1.15rem;
}

.program-card__list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-800);
  font-weight: 500;
}

.program-card__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.program-card__list svg {
  width: 16px;
  height: 16px;
  color: var(--green-700);
  flex-shrink: 0;
}

/* ==========================================================================
   Campus Facilities Strip (Labs, Tarbiyat, Discipline)
   ========================================================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 2.5rem;
}

.facility-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.facility-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.facility-card__icon svg {
  width: 22px;
  height: 22px;
}

.facility-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 0.25rem;
}

.facility-card p {
  font-size: 0.87rem;
  color: var(--ink-600);
}

/* ==========================================================================
   Interactive Photo Gallery + Lightbox
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  padding: 0.58rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--surface-white);
  color: var(--ink-800);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--green-700);
  color: var(--green-800);
  background: var(--green-50);
}

.filter-btn.is-active {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
  box-shadow: 0 4px 12px rgba(6, 78, 39, 0.22);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-950);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 46, 24, 0.88) 0%, rgba(5, 46, 24, 0.15) 48%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  color: #fff;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  background: linear-gradient(to top, rgba(5, 46, 24, 0.94) 0%, rgba(5, 46, 24, 0.28) 58%, transparent 100%);
}

.gallery-item__cat {
  display: inline-block;
  align-self: flex-start;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(231, 181, 90, 0.92);
  color: var(--ink-950);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gallery-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 16, 11, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__dialog {
  position: relative;
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img-wrap {
  position: relative;
  width: 100%;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-height: 76vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 780px;
  color: #fff;
  gap: 1rem;
}

.lightbox__caption {
  font-size: 0.96rem;
  font-weight: 600;
}

.lightbox__caption span {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--gold-400);
  color: var(--ink-950);
  font-size: 0.74rem;
  font-weight: 700;
}

.lightbox__counter {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.lightbox__btn {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color var(--transition), transform var(--transition);
}

.lightbox__btn:hover {
  background: var(--green-700);
  transform: scale(1.06);
}

.lightbox__btn--close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__btn--prev {
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--next {
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__btn--prev:hover,
.lightbox__btn--next:hover {
  transform: translateY(-50%) scale(1.06);
}

/* ==========================================================================
   Admissions Overview (Informational — No Portals)
   ========================================================================== */
.admissions-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: stretch;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.step-card__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-950);
  margin-bottom: 0.2rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--ink-600);
}

.admissions-panel {
  background: linear-gradient(155deg, var(--green-900) 0%, var(--green-950) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.admissions-panel h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
}

.admissions-panel > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.docs-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.docs-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.94);
}

.docs-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.admissions-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Contact & Location Map Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.25rem;
  align-items: stretch;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: var(--green-600);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink-950);
}

.contact-card small {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-600);
  margin-top: 0.2rem;
}

.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--surface-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
}

.map-visual {
  position: relative;
  flex: 1;
  min-height: 290px;
  padding: 2rem;
  background:
    radial-gradient(circle at 65% 42%, rgba(17, 148, 76, 0.16) 0%, transparent 45%),
    linear-gradient(135deg, #edf6e9 0%, #f7faf5 55%, #eef4eb 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.map-visual__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(6, 78, 39, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6, 78, 39, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.map-visual__road {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 52%;
  height: 14px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 2px solid var(--border-medium);
  border-bottom: 2px solid var(--border-medium);
  transform: rotate(-7deg);
  pointer-events: none;
}

.map-visual__road-label {
  position: absolute;
  left: 1.5rem;
  top: 44%;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-medium);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-600);
  transform: rotate(-7deg);
}

.map-visual__pin {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-block: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-white);
  border: 2px solid var(--green-700);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem;
  box-shadow: var(--shadow-md);
  max-width: 340px;
}

.map-visual__pin-crest {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  margin-bottom: 0.7rem;
  box-shadow: var(--shadow-xs);
}

.map-visual__pin strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-950);
  margin-bottom: 0.25rem;
}

.map-visual__pin span {
  font-size: 0.88rem;
  color: var(--ink-600);
  margin-bottom: 0.9rem;
}

.map-card__footer {
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface-white);
}

.map-card__footer span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-800);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.84);
  padding: 4rem 0 3.75rem;
  border-top: 4px solid var(--green-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
}

.footer-brand span {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 340px;
}

.site-footer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ==========================================================================
   Floating WhatsApp & Back to Top
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.36);
  transition: transform var(--transition), background-color var(--transition);
}

.whatsapp-float:hover {
  background: #15803d;
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero__grid,
  .about-grid,
  .admissions-wrap,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero__floating-crest {
    top: 12px;
    right: 12px;
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 820px) {
  .top-strip {
    display: none;
  }

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

  .ethos-grid,
  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.75rem 0;
  }

  .hero {
    padding: 2.5rem 0 3.25rem;
  }

  .highlights-bar,
  .academics-grid,
  .affiliation-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn--primary {
    display: none;
  }

  .hero__mini-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
  }

  .lightbox__btn--prev {
    left: 0.5rem;
  }

  .lightbox__btn--next {
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
