/*
 * DAR-UL-ISLAH TAJWEED MADRASA
 * Global Stylesheet — Production v1.0
 * Design & Dev: AL BARK E-COM SOLUTION
 */

/* ============================================================
   1. FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Amiri:wght@400;700&display=swap');

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
:root {
  --green:        #1a5c38;
  --green-dark:   #0d3520;
  --green-deep:   #071e12;
  --green-light:  #2a7a4e;
  --green-pale:   #eef7f2;
  --gold:         #c9a84c;
  --gold-dark:    #a07830;
  --gold-light:   #e8d080;
  --gold-pale:    #fdf8ec;
  --white:        #ffffff;
  --ivory:        #faf8f2;
  --ivory-dark:   #f0ede4;
  --charcoal:     #2c2c2c;
  --text:         #1e1e1e;
  --text-mid:     #484848;
  --text-soft:    #717171;
  --border:       rgba(201,168,76,.18);
  --border-md:    rgba(201,168,76,.38);
  --shadow-xs:    0 2px 8px rgba(0,0,0,.06);
  --shadow-sm:    0 6px 20px rgba(0,0,0,.09);
  --shadow-md:    0 14px 44px rgba(0,0,0,.11);
  --shadow-lg:    0 24px 64px rgba(0,0,0,.14);
  --shadow-gold:  0 12px 36px rgba(201,168,76,.22);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-arabic:  'Amiri', 'Traditional Arabic', serif;

  --header-h:   76px;
  --bar-h:      42px;
  --offset:     calc(var(--header-h) + var(--bar-h));

  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;

  --ease: cubic-bezier(.4,0,.2,1);
  --tr:   all .3s var(--ease);
  --tr-s: all .6s var(--ease);

  --container: 1280px;
  --px: clamp(16px, 4vw, 32px);
  --sec-py: clamp(64px, 8vw, 110px);
  --sec-py-sm: clamp(48px, 6vw, 80px);
}

/* ============================================================
   3. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--tr); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.arabic { font-family: var(--font-arabic); direction: rtl; text-align: right; line-height: 2.1; }

/* ============================================================
   5. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section      { padding: var(--sec-py) 0; }
.section-sm   { padding: var(--sec-py-sm) 0; }
.section-ivory { background: var(--ivory); }
.section-pale  { background: var(--green-pale); }

/* Section label / eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}
.tc .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  color: var(--green-dark);
  margin-bottom: 14px;
}
.section-title em { font-style: normal; color: var(--gold); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 580px;
}
.tc { text-align: center; }
.tc .section-sub { margin: 0 auto; }

/* Grids */
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

/* ============================================================
   6. LOADING SCREEN
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--green-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#loader.out { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  animation: loaderSpin 4s linear infinite;
  position: relative;
}
.loader-ring::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.2);
}
.loader-ring img {
  width: 68px; height: 68px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 4px;
  animation: loaderSpin 4s linear infinite reverse;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader-name {
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 4px;
}
.loader-eng {
  font-size: .72rem;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.loader-track {
  width: 180px; height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  animation: loaderFill 2.4s ease-out forwards;
}
@keyframes loaderFill { from { width:0; } to { width:100%; } }
.loader-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.loader-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================================================
   7. ANNOUNCEMENT BAR
   ============================================================ */
