/* AIIMS Academy — Premium Design System */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #0b5c42;
  --primary-dark: #063528;
  --primary-light: #0f7a58;
  --secondary-color: #c9a227;
  --secondary-soft: #e8d48b;
  --secondary-dark: #a8841a;
  --text-dark: #121c18;
  --text-light: #5a6b63;
  --bg-light: #f2f7f4;
  --bg-warm: #eaf3ee;
  --white: #ffffff;
  --ink: #0a1f17;
  --shadow: 0 2px 12px rgba(6, 53, 40, 0.06);
  --shadow-md: 0 10px 28px rgba(6, 53, 40, 0.1);
  --shadow-lg: 0 18px 44px rgba(6, 53, 40, 0.14);
  --shadow-xl: 0 28px 56px rgba(6, 53, 40, 0.18);
  --bs-primary: #0b5c42;
  --bs-primary-rgb: 11, 92, 66;
  --radius: 18px;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(11, 92, 66, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(201, 162, 39, 0.05), transparent 50%),
    linear-gradient(180deg, #f6faf8 0%, #ffffff 35%, #f0f6f3 100%);
}

body.page-ready {
  animation: pageIn 0.7s var(--ease-out) both;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.45);
  transition: width 0.05s linear;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 8px 24px rgba(11, 92, 66, 0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, var(--secondary-color), var(--secondary-dark));
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 1.75rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .hero-brand, .hero-title, .hero-subtitle, .hero-buttons,
  .scroll-hint, body.page-ready {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Bootstrap primary */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 6px 20px rgba(11, 92, 66, 0.28);
  transition: all 0.35s var(--ease-out);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11, 92, 66, 0.38);
  border-color: var(--primary-dark) !important;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Navbar */
.navbar {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 1px solid rgba(11, 92, 66, 0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 32px rgba(6, 53, 40, 0.1) !important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-color) !important;
  transition: transform 0.35s var(--ease-out);
  letter-spacing: 0.01em;
  flex-shrink: 0;
  gap: 0.5rem;
}

.navbar-brand:hover { transform: scale(1.03); }

.logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 56px;
  max-height: 48px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.35s ease;
  flex-shrink: 0;
}

.logo-img:hover { box-shadow: 0 6px 18px rgba(11, 92, 66, 0.2); }

/* Desktop: keep brand | links | actions in one horizontal row */
@media (min-width: 992px) {
  .navbar > .container {
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    flex-basis: auto;
    width: auto !important;
  }

  .navbar-expand-lg .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .navbar-expand-lg .navbar-nav .nav-item {
    flex-shrink: 0;
  }

  .navbar-expand-lg .navbar .d-flex.gap-2,
  .navbar-expand-lg .d-flex.gap-2 {
    flex-direction: row !important;
    flex-wrap: nowrap;
    width: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    flex-shrink: 0;
  }
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.94rem;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 28px;
  left: calc(50% - 14px);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: calc(50% - 14px);
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.lang-switcher .dropdown-toggle { min-width: 7.5rem; }
.lang-switcher .dropdown-menu { min-width: 8rem; border-radius: 12px; border: 1px solid rgba(11, 92, 66, 0.1); box-shadow: var(--shadow-md); }
.lang-switcher .dropdown-item.active { background-color: var(--primary-color); color: #fff; }
[dir="rtl"] .lang-switcher .dropdown-menu { text-align: right; }

.btn-large {
  padding: 15px 40px;
  font-size: 1.05rem;
  border-radius: 12px;
  font-weight: 600;
}

.btn-white {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s var(--ease-out);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

.btn-secondary {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.75) !important;
  color: #fff !important;
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--secondary-color) !important;
  color: var(--secondary-soft) !important;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 12px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.35s var(--ease-out);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========== HERO ========== */
.hero {
  color: var(--white);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
}

.hero.hero-page {
  min-height: auto;
  padding: clamp(5.5rem, 12vw, 7.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  background:
    linear-gradient(145deg, rgba(6, 53, 40, 0.94) 0%, rgba(11, 92, 66, 0.88) 50%, rgba(6, 53, 40, 0.95) 100%),
    radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.2), transparent 45%);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.42;
  transform: scale(1.05);
  transform-origin: center center;
  animation: kenBurns 28s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-0.8%, -0.5%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 36, 26, 0.55) 0%, rgba(6, 53, 40, 0.72) 45%, rgba(4, 28, 20, 0.88) 100%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.07'%3E%3Cpath d='M40 0L60 20L40 40L20 20zM0 40L20 60L0 80L-20 60zM80 40L100 60L80 80L60 60zM40 40L60 60L40 80L20 60z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.2));
  z-index: 1;
  pointer-events: none;
}

