/* =====================================================================
   الطبقة الثانية للتصميم (تُحمَّل بعد style.css):
   رأس من شريطين، عناوين أقسام بزخرفة، حزمة أرقام ملونة، لوحة انضمام،
   تذييل بثلاثة أعمدة، سلايدر واجهة بعرض الصفحة، وظهور تدريجي عند التمرير.
   بهوية رواد الإبداع: الأخضر والذهبي وخط Amiri.
   ===================================================================== */
:root {
  --header-h: 60px;
  --bg: #fcfcfa;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231d5c4d' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M32 6l7 19 19 7-19 7-7 19-7-19-19-7 19-7z'/%3E%3Cpath d='M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M32 6l7 19 19 7-19 7-7 19-7-19-19-7 19-7z'/%3E%3Cpath d='M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/g%3E%3C/svg%3E");
}

body {
  background: var(--bg);
}

/* ---------- الشريط العلوي الأبيض ---------- */
.topbar {
  view-transition-name: topbar;
  background: #fff var(--pattern);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  max-width: none;
}

.topbar .brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(11, 46, 39, .15);
}

.topbar .brand-text strong {
  font-size: 24px;
  color: var(--green-900);
}

.topbar .brand-text small {
  color: var(--teal);
  opacity: 1;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline-start: auto;
}

.tc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.tc-item small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.3;
}

.tc-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  color: var(--green-900);
}

.tc-item .ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.tc-ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--green-700);
  color: #fff;
  transition: background .2s, color .2s, transform .2s var(--ease);
}

.tc-ic svg {
  width: 19px;
  height: 19px;
}

a.tc-item:hover .tc-ic {
  background: var(--gold);
  color: var(--green-950);
  transform: rotate(-8deg);
}

.topbar .header-actions {
  gap: 12px;
}

.topbar .lang-switch button {
  border-color: var(--line);
  color: var(--green-800);
  background: #fff;
}

.topbar .lang-switch button:hover {
  border-color: var(--gold);
  color: var(--green-900);
}

.topbar .lang-switch button[aria-pressed="true"],
html[data-lang-active="fr"] .topbar .lang-switch button[data-lang="fr"],
html[data-lang-active="en"] .topbar .lang-switch button[data-lang="en"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

html[data-lang-active="fr"] .topbar .lang-switch button[data-lang="ar"],
html[data-lang-active="en"] .topbar .lang-switch button[data-lang="ar"] {
  background: #fff;
  border-color: var(--line);
  color: var(--green-800);
}

/* ---------- شريط القائمة الملون (يبقى ثابتاً أعلى الصفحة) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(180deg, var(--green-700), var(--green-800));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: 0 6px 18px rgba(11, 46, 39, .18);
}

.site-header .wrap {
  height: var(--header-h);
  gap: 12px;
  max-width: none;
}

.main-nav ul {
  gap: 2px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
  padding: 0 18px;
  border-radius: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 18px;
}

.main-nav a svg {
  width: 18px;
  height: 18px;
  opacity: .85;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.main-nav a[aria-current="page"] {
  color: var(--gold);
  background: rgba(0, 0, 0, .14);
}

.main-nav a[aria-current="page"]::after {
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0;
}

.nav-social {
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transition: background .2s, color .2s, transform .2s var(--ease);
}

.nav-social:hover {
  background: var(--gold);
  color: var(--green-950);
  transform: translateY(-2px);
}

.nav-social svg {
  width: 18px;
  height: 18px;
}

/* ---------- عناوين الأقسام: عنوان، زخرفة، ثم عنوان فرعي ---------- */
.section-head,
.section-head.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
}

.section-head .h2 {
  order: 1;
  color: var(--green-900);
  margin-bottom: 0;
}

.section-head .h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 14px;
  margin: 14px auto 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 7 7 3-7 3-3 7-3-7-7-3 7-3z' fill='%23dcb52c'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(90deg, transparent, var(--teal) 30%, transparent 44%, transparent 56%, var(--teal) 70%, transparent) center / 100% 2px no-repeat;
}

.section-head .eyebrow {
  order: 2;
  color: var(--teal);
  font-size: 18px;
  margin: 0 0 8px;
}

.section-head .eyebrow::before {
  display: none;
}

.section-head .lead {
  order: 3;
}

.section-dark .section-head .h2 {
  color: #fff;
}

.section-dark .section-head .eyebrow {
  color: var(--gold);
}

/* خلفيات الأقسام بزخرفة هندسية خفيفة */
.section:not(.section-dark):not(.section-white) {
  background: var(--cream) var(--pattern);
}

.section-white {
  background: #fff;
}

.section-dark {
  background: var(--green-900) var(--pattern-light);
}

/* ---------- البطاقات: ارتفاع وظل وخط سفلي ملون عند المرور ---------- */
.card {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.card:hover::after {
  transform: scaleX(1);
}

.card.lift:hover,
a.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11, 46, 39, .14);
}

.cards-4>.card,
.cards-3>.card {
  text-align: center;
  padding: 34px 24px 30px;
}

.cards-4>.card .card-icon,
.cards-3>.card .card-icon {
  margin-inline: auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(29, 92, 77, .1);
  color: var(--green-700);
  transition: background .3s, color .3s, transform .5s var(--ease);
}

.cards-4>.card .card-icon svg,
.cards-3>.card .card-icon svg {
  width: 32px;
  height: 32px;
}

.cards-4>.card:hover .card-icon,
.cards-3>.card:hover .card-icon {
  background: var(--green-700);
  color: var(--gold);
  transform: rotateY(180deg);
}

.cards-3>.post-card,
.cards-2>.post-card {
  text-align: start;
  padding: 0;
}

.post-card .thumb {
  position: relative;
}

.post-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 46, 39, .45), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}

.post-card:hover .thumb::after {
  opacity: 1;
}

/* ---------- حزمة الأرقام الملونة ---------- */
.stats {
  background: var(--green-800) var(--pattern-light);
  border: 0;
  color: #fff;
}

.stat {
  border-color: rgba(255, 255, 255, .14) !important;
  padding-block: 40px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, .2);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-num {
  color: #fff;
  font-size: 44px;
}

.stat-label {
  color: rgba(255, 255, 255, .82);
}

/* ---------- لوحة الانضمام الملونة ---------- */
.cta-panel {
  margin-top: 40px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(29, 92, 77, .96), rgba(15, 61, 51, .98)), var(--pattern-light);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 24px 50px rgba(11, 46, 39, .25);
}

.cta-panel .h2 {
  color: #fff;
  margin: 0 0 6px;
}

.cta-panel .lead {
  color: rgba(255, 255, 255, .85);
  margin: 0;
}

.cta-panel .btn {
  background: #fff;
  color: var(--green-900);
}

.cta-panel .btn:hover {
  background: var(--gold);
  color: var(--green-950);
}

/* ---------- التذييل ---------- */
.site-footer {
  background: var(--green-950) var(--pattern-light);
}

.site-footer .wrap {
  max-width: none;
}

.site-footer h3 {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.footer-contact li {
  gap: 12px;
  padding-block: 4px;
}

.footer-contact svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.socials a {
  border-radius: 10px;
  background: var(--gold);
  color: var(--green-950);
}

.socials a:hover {
  background: #fff;
}

/* ---------- واجهة الرئيسية: سلايدر صور بعرض الصفحة ---------- */
.hero.hero-slider {
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--green-950);
  position: relative;
}

.hero-slider .hero-ss {
  position: relative;
  aspect-ratio: auto;
  height: clamp(520px, 80vh, 740px);
  border-radius: 0;
  box-shadow: none;
}

.hero-ss .slide {
  cursor: default;
}

.hero-ss .slide img {
  object-position: center 35%;
}

.hero-ss::after {
  height: 100%;
  z-index: 2;
  background: linear-gradient(to left, rgba(11, 46, 39, .95) 0%, rgba(11, 46, 39, .8) 36%, rgba(11, 46, 39, .25) 72%, rgba(11, 46, 39, .1) 100%);
}

.is-ltr .hero-ss::after {
  background: linear-gradient(to right, rgba(11, 46, 39, .95) 0%, rgba(11, 46, 39, .8) 36%, rgba(11, 46, 39, .25) 72%, rgba(11, 46, 39, .1) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  color: #fff;
}

.hero-content>* {
  pointer-events: auto;
  max-width: 660px;
}

.hero-content h1 {
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.22;
  margin-bottom: 14px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, .86);
  margin-bottom: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
}

