@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --green: #0d9f4f;
  --green-dark: #087a3b;
  --green-light: #14c968;
  --green-soft: rgba(13, 159, 79, 0.12);
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-card: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --bg: #f5f7f5;
  --bg-card: #ffffff;
  --border: #e0e5e0;
  --hero-overlay: linear-gradient(135deg, rgba(10,10,10,0.92) 0%, rgba(8,122,59,0.75) 100%);
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 14px;
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --border: #2a2a2a;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --green-soft: rgba(13, 159, 79, 0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* Side controls */
.side-controls {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--bg-card);
  color: var(--green);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.side-btn:hover {
  background: var(--green);
  color: #fff;
  transform: scale(1.08);
}

/* Google Translate hide default */
.goog-te-banner-frame, .goog-te-balloon-frame, #goog-gt-tt,
.goog-tooltip, .goog-te-gadget img { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }
#google_translate_element { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.skiptranslate { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  overflow: hidden;
  background:
    radial-gradient(ellipse 46% 140% at 50% -10%, rgba(13, 159, 79, 0.28), transparent 58%),
    radial-gradient(circle at 12% 120%, rgba(20, 201, 104, 0.14), transparent 34%),
    radial-gradient(circle at 88% 120%, rgba(8, 122, 59, 0.16), transparent 32%),
    linear-gradient(180deg, #0d1411 0%, #0a0a0a 72%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 159, 79, 0.35);
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(rgba(20, 201, 104, 0.18) 1px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.2px);
  background-size: 28px 28px, 14px 14px;
  background-position: 0 0, 7px 9px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.site-nav::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 159, 79, 0.15) 18%,
    rgba(20, 201, 104, 0.75) 50%,
    rgba(13, 159, 79, 0.15) 82%,
    transparent 100%
  );
}

.nav-theme {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.nav-theme-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.55;
}

.nav-theme-orb--a {
  width: 140px;
  height: 140px;
  top: -70px;
  right: 8%;
  background: rgba(13, 159, 79, 0.35);
}

.nav-theme-orb--b {
  width: 120px;
  height: 120px;
  top: -55px;
  left: 10%;
  background: rgba(20, 201, 104, 0.22);
}

.nav-theme-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 201, 104, 0.22);
  box-shadow: inset 0 0 0 1px rgba(13, 159, 79, 0.08);
}

.nav-theme-ring--a {
  width: 90px;
  height: 90px;
  top: 50%;
  right: 22%;
  transform: translateY(-50%);
  opacity: 0.55;
}

.nav-theme-ring--b {
  width: 58px;
  height: 58px;
  top: 50%;
  left: 24%;
  transform: translateY(-42%);
  opacity: 0.4;
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-theme-wave {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -18px;
  height: 42px;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 40% 100% at 30% 0%, rgba(13, 159, 79, 0.35), transparent 70%),
    radial-gradient(ellipse 36% 100% at 70% 0%, rgba(20, 201, 104, 0.28), transparent 70%);
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding: 0.45rem 0;
  min-height: 76px;
  gap: 1rem;
}

.nav-menu-btn {
  position: relative;
  z-index: 2;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(13, 159, 79, 0.12);
  border: 1.5px solid var(--green);
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--green-light);
  border-radius: 2px;
  transition: background var(--transition);
}

.nav-menu-btn:hover {
  background: var(--green);
}

.nav-menu-btn:hover span {
  background: #fff;
}

.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, #102331 0%, #071017 72%);
  border: 2px solid rgba(20, 201, 104, 0.75);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(13, 159, 79, 0.28),
    0 7px 22px rgba(0, 0, 0, 0.55);
}

.nav-logo img {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  max-width: none;
  object-fit: contain;
  display: block;
  background: transparent;
}

.top-nav-links {
  display: none;
}

.side-menu-logo {
  position: relative;
  transform: none;
  left: auto;
  top: auto;
  width: 64px;
  height: 64px;
}