.hero-ornament {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: spinSlow 60s linear infinite;
}

.hero-ornament::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: 50%;
}

.hero-ornament.left {
  top: 12%;
  left: -80px;
}

.hero-ornament.right {
  bottom: 15%;
  right: -90px;
  animation-direction: reverse;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
  animation: fadeInUp 1s var(--ease-out) both;
}

.hero-brand .gold {
  color: var(--secondary-color);
  font-style: italic;
  font-weight: 500;
}

.hero-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  animation: fadeInUp 1s var(--ease-out) 0.15s both;
}

.hero-accent span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--secondary-color));
}

.hero-accent span:last-child {
  background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.hero-accent i {
  color: var(--secondary-color);
  font-size: 0.7rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 1s var(--ease-out) 0.25s both;
}

.hero.hero-page .hero-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  color: #fff;
}

.hero.hero-page .hero-brand {
  display: none;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2.25rem;
  opacity: 0.9;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 0.01em;
  animation: fadeInUp 1s var(--ease-out) 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--ease-out) 0.55s both;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s var(--ease-out) 0.9s both;
  text-decoration: none;
}

.scroll-hint .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  position: relative;
}

.scroll-hint .mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--secondary-color);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== BISMILLAH / INTRO BAND ========== */
.intro-band {
  padding: 3.5rem 0;
  text-align: center;
  background:
    linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.intro-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230b5c42' fill-opacity='0.03'%3E%3Cpath d='M30 0l8 22H0L22 30 0 38h38l-8 22 8-22h22L38 30l22-8H30z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.intro-arabic {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.intro-band p {
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

/* ========== PILLARS (features — no cards) ========== */
.features {
  background: transparent;
  padding: 5rem 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.5rem;
  position: relative;
}

.pillar {
  text-align: center;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-color);
  background: linear-gradient(145deg, rgba(11, 92, 66, 0.08), rgba(201, 162, 39, 0.1));
  border-radius: 50%;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, color 0.3s ease;
  position: relative;
}

.pillar-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.25);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out);
  transform: scale(0.9);
}

.pillar:hover .pillar-icon {
  transform: translateY(-6px);
  color: var(--secondary-dark);
  box-shadow: 0 12px 28px rgba(11, 92, 66, 0.15);
}

.pillar:hover .pillar-icon::after {
  opacity: 1;
  transform: scale(1);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.65rem;
}

.pillar p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 240px;
  margin: 0 auto;
}

/* Legacy feature-card (inner pages) — lighter treatment */
.features-grid,
.programs-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.programs-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius);
  background: transparent;
  transition: all 0.4s var(--ease-out);
  border: none;
  position: relative;
  box-shadow: none;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  opacity: 0.6;
  transition: width 0.4s ease;
}

.feature-card:hover::before { width: 64px; }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: none;
  border-color: transparent;
}

.feature-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.85rem;
  box-shadow: 0 12px 28px rgba(11, 92, 66, 0.28);
  transition: all 0.4s var(--ease-out);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 16px 36px rgba(11, 92, 66, 0.35);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Stats */
.stats {
  background:
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 9s ease-in-out infinite;
}

.stats::after {
  content: "";
  position: absolute;
  bottom: -45%;
  left: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 11s ease-in-out infinite reverse;
}

.stat-item {
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-out);
  position: relative;
  z-index: 1;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.92;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 1.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 0.75rem;
}