.hero-ss .ss-controls {
  inset-inline-start: auto;
  inset-inline-end: var(--gutter);
  bottom: 22px;
  width: min(440px, 40%);
}

.hero-content>* {
  pointer-events: auto;
  max-width: 620px;
}

.hero-content .lead {
  color: rgba(255, 255, 255, .86);
  margin-bottom: 30px;
}

.hero-ss .ss-controls {
  inset-inline-start: auto;
  inset-inline-end: var(--gutter);
  bottom: 22px;
  width: min(440px, 40%);
}

/* ---------- الظهور التدريجي عند التمرير ---------- */
/* أنواع الحركة (على نمط مكتبة AOS): الحالة المخفية لكل نوع.
   يظهر العنصر عند النزول إليه، ويعود لحالته المخفية عند الصعود فوقه */
html.reveal-on .reveal:not(.in) {
  opacity: 0;
}

html.reveal-on .reveal[data-reveal="fade-up"]:not(.in) {
  transform: translate3d(0, 100px, 0);
}

html.reveal-on .reveal[data-reveal="fade-down"]:not(.in) {
  transform: translate3d(0, -100px, 0);
}

html.reveal-on .reveal[data-reveal="fade-left"]:not(.in) {
  transform: translate3d(100px, 0, 0);
}

html.reveal-on .reveal[data-reveal="fade-right"]:not(.in) {
  transform: translate3d(-100px, 0, 0);
}

html.reveal-on .reveal[data-reveal="zoom-in"]:not(.in) {
  transform: scale(.6);
}

html.reveal-on .reveal.animating {
  transition: opacity .6s cubic-bezier(.445, .05, .55, .95), transform .6s cubic-bezier(.445, .05, .55, .95);
}

html.reveal-on .reveal.animating:not(.in) {
  transition-duration: .45s;
}

/* العناصر الداخلة من الجانبين لا تُحدث تمريراً أفقياً */
main,
.site-footer {
  overflow-x: clip;
}

/* ---------- زر التواصل العائم (أسفل اليمين) ---------- */
.contact-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 56;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .9);
  cursor: pointer;
  padding: 0;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 46, 39, .35);
  animation: fab-pulse 2.6s ease-out infinite;
}

.fab-main svg {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: transform .5s var(--ease), opacity .5s;
}

.fab-main svg:not(.on) {
  transform: translateY(26px) rotate(-30deg);
  opacity: 0;
}

.contact-fab.open .fab-main {
  animation: none;
  background: var(--gold);
  color: var(--green-950);
}

@keyframes fab-pulse {
  0% {
    box-shadow: 0 10px 26px rgba(11, 46, 39, .35), 0 0 0 0 rgba(35, 112, 96, .5);
  }

  70% {
    box-shadow: 0 10px 26px rgba(11, 46, 39, .35), 0 0 0 16px rgba(35, 112, 96, 0);
  }

  100% {
    box-shadow: 0 10px 26px rgba(11, 46, 39, .35), 0 0 0 0 rgba(35, 112, 96, 0);
  }
}

.fab-list {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.fab-list a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(12px) scale(.8);
  pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
}

.fab-list a svg {
  width: 22px;
  height: 22px;
}

.contact-fab.open .fab-list a {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.contact-fab.open .fab-list a:nth-child(2) {
  transition-delay: .04s;
}

.contact-fab.open .fab-list a:nth-child(3) {
  transition-delay: .08s;
}

.contact-fab.open .fab-list a:nth-child(4) {
  transition-delay: .12s;
}

.contact-fab.open .fab-list a:hover {
  transform: scale(1.08);
}

/* ---------- الشاشات المتوسطة والصغيرة ---------- */
@media (max-width: 1080px) {
  .top-contact .tc-item:nth-child(2) {
    display: none;
  }

  .site-header .wrap {
    justify-content: space-between;
  }

  .site-header .menu-toggle {
    border-color: rgba(255, 255, 255, .3);
  }

  .nav-social {
    margin-inline-start: 0;
  }
}

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

  .hero-content>* {
    max-width: 100%;
  }

  .hero-ss::after,
  .is-ltr .hero-ss::after {
    background: linear-gradient(to top, rgba(11, 46, 39, .96) 12%, rgba(11, 46, 39, .72) 55%, rgba(11, 46, 39, .35));
  }

  .hero-ss .ss-controls {
    width: auto;
    inset-inline: var(--gutter);
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 54px;
  }

  .topbar .wrap {
    min-height: 66px;
    gap: 10px;
  }

  .topbar .brand {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .topbar .brand img {
    width: 42px;
    height: 42px;
    flex: none;
  }

  .topbar .brand-text {
    min-width: 0;
  }

  .topbar .brand-text strong {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar .header-actions {
    flex: none;
  }

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

  .hero-slider .hero-ss {
    height: 640px;
  }

  /* أزرار السلايدر في الأعلى حتى لا تغطيها الأزرار العائمة أسفل الشاشة */
  .hero-ss .ss-controls {
    bottom: auto;
    top: 14px;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .hero-content h1 {
    font-size: 27px;
  }

  .contact-fab {
    right: 14px;
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .fab-main {
    width: 48px;
    height: 48px;
  }

  .stat-num {
    font-size: 36px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-panel .btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .story-section .wrap,
  .story-panel,
  .term-card,
  .term-text,
  .handover-card,
  .logo-step,
  .logo-frame,
  .logo-info,
  .namesake,
  .namesake-body,
  .pact,
  .pact-text,
  .pact-photos,
  .tl-loop,
  .tl-loop .timeline {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .term {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .logo-step,
  .namesake-grid,
  .pact {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-step:not(:last-child)::after {
    inset-inline-start: 50%;
  }

  .pres-name {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
}

/* ---------- شاشة البداية للتطبيق وإشعار التثبيت ---------- */
.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--green-950);
  color: #fff;
  text-align: center;
  transition: opacity .35s var(--ease), visibility .35s;
}

.app-splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
}

.app-splash-box img {
  width: 96px;
  height: 96px;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  animation: splash-pulse 1.8s ease-in-out infinite;
}

.app-splash-box strong {
  font-size: 26px;
  color: #fff;
}

.app-splash-box span {
  font-size: 17px;
  color: var(--gold);
}

.app-splash-bar {
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
}

.app-splash-bar i {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  animation: splash-slide 1.1s ease-in-out infinite alternate;
}

@keyframes splash-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes splash-slide {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(140%);
  }
}

.pwa-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 20px;
  z-index: 70;
  margin-inline: auto;
  max-width: 520px;
  background: var(--green-950);
  color: #fff;
  border: 1px solid rgba(242, 207, 74, .35);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
  animation: vt-in .25s var(--ease) both;
}

.pwa-banner img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: none;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.pwa-banner-text strong {
  display: block;
  font-size: 17px;
  color: var(--gold);
}

.pwa-banner-text small {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}

.pwa-banner .btn-pwa {
  flex: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  background: var(--gold);
  color: var(--green-950);
  font: 700 15px/1 "Amiri", serif;
}

.pwa-banner .btn-pwa:hover {
  background: var(--gold-600);
}

.pwa-banner .pwa-close {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pwa-banner .pwa-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 680px) {
  .pwa-banner {
    bottom: calc(74px + env(safe-area-inset-bottom));
    inset-inline: 10px;
    padding: 10px 12px;
    gap: 10px;
  }
}

/* ---------- ترقيم صفحات الأنشطة ---------- */
[hidden] {
  display: none !important;
}

.activity.page-first,
.activity-wide.page-first {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.pager-section {
  background: var(--cream);
  padding-block: 8px 56px;
}

.pager-info {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 14px;
}

.pager {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pg {
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-900);
  font: 700 18px/1 "Amiri", serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}

.pg svg {
  width: 18px;
  height: 18px;
}

.pg:hover:not(:disabled):not([aria-current]) {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(11, 46, 39, .1);
}

.pg[aria-current="page"] {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 92, 77, .3);
}

.pg:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pg-gap {
  color: var(--muted);
  padding: 0 2px;
}

.is-ltr .pg-step svg {
  transform: scaleX(-1);
}

@media (max-width: 680px) {
  .pg {
    min-width: 40px;
    height: 42px;
    padding: 0 10px;
    font-size: 16px;
  }

  .pg-step span {
    display: none;
  }
}

/* ---------- سجلات الأرشيف ---------- */
.archive-post h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.post-text p {
  margin: 0 0 .6em;
  color: #33443f;
}

.post-text.clamped {
  max-height: 230px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}

.read-more {
  margin: 6px 0 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--teal);
  font: 700 17px "Amiri", serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.read-more:hover {
  color: var(--green-900);
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(29, 92, 77, .08);
  color: var(--green-800);
  font-weight: 700;
  font-size: 16px;
  transition: background .2s, color .2s;
}

.post-link:hover {
  background: var(--green-700);
  color: #fff;
}

.post-link svg {
  width: 16px;
  height: 16px;
}

.archive-post.no-media .text {
  max-width: 820px;
}

/* معرض بعدد زوجي: آخر صورة تأخذ العرض كاملاً حتى لا يبقى فراغ */
.activity .gallery.gallery-n2 button:last-child,
.activity .gallery.gallery-n4 button:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

/* ---------- روابط الانتقال السريع: سنة واحدة في كل مرة ---------- */
.jump-bar.rotating .wrap {
  padding-block: 14px;
}

.jump-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.jump-tabs button {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 84px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-800);
  cursor: pointer;
  font: 700 18px/1 "Amiri", serif;
  transition: background .25s, color .25s, border-color .25s, transform .15s var(--ease);
}

.jump-tabs button span {
  position: relative;
  z-index: 1;
}

.jump-tabs button:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.jump-tabs button[aria-selected="true"] {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--gold);
}

/* شريط تقدم داخل زر السنة الحالية يمتلئ خلال 10 ثوانٍ */
.jump-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
}

.is-ltr .jump-progress {
  transform-origin: left;
}

.jump-progress.run {
  animation: jump-fill var(--jump-interval, 10s) linear forwards;
}

.jump-bar.paused .jump-progress.run {
  animation-play-state: paused;
}

@keyframes jump-fill {
  to {
    transform: scaleX(1);
  }
}

/* كل الصفوف في نفس المكان، فيبقى ارتفاع الشريط ثابتاً ولا تقفز الصفحة */
.jump-rows {
  display: grid;
}

.jump-rows>ul {
  grid-area: 1 / 1;
  padding: 0 !important;
  justify-content: center;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}

.jump-rows>ul.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s;
}