.side-menu-logo img {
  top: -7px;
  width: 107px;
  height: 107px;
  max-width: none;
  background: transparent;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid rgba(13, 159, 79, 0.35);
  z-index: 1200;
  transform: translateX(105%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-menu-header .brand { color: #fff; }

.side-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(13, 159, 79, 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.side-menu-links {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
}

.side-menu-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s;
}

.side-menu-links a:hover {
  background: rgba(13, 159, 79, 0.18);
  color: var(--green-light);
}

/* Desktop / tablet: centered logo with links on both sides */
@media (min-width: 768px) {
  .nav-menu-btn {
    display: none;
  }

  .nav-overlay,
  .side-menu {
    display: none !important;
  }

  .site-nav .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    min-height: 72px;
  }

  .site-nav .nav-logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 58px;
    height: 58px;
    justify-self: center;
    grid-column: 2;
  }

  .site-nav .nav-logo img {
    top: -5px;
    width: 96px;
    height: 96px;
  }

  .top-nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .top-nav-links::-webkit-scrollbar {
    display: none;
  }

  .top-nav-links--start {
    grid-column: 1;
    justify-content: flex-end;
  }

  .top-nav-links--end {
    grid-column: 3;
    justify-content: flex-start;
  }

  .top-nav-links a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1.2;
    padding: 0.36rem 0.48rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .top-nav-links a:hover,
  .top-nav-links a:focus-visible {
    background: rgba(13, 159, 79, 0.22);
    color: var(--green-light);
    outline: none;
  }

  .archive-page {
    padding-top: 88px;
  }
}

@media (min-width: 1100px) {
  .site-nav .nav-inner {
    gap: 1rem;
    min-height: 76px;
  }

  .site-nav .nav-logo {
    width: 64px;
    height: 64px;
  }

  .site-nav .nav-logo img {
    top: -6px;
    width: 108px;
    height: 108px;
  }

  .top-nav-links {
    gap: 0.18rem;
  }

  .top-nav-links a {
    font-size: 0.84rem;
    padding: 0.42rem 0.62rem;
  }
}

/* Legacy hero kept for compatibility */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  background:
    var(--hero-overlay),
    radial-gradient(ellipse at 30% 40%, rgba(13,159,79,0.35), transparent 55%),
    linear-gradient(160deg, #0a0a0a 0%, #0d2a18 50%, #0a0a0a 100%);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(13,159,79,0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(20,201,104,0.1) 0%, transparent 35%);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-brand {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff 0%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.9s ease both;
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,159,79,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: #fff;
}

.btn-dark {
  background: var(--black);
  color: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section {
  --breath-a: rgba(13, 159, 79, 0.08);
  --breath-b: rgba(47, 79, 99, 0.06);
  --breath-c: rgba(18, 122, 86, 0.05);
  --breath-d: rgba(107, 42, 42, 0.035);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 18% 28%, var(--breath-a), transparent 60%),
    radial-gradient(ellipse 65% 50% at 82% 72%, var(--breath-b), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 100%, var(--breath-c), transparent 55%),
    radial-gradient(ellipse 45% 35% at 72% 18%, var(--breath-d), transparent 62%);
  background-repeat: no-repeat;
  background-size: 140% 140%, 150% 150%, 120% 120%, 130% 130%;
  background-position: 0% 40%, 100% 60%, 50% 100%, 70% 10%;
  animation: section-breathe 16s ease-in-out infinite;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Precise geometric ornaments on light sections */
.section::before,
.section::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: auto;
  will-change: transform, opacity;
}

.section::before {
  width: min(300px, 46vw);
  height: min(300px, 46vw);
  top: 0.5rem;
  inset-inline-start: -1rem;
  background-image: url('/images/ornaments/medallion-art.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  mix-blend-mode: multiply;
  transform-origin: center center;
  animation:
    ornament-float 18s ease-in-out infinite,
    ornament-pulse 9s ease-in-out infinite;
}

.section::after {
  width: min(88px, 15vw);
  height: min(560px, 88%);
  top: 8%;
  inset-inline-end: 0.1rem;
  background-image: url('/images/ornaments/border-art.png');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.38;
  mix-blend-mode: multiply;
  transform-origin: center center;
  animation: border-float 14s ease-in-out infinite;
}

.section:nth-of-type(3n)::before {
  background-image: url('/images/ornaments/rose-art.png');
  opacity: 0.2;
  animation:
    ornament-float-alt 20s ease-in-out infinite,
    ornament-pulse 10s ease-in-out infinite reverse;
}

.section:nth-of-type(3n+2)::before {
  background-image: url('/images/ornaments/medallion-art.png');
  opacity: 0.2;
  animation:
    ornament-float 22s ease-in-out infinite reverse,
    ornament-pulse 11s ease-in-out infinite;
}

.section:nth-of-type(even)::before {
  inset-inline-start: auto;
  inset-inline-end: -1rem;
  top: auto;
  bottom: 0.8rem;
  background-image: url('/images/ornaments/rose-art.png');
  animation:
    ornament-float-alt 19s ease-in-out infinite,
    ornament-pulse 8.5s ease-in-out infinite;
}

.section:nth-of-type(even)::after {
  inset-inline-end: auto;
  inset-inline-start: 0.1rem;
  top: auto;
  bottom: 6%;
  background-image: url('/images/ornaments/border-art.png');
  opacity: 0.34;
  animation: border-float-flip 15s ease-in-out infinite;
}

.section:nth-of-type(odd)::after {
  background-image: url('/images/ornaments/border-art.png');
}

.section-alt {
  --breath-a: rgba(13, 159, 79, 0.09);
  --breath-b: rgba(47, 79, 99, 0.07);
  --breath-c: rgba(20, 201, 104, 0.055);
  --breath-d: rgba(107, 42, 42, 0.04);
  background-color: var(--bg-card);
  background-image:
    radial-gradient(ellipse 70% 55% at 18% 28%, var(--breath-a), transparent 60%),
    radial-gradient(ellipse 65% 50% at 82% 72%, var(--breath-b), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 100%, var(--breath-c), transparent 55%),
    radial-gradient(ellipse 40% 32% at 68% 14%, var(--breath-d), transparent 60%),
    url('/images/ornaments/medallion-art.png'),
    url('/images/ornaments/rose-art.png'),
    url('/images/ornaments/girih-star.svg'),
    url('/images/ornaments/rub-el-hizb.svg');
  background-repeat: no-repeat;
  background-size:
    140% 140%,
    150% 150%,
    120% 120%,
    130% 130%,
    150px 150px,
    220px 220px,
    120px 120px,
    88px 88px;
  background-position:
    0% 40%,
    100% 60%,
    50% 100%,
    70% 12%,
    calc(100% - 0.5rem) 0.75rem,
    0.5rem calc(100% - 0.5rem),
    52% 46%,
    22% 18%;
  background-blend-mode: normal, normal, normal, normal, multiply, multiply, multiply, multiply;
  animation: section-breathe-alt 18s ease-in-out infinite;
}

.section-alt::before {
  opacity: 0.18;
}

/* Floating motif swarm — injected via JS */
.section-motifs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-motifs .motif {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  mix-blend-mode: multiply;
  opacity: 0.16;
  will-change: transform, opacity;
}

.section-motifs .motif--girih {
  width: min(150px, 28vw);
  height: min(150px, 28vw);
  background-image: url('/images/ornaments/girih-star.svg');
  inset-inline-end: 8%;
  top: 38%;
  animation: motif-spin-drift 28s ease-in-out infinite;
}

.section-motifs .motif--khatam {
  width: min(96px, 18vw);
  height: min(96px, 18vw);
  background-image: url('/images/ornaments/rub-el-hizb.svg');
  inset-inline-start: 12%;
  top: 58%;
  animation: motif-bob 16s ease-in-out infinite;
}

.section-motifs .motif--rose {
  width: min(120px, 22vw);
  height: min(120px, 22vw);
  background-image: url('/images/ornaments/compass-rose.svg');
  inset-inline-start: 42%;
  top: 8%;
  opacity: 0.12;
  animation: motif-spin-slow 48s linear infinite;
}

.section-motifs .motif--medallion {
  width: min(180px, 34vw);
  height: min(180px, 34vw);
  background-image: url('/images/ornaments/medallion.svg');
  inset-inline-end: 18%;
  bottom: 6%;
  opacity: 0.14;
  animation: motif-drift 22s ease-in-out infinite;
}

.section-motifs .motif--seal {
  width: min(72px, 14vw);
  height: min(72px, 14vw);
  background-image: url('/images/ornaments/border-ornament.svg');
  inset-inline-start: 6%;
  top: 22%;
  opacity: 0.15;
  animation: motif-fade-swim 14s ease-in-out infinite;
}

.section-motifs .motif--panel {
  width: min(56px, 11vw);
  height: min(220px, 42%);
  background-image: url('/images/ornaments/panel-lattice.svg');
  inset-inline-end: 2%;
  top: 18%;
  opacity: 0.18;
  animation: motif-rise 18s ease-in-out infinite;
}

.section:nth-of-type(even) .motif--girih {
  inset-inline-end: auto;
  inset-inline-start: 6%;
  top: 28%;
  animation-direction: reverse;
}

.section:nth-of-type(3n) .motif--khatam {
  inset-inline-start: auto;
  inset-inline-end: 14%;
  top: 48%;
}

.section:nth-of-type(3n+1) .motif--rose {
  inset-inline-start: 58%;
  top: auto;
  bottom: 18%;
}

.section:nth-of-type(odd) .motif--panel {
  inset-inline-end: auto;
  inset-inline-start: 1.5%;
  animation-name: motif-rise-flip;
}

[data-theme="dark"] .section {
  --breath-a: rgba(13, 159, 79, 0.12);
  --breath-b: rgba(90, 140, 160, 0.08);
  --breath-c: rgba(20, 201, 104, 0.07);
  --breath-d: rgba(180, 120, 120, 0.05);
}

[data-theme="dark"] .section::before,
[data-theme="dark"] .section::after {
  opacity: 0.48;
  mix-blend-mode: screen;
  filter: brightness(1.65) contrast(1.15) saturate(1.1);
}

[data-theme="dark"] .section-alt::before {
  opacity: 0.42;
}

[data-theme="dark"] .section-alt {
  background-blend-mode: normal, normal, normal, normal, screen, screen, soft-light, soft-light;
}

[data-theme="dark"] .section-motifs .motif {
  mix-blend-mode: screen;
  opacity: 0.52;
  filter: brightness(1.75) contrast(1.2) saturate(1.15);
}

@keyframes section-breathe {
  0%, 100% {
    background-position: 0% 40%, 100% 60%, 50% 100%, 70% 10%;
    background-size: 140% 140%, 150% 150%, 120% 120%, 130% 130%;
  }
  50% {
    background-position: 18% 55%, 78% 42%, 46% 88%, 58% 22%;
    background-size: 160% 160%, 165% 165%, 135% 135%, 145% 145%;
  }
}

@keyframes section-breathe-alt {
  0%, 100% {
    background-position:
      0% 40%,
      100% 60%,
      50% 100%,
      70% 12%,
      calc(100% - 0.5rem) 0.75rem,
      0.5rem calc(100% - 0.5rem),
      52% 46%,
      22% 18%;
  }
  50% {
    background-position:
      16% 52%,
      82% 44%,
      48% 90%,
      58% 20%,
      calc(100% - 0.1rem) 1.3rem,
      1rem calc(100% - 0.2rem),
      48% 52%,
      26% 24%;
  }
}

@keyframes ornament-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25% { transform: translate3d(16px, -20px, 0) rotate(5deg) scale(1.05); }
  50% { transform: translate3d(-8px, -12px, 0) rotate(-4deg) scale(1.02); }
  75% { transform: translate3d(-18px, 14px, 0) rotate(6deg) scale(0.96); }
}

@keyframes ornament-float-alt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(-20px, -18px, 0) rotate(-9deg) scale(1.07); }
}