.ann-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 1001;
  background: var(--green-dark);
  display: flex;
  align-items: center;
}
.ann-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ann-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
.ann-badge {
  background: var(--gold);
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ann-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #6ee890;
  transition: var(--tr);
}
.ann-wa:hover { color: #fff; }

/* ============================================================
   8. SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: var(--tr-s);
  display: flex;
  align-items: center;
}
.site-header.transparent {}
.site-header.scrolled {
  top: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(0,0,0,.09);
}
.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.hd-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.hd-logo img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 2px;
  border: 2px solid var(--gold);
}
.hd-logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.hd-logo-ar {
  font-family: var(--font-arabic);
  font-size: .85rem;
  color: var(--gold);
}
.site-header.scrolled .hd-logo-ar { color: var(--gold-dark); }
.hd-logo-en {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
.site-header.scrolled .hd-logo-en { color: var(--text-soft); }

.hd-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hd-nav a {
  padding: 7px 11px;
  font-size: .84rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: var(--tr);
  white-space: nowrap;
  letter-spacing: .01em;
}
.site-header.scrolled .hd-nav a { color: var(--text-mid); }
.hd-nav a:hover,
.hd-nav a.active { color: var(--gold); background: rgba(201,168,76,.1); }
.site-header.scrolled .hd-nav a:hover,
.site-header.scrolled .hd-nav a.active { color: var(--green); background: var(--green-pale); }

.hd-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: var(--tr);
}
.site-header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   9. MOBILE MENU
   ============================================================ */
.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: var(--green-deep);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
}
.mob-menu.open { display: flex; }
.mob-menu-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mob-menu-logo {
  position: absolute;
  top: 18px; left: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 2px;
  border: 2px solid var(--gold);
}
.mob-menu a.nav-a {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: 11px 28px;
  border-radius: var(--r-md);
  width: 100%;
  max-width: 300px;
  text-align: center;
  transition: var(--tr);
}
.mob-menu a.nav-a:hover { color: var(--gold); background: rgba(255,255,255,.06); }
.mob-ctas {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

/* ============================================================
   10. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 26px;
  font-size: .88rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--tr);
  letter-spacing: .02em;
  white-space: nowrap;
}
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,92,56,.35);
}
.btn-gold {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
  font-weight: 800;
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
}
.btn-lg { padding: 14px 34px; font-size: .97rem; border-radius: var(--r-md); }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px;
  background: #25d366;
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 700;
  transition: var(--tr);
  border: none;
  cursor: pointer;
}
.btn-wa:hover { background: #1da851; transform: translateY(-1px); }

/* ============================================================
   11. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--offset));
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.on { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kb 9s ease-out both;
}
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(7,30,18,.88) 0%, rgba(13,53,32,.78) 45%, rgba(7,30,18,.86) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' stroke='%23c9a84c' stroke-width='.4' fill='none' opacity='.12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  opacity: .6;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: calc(var(--offset) + 30px) var(--px) 80px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}
.hero-logo-ring {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 4px;
  background: white;
  margin: 0 auto 22px;
  object-fit: contain;
  animation: fadeD .8s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold-light);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  animation: fadeU .8s ease .15s both;
}
.hero-ar {
  font-family: var(--font-arabic);
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  color: var(--gold-light);
  margin-bottom: 6px;
  line-height: 1.6;
  animation: fadeU .8s ease .25s both;
}
.hero-en {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 14px;
  animation: fadeU .8s ease .35s both;
}
.hero-tagline {
  font-size: .92rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 36px;
  animation: fadeU .8s ease .45s both;
}
.hero-tagline span { color: var(--gold); }
.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeU .8s ease .55s both;
}
/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: var(--tr);
  padding: 0;
}
.hero-dot.on { background: var(--gold); transform: scale(1.35); }
/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 34px;
  right: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.45);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: fadeU 1s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}

/* ============================================================
   12. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  height: clamp(300px, 35vw, 420px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(-1 * var(--offset));
  padding-bottom: 48px;
}
.ph-bg { position: absolute; inset: 0; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.ph-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,30,18,.80) 0%, rgba(13,53,32,.75) 60%, rgba(7,30,18,.88) 100%);
}
.ph-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' stroke='%23c9a84c' stroke-width='.4' fill='none' opacity='.12'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  opacity: .5;
}
.ph-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: calc(var(--offset) + 12px) var(--px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ph-content h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 10px;
}
.ph-content p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 14px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { font-size: .7rem; }

/* ============================================================
   13. SECTION HEADING BLOCK
   ============================================================ */
.sec-head { margin-bottom: 56px; }
.sec-head.tc { text-align: center; }
.sec-head.tc .section-sub { margin: 0 auto; }

/* ============================================================
   14. FEATURE CARDS (Why Choose Us)
   ============================================================ */
.feat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px 24px;
  text-align: center;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-md); }
.feat-card:hover::after { transform: scaleX(1); }
.feat-icon {
  width: 60px; height: 60px;
  background: var(--green-pale);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
  transition: var(--tr);
}
.feat-card:hover .feat-icon { background: var(--green); transform: scale(1.08); }
.feat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.feat-text { color: var(--text-soft); font-size: .88rem; line-height: 1.7; }