.jump-bar.rotating .jump-year {
  display: none;
}

@media (max-width: 680px) {
  .jump-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .jump-tabs::-webkit-scrollbar {
    display: none;
  }

  .jump-tabs button {
    flex: none;
    min-width: 72px;
    font-size: 16px;
  }

  .jump-rows>ul {
    justify-content: flex-start;
  }
}

/* ---------- شريط الأرقام: سبعة عناصر ---------- */
.stats-grid {
  grid-template-columns: repeat(7, 1fr);
}

.stats .stat {
  padding-inline: 10px;
}

a.stat {
  display: block;
  transition: background .25s;
}

a.stat:hover {
  background: rgba(255, 255, 255, .06);
}

a.stat:hover .stat-icon {
  background: var(--gold);
  color: var(--green-950);
}

.stat-icon {
  transition: background .25s, color .25s;
}

@media (max-width: 1080px) and (min-width: 681px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats .stat {
    border-inline-start: 1px solid rgba(255, 255, 255, .14);
    border-top: 0;
  }

  .stats .stat:nth-child(4n + 1) {
    border-inline-start: 0;
  }

  .stats .stat:nth-child(n + 5) {
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
}

@media (max-width: 680px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* شريط الأرقام يمتد من أقصى يمين الشاشة إلى أقصى يسارها */
.stats .stats-grid {
  max-width: none;
  padding-inline: 0;
}

/* ---------- قسم الإعلانات: شريط بطاقات قابل للتمرير ---------- */
.ann-carousel {
  position: relative;
}

.ann-track {
  list-style: none;
  margin: 0;
  padding: 6px 4px 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 22px) / 4);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

.ann-card {
  scroll-snap-align: start;
}

.ann-card>a {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.ann-card>a:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11, 46, 39, .15);
}

.ann-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream);
}

.ann-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.ann-card>a:hover .ann-media img {
  transform: scale(1.04);
}

.ann-count {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(11, 46, 39, .75);
  color: #fff;
  font: 700 14px/1.6 system-ui, sans-serif;
  backdrop-filter: blur(6px);
}

.ann-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  flex: 1;
}

.ann-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.ann-date svg {
  width: 16px;
  height: 16px;
}

.ann-title {
  font-size: 20px;
  line-height: 1.45;
  color: var(--green-900);
}

.ann-excerpt {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--green-700);
  font-weight: 700;
}

.ann-more::after {
  content: " ←";
  transition: margin .2s;
}

.ann-card>a:hover .ann-more::after {
  margin-inline-start: 6px;
}

.ann-nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .2s var(--ease), opacity .2s;
}

.ann-nav svg {
  width: 20px;
  height: 20px;
}

.ann-nav:hover {
  background: var(--green-700);
  color: #fff;
  transform: scale(1.06);
}

.ann-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.ann-prev {
  right: -20px;
}

.ann-next {
  left: -20px;
}

.is-ltr .ann-prev {
  right: auto;
  left: -20px;
}

.is-ltr .ann-next {
  left: auto;
  right: -20px;
}

.is-ltr .ann-nav svg {
  transform: scaleX(-1);
}

@media (max-width: 1080px) {
  .ann-track {
    grid-auto-columns: calc((100% - 2 * 22px) / 3);
  }
}

@media (max-width: 760px) {
  .ann-track {
    grid-auto-columns: 72%;
  }

  .ann-nav {
    display: none;
  }
}

/* نافذة تفاصيل الإعلان */
.ann-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  overflow: hidden;
}

.ann-dialog::backdrop {
  background: rgba(5, 20, 17, .7);
  backdrop-filter: blur(4px);
}

.ann-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: dlg-in .35s var(--ease);
}

@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ann-dialog-media {
  background: var(--green-950);
  overflow-y: auto;
  max-height: calc(100vh - 40px);
  display: grid;
  gap: 4px;
  align-content: start;
}

.ann-dialog-media img {
  width: 100%;
  height: auto;
}

.ann-dialog-text {
  padding: 28px 28px 26px;
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}

.ann-dialog-text h3 {
  font-size: 26px;
  color: var(--green-900);
  margin: 8px 0 12px;
}

.ann-dialog-text p {
  margin: 0 0 .5em;
  color: #33443f;
}

.ann-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .92);
  color: var(--green-900);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.ann-close svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .ann-dialog[open] {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .ann-dialog-media,
  .ann-dialog-text {
    max-height: none;
    overflow: visible;
  }
}

/* ---------- الجمعية في قلب الحدث: صفّان من صور التبريكات ---------- */
.events-section {
  padding-bottom: clamp(56px, 7vw, 88px);
}

.ev-marquee {
  --speed: 140s;
}

.ev-marquee .marquee-track {
  gap: 18px;
  align-items: center;
}

.ev-card {
  flex: none;
}

.ev-card button {
  position: relative;
  display: block;
  height: 250px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--green-900);
  box-shadow: 0 12px 28px rgba(11, 46, 39, .18);
}

.ev-card img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform .6s var(--ease);
}

.ev-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 14px 12px;
  text-align: start;
  direction: rtl;
  color: #fff;
  background: linear-gradient(to top, rgba(5, 20, 17, .85), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s var(--ease);
}

.ev-cap b {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.ev-cap small {
  color: var(--gold);
  font-size: 14px;
}

.ev-card button:hover img,
.ev-card button:focus-visible img {
  transform: scale(1.05);
}

.ev-card button:hover .ev-cap,
.ev-card button:focus-visible .ev-cap {
  opacity: 1;
  transform: none;
}

.ev-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@media (max-width: 680px) {
  .ev-card button {
    height: 190px;
  }

  .ev-marquee {
    --speed: 110s;
  }
}

.ev-marquee.reverse .marquee-track {
  animation-direction: reverse;
}

/* ---------- الجمعية بالأرقام (أسفل الصفحة الرئيسية) ---------- */
.numbers-section {
  position: relative;
  color: #fff;
  padding-block: clamp(56px, 7vw, 88px);
  background: linear-gradient(135deg, rgba(35, 112, 96, .97), rgba(21, 75, 63, .98)), var(--pattern-light);
}

.numbers-section .section-head {
  margin-bottom: 36px;
}

.numbers-section .section-head .h2 {
  color: #fff;
}

.numbers-section .section-head .eyebrow {
  color: rgba(255, 255, 255, .85);
}

.num-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 20px;
}