@keyframes ornament-pulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.34; }
}

@keyframes border-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.3; }
  50% { transform: translate3d(0, -24px, 0) rotate(1.8deg); opacity: 0.45; }
}

@keyframes border-float-flip {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0) rotate(0deg); opacity: 0.26; }
  50% { transform: scaleX(-1) translate3d(0, -20px, 0) rotate(-1.8deg); opacity: 0.4; }
}

@keyframes motif-spin-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 0.14; }
  35% { transform: translate3d(-22px, -28px, 0) rotate(18deg) scale(1.08); opacity: 0.26; }
  70% { transform: translate3d(14px, 16px, 0) rotate(-12deg) scale(0.94); opacity: 0.18; }
}

@keyframes motif-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.14; }
  50% { transform: translate3d(12px, -26px, 0) rotate(-8deg); opacity: 0.28; }
}

@keyframes motif-spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes motif-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  25% { transform: translate3d(20px, -14px, 0) rotate(6deg) scale(1.04); }
  50% { transform: translate3d(-10px, -28px, 0) rotate(-4deg) scale(1.08); }
  75% { transform: translate3d(-24px, 10px, 0) rotate(8deg) scale(0.96); }
}

@keyframes motif-fade-swim {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.1; }
  40% { transform: translate3d(18px, -22px, 0) scale(1.12); opacity: 0.24; }
  70% { transform: translate3d(-12px, 10px, 0) scale(0.92); opacity: 0.16; }
}