/* Programs */
.programs {
  background:
    radial-gradient(ellipse at top, rgba(11, 92, 66, 0.04), transparent 55%),
    linear-gradient(180deg, #f7faf8 0%, #eef5f1 100%);
  padding: 5rem 0;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.35rem;
  box-shadow: var(--shadow);
  transition: all 0.45s var(--ease-out);
  position: relative;
  border: 1px solid rgba(11, 92, 66, 0.06);
  overflow: hidden;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.program-card:hover::before { transform: scaleX(1); }

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(11, 92, 66, 0.15);
}

.program-card.featured {
  border: 1.5px solid rgba(201, 162, 39, 0.55);
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

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

.program-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 1.35rem;
  transition: transform 0.4s var(--ease-out);
}

.program-card:hover .program-icon {
  transform: rotate(-6deg) scale(1.06);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.program-card > p {
  color: var(--text-light);
  margin-bottom: 1.35rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.program-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.program-features li {
  padding: 0.4rem 0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.program-features i {
  color: var(--primary-color);
  font-size: 0.85rem;
}

/* Testimonials — editorial, not heavy cards */
.testimonials {
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  padding: 5rem 0;
}

.testimonial-card {
  background: transparent;
  padding: 2rem 1.5rem;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  transition: all 0.4s var(--ease-out);
  border: none;
  border-top: 2px solid rgba(201, 162, 39, 0.35);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 0;
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.35;
  font-family: var(--font-display);
  line-height: 1;
}

[dir="rtl"] .testimonial-card::before {
  left: auto;
  right: 0;
  content: "\201D";
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--secondary-color);
}

.stars,
.testimonial-stars {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 92, 66, 0.1);
}

.testimonial-author strong,
.testimonial-author h4 {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
}

.testimonial-author span,
.testimonial-author p {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* Journey strip */
.journey {
  padding: 4.5rem 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.journey::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(201, 162, 39, 0.15), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(11, 92, 66, 0.35), transparent 40%);
  pointer-events: none;
}

.journey-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.journey-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.5), transparent);
}

.journey h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--secondary-soft);
}

.journey p {
  opacity: 0.85;
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

/* CTA */
.cta {
  background:
    linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

.cta::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(4deg); }
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  opacity: 0.95;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0f1a15 0%, #070d0a 100%);
  color: var(--white);
  padding: 4rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--font-display);
  color: var(--secondary-color);
  margin-bottom: 1.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-section h3::after,
.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--secondary-color);
}

[dir="rtl"] .footer-section h3::after,
[dir="rtl"] .footer-section h4::after {
  left: auto;
  right: 0;
}

.footer-section p {
  color: #a8b5ae;
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-section ul,
.footer-links,
.footer-contact { list-style: none; }

.footer-section ul li,
.footer-links li,
.footer-contact li {
  margin-bottom: 0.7rem;
  transition: transform 0.3s ease;
}

.footer-section ul li:hover,
.footer-links li:hover,
.footer-contact li:hover {
  transform: translateX(5px);
}

[dir="rtl"] .footer-section ul li:hover,
[dir="rtl"] .footer-links li:hover {
  transform: translateX(-5px);
}

.footer-section ul li a,
.footer-links li a {
  color: #a8b5ae;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
}

.footer-section ul li a:hover,
.footer-links li a:hover {
  color: var(--secondary-color);
}

.contact-info li,
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a8b5ae;
  font-size: 0.95rem;
}

.contact-info i,
.footer-contact i {
  color: var(--secondary-color);
  width: 20px;
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--ink);
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  color: #889990;
  font-size: 0.9rem;
}

.footer-bottom p { margin: 0; }

/* Images & media always fluid */
img:not(.logo-img):not([height]),
svg,
iframe,
.svg-fluid {
  max-width: 100%;
  height: auto;
}

/* Videos must never blow out the page width (mobile overflow fix) */
video:not(.hero-media) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #000;
  line-height: 0;
  min-width: 0;
}

.video-container video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius);
  background: #000;
  object-fit: contain;
  vertical-align: top;
}