.num-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.num-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  transition: background .3s, color .3s, transform .4s var(--ease);
}

.num-icon svg {
  width: 32px;
  height: 32px;
}

.num-item:hover .num-icon {
  background: var(--gold);
  color: var(--green-950);
  transform: translateY(-4px) rotate(-6deg);
}

.num-label {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  min-height: 3em;
  display: flex;
  align-items: center;
}

.num-value {
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

@media (max-width: 1080px) {
  .num-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .num-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 12px;
  }

  .num-icon {
    width: 54px;
    height: 54px;
  }

  .num-icon svg {
    width: 27px;
    height: 27px;
  }

  .num-label {
    font-size: 15px;
  }
}

/* ---------- المكتب التنفيذي: خط زمني للولايات ---------- */
.terms {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 36px;
}

.terms::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  inset-inline-start: 27px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
}

.term {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
}

.term-marker {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 3px solid var(--teal);
  color: var(--green-800);
  font: 700 24px/1 "Amiri", serif;
  box-shadow: 0 8px 20px rgba(11, 46, 39, .15);
}

.term-marker svg {
  width: 24px;
  height: 24px;
}

.term-marker.current {
  border-color: var(--gold);
  background: var(--green-800);
  color: var(--gold);
  animation: term-pulse 2.4s ease-out infinite;
}

@keyframes term-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 207, 74, .55);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(242, 207, 74, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(242, 207, 74, 0);
  }
}

.term-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s var(--ease);
}

.term-card:hover {
  box-shadow: 0 24px 50px rgba(11, 46, 39, .14);
  transform: translateY(-4px);
}

.term-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.term-years {
  font-weight: 700;
  font-size: 20px;
  color: var(--teal);
}

.term-card h3,
.handover-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--green-900);
  margin: 0 0 12px;
}

.term-president {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px 8px 6px 18px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
}

.pres-label {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  font-size: 15px;
}

.term-president strong {
  font-size: 20px;
}

.term-text>p {
  color: #33443f;
}

.term-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.term-points li {
  position: relative;
  padding-inline-start: 26px;
  color: #33443f;
  font-size: 17px;
}

.term-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .6em;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold);
  transform: rotate(45deg) scale(.7);
}

/* الصور: صورتان متراكبتان أو صورة واحدة بإطار */
.term-photos {
  position: relative;
}

.term-photos button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
  box-shadow: 0 18px 40px rgba(11, 46, 39, .2);
}

.term-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.term-photos button:hover img {
  transform: scale(1.05);
}

.term-photos.one button {
  aspect-ratio: 4 / 3;
  outline: 6px solid #fff;
  outline-offset: -6px;
}

.term-photos.two {
  padding-bottom: 22%;
  padding-inline-end: 18%;
}

.term-photos.two button:first-child {
  aspect-ratio: 4 / 3;
}

.term-photos.two button:last-child {
  position: absolute;
  width: 58%;
  aspect-ratio: 4 / 3;
  bottom: 0;
  inset-inline-end: 0;
  border: 5px solid #fff;
  transition: transform .4s var(--ease);
}

.term-photos.two:hover button:last-child {
  transform: translate(-6px, -6px);
}

.handover-card {
  padding: 20px 24px;
  border-radius: 18px;
  border: 2px dashed rgba(63, 138, 128, .45);
  background: #fff;
}

.handover-card h3 {
  font-size: 24px;
  margin: 4px 0 8px;
}

.handover-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 900px) {
  .term-card {
    grid-template-columns: 1fr;
  }

  .term-photos {
    order: -1;
  }
}

@media (max-width: 680px) {
  .terms::before {
    inset-inline-start: 19px;
  }

  .term {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .term-marker {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .term-president strong {
    font-size: 18px;
  }
}

/* شارة رئيس المكتب: بطاقة واضحة (أيقونة + صفة + الاسم بخط كبير) */
.term-president {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 10px 22px 10px 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  box-shadow: 0 8px 20px rgba(11, 46, 39, .08);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.term-card:hover .term-president {
  transform: translateX(-4px);
  box-shadow: 0 12px 26px rgba(11, 46, 39, .12);
}

.pres-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-800);
  color: var(--gold);
}

.pres-avatar svg {
  width: 24px;
  height: 24px;
}

.pres-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.term-president .pres-label {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
}

.pres-name {
  font-size: 24px;
  color: var(--green-900);
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .term-president {
    padding: 8px 16px 8px 10px;
    gap: 10px;
  }

  .pres-avatar {
    width: 40px;
    height: 40px;
  }

  .pres-name {
    font-size: 20px;
  }
}

/* ---------- أعضاء ومنخرطو الجمعية: مؤطر الشهر ---------- */
.mem-quotes {
  margin: 0 auto 40px;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mem-quotes blockquote {
  margin: 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  font-size: 19px;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.7;
  box-shadow: var(--shadow);
}

.mem-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.mem-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.mem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(11, 46, 39, .16);
}

.mem-photo {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--green-900);
}

.mem-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.mem-card:hover .mem-photo img {
  transform: scale(1.05);
}

.mem-month {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.mem-body {
  padding: 18px 20px 20px;
  text-align: center;
  position: relative;
}

.mem-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(29, 92, 77, .1);
  color: var(--green-700);
  font-weight: 700;
  font-size: 14px;
}

.mem-badge::before {
  content: "★";
  color: var(--gold-600);
}

.mem-body h3 {
  font-size: 25px;
  color: var(--green-900);
  margin: 8px 0 2px;
}

.mem-theme {
  margin: 0 0 6px;
  color: var(--teal);
  font-weight: 700;
}

.mem-thanks {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 1080px) {
  .mem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .mem-quotes {
    grid-template-columns: 1fr;
  }

  .mem-quotes blockquote {
    font-size: 17px;
  }

  .mem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .mem-body {
    padding: 12px 10px 14px;
  }

  .mem-body h3 {
    font-size: 19px;
  }

  .mem-theme,
  .mem-thanks {
    font-size: 14px;
  }

  .mem-month {
    font-size: 14px;
    padding: 2px 10px;
    top: 8px;
    inset-inline-start: 8px;
  }
}

/* ---------- قصة الشعار ---------- */
.logo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px;
  counter-reset: logo;
}

.logo-step {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}

.logo-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(11, 46, 39, .14);
}

.logo-step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -31px;
  inset-inline-start: 170px;
  width: 3px;
  height: 30px;
  background: linear-gradient(var(--teal), var(--gold));
  transform: translateX(50%);
}

.logo-step.current {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, #fff, #fffbea);
}

.logo-frame button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--green-900);
  aspect-ratio: 1;
  box-shadow: 0 14px 30px rgba(11, 46, 39, .18);
}

.logo-frame.light button {
  background: #fff;
  border: 1px solid var(--line);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}

.logo-frame button:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.logo-frame.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.logo-frame.pair button {
  aspect-ratio: 4 / 5;
}

.logo-frame.pair button:last-child img {
  object-fit: cover;
}

.logo-year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-600);
  line-height: 1;
}

.logo-year em {
  font-style: normal;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--gold);
}

.logo-info h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--green-900);
  margin: 10px 0 8px;
}

.logo-info p {
  color: #33443f;
}

.logo-quote {
  margin: 10px 0 0;
  padding: 10px 16px;
  border-inline-start: 4px solid var(--gold);
  background: rgba(242, 207, 74, .14);
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  color: var(--green-900) !important;
}

.logo-meanings {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.logo-meanings li {
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--cream);
  color: #33443f;
  font-size: 17px;
}

.logo-meanings b {
  color: var(--green-800);
}

@media (max-width: 900px) {
  .logo-step {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .logo-frame:not(.pair) {
    max-width: 320px;
    margin-inline: auto;
    width: 100%;
  }

  .logo-step:not(:last-child)::after {
    inset-inline-start: 50%;
  }
}

/* ---------- «مؤطر الشهر»: بطاقة واحدة في كل مرة ---------- */
.mem-slider {
  position: relative;
  margin-bottom: 40px;
  max-width: 100%;
  overflow: hidden;
}

.mem-slider .mem-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(2px, calc((100% - 820px) / 2));
  scrollbar-width: none;
  padding: 8px 2px 18px;
}