@keyframes motif-rise {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.14; }
  50% { transform: translate3d(0, -30px, 0); opacity: 0.26; }
}

@keyframes motif-rise-flip {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0); opacity: 0.14; }
  50% { transform: scaleX(-1) translate3d(0, -26px, 0); opacity: 0.24; }
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .section-alt,
  .section::before,
  .section::after,
  .section-motifs .motif {
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .section::before {
    width: min(150px, 42vw);
    height: min(150px, 42vw);
    top: 0.35rem;
    inset-inline-start: -0.6rem;
    opacity: 0.28;
  }

  .section:nth-of-type(even)::before {
    inset-inline-start: auto;
    inset-inline-end: -0.6rem;
    top: auto;
    bottom: 0.4rem;
  }

  .section::after {
    width: min(44px, 11vw);
    height: min(240px, 48%);
    top: 12%;
    inset-inline-end: 0;
    opacity: 0.34;
  }

  .section:nth-of-type(even)::after {
    inset-inline-end: auto;
    inset-inline-start: 0;
    top: auto;
    bottom: 10%;
  }

  .section-alt {
    background-size:
      140% 140%,
      150% 150%,
      120% 120%,
      130% 130%,
      92px 92px,
      120px 120px,
      72px 72px,
      56px 56px;
    background-position:
      0% 40%,
      100% 60%,
      50% 100%,
      70% 12%,
      calc(100% - 0.2rem) 0.4rem,
      0.25rem calc(100% - 0.35rem),
      78% 62%,
      18% 22%;
  }

  /* Compact motif layout for phone — corners/edges only */
  .section-motifs .motif--panel {
    display: none;
  }

  .section-motifs .motif--rose {
    width: min(78px, 20vw);
    height: min(78px, 20vw);
    inset-inline-start: auto;
    inset-inline-end: 4%;
    top: 6%;
    bottom: auto;
    opacity: 0.22;
  }

  .section-motifs .motif--girih {
    width: min(96px, 26vw);
    height: min(96px, 26vw);
    inset-inline-end: auto;
    inset-inline-start: 3%;
    top: auto;
    bottom: 8%;
    opacity: 0.24;
  }

  .section-motifs .motif--medallion {
    width: min(110px, 30vw);
    height: min(110px, 30vw);
    inset-inline-end: 2%;
    inset-inline-start: auto;
    top: auto;
    bottom: 4%;
    opacity: 0.2;
  }

  .section-motifs .motif--khatam {
    width: min(64px, 16vw);
    height: min(64px, 16vw);
    inset-inline-start: 8%;
    inset-inline-end: auto;
    top: 10%;
    opacity: 0.22;
  }

  .section-motifs .motif--seal {
    width: min(52px, 13vw);
    height: min(52px, 13vw);
    inset-inline-start: auto;
    inset-inline-end: 10%;
    top: 42%;
    opacity: 0.2;
  }

  [data-theme="dark"] .section::before,
  [data-theme="dark"] .section::after {
    opacity: 0.55;
    filter: brightness(1.85) contrast(1.2) saturate(1.2);
  }

  [data-theme="dark"] .section-motifs .motif {
    opacity: 0.58;
    filter: brightness(1.9) contrast(1.25) saturate(1.2);
  }

  [data-theme="dark"] .section-motifs .motif--rose,
  [data-theme="dark"] .section-motifs .motif--girih,
  [data-theme="dark"] .section-motifs .motif--medallion,
  [data-theme="dark"] .section-motifs .motif--khatam,
  [data-theme="dark"] .section-motifs .motif--seal {
    opacity: 0.62;
  }
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* Impact stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
}