/* Hero background video — fill section, stay clipped */
.hero {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  z-index: 0;
  /* Contain kenBurns scale inside the hero */
  transform-origin: center center;
  will-change: transform;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

section,
footer,
.cta,
.footer,
.features,
.programs {
  max-width: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Utility responsive grids (override brittle inline styles) */
.programs-grid-split,
.programs-grid[style*="grid-template-columns"] {
  gap: 1.75rem;
}

/* Keep navbar readable on mid-size desktops */
@media (max-width: 1199px) and (min-width: 992px) {
  .navbar-brand span {
    display: none;
  }

  .nav-link {
    padding: 0.45rem 0.55rem !important;
    font-size: 0.88rem;
  }

  .lang-switcher .dropdown-toggle {
    min-width: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.25rem;
  }

  .journey-inner {
    grid-template-columns: 1fr;
  }

  .journey-line { display: none; }

  .navbar .d-flex.gap-2 {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(11, 92, 66, 0.08);
  }

  .navbar-nav {
    padding-top: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.5rem !important;
  }

  .programs-grid,
  .features-grid,
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr !important;
  }

  .programs-grid[style*="grid-template-columns"],
  .features-grid[style*="grid-template-columns"],
  .programs-grid[style*="2fr"],
  .programs-grid[style*="1fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(350px"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(350px"] {
    grid-template-columns: 1fr !important;
  }

  .section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .cta-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.35rem);
  }

  .hero.hero-page {
    padding: 3.5rem 0;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px !important;
    max-height: 40px;
    max-width: 48px;
  }

  .navbar-brand span {
    font-size: 1.05rem;
  }

  .hero {
    min-height: 88vh;
    min-height: 88dvh;
  }

  .hero-brand {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .hero-title {
    font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  }

  .hero.hero-page .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .scroll-hint { display: none; }

  .hero-ornament { display: none; }

  .pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-number { font-size: 2.25rem; }

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  .features,
  .programs,
  .testimonials,
  .stats,
  .cta,
  .page-section {
    padding-left: 0;
    padding-right: 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .form-container {
    padding: 1.5rem 1.15rem !important;
    margin-left: 0;
    margin-right: 0;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .filter-tabs {
    gap: 0.55rem !important;
  }

  .filter-tab {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.85rem;
  }

  .map-container {
    height: 280px;
  }

  .footer-section {
    margin-bottom: 0.5rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  .testimonial-text {
    font-size: 1.05rem;
  }

  .intro-arabic {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .intro-band {
    padding: 2.5rem 0;
  }

  .journey {
    padding: 3.25rem 0;
  }

  /* Prevent horizontal scroll from absolute ornaments / wide grids */
  body {
    overflow-x: hidden;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 576px) {
  .feature-card,
  .program-card,
  .testimonial-card,
  .contact-card {
    padding: 1.35rem 1.1rem;
  }

  .btn-large {
    padding: 0.9rem 1.5rem;
    width: 100%;
    max-width: none;
  }

  .btn-sm {
    font-size: 0.82rem;
  }

  .popular-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }

  .stat-item {
    padding: 0.85rem 0.35rem;
  }

  .cta {
    padding: 4rem 0;
  }

  .footer {
    padding: 3rem 0 1.25rem;
  }

  .gallery-placeholder {
    min-height: 180px;
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .btn,
  .filter-tab,
  .faq-question,
  .social-links a {
    min-height: 44px;
  }

  .program-card:hover,
  .feature-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

/* Contact & forms */
.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 92, 66, 0.08);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(11, 92, 66, 0.25);
}

.contact-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.contact-card h3 {
  font-family: var(--font-display);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.contact-card p,
.contact-card a { color: var(--text-light); }

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover { text-decoration: underline; }

.form-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11, 92, 66, 0.08);
}

.form-group { margin-bottom: 1.35rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea,
.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #d8e3dd;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fcfefd;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(11, 92, 66, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 92, 66, 0.08);
}

.gallery-placeholder {
  background: linear-gradient(145deg, #e8f3ee, #f7fbf9);
  border: 1px dashed rgba(11, 92, 66, 0.2);
  border-radius: var(--radius);
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

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

.gallery-item {
  transition: transform 0.4s var(--ease-out);
}

.gallery-item img {
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out);
}

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

.video-container video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius);
  box-shadow: none;
  background: #000;
}

.page-section { padding: 4rem 0; }

.prose-block {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
  line-height: 1.9;
  font-size: 1.05rem;
}

.prose-block p { margin-bottom: 1.35rem; }

.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* Blog / announcement / FAQ extras */
.blog-card,
.announcement-card,
.faq-item,
.accordion-item {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.blog-card:hover,
.announcement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.filter-tab {
  border-radius: 10px !important;
  letter-spacing: 0.02em;
}

.filter-tab:hover,
.filter-tab.active {
  box-shadow: 0 6px 18px rgba(11, 92, 66, 0.2);
}

.faq-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 92, 66, 0.08);
  background: #fff;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.gallery-overlay {
  transition: transform 0.45s var(--ease-out) !important;
}

/* Vision / mission blocks on about */
.vision-mission-card,
.values-grid > * {
  transition: transform 0.4s var(--ease-out);
}

/* Language fonts */
html[lang="ur"] body,
html[lang="ur"] {
  font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", var(--font-body), Tahoma, sans-serif;
}

html[lang="ar"] body,
html[lang="ar"],
body.lang-ar {
  font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", var(--font-body), Tahoma, sans-serif;
}

html[lang="ur"] .hero-brand,
html[lang="ar"] .hero-brand,
html[lang="ur"] .hero-title,
html[lang="ar"] .hero-title,
html[lang="ur"] .section-header h2,
html[lang="ar"] .section-header h2,
html[lang="ur"] .cta-content h2,
html[lang="ar"] .cta-content h2 {
  font-family: inherit;
}

/* Donate / bank accounts */
.donate-section {
  scroll-margin-top: 96px;
}

.donate-accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.donate-account {
  background: var(--white);
  border: 1px solid rgba(11, 92, 66, 0.1);
  border-top: 3px solid var(--secondary-color);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
}

.donate-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(201, 162, 39, 0.18);
  padding: 0.3rem 0.65rem;
  margin-bottom: 0.75rem;
}

.donate-account h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--primary-color);
  margin: 0 0 0.45rem;
  line-height: 1.25;
}