.mem-slider .mem-grid::-webkit-scrollbar {
  display: none;
}

.mem-slider .mem-card {
  flex: 0 0 min(820px, 100%);
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  margin-inline: auto;
  opacity: .35;
  transform: scale(.94);
  transition: opacity .45s, transform .45s var(--ease), box-shadow .3s;
}

.mem-slider .mem-card.is-current {
  opacity: 1;
  transform: none;
}

.mem-slider .mem-card:hover {
  transform: none;
}

.mem-slider .mem-photo {
  aspect-ratio: auto;
  min-height: 100%;
}

.mem-slider .mem-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
  padding: 32px;
}

.mem-slider .mem-body h3 {
  font-size: clamp(28px, 3vw, 38px);
}

.mem-slider .mem-theme {
  font-size: 20px;
}

.mem-slider .mem-thanks {
  font-size: 18px;
  margin-top: 8px;
}

.mem-slider .mem-badge {
  align-self: flex-start;
}

.mem-nav {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, opacity .2s, transform .2s var(--ease);
}

.mem-nav svg {
  width: 22px;
  height: 22px;
}

.mem-nav:hover {
  background: var(--green-700);
  color: #fff;
  transform: scale(1.06);
}

.mem-nav:disabled {
  opacity: .3;
  pointer-events: none;
}

.mem-prev {
  right: 0;
}

.mem-next {
  left: 0;
}

.is-ltr .mem-prev {
  right: auto;
  left: 0;
}

.is-ltr .mem-next {
  left: auto;
  right: 0;
}

.is-ltr .mem-nav svg {
  transform: scaleX(-1);
}

/* شريط التمرير الأفقي في الأسفل */
.mem-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 6px auto 0;
}

.mem-scroll input[type=range] {
  --fill: 0%;
  flex: 1;
  height: 8px;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  direction: rtl;
  background: linear-gradient(to left, var(--green-700) var(--fill), var(--line) var(--fill));
}

.is-ltr .mem-scroll input[type=range] {
  direction: ltr;
  background: linear-gradient(to right, var(--green-700) var(--fill), var(--line) var(--fill));
}

.mem-scroll input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(11, 46, 39, .3);
}

.mem-scroll input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(11, 46, 39, .3);
}

.mem-count {
  font: 700 16px/1 system-ui, sans-serif;
  color: var(--muted);
  direction: ltr;
  min-width: 44px;
  text-align: center;
}

.mem-count b {
  color: var(--green-800);
}

@media (max-width: 760px) {
  .mem-slider .mem-grid {
    padding-inline: 0;
  }

  .mem-slider .mem-card {
    grid-template-columns: 1fr;
    flex-basis: 100%;
  }

  .mem-slider .mem-photo {
    aspect-ratio: 1;
  }

  .mem-slider .mem-body {
    padding: 18px;
    text-align: center;
  }

  .mem-slider .mem-badge {
    align-self: center;
  }

  .mem-nav {
    top: 30%;
    width: 42px;
    height: 42px;
  }
}

/* ---------- الشراكات والاتفاقيات ---------- */
.pact-list {
  display: grid;
  gap: 30px;
}

.pact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}

.pact:nth-child(even) {
  grid-template-columns: 1.1fr 1fr;
}

.pact:nth-child(even) .pact-photos {
  order: 2;
}

.pact:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(11, 46, 39, .14);
}

.pact-photos button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--line);
  box-shadow: 0 14px 30px rgba(11, 46, 39, .18);
}

.pact-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.pact-photos button:hover img {
  transform: scale(1.05);
}

.pact-photos.one button {
  aspect-ratio: 600 / 503;
}

.pact-photos.two {
  position: relative;
  padding-bottom: 18%;
  padding-inline-end: 16%;
}

.pact-photos.two button:first-child {
  aspect-ratio: 590 / 495;
}

.pact-photos.two button:last-child {
  position: absolute;
  width: 56%;
  aspect-ratio: 590 / 495;
  bottom: 0;
  inset-inline-end: 0;
  border: 5px solid #fff;
  transition: transform .4s var(--ease);
}

.pact-photos.two:hover button:last-child {
  transform: translate(-6px, -6px);
}

.pact-text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--green-900);
  margin: 6px 0 10px;
}

.pact-text>p {
  color: #33443f;
}

.pact-goals {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pact-goals li {
  position: relative;
  padding-inline-start: 30px;
  color: #33443f;
}

.pact-goals li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .45em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pact-result {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border-inline-start: 4px solid var(--gold);
  color: var(--green-900);
  font-size: 17px;
}

.pact-result svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--green-700);
  margin-top: 2px;
}

@media (max-width: 900px) {

  .pact,
  .pact:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .pact:nth-child(even) .pact-photos {
    order: 0;
  }
}

/* ---------- قصتنا: صور متتالية في خلفية القسم ---------- */
.story-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(80px, 12vw, 150px);
  min-height: 620px;
  display: flex;
  align-items: center;
}

.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-bg .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to left, rgba(11, 46, 39, .92) 0%, rgba(11, 46, 39, .78) 36%, rgba(11, 46, 39, .35) 56%, rgba(11, 46, 39, 0) 78%);
}

.is-ltr .story-bg::after {
  background: linear-gradient(to right, rgba(11, 46, 39, .92) 0%, rgba(11, 46, 39, .78) 36%, rgba(11, 46, 39, .35) 56%, rgba(11, 46, 39, 0) 78%);
}

.story-section .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* النص يظهر مباشرة فوق الجانب الأيمن من الصور، بلا إطار ولا ضبابية */
.story-panel {
  max-width: 570px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.story-panel .h2 {
  font-size: clamp(30px, 3.6vw, 46px);
}

.story-panel .eyebrow {
  color: var(--gold);
}

.story-panel .h2 {
  color: #fff;
}

.story-panel p {
  color: rgba(255, 255, 255, .9);
}

@media (max-width: 900px) {

  .story-bg::after,
  .is-ltr .story-bg::after {
    background: rgba(11, 46, 39, .72);
  }

  .story-panel {
    max-width: none;
  }
}

/* ---------- المشاركة والتعاون: فيديو + نص ---------- */
.collab {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.collab-video {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-950);
  box-shadow: 0 24px 50px rgba(11, 46, 39, .25);
  border: 4px solid #fff;
  outline: 1px solid var(--line);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.collab-text h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--green-900);
  margin: 6px 0 10px;
}

.collab-text>p {
  color: #33443f;
}

.collab-project {
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.collab-project h4 {
  font-size: 22px;
  color: var(--green-800);
  margin: 0 0 6px;
}

.collab-project p {
  margin: 0;
  color: #33443f;
}

.collab-facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.collab-facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  background: var(--green-800);
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.5;
  transition: transform .25s var(--ease);
}

.collab-facts li:hover {
  transform: translateY(-4px);
}

.collab-facts b {
  display: block;
  color: var(--gold);
  font-size: 22px;
  direction: ltr;
}

.cf-ic svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.collab-text .pact-result a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .collab {
    grid-template-columns: 1fr;
  }

  .collab-video {
    position: static;
  }
}

@media (max-width: 520px) {
  .collab-facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- المشروع الرقمي: صور التتويج في خلفية القسم ---------- */
.project-bg {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 130px) clamp(110px, 12vw, 150px);
}

.slideshow.bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: var(--green-950);
}

.bg-slideshow .slide {
  cursor: default;
}

.bg-slideshow .slide img {
  object-position: center 35%;
}

.bg-slideshow::after {
  height: 100%;
  z-index: 2;
  background: linear-gradient(to left, rgba(11, 46, 39, .92) 0%, rgba(11, 46, 39, .78) 36%, rgba(11, 46, 39, .35) 56%, rgba(11, 46, 39, 0) 78%);
}

.is-ltr .bg-slideshow::after {
  background: linear-gradient(to right, rgba(11, 46, 39, .92) 0%, rgba(11, 46, 39, .78) 36%, rgba(11, 46, 39, .35) 56%, rgba(11, 46, 39, 0) 78%);
}

.bg-slideshow .ss-controls {
  inset-inline-start: auto;
  inset-inline-end: var(--gutter);
  bottom: 26px;
  width: min(420px, 38%);
}