.stat-box:hover {
  transform: translateY(-6px);
  border-color: var(--green);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--black), var(--green-dark));
  position: relative;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 4rem;
}

.about-badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Cards grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Public horizontal sliders */
.hslider-wrap {
  width: 100%;
  position: relative;
}

.hslider {
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
  direction: ltr; /* نضمن أن حركة scrollLeft تتحرك يسار -> يمين */
  scroll-behavior: smooth;
  touch-action: pan-y pinch-zoom;
  outline: none;
  cursor: grab;
}

.hslider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.hslider::-webkit-scrollbar {
  display: none;
}

.hslider-controls {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hslider-arrow {
  pointer-events: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(7, 41, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}

.hslider-arrow:hover {
  background: var(--green);
  transform: scale(1.08);
}

.hslider-arrow:focus-visible {
  outline: 3px solid rgba(13, 159, 79, 0.35);
  outline-offset: 3px;
}

.hslider-track {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  width: max-content;
  padding: 0.25rem 0;
}

.hslide-item {
  flex: 0 0 auto;
  width: min(340px, 88vw);
}

.hcard {
  direction: rtl;
  cursor: pointer;
}

.card-preview {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.public-modal-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.9;
}

/* Public modal (details) */
.public-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.public-modal-backdrop.show {
  display: flex;
}

.public-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: min(780px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.public-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.public-modal-title-wrap {
  flex: 1;
  min-width: 0;
}

.public-modal-meta {
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.public-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.public-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(13, 159, 79, 0.35);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.public-modal-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.public-modal-media {
  position: relative;
}

.public-media-stage {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #070b09;
  border-radius: 12px;
  touch-action: pan-y pinch-zoom;
}

.public-media-stage img,
.public-media-stage video {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: inherit;
  background: transparent;
}

.public-media-stage video {
  min-height: 260px;
  background: #000;
}

.public-media-arrow {
  position: absolute;
  top: 145px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
}

.public-media-prev { left: 10px; }
.public-media-next { right: 10px; }
.public-media-arrow:hover { background: var(--green); }

.public-media-counter {
  margin-top: 0.45rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.75rem;
  direction: ltr;
}

.public-media-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  overflow-x: auto;
  padding: 0.2rem;
}

.public-media-thumbs button {
  width: 54px;
  height: 43px;
  flex: 0 0 54px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #15251c;
  border: 2px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.public-media-thumbs button.active { border-color: var(--green); }

.public-media-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-media-video-thumb { font-size: 1.05rem; }

.public-social-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.public-social-links a {
  padding: 0.45rem 0.75rem;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.public-modal-body {
  margin-top: 1rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.9;
  white-space: pre-wrap; /* يسمح بعرض أسطر المقال كما هي */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

.card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--black-soft), var(--green-dark));
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.35);
  font-size: 2.5rem;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.member-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
}

.member-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  overflow: hidden;
  border: 3px solid var(--green-soft);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.member-card .pos { color: var(--green); font-weight: 600; font-size: 0.9rem; }

.partner-logo {
  height: 80px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--bg);
}

.partner-logo img {
  max-height: 60px;
  object-fit: contain;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* News spotlight (distinct from horizontal sliders) */
.news-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.news-spotlight-stage {
  position: relative;
  min-height: 420px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(13, 159, 79, 0.18), transparent 42%),
    linear-gradient(160deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 86%, var(--green) 14%));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.news-auto-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 3px;
  background: color-mix(in srgb, var(--border) 70%, transparent);
}