/* ============================================================
   15. COURSE CARDS
   ============================================================ */
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cc-img {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-card:hover .cc-img img { transform: scale(1.06); }
.cc-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 3px 11px;
  border-radius: 20px;
  text-transform: uppercase;
}
.cc-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cc-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.cc-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--green-dark); margin-bottom: 10px; }
.cc-desc { color: var(--text-mid); font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.cc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.cc-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: var(--text-soft);
  background: var(--ivory);
  padding: 4px 10px;
  border-radius: 20px;
}
.cc-meta-item span { color: var(--green); }
.cc-footer { margin-top: auto; display: flex; gap: 8px; }

/* Full course detail */
.course-detail { padding: 40px 0; border-bottom: 1px solid var(--border); }
.course-detail:last-child { border-bottom: none; }
.cd-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.cd-info {}
.cd-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 300px;
  position: relative;
}
.cd-img img { width: 100%; height: 100%; object-fit: cover; }
.cd-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 6px;
}
.cd-arabic {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.cd-title { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-dark); margin-bottom: 14px; }
.cd-desc { color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; }
.cd-specs {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-bottom: 24px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
.cd-spec-item { display: flex; flex-direction: column; gap: 3px; }
.cd-spec-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.cd-spec-val { font-size: .95rem; font-weight: 600; color: var(--green-dark); }
.cd-outcomes { margin-bottom: 24px; }
.cd-outcomes h5 { font-size: .95rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.cd-outcomes ul { display: flex; flex-direction: column; gap: 6px; }
.cd-outcomes li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .9rem; color: var(--text-mid);
}
.cd-outcomes li::before { content: '✦'; color: var(--gold); font-size: .7rem; margin-top: 3px; flex-shrink: 0; }
.cd-fee-box {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.cd-fee-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold); }
.cd-fee-period { font-size: .82rem; color: rgba(255,255,255,.65); }
.cd-fee-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); margin-bottom: 4px; }

/* ============================================================
   16. STATISTICS
   ============================================================ */
.stats-sec {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-sec::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' stroke='%23c9a84c' stroke-width='.5' fill='none' opacity='.08'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: rgba(255,255,255,.75); font-size: .92rem; font-weight: 500; }
.stat-sub { color: rgba(255,255,255,.45); font-size: .78rem; margin-top: 3px; }

/* ============================================================
   17. GALLERY GRID
   ============================================================ */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}
.gal-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
}
.gal-item.tall { grid-row: span 2; }
.gal-item.wide { grid-column: span 2; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(7,30,18,.84) 100%);
  opacity: 0;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.gal-item:hover img { transform: scale(1.07); }
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.gal-cap { color: rgba(255,255,255,.9); font-size: .88rem; }
.gal-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
  opacity: 0;
  transition: var(--tr);
}
.gal-item:hover .gal-zoom { opacity: 1; }

/* ============================================================
   18. LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lb-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: white; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: var(--tr);
}
.lb-close:hover { background: var(--gold); color: var(--green-dark); }
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: white;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: var(--tr);
}
.lb-arrow:hover { background: var(--gold); color: var(--green-dark); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-caption {
  position: absolute;
  bottom: 16px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   19. FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.ftab {
  padding: 7px 20px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--ivory-dark);
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--tr);
}
.ftab:hover, .ftab.on {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ============================================================
   20. ACHIEVEMENT CARDS
   ============================================================ */
.ach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--tr);
}
.ach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ach-img { height: 220px; overflow: hidden; }
.ach-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ach-card:hover .ach-img img { transform: scale(1.05); }
.ach-body { padding: 22px; }
.ach-yr {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.ach-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-dark); margin-bottom: 8px; }
.ach-text { color: var(--text-soft); font-size: .87rem; line-height: 1.7; }

/* Achievement timeline */
.ach-timeline { position: relative; padding-left: 40px; }
.ach-timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--gold));
}
.ach-tl-item {
  position: relative;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.ach-tl-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 24px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.ach-tl-yr {
  font-size: .74rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.ach-tl-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--green-dark); margin-bottom: 8px; }
.ach-tl-text { color: var(--text-mid); font-size: .9rem; line-height: 1.7; }