.bg-slideshow .ss-count {
  top: auto;
  bottom: 90px;
  inset-inline-end: var(--gutter);
}

.project-bg>.wrap {
  position: relative;
  z-index: 3;
}

/* النص يظهر مباشرة فوق الجانب الأيمن من الصور، بلا إطار ولا ضبابية */
.project-panel {
  max-width: 570px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.project-panel .h2 {
  font-size: clamp(32px, 4vw, 50px);
}

.project-panel .lead {
  color: rgba(255, 255, 255, .9);
}

.project-panel .award-strip {
  background: none;
  border: 0;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding-inline-start: 0;
  margin-block: 18px 20px;
}

.project-panel .award-strip strong {
  color: var(--gold);
}

.project-panel .award-strip span {
  color: rgba(255, 255, 255, .85);
}

.project-panel .award-strip .trophy {
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.project-panel .feature {
  padding: 12px 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(242, 207, 74, .35);
  border-radius: 0;
}

.project-panel .feature:hover {
  background: none;
}

.project-panel .feature p {
  color: rgba(255, 255, 255, .82);
}

.project-panel .feature .ic {
  background: rgba(242, 207, 74, .2);
  text-shadow: none;
}

.project-panel .btn {
  text-shadow: none;
}

@media (max-width: 900px) {

  .bg-slideshow::after,
  .is-ltr .bg-slideshow::after {
    background: rgba(11, 46, 39, .78);
  }

  .project-panel {
    max-width: none;
  }

  .bg-slideshow .ss-controls {
    width: auto;
    inset-inline: var(--gutter);
    bottom: 18px;
  }

  .bg-slideshow .ss-count {
    display: none;
  }
}

/* ===== الاعترافات والشواهد ===== */
.recognition-section {
  background: var(--cream);
}

.cert-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 32px;
}

.cert-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(21, 75, 63, .22);
  background: #fff;
  color: var(--green-800);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.cert-tab span {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(21, 75, 63, .1);
  font-size: .85rem;
  text-align: center;
}

.cert-tab:hover {
  border-color: var(--green-700);
  transform: translateY(-2px);
}

.cert-tab.active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.cert-tab.active span {
  background: var(--gold);
  color: var(--green-950);
}

.cert-wall {
  columns: 3 280px;
  column-gap: 18px;
}

.cert {
  break-inside: avoid;
  margin: 0 0 18px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(11, 46, 39, .45);
  animation: certIn .45s ease both;
}

.cert[hidden] {
  display: none;
}

@keyframes certIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cert button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.cert img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s ease;
}

.cert:hover img {
  transform: scale(1.05);
}

.cert figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  color: #fff;
  pointer-events: none;
  background: linear-gradient(to top, rgba(11, 46, 39, .92), rgba(11, 46, 39, 0));
  display: grid;
  gap: 2px;
  transform: translateY(35%);
  opacity: .0;
  transition: transform .35s ease, opacity .35s ease;
}

.cert figcaption b {
  font-size: 1.08rem;
  color: var(--gold);
}

.cert figcaption small {
  font-size: .92rem;
  line-height: 1.6;
}

.cert:hover figcaption,
.cert:focus-within figcaption {
  transform: none;
  opacity: 1;
}

@media (hover: none) {
  .cert figcaption {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .cert-wall {
    columns: 2;
    column-gap: 10px;
  }

  .cert {
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
  }

  .cert figcaption {
    padding: 28px 10px 8px;
  }

  .cert figcaption small {
    display: none;
  }

  .cert figcaption b {
    font-size: .92rem;
  }

  .cert-tab {
    padding: 7px 13px;
    font-size: .92rem;
  }
}

@media (max-width: 768px) {
  .story-section .wrap,
  .story-panel,
  .term-card,
  .term-text,
  .handover-card,
  .logo-step,
  .logo-frame,
  .logo-info,
  .namesake,
  .namesake-body,
  .pact,
  .pact-text,
  .pact-photos,
  .tl-loop,
  .tl-loop .timeline {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .term {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .logo-step,
  .namesake-grid,
  .pact {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-step:not(:last-child)::after {
    inset-inline-start: 50%;
  }

  .pres-name {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert {
    animation: none;
  }

  .cert img {
    transition: none;
  }
}

/* ===== روابط شروط الاستخدام وسياسة الخصوصية أسفل التذييل ===== */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 14px 22px;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 207, 74, .35);
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.footer-legal a svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: color .25s;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-950);
  transform: translateY(-2px);
}

.footer-legal a:hover svg,
.footer-legal a:focus-visible svg {
  color: var(--green-950);
}

/* ===== صفحتا الشروط والخصوصية ===== */
.legal {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}

.legal-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
}

.legal-badge svg {
  width: 42px;
  height: 42px;
  flex: none;
  padding: 8px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--green-950);
}

.legal-badge span {
  display: grid;
}

.legal-badge b {
  font-size: 1.15rem;
}

.legal-badge small {
  opacity: .8;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc ol a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--green-800);
  text-decoration: none;
  transition: background .2s;
}

.legal-toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold-600);
  font-weight: 700;
}

.legal-toc ol a:hover {
  background: #fff;
}

.legal-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-800);
  font-weight: 700;
  text-decoration: none;
}

.legal-switch svg {
  width: 20px;
  height: 20px;
  color: var(--gold-600);
}

.legal-switch:hover span {
  text-decoration: underline;
}

.legal-body {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.legal-block {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: 90px;
}

.legal-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--green-900);
}

.legal-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--green-950);
  font-size: 1rem;
  flex: none;
}

.legal-block p {
  margin: 0 0 10px;
  line-height: 1.9;
  color: var(--ink);
}

.legal-list,
.legal-contact {
  margin: 6px 0 0;
  padding-inline-start: 22px;
  line-height: 1.9;
}

.legal-list li::marker {
  color: var(--gold-600);
}

.legal-contact a {
  color: var(--green-800);
  font-weight: 700;
}

.legal-block code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--cream);
  font-size: .9em;
}

.site-map {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.site-map a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.site-map a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.site-map b {
  color: var(--green-800);
  font-size: 1.1rem;
}

.site-map span {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

.swatches {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.swatch {
  display: grid;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.swatch-chip {
  height: 78px;
  display: block;
}

.swatch-text {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.swatch-text b {
  color: var(--green-900);
}

.swatch-text code {
  justify-self: start;
  direction: ltr;
}

.swatch-text small {
  color: var(--muted);
  line-height: 1.6;
}

.type-sample {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--green-900);
  color: #fff;
}

.type-sample p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
}

.type-sample b {
  color: var(--gold);
}

.type-aa {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
  flex: none;
}

.privacy-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.privacy-facts li {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--cream);
  border-top: 4px solid var(--green-700);
}

.privacy-facts b {
  color: var(--green-900);
  font-size: 1.15rem;
}

.privacy-facts span {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-toc {
    position: static;
  }

  .legal-toc ol {
    display: none;
  }
}

@media (max-width: 640px) {
  .legal-block {
    padding: 20px 16px;
  }

  .legal-block h2 {
    font-size: 1.3rem;
  }

  .privacy-facts {
    grid-template-columns: 1fr;
  }

  .swatches {
    grid-template-columns: 1fr 1fr;
  }

  .swatch-chip {
    height: 56px;
  }

  .type-sample {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    padding-bottom: 90px;
  }
}

/* ===== التشابه في الأسماء ===== */
.namesakes-section {
  background: var(--green-950) var(--pattern-light);
}

.namesake-route {
  list-style: none;
  margin: 0 auto 34px;
  padding: 0;
  max-width: 620px;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.namesake-route::before {
  content: "";
  position: absolute;
  inset-inline: 30px;
  top: 9px;
  border-top: 2px dashed rgba(242, 207, 74, .45);
}

.namesake-route li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
}

.namesake-route li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-700);
  border: 3px solid rgba(255, 255, 255, .6);
}

.namesake-route li.ours::before {
  background: var(--gold);
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(242, 207, 74, .25);
}

.namesake-route li.ours {
  color: var(--gold);
}

.namesake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.namesake {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6);
  transition: transform .35s ease, box-shadow .35s ease;
}

.namesake:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .7);
}

.namesake.ours {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.namesake-flag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  font-size: .95rem;
}

.namesake-logo {
  aspect-ratio: 1 / .78;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
}