.news-auto-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

.news-feature {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(220px, 56%) minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.news-feature.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  z-index: 1;
}

.news-feature-media {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
}

.news-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-feature.is-active:hover .news-feature-media img {
  transform: scale(1.04);
}

.news-feature-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0d9f4f 0%, #087a3b 55%, #0a0a0a 100%);
  color: #fff;
}

.news-feature-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.news-feature-body {
  padding: 1.15rem 1.25rem 3.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.news-feature-body h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  color: var(--text);
}

.news-feature-body .card-preview {
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-feature-cta {
  margin-top: auto;
  align-self: flex-start;
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
}

.news-spotlight-controls {
  position: absolute;
  z-index: 5;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  touch-action: manipulation;
}

.news-spot-btn,
.news-spot-dot {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.news-spot-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.news-spot-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.06);
}

.news-spot-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  border: 1px solid var(--border);
}

.news-spot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--text-muted) 55%, transparent);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.news-spot-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--green);
}

.news-spotlight-rail {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 520px;
  overflow: auto;
  padding-left: 0.2rem;
  scrollbar-width: thin;
}

.news-rail-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--green) 45%, var(--border));
  background: color-mix(in srgb, var(--bg-card) 88%, var(--green) 12%);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

.news-rail-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: right;
}

.news-rail-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--green) 45%, var(--border));
}