/* ============================================================
   21. TEAM / FACULTY CARDS
   ============================================================ */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: center;
  transition: var(--tr);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-img {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--green-pale);
}
.team-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  color: var(--green);
}
.team-body { padding: 22px 18px; }
.team-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-dark); margin-bottom: 4px; }
.team-name-ar { font-family: var(--font-arabic); font-size: 1rem; color: var(--gold); margin-bottom: 6px; direction: rtl; text-align: right; }
.team-role {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-bio { color: var(--text-soft); font-size: .87rem; line-height: 1.7; }
.team-dept { font-size: .78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }

/* ============================================================
   22. FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-label .req { color: #d93025; }
.form-ctrl {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--ivory-dark);
  border-radius: var(--r-sm);
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: var(--tr);
  outline: none;
  appearance: none;
}
.form-ctrl:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,92,56,.1); }
.form-ctrl:hover { border-color: #b0b0b0; }
textarea.form-ctrl { resize: vertical; min-height: 116px; }
select.form-ctrl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--text-soft); margin-top: 5px; }
.form-success {
  display: none;
  background: var(--green-pale);
  border: 1px solid rgba(26,92,56,.25);
  border-radius: var(--r-md);
  padding: 18px 22px;
  color: var(--green-dark);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

/* ============================================================
   23. NOTICE / ALERT BOXES
   ============================================================ */
.notice {
  background: #fff8e1;
  border: 1px solid #edd06a;
  border-left: 4px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin: 18px 0;
}
.notice-title {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--gold-dark);
  font-size: .88rem; margin-bottom: 6px;
}
.notice p { color: var(--text-mid); font-size: .86rem; margin: 0; }
.notice-green {
  background: var(--green-pale);
  border-color: rgba(26,92,56,.3);
  border-left-color: var(--green);
}
.notice-green .notice-title { color: var(--green); }

/* ============================================================
   24. PROCESS / ADMISSION TIMELINE
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
  margin: 40px 0;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  z-index: 0;
}
.proc-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}
.proc-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
  transition: var(--tr);
}
.proc-step:hover .proc-num { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.proc-title { font-weight: 700; color: var(--green-dark); font-size: .95rem; margin-bottom: 6px; }
.proc-text { color: var(--text-soft); font-size: .82rem; line-height: 1.6; }

/* ============================================================
   25. CTA SECTIONS
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 84px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' stroke='%23c9a84c' stroke-width='.5' fill='none' opacity='.1'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.cta-band .eyebrow { color: var(--gold-light); }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: var(--gold-light); }
.cta-band h2 { color: var(--white); position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto 32px; position: relative; z-index: 1; }
.cta-band .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .eyebrow { position: relative; z-index: 1; }

/* Gold divider */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}
.gold-rule-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gold-rule-icon { color: var(--gold); font-size: 1rem; }

/* ============================================================
   26. TESTIMONIAL CARDS
   ============================================================ */
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--tr);
}
.testi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-stars { color: var(--gold); font-size: .9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-text { color: var(--text-mid); font-size: .95rem; line-height: 1.8; margin-bottom: 18px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--green);
  flex-shrink: 0;
}
.testi-name { font-weight: 700; color: var(--text); font-size: .9rem; }
.testi-role { color: var(--text-soft); font-size: .78rem; }

/* ============================================================
   27. ANNOUNCEMENT / NEWS CARDS
   ============================================================ */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  gap: 18px;
  transition: var(--tr);
}
.news-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-md); transform: translateX(3px); }
.news-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  background: var(--green-pale);
  border-radius: var(--r-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.news-day { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1; }
.news-mon { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); }
.news-body { flex: 1; }
.news-tag {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.news-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--green-dark); margin-bottom: 8px; }
.news-text { color: var(--text-soft); font-size: .87rem; line-height: 1.65; margin: 0; }

/* ============================================================
   28. FOOTER
   ============================================================ */