.namesake-logo.light {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.namesake-logo button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.namesake-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}

.namesake-logo.light img {
  padding: 8px;
}

.namesake:hover .namesake-logo img {
  transform: scale(1.05);
}

.namesake-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 22px 24px;
  flex: 1;
}

.namesake-body h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--green-900);
}

.namesake-sub {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: .95rem;
  text-align: right;
}

.namesake-place {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.namesake-place svg {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 7px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--green-700);
}

.namesake.ours .namesake-place svg {
  background: var(--gold);
  color: var(--green-950);
}

.namesake-place span {
  display: grid;
  line-height: 1.4;
}

.namesake-place b {
  color: var(--green-800);
  font-size: 1.1rem;
}

.namesake-place small {
  color: var(--muted);
}

.namesake-text {
  margin: 0;
  line-height: 1.85;
}

.namesake-text b {
  color: var(--green-800);
}

.namesake-colors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.namesake-colors li {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 1px var(--line);
}

.namesake-goals {
  margin: 4px 0 0;
  padding: 12px 14px;
  padding-inline-start: 30px;
  border-radius: 12px;
  background: var(--cream);
  line-height: 1.8;
}

.namesake-goals li::marker {
  color: var(--gold-600);
}

.namesake-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 860px;
  margin: 30px auto 0;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(242, 207, 74, .35);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .88);
  line-height: 1.85;
}

.namesake-note svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--gold);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .namesake-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- قسم التعاون بنفس أسلوب المشروع الرقمي: النص حرّاً على الجانب الأيمن، بلا حقول ---------- */
.collab-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 22% 55%, rgba(242, 207, 74, .12), transparent 70%),
    linear-gradient(to left, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
}

.is-ltr .collab-section {
  background: radial-gradient(60% 70% at 78% 55%, rgba(242, 207, 74, .12), transparent 70%), linear-gradient(to right, var(--green-950) 0%, var(--green-900) 55%, var(--green-800) 100%);
}

.collab-section .section-head .h2 {
  color: #fff;
}

.collab {
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
}

.collab-text {
  order: -1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.collab-text h3 {
  color: #fff;
}

.collab-text>p {
  color: rgba(255, 255, 255, .85);
}

.collab-text b {
  color: var(--gold);
}

.collab-project {
  padding: 14px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(242, 207, 74, .35);
  border-radius: 0;
}

.collab-project h4 {
  color: var(--gold);
}

.collab-project p {
  color: rgba(255, 255, 255, .82);
}

.collab-facts li {
  background: none;
  padding: 12px 4px 0;
  border-radius: 0;
  border-top: 2px solid var(--gold);
  color: rgba(255, 255, 255, .85);
}

.collab-text .pact-result {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, .85);
}

.collab-text .pact-result a {
  color: var(--gold);
}

.collab-section .video-frame {
  border: 0;
  outline: 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}

.collab-section .post-link {
  color: var(--gold);
}

.collab-section .meta {
  color: rgba(255, 255, 255, .7);
}

.collab-section .meta .tag {
  background: var(--gold);
  color: var(--green-950);
}

@media (max-width: 900px) {
  .collab {
    grid-template-columns: 1fr;
  }

  .collab-text {
    order: 0;
  }
}

/* ===== الرؤية والرسالة: نفس أسلوب «قصتنا» ===== */
.vision-section {
  min-height: 560px;
}

.vision-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.vision-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(242, 207, 74, .35);
}

.vision-list .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--gold);
  color: var(--green-950);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.vision-list .ic svg {
  width: 24px;
  height: 24px;
}

.vision-list h3 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--gold);
}

.vision-list p {
  margin: 0;
  line-height: 1.85;
}

/* الرؤية والرسالة: النص على الجانب الأيسر من الصور (عكس «قصتنا») */
.vision-section .story-bg::after {
  background: linear-gradient(to right, rgba(11, 46, 39, .92) 0%, rgba(11, 46, 39, .78) 36%, rgba(11, 46, 39, .35) 56%, rgba(11, 46, 39, 0) 78%);
}

.is-ltr .vision-section .story-bg::after {
  background: linear-gradient(to left, rgba(11, 46, 39, .92) 0%, rgba(11, 46, 39, .78) 36%, rgba(11, 46, 39, .35) 56%, rgba(11, 46, 39, 0) 78%);
}

.vision-section .story-panel {
  margin-inline-start: auto;
}

@media (max-width: 900px) {

  .vision-section .story-bg::after,
  .is-ltr .vision-section .story-bg::after {
    background: rgba(11, 46, 39, .72);
  }
}

/* ===== مسارنا: النص فوق الجانب الأيمن من الصور ===== */
.path-section .timeline {
  margin-top: 22px;
  gap: 22px;
}

.path-section .timeline::before {
  background: rgba(242, 207, 74, .45);
}

.path-section .timeline li::before {
  box-shadow: 0 0 0 5px rgba(11, 46, 39, .85);
}

.path-section .timeline .year {
  color: var(--gold);
}

.path-section .timeline h3 {
  color: #fff;
}

.path-section .timeline p {
  color: rgba(255, 255, 255, .85);
}

/* ===== المكتب التنفيذي: صور المكتب في الخلفية والنص فوق جانبها الأيسر ===== */
.bureau-section .story-bg::after {
  background: linear-gradient(to right, rgba(11, 46, 39, .94) 0%, rgba(11, 46, 39, .82) 40%, rgba(11, 46, 39, .4) 60%, rgba(11, 46, 39, .05) 82%);
}

.is-ltr .bureau-section .story-bg::after {
  background: linear-gradient(to left, rgba(11, 46, 39, .94) 0%, rgba(11, 46, 39, .82) 40%, rgba(11, 46, 39, .4) 60%, rgba(11, 46, 39, .05) 82%);
}

.bureau-section .story-panel {
  max-width: 640px;
  margin-inline-start: auto;
}

.bureau-section .section-head {
  text-align: start;
  margin: 0 0 30px;
  max-width: none;
}

.bureau-section .section-head .lead {
  color: rgba(255, 255, 255, .85);
  margin-inline: 0;
}

.bureau-section .terms {
  gap: 26px;
}

.bureau-section .terms::before {
  background: linear-gradient(to bottom, rgba(242, 207, 74, .3), var(--gold));
}

.bureau-section .term-marker {
  background: var(--green-900);
  border-color: rgba(242, 207, 74, .7);
  color: var(--gold);
  text-shadow: none;
}

.bureau-section .term-card,
.bureau-section .term-card:hover {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}

.bureau-section .term-years {
  color: var(--gold);
}

.bureau-section .term-card h3,
.bureau-section .handover-card h3 {
  color: #fff;
}

.bureau-section .term-text>p,
.bureau-section .term-points li {
  color: rgba(255, 255, 255, .86);
}

.bureau-section .term-president,
.bureau-section .term-card:hover .term-president {
  background: none;
  border: 0;
  border-inline-start: 3px solid var(--gold);
  border-radius: 0;
  box-shadow: none;
  transform: none;
  padding: 2px 14px;
  color: #fff;
}

.bureau-section .pres-avatar {
  background: var(--gold);
  color: var(--green-950);
  text-shadow: none;
}

.bureau-section .term-president .pres-label {
  color: rgba(255, 255, 255, .75);
}

.bureau-section .pres-name {
  color: #fff;
}

.bureau-section .handover-card {
  padding: 14px 0 14px;
  background: none;
  border: 0;
  border-block: 1px dashed rgba(242, 207, 74, .45);
  border-radius: 0;
}

.bureau-section .handover-card p {
  color: rgba(255, 255, 255, .8);
}