.donate-account > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  line-height: 1.55;
}

.donate-details {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.donate-details > div {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(11, 92, 66, 0.08);
}

.donate-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}

.donate-details dd {
  margin: 0;
  color: var(--text-dark, #1a2e26);
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-word;
}

.donate-value-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.donate-value-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--bg-light);
  padding: 0.2rem 0.45rem;
}

.donate-copy {
  border: 1px solid rgba(11, 92, 66, 0.2);
  background: transparent;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.donate-copy:hover,
.donate-copy.is-copied {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.donate-note {
  margin: 1.75rem auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.donate-note a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.donate-note a:hover {
  text-decoration: underline;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.35rem;
}

.cta-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

.cta-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

@media (max-width: 991px) {
  .donate-accounts {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

/* Content pages: gallery lightbox, details, empty states */
.content-empty {
  text-align: center;
  color: var(--text-light);
  padding: 2.5rem 1rem;
  grid-column: 1 / -1;
}

.content-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
}

.content-back:hover {
  text-decoration: underline;
}

.detail-title {
  font-family: var(--font-display);
  color: var(--primary-color);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.75rem 0 1rem;
  line-height: 1.25;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.detail-body {
  color: var(--text-dark, #1a2e26);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 720px;
}

.detail-body p {
  margin-bottom: 1rem;
}

.detail-actions {
  margin-top: 2rem;
}

.related-posts {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 92, 66, 0.12);
}

.related-posts h2 {
  font-family: var(--font-display);
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  margin-bottom: 0.5rem;
}

.related-posts a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.related-posts a:hover {
  text-decoration: underline;
}

.event-title a {
  color: inherit;
  text-decoration: none;
}

.event-title a:hover {
  color: var(--primary-color);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

#blogRecent {
  list-style: none;
  padding: 0;
  margin: 0;
}

#blogRecent li {
  margin-bottom: 0.85rem;
}

#blogRecent a {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

#blogRecent small {
  display: block;
  color: var(--text-light);
  font-size: 0.8rem;
}

#blogCategories a.active {
  color: var(--primary-color);
  font-weight: 700;
}

#blogPagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

#blogPagination .page-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(11, 92, 66, 0.2);
  background: var(--white);
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
}

#blogPagination .page-btn.active,
#blogPagination .page-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.lightbox-open {
  overflow: hidden;
}

.content-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.content-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 30, 22, 0.88);
}

.content-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: 92vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
  background: #000;
}

.content-lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 1rem;
  max-width: 640px;
}

.content-lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
}

.content-lightbox-caption p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.content-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.content-lightbox-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.content-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.content-lightbox-nav.prev {
  left: 0;
}

.content-lightbox-nav.next {
  right: 0;
}

.detail-page-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.detail-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 92, 66, 0.08);
}