.news-rail-item.is-active {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(13, 159, 79, 0.14);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green) 10%, var(--bg-card)), var(--bg-card));
}

.news-rail-thumb {
  width: 88px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.news-rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-rail-body h4 {
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0.1rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-rail-body .card-preview {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-rail-body .news-meta {
  margin-bottom: 0.15rem;
  font-size: 0.74rem;
}

/* Dome Gallery */
.dome-section {
  background: var(--black);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.dome-section .section-head h2 { color: #fff; }
.dome-section .section-head p { color: rgba(255,255,255,0.65); }

.dome-stage {
  perspective: 1200px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dome-carousel {
  position: relative;
  width: 220px;
  height: 280px;
  transform-style: preserve-3d;
  animation: domeSpin 30s linear infinite;
}

.dome-carousel:hover { animation-play-state: paused; }

@keyframes domeSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.dome-item {
  position: absolute;
  width: 200px;
  height: 260px;
  left: 10px;
  top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--green);
  box-shadow: 0 0 30px rgba(13,159,79,0.35);
  background: var(--black-card);
}

.dome-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dome-item .dome-cap {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.dome-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  padding: 3rem;
}

/* Forms */
.form-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--green-soft) 100%);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin-inline: auto;
}

.bank-account-box {
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--green-soft);
  border: 1px solid rgba(13, 159, 79, 0.25);
  border-right: 4px solid var(--green);
  border-radius: 12px;
}

.bank-account-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green);
  font-size: 0.95rem;
}