@media (max-width: 900px) {

  .bureau-section .story-bg::after,
  .is-ltr .bureau-section .story-bg::after {
    background: rgba(11, 46, 39, .8);
  }

  .bureau-section .story-panel {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .bureau-section .pres-name {
    white-space: normal;
  }
}

.bureau-section .section-head {
  align-items: flex-start;
}

.bureau-section .section-head .h2 {
  color: #fff;
  text-align: start;
}

.bureau-section .section-head .h2::after {
  margin-inline: 0;
}

.bureau-section .section-head .eyebrow {
  color: var(--gold);
}

.bureau-section .tag {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  text-shadow: none;
}

.bureau-section .tag-gold {
  background: var(--gold);
  color: var(--green-950);
}

/* ===== الشراكات والاتفاقيات: الصور في الخلفية والنص فوق جانبها الأيمن ===== */
.partnerships-section .story-panel {
  max-width: 640px;
}

.partnerships-section .section-head {
  align-items: flex-start;
  text-align: start;
  margin: 0 0 30px;
  max-width: none;
}

.partnerships-section .section-head .h2 {
  color: #fff;
  text-align: start;
}

.partnerships-section .section-head .h2::after {
  margin-inline: 0;
}

.partnerships-section .section-head .eyebrow {
  color: var(--gold);
}

.partnerships-section .section-head .lead {
  color: rgba(255, 255, 255, .85);
  margin-inline: 0;
}

.partnerships-section .pact-list {
  gap: 0;
}

.partnerships-section .pact,
.partnerships-section .pact:nth-child(even),
.partnerships-section .pact:hover {
  display: block;
  padding: 22px 0;
  background: none;
  border: 0;
  border-top: 1px solid rgba(242, 207, 74, .4);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.partnerships-section .meta {
  color: rgba(255, 255, 255, .75);
}

.partnerships-section .tag {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  text-shadow: none;
}

.partnerships-section .tag-gold {
  background: var(--gold);
  color: var(--green-950);
}

.partnerships-section .pact-text h3 {
  color: #fff;
}

.partnerships-section .pact-text>p,
.partnerships-section .pact-goals li {
  color: rgba(255, 255, 255, .86);
}

.partnerships-section .pact-goals li::before {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2e27' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.partnerships-section .pact-result {
  padding: 0 14px;
  background: none;
  border-radius: 0;
  border-inline-start: 3px solid var(--gold);
  color: rgba(255, 255, 255, .9);
}

.partnerships-section .pact-result svg {
  color: var(--gold);
}

@media (max-width: 900px) {
  .partnerships-section .story-panel {
    max-width: none;
  }
}

/* ===== «مسارنا»: حلقة محطات تظهر منها 4 ===== */
.tl-loop .timeline {
  gap: 0;
  cursor: grab;
  user-select: none;
  transition: transform .25s ease;
}

.tl-loop .timeline.dragging {
  cursor: grabbing;
  transition: none;
}

.tl-loop .timeline li {
  padding-bottom: 22px;
}

.tl-loop .timeline:not(.tl-measure) li:nth-child(n+5):not(.tl-enter-bottom) {
  display: none;
}

.tl-loop .timeline.tl-measure {
  position: absolute;
  visibility: hidden;
  inset-inline: 0;
}

.tl-loop .timeline li.tl-leave {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-18px);
  padding-bottom: 0;
  transition: height .65s ease, padding .65s ease, opacity .45s ease, transform .65s ease;
}

.tl-loop .timeline li.tl-enter-bottom {
  animation: tlUp .65s ease both;
}

.tl-loop .timeline li.tl-enter-top {
  animation: tlDown .65s ease both;
}

@keyframes tlUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes tlDown {
  from {
    opacity: 0;
    transform: translateY(-26px);
  }
}

.tl-loop {
  position: relative;
}

.tl-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  text-shadow: none;
}

.tl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(242, 207, 74, .55);
  color: var(--gold);
  transition: background .2s, color .2s, transform .2s;
}

.tl-btn svg {
  width: 22px;
  height: 22px;
}

.tl-btn:hover,
.tl-btn:focus-visible {
  background: var(--gold);
  color: var(--green-950);
  transform: translateY(-2px);
}

.tl-progress {
  flex: 0 0 120px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.tl-progress i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
}

.is-ltr .tl-progress i {
  transform-origin: left;
}

.tl-hint {
  width: 100%;
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
}

@media (hover: none) {
  .tl-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  .story-section .wrap,
  .story-panel,
  .term-card,
  .term-text,
  .handover-card,
  .logo-step,
  .logo-frame,
  .logo-info,
  .namesake,
  .namesake-body,
  .pact,
  .pact-text,
  .pact-photos,
  .tl-loop,
  .tl-loop .timeline {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .term {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .logo-step,
  .namesake-grid,
  .pact {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-step:not(:last-child)::after {
    inset-inline-start: 50%;
  }

  .pres-name {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-progress {
    display: none;
  }
}
/* ===== «7 سنوات» (الرئيسية): الصورة في الخلفية والعبارات فوق أسفلها ===== */
.seven-card {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: 24px;
  aspect-ratio: 960 / 355; min-height: 380px; background: var(--green-950); box-shadow: var(--shadow-lg);
}
.seven-card .seven-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.2s var(--ease); }
.seven-card:hover .seven-bg { transform: scale(1.03); }
.seven-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(11, 46, 39, .96) 0%, rgba(11, 46, 39, .78) 26%, rgba(11, 46, 39, .15) 52%, rgba(11, 46, 39, 0) 70%);
}
.seven-card .seven-panel {
  position: relative; z-index: 2; width: 100%; margin: 0; border-radius: 0; background: none; box-shadow: none; border: 0;
  padding: clamp(18px, 3vw, 34px) clamp(20px, 4vw, 48px); text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.seven-card .seven-panel .h2 { color: #fff; }
.seven-card .seven-panel .lead { color: rgba(255, 255, 255, .88); }
.seven-card .seven-panel .btn { text-shadow: none; }
@media (max-width: 680px) {
  .seven-card { aspect-ratio: auto; min-height: 480px; }
  .seven-card .seven-bg { object-position: center 30%; }
  .seven-card::before { background: linear-gradient(to top, rgba(11, 46, 39, .97) 0%, rgba(11, 46, 39, .85) 40%, rgba(11, 46, 39, .1) 70%, rgba(11, 46, 39, 0) 100%); }
}
/* الصورة تمتد من حافة الشاشة إلى حافتها */
.seven-section { padding: 0; background: var(--green-950); }
.seven-section .seven-card { border-radius: 0; box-shadow: none; aspect-ratio: 960 / 355; min-height: 420px; max-height: 760px; }
.seven-section .seven-card > .wrap { position: relative; z-index: 2; width: 100%; }
.seven-section .seven-panel { padding-inline: 0; }
.seven-section .seven-card:hover .seven-bg { transform: none; }
@media (max-width: 680px) { .seven-section .seven-card { aspect-ratio: auto; min-height: 480px; } }

/* ===== أعضاء ومنخرطو الجمعية: صور الأطر في الخلفية على عرض الشاشة ===== */
.mem-photo-bg { position: relative; overflow: hidden; background: var(--green-950); }
.mem-photo-bg > .wrap { position: relative; z-index: 3; }
.mem-photo-bg .mem-bg::after { background: linear-gradient(to bottom, rgba(11, 46, 39, .78) 0%, rgba(11, 46, 39, .55) 30%, rgba(11, 46, 39, .7) 70%, rgba(11, 46, 39, .92) 100%); }
.mem-photo-bg .section-head .h2 { color: #fff; }
.mem-photo-bg .section-head .h2::after { filter: brightness(1.6); }
.mem-photo-bg .section-head .eyebrow { color: var(--gold); }
.mem-photo-bg .section-head .lead { color: rgba(255, 255, 255, .86); }
.mem-photo-bg .mem-quotes blockquote { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); border-inline-start-color: var(--gold); color: #fff; box-shadow: none; backdrop-filter: none; }
.mem-photo-bg .mem-count { color: rgba(255, 255, 255, .85); }
.mem-photo-bg .mem-count b { color: var(--gold); }
.mem-photo-bg .mem-cta { background: none; border: 0; box-shadow: none; padding-inline: 0; border-top: 1px solid rgba(242, 207, 74, .35); border-radius: 0; }
.mem-photo-bg .mem-cta .h2 { color: #fff; }
.mem-photo-bg .mem-cta .lead { color: rgba(255, 255, 255, .86); }

/* طبقة الصور المتبدلة تُقص داخل حدودها حتى لا يوسّع تكبيرها (scale 1.1) عرض الصفحة على الهاتف */
.story-bg { overflow: hidden; contain: paint; }

/* إلغاء الخلفية الزرقاء الفاتحة التي تظهر عند النقر على الهاتف */
html, *, *::before, *::after { -webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
:focus:not(:focus-visible) { outline: none; }
button, .btn, [role="button"], .bottom-bar, .mobile-menu, .site-header nav, .lang-switch, .menu-btn, .contact-fab, .scroll-fab, .cert-tab, .tl-btn, label {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