.site-footer { background: var(--green-deep); color: var(--white); }
.ft-top { padding: 72px 0 52px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 48px; }
.ft-brand {}
.ft-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.ft-logo img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  padding: 2px;
  border: 2px solid var(--gold);
}
.ft-logo-text .ar { font-family: var(--font-arabic); font-size: .88rem; color: var(--gold); display: block; }
.ft-logo-text .en { font-size: .62rem; color: rgba(255,255,255,.45); letter-spacing: .04em; }
.ft-desc { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.8; margin-bottom: 22px; }
.ft-social { display: flex; gap: 8px; }
.soc-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: var(--tr);
}
.soc-btn:hover { background: var(--gold); color: var(--green-dark); }
.ft-head {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 700;
}
.ft-links { display: flex; flex-direction: column; gap: 9px; }
.ft-links a {
  color: rgba(255,255,255,.55);
  font-size: .87rem;
  display: flex; align-items: center; gap: 6px;
  transition: var(--tr);
}
.ft-links a::before { content: '›'; color: var(--gold); font-size: 1rem; }
.ft-links a:hover { color: var(--gold); padding-left: 4px; }
.ft-contact-item { display: flex; gap: 11px; margin-bottom: 14px; }
.ft-ci-icon { color: var(--gold); font-size: .9rem; margin-top: 2px; flex-shrink: 0; }
.ft-ci-text { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.65; }
.ft-ci-text a { color: rgba(255,255,255,.55); }
.ft-ci-text a:hover { color: var(--gold); }
.ft-bottom { padding: 20px 0; }
.ft-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-copy { color: rgba(255,255,255,.38); font-size: .8rem; }
.ft-bl { display: flex; gap: 18px; }
.ft-bl a { color: rgba(255,255,255,.38); font-size: .8rem; }
.ft-bl a:hover { color: var(--gold); }
.ft-agency { text-align: right; }
.ft-agency-label { color: rgba(255,255,255,.3); font-size: .68rem; margin-bottom: 3px; }
.ft-agency-name {
  color: var(--gold);
  font-weight: 800;
  font-size: .82rem;
  display: block;
}
.ft-agency-name:hover { color: var(--gold-light); }
.ft-agency-wa { color: rgba(255,255,255,.28); font-size: .72rem; }

/* ============================================================
   29. FLOATING BUTTONS
   ============================================================ */
.float-wrap {
  position: fixed;
  bottom: 28px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fbtn {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: var(--tr);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}
.fbtn:hover { transform: scale(1.12) translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.fbtn-wa  { background: #25d366; color: white; }
.fbtn-call{ background: var(--green); color: white; }
.fbtn-top {
  background: var(--gold);
  color: var(--green-dark);
  opacity: 0;
  pointer-events: none;
}
.fbtn-top.show { opacity: 1; pointer-events: all; }
.fbtn-admit {
  background: var(--gold);
  color: var(--green-dark);
  width: auto;
  border-radius: 24px;
  padding: 0 16px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  height: 42px;
  text-decoration: none;
}

/* ============================================================
   30. ANIMATIONS
   ============================================================ */
@keyframes fadeU { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes fadeD { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:none; } }
@keyframes fadeL { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:none; } }
@keyframes fadeR { from { opacity:0; transform:translateX(28px); } to { opacity:1; transform:none; } }
@keyframes fadeIn{ from { opacity:0; } to { opacity:1; } }

.rev   { opacity:0; transform:translateY(36px); transition: opacity .65s ease, transform .65s ease; }
.rev-l { opacity:0; transform:translateX(-36px); transition: opacity .65s ease, transform .65s ease; }
.rev-r { opacity:0; transform:translateX(36px); transition: opacity .65s ease, transform .65s ease; }
.rev.in, .rev-l.in, .rev-r.in { opacity:1; transform:none; }

.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s}
.d4{transition-delay:.32s} .d5{transition-delay:.40s} .d6{transition-delay:.48s}
.d7{transition-delay:.56s} .d8{transition-delay:.64s}

/* ============================================================
   31. ABOUT PAGE SPECIFICS
   ============================================================ */
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-block { position: relative; }
.about-img-main {
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 480px;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-md);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  top: 24px;
  left: -14px;
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.about-badge span { font-size: 1.3rem; font-weight: 800; color: var(--gold); display: block; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.val-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 18px;
  transition: var(--tr);
}
.val-item:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.val-icon { font-size: 1.6rem; margin-bottom: 10px; }
.val-title { font-weight: 700; color: var(--green-dark); margin-bottom: 6px; font-size: .95rem; }
.val-text { color: var(--text-soft); font-size: .84rem; line-height: 1.6; margin: 0; }
.mgmt-msg {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--r-xl);
  padding: 52px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.mgmt-msg::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 12rem;
  color: rgba(255,255,255,.04);
  position: absolute;
  top: -30px; left: 20px;
  line-height: 1;
}
.mgmt-msg-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  margin-bottom: 28px;
  position: relative;
}
.mgmt-msg-author { display: flex; align-items: center; gap: 16px; }
.mgmt-msg-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  border: 2px solid var(--gold);
}
.mgmt-msg-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.mgmt-msg-role { font-size: .8rem; color: var(--gold); font-weight: 600; }