.bank-account-box p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.bank-account-number {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px dashed rgba(13, 159, 79, 0.4);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  user-select: all;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.field-optional {
  color: var(--text-muted);
  font-size: 0.82em;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.checkbox-group input {
  margin-top: 0.3rem;
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.alert {
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.alert-success {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green);
}

[data-theme="dark"] .alert-success { color: var(--green-light); }

.alert-error {
  background: rgba(200,40,40,0.1);
  color: #c82828;
  border: 1px solid #c82828;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: var(--green-light);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--green-light); }

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(13,159,79,0.4);
  display: grid;
  place-items: center;
  color: var(--green-light);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-links a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-links a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.section-all-link:hover {
  color: #fff;
  background: var(--green);
  transform: translateY(-2px);
}

/* Public archive pages */
.archive-page {
  min-height: 70vh;
  padding-top: 76px;
}

.archive-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 12% 50%, rgba(0, 122, 61, 0.5), transparent 35%),
    radial-gradient(circle at 88% 50%, rgba(210, 16, 52, 0.35), transparent 32%),
    #090c0a;
}

.archive-hero h1 {
  margin: 1rem 0 0.65rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.archive-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.archive-back {
  display: inline-flex;
  color: var(--green-light);
  font-weight: 700;
}

.archive-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 2.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.archive-filter-field {
  display: grid;
  gap: 0.45rem;
}

.archive-filter-field label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.archive-filter-field input,
.archive-filter-field select {
  width: 100%;
  min-height: 46px;
}

.archive-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.archive-filter-actions .btn-outline {
  color: var(--text);
  border-color: var(--border);
}

.archive-filter-actions .btn-outline:hover {
  color: var(--green);
  border-color: var(--green);
}

.archive-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.archive-results-head span,
.archive-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.archive-item {
  height: 100%;
  cursor: pointer;
}

.archive-grid .card-img {
  height: 230px;
}

.archive-grid .partner-logo {
  margin-top: 1.5rem;
}

.archive-grid .member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.archive-empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.archive-empty h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.archive-empty .btn {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .dome-stage { height: 340px; }
  .archive-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-spotlight {
    grid-template-columns: 1fr;
  }
  .news-spotlight-stage {
    min-height: 390px;
  }
  .news-spotlight-controls {
    left: 50%;
    right: auto;
    bottom: 0.85rem;
    transform: translateX(-50%);
    z-index: 6;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }
  .news-spotlight-rail {
    max-height: none;
  }
}

@media (max-width: 600px) {
  .site-nav .nav-inner { min-height: 68px; }
  .site-nav .nav-logo {
    width: 68px;
    height: 68px;
  }
  .site-nav .nav-logo img {
    top: -7px;
    width: 114px;
    height: 114px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .stat-box {
    padding: 1.35rem 0.55rem;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .stat-num { font-size: 2rem; }
  .stat-label {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .form-row { grid-template-columns: 1fr; }
  .side-controls { left: 6px; }
  .side-btn { width: 42px; height: 42px; }
  .section { padding: 3.5rem 0; }
  .hslider-track { gap: 1rem; }
  .hslide-item { width: 86vw; }
  .hslider-controls { display: none; }
  .news-feature {
    grid-template-rows: minmax(180px, 48%) minmax(0, 1fr);
  }
  .news-feature-body {
    padding: 1rem 1rem 3.4rem;
  }
  .news-feature-body h3 {
    font-size: 1.15rem;
  }
  .news-rail-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .news-rail-thumb {
    width: 72px;
    height: 64px;
  }
  .public-modal-box { padding: 0.95rem; }
  .public-modal-title { font-size: 1.15rem; }
  .public-modal-media img { max-height: 220px; }
  .archive-page { padding-top: 68px; }
  .archive-hero { padding: 2.4rem 0 1.8rem; }
  .archive-hero h1 {
    margin-top: 0.7rem;
    font-size: 1.65rem;
  }
  .archive-hero p { font-size: 0.88rem; }
  .archive-content { padding-block: 2rem; }
  .archive-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .archive-filter-field { gap: 0.3rem; }
  .archive-filter-field label { font-size: 0.78rem; }
  .archive-filter-field input,
  .archive-filter-field select {
    min-height: 40px;
    padding: 0.5rem;
    font-size: 0.78rem;
  }
  .archive-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .archive-filter-actions .btn {
    width: auto;
    min-height: 40px;
    padding: 0.5rem 0.35rem;
    font-size: 0.78rem;
  }
  .archive-results-head { margin-bottom: 0.8rem; }
  .archive-results-head h2 { font-size: 1.25rem; }
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .archive-grid .card-img { height: 120px; }
  .archive-grid .card-body { padding: 0.8rem; }
  .archive-grid .archive-item h3 {
    font-size: 0.92rem;
    line-height: 1.55;
  }
  .archive-grid .card-preview { display: none; }
  .archive-grid .news-meta,
  .archive-grid .archive-date {
    font-size: 0.68rem;
  }
  .archive-grid .partner-logo {
    width: 76px;
    height: 76px;
    margin-top: 0.9rem;
  }
  .archive-grid .member-card { padding: 1rem 0.55rem; }
  .archive-grid .member-photo {
    width: 78px;
    height: 78px;
    margin-bottom: 0.7rem;
  }
  .archive-grid .pos { font-size: 0.75rem; }
}