/* ============================================================
   32. CONTACT / MAP
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.ci-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  transition: var(--tr);
}
.ci-card:hover { border-color: var(--border-md); box-shadow: var(--shadow-sm); }
.ci-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--green-pale);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ci-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin-bottom: 4px; }
.ci-value { color: var(--text); font-size: .92rem; font-weight: 600; }
.ci-value a { color: var(--text); }
.ci-value a:hover { color: var(--green); }
.map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 400px;
  border: 2px solid var(--border);
}
.map-frame iframe { width: 100%; height: 100%; border: none; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.hour-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ivory-dark); }
.hour-day { font-size: .87rem; font-weight: 600; color: var(--text); }
.hour-time { font-size: .84rem; color: var(--green); font-weight: 600; }
.hour-closed { color: #d93025; }

/* ============================================================
   33. DONATE PAGE
   ============================================================ */
.donate-hero-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--r-xl);
  padding: 56px 48px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donate-hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0 L56 14 L56 42 L28 56 L0 42 L0 14 Z' stroke='%23c9a84c' stroke-width='.5' fill='none' opacity='.12'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.donate-hero-card h2 { color: var(--white); position: relative; z-index: 1; margin-bottom: 14px; }
.donate-hero-card p { color: rgba(255,255,255,.8); max-width: 500px; margin: 0 auto 28px; position: relative; z-index: 1; }
.donate-hero-card .cta-btns { justify-content: center; position: relative; z-index: 1; }
.donate-impact { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.di-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
}
.di-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--gold); }
.di-label { color: var(--text-mid); font-size: .9rem; margin-top: 4px; }

/* ============================================================
   34. 404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--px);
  background: var(--ivory);
}
.err-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 12px;
  position: relative;
}
.err-num span { color: var(--gold); }
.err-msg { color: var(--text-mid); font-size: 1.1rem; max-width: 400px; margin: 0 auto 28px; }

/* ============================================================
   35. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(4,1fr); }
  .cd-grid { grid-template-columns: 1fr; }
  .cd-img { height: 260px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hd-nav, .hd-actions { display: none; }
  .hamburger { display: flex; }
  .g3, .g4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .about-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img-accent { display: none; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .gal-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 200px; }
  .gal-item.tall, .gal-item.wide { grid-column: span 1; grid-row: span 1; }
  .cd-specs { grid-template-columns: 1fr 1fr; }
  .donate-impact { grid-template-columns: 1fr 1fr; }
  .mgmt-msg { padding: 36px 28px; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .hrs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --bar-h: 0px; }
  .ann-bar { display: none; }
  .site-header { top: 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .donate-impact { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn, .hero-btns .btn-wa { width: 100%; max-width: 280px; }
  .fg2 { grid-template-columns: 1fr; }
  .hero-scroll-cue { display: none; }
  .ft-bottom .container { flex-direction: column; align-items: flex-start; }
  .ft-agency { text-align: left; }
  .mgmt-msg { padding: 28px 20px; }
  .proc-num { width: 50px; height: 50px; font-size: 1.2rem; }
  .cd-specs { grid-template-columns: 1fr; }
}

/* ============================================================
   36. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.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;
}

/* ============================================================
   LOADER — CSS-first guaranteed removal (no JS dependency)
   ============================================================ */
#site-loader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background: #071e12 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* CSS animation: ALWAYS hides after 2.8s even if JS fails */
  animation: _ldOut 0.55s ease 2.8s forwards;
  transition: opacity 0.55s ease;
}
#site-loader.out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@keyframes _ldOut {
  0%   { opacity: 1; visibility: visible; pointer-events: none; }
  100% { opacity: 0; visibility: hidden;  pointer-events: none; }
}
