/* ============================================
   ACSB — Association Ceerno Sileymaani Baal
   Modern Redesign — Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green-deep: #02441b;
  --green-main: #116839;
  --green-mid: #1fa67a;
  --green-light: #2bb87f;
  --gold: #f4b234;
  --gold-dark: #e0910c;
  --bg-warm: #fafaf5;
  --bg-section: #f2f0e8;
  --border-light: #e8e5dc;
  --text-dark: #1a1a18;
  --text-body: #3a3a35;
  --text-muted: #5a5a55;
  --text-faint: #9a9a95;
  --font-display: 'Source Serif 4', 'Noto Serif', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  background: var(--bg-warm);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
body.rtl { direction: rtl; font-family: var(--font-arabic); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
input, textarea { font-family: var(--font-body); }

/* --- Utility --- */
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.12s; }
.fade-up.d2 { transition-delay: 0.24s; }
.fade-up.d3 { transition-delay: 0.36s; }
.fade-up.d4 { transition-delay: 0.48s; }

/* --- Section Tag --- */
.section-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(244,178,52,0.3);
  border-radius: 2px;
  background: rgba(244,178,52,0.06);
}
.section-tag--dark { color: var(--gold); border-color: rgba(244,178,52,0.25); background: rgba(244,178,52,0.08); }

/* --- Gold Line --- */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 2px;
}
.gold-line--center { margin: 0 auto; }

/* --- Section Title --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 20px;
  margin-bottom: 16px;
  line-height: 1.15;
}
body.rtl .section-title { font-family: var(--font-arabic); }

/* --- Buttons --- */
.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
  border: none;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  display: inline-block;
}
.btn-primary:hover { background: #e0a020; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,178,52,0.4); }
.btn-primary--green { background: var(--green-main); color: white; }
.btn-primary--green:hover { background: var(--green-mid); box-shadow: 0 6px 20px rgba(17,104,57,0.3); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 34px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(17, 104, 57, 0.92);
  transition: box-shadow 0.4s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.navbar__logo-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 16px;
  color: var(--green-deep);
}
.navbar__logo-text {
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px;
  color: white; letter-spacing: 2px;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}
.navbar__link {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.navbar__link:hover, .navbar__link.active { color: var(--gold); border-bottom-color: var(--gold); }
.navbar__right { display: flex; align-items: center; gap: 10px; }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  cursor: pointer; border-radius: 3px;
  transition: all 0.3s;
  display: flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { border-color: var(--gold); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: white;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 150px;
  z-index: 1001;
  display: none;
}
.lang-menu.open { display: block; }
body.rtl .lang-menu { right: auto; left: 0; }
.lang-option {
  display: block; width: 100%;
  padding: 10px 16px;
  border: none; background: none;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--text-body);
  cursor: pointer; text-align: left;
  transition: background 0.2s;
}
body.rtl .lang-option { text-align: right; }
.lang-option:hover { background: var(--bg-section); }
.lang-option.active { color: var(--green-main); font-weight: 700; background: rgba(17,104,57,0.06); }

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; margin: 6px 0;
  transition: all 0.3s; border-radius: 1px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2,68,27,0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.mobile-menu.open { display: flex; }
.mobile-menu__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 32px; cursor: pointer;
}
.mobile-menu__link {
  color: white;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  padding: 8px 24px;
  transition: color 0.3s;
  cursor: pointer;
  background: none; border: none;
}
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__langs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.mobile-lang-btn {
  padding: 8px 16px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: white;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.mobile-lang-btn.active { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }

@media (max-width: 900px) {
  .hamburger { display: block; }
  .navbar__links { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(165deg, #02441b 0%, #116839 35%, #1fa67a 70%, #2bb87f 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 70%; height: 160%;
  background: radial-gradient(ellipse, rgba(244,178,52,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__pattern {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__year {
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  position: absolute;
  bottom: -20px; right: 40px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero__content { max-width: 700px; position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(244,178,52,0.15);
  border-radius: 3px;
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
body.rtl .hero h1 { font-family: var(--font-arabic); letter-spacing: 0; }
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 22px);
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 300;
}
body.rtl .hero__subtitle { font-family: var(--font-arabic); }
.hero__founder {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 44px;
  text-transform: uppercase;
}
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  width: 100%;
}

@media (max-width: 768px) {
  .hero__year { font-size: 80px; right: 10px; }
}

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 100px 0; }
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.about__text p { font-size: 17px; line-height: 1.85; color: var(--text-body); margin-bottom: 20px; }
.about__text p:last-child { margin-bottom: 0; }
.about__timeline { display: flex; flex-direction: column; gap: 20px; }
.timeline-item { display: flex; gap: 16px; align-items: flex-start; }
.timeline-item__year {
  min-width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--green-main), var(--green-mid));
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 15px;
  color: var(--gold); flex-shrink: 0;
}
.timeline-item__text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-body);
  padding-top: 4px;
}

/* ============================================
   VALUES
   ============================================ */
.values { background: var(--bg-section); padding: 100px 0; position: relative; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.value-card {
  background: white;
  border-radius: 4px;
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(17,104,57,0.1); }
.value-card:hover::before { transform: scaleX(1); }
.value-card__icon { font-size: 32px; margin-bottom: 16px; }
.value-card__title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--green-main); margin-bottom: 12px;
}
body.rtl .value-card__title { font-family: var(--font-arabic); }
.value-card__desc {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.7;
  color: var(--text-muted);
}

/* Association box */
.assoc-box {
  margin-top: 80px;
  background: white;
  border-radius: 4px;
  padding: 48px 40px;
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.assoc-box__title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: var(--green-deep);
  margin-top: 12px; margin-bottom: 16px;
}
body.rtl .assoc-box__title { font-family: var(--font-arabic); }
.assoc-box__desc { font-size: 16px; line-height: 1.8; color: var(--text-body); }
.assoc-box__items { display: flex; flex-direction: column; gap: 20px; }
.assoc-item { padding-left: 16px; border-left: 3px solid var(--gold); }
body.rtl .assoc-item { padding-left: 0; border-left: none; padding-right: 16px; border-right: 3px solid var(--gold); }
.assoc-item__label {
  font-family: var(--font-body);
  font-weight: 700; font-size: 14px;
  letter-spacing: 2px; color: var(--green-main);
  text-transform: uppercase; margin-bottom: 6px;
}
.assoc-item__text { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ============================================
   COMPANIONS
   ============================================ */
.companions { padding: 100px 0; }
.companions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.companion-chip {
  background: rgba(17,104,57,0.06);
  border: 1px solid rgba(17,104,57,0.12);
  border-radius: 4px;
  padding: 16px 20px;
  transition: all 0.3s ease;
  cursor: default;
}
.companion-chip:hover {
  background: var(--green-main);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,104,57,0.2);
}
.companion-chip:hover .companion-chip__place { color: var(--gold) !important; }
.companion-chip__name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.companion-chip__place {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; color: var(--green-mid);
  text-transform: uppercase;
  transition: color 0.3s;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects { background: var(--bg-section); padding: 100px 0; position: relative; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.project-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(17,104,57,0.12); }
.project-card__bar { height: 6px; }
.project-card__body { padding: 32px 24px; }
.project-card__icon { font-size: 36px; margin-bottom: 16px; }
.project-card__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--green-deep); margin-bottom: 12px;
}
body.rtl .project-card__title { font-family: var(--font-arabic); }
.project-card__desc {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.75;
  color: var(--text-muted);
}

/* ============================================
   FILM
   ============================================ */
.film {
  background: linear-gradient(135deg, #02441b 0%, #0a3520 50%, #116839 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.film__year {
  font-family: var(--font-display);
  font-size: 160px; font-weight: 900;
  color: rgba(244,178,52,0.06);
  position: absolute;
  bottom: -20px; right: 40px;
  line-height: 1; pointer-events: none; user-select: none;
}
.film__inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.film__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: white;
  margin-top: 24px; margin-bottom: 20px; line-height: 1.1;
}
body.rtl .film__title { font-family: var(--font-arabic); }
.film__desc {
  font-size: 18px; line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin: 0 auto 40px; max-width: 620px;
}

/* ============================================
   DOCUMENTS
   ============================================ */
.documents { padding: 100px 0; }
.documents__desc {
  font-family: var(--font-body);
  font-size: 16px; color: var(--text-muted);
  max-width: 560px; margin: 0 auto;
}
.documents__filters {
  display: flex; gap: 10px;
  flex-wrap: wrap; justify-content: center;
  margin: 36px 0;
}
.cat-btn {
  padding: 8px 18px;
  border: 1px solid #d5d0c4;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
  background: white; color: var(--text-body);
  white-space: nowrap;
}
.cat-btn.active { background: var(--green-main); color: white; border-color: var(--green-main); }
.cat-btn:hover:not(.active) { border-color: var(--green-main); color: var(--green-main); }
.documents__list { display: flex; flex-direction: column; gap: 10px; }
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: all 0.25s ease;
  gap: 12px;
}
.doc-row:hover { border-color: var(--green-main); box-shadow: 0 4px 16px rgba(17,104,57,0.08); transform: translateX(4px); }
body.rtl .doc-row:hover { transform: translateX(-4px); }
.doc-row__info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.doc-row__icon { font-size: 20px; flex-shrink: 0; }
.doc-row__name {
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600;
  color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-row__cat {
  font-family: var(--font-body);
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 1px; text-transform: uppercase; margin-top: 2px;
}
.doc-dl-btn {
  background: var(--green-main); color: white;
  border: none; padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; cursor: pointer;
  border-radius: 3px; transition: all 0.3s;
  white-space: nowrap; text-transform: uppercase;
}
.doc-dl-btn:hover { background: var(--green-mid); }

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--bg-section); padding: 100px 0; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
}
.contact__text p { font-size: 17px; line-height: 1.8; color: var(--text-body); margin-bottom: 32px; }
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.input-field {
  width: 100%; padding: 14px 18px;
  border: 1px solid #d5d0c4;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px; background: white;
  transition: border-color 0.3s ease;
  outline: none; color: var(--text-dark);
}
.input-field:focus { border-color: var(--green-main); box-shadow: 0 0 0 3px rgba(17,104,57,0.08); }
textarea.input-field { resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--green-deep); padding: 48px 24px 32px; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
  margin-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 18px; color: var(--green-deep);
}
.footer__brand-name {
  font-family: var(--font-body);
  font-weight: 700; font-size: 14px;
  color: white; letter-spacing: 2px;
}
.footer__brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__link {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 13px; cursor: pointer;
  transition: color 0.3s;
  background: none; border: none;
}
.footer__link:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer__langs { display: flex; gap: 6px; }
.footer__lang-btn {
  padding: 3px 10px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent; color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all 0.3s;
}
.footer__lang-btn.active { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }

/* ============================================
   SVG PATTERNS (inline)
   ============================================ */
.pattern-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Responsive fine-tuning */
@media (max-width: 600px) {
  .assoc-box { padding: 32px 20px; }
  .hero__year { font-size: 70px; }
  .film__year { font-size: 70px; }
}

/* ============================================
   ACTUALITÉS / NEWS
   ============================================ */
.news { padding: 100px 0; background: var(--bg-section); }
.news__desc {
  font-family: var(--font-body);
  font-size: 16px; color: var(--text-muted);
  max-width: 620px; margin: 0 auto; line-height: 1.7;
}
body.rtl .news__desc { font-family: var(--font-arabic); }

.news__filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 40px;
}
.news-cat-btn {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px;
  background: white; color: var(--text-muted);
  border: 1px solid var(--border-light);
  cursor: pointer; transition: all 0.25s ease;
}
body.rtl .news-cat-btn { font-family: var(--font-arabic); }
.news-cat-btn.active { background: var(--green-main); color: white; border-color: var(--green-main); }
.news-cat-btn:hover:not(.active) { border-color: var(--green-main); color: var(--green-main); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.news__empty {
  font-family: var(--font-body);
  color: var(--text-faint); text-align: center;
  padding: 48px 0; grid-column: 1 / -1;
}

.news-card {
  background: white; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
  cursor: pointer; transition: all 0.35s ease;
}
.news-card:hover, .news-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(17,104,57,0.13);
  border-color: var(--green-mid);
  outline: none;
}
.news-card__media { height: 190px; overflow: hidden; background: var(--bg-section); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__media--video {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green-main));
  color: var(--gold); font-size: 42px;
}
.news-card__body { padding: 26px 24px; display: flex; flex-direction: column; flex: 1; }

.news-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px;
  margin-bottom: 14px;
}
.news-card__cat {
  background: rgba(17,104,57,0.08); color: var(--green-main);
  padding: 4px 11px; border-radius: 999px; font-weight: 600;
}
.news-card__date { color: var(--text-faint); letter-spacing: 0.02em; }

.news-card__title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; line-height: 1.35;
  color: var(--green-deep); margin-bottom: 10px;
}
body.rtl .news-card__title { font-family: var(--font-arabic); }
.news-card__excerpt {
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.65; color: var(--text-body);
  flex: 1;
}
body.rtl .news-card__excerpt { font-family: var(--font-arabic); }

.news-card__fallback {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-body); font-size: 11px;
  color: var(--gold-dark); background: rgba(244,178,52,0.13);
  padding: 4px 10px; border-radius: 3px;
}
.news-card__more {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--green-mid); margin-top: 18px;
}
body.rtl .news-card__more::after { content: ""; }

/* --- Post modal --- */
.post-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(2,68,27,0.55);
  backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.post-modal.open { display: flex; }
.post-modal__content {
  position: relative; background: var(--bg-warm);
  max-width: 760px; width: 100%; border-radius: 5px;
  overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.3);
  animation: postIn 0.35s ease;
}
@keyframes postIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.post-modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border-light);
  font-size: 24px; line-height: 1; color: var(--text-dark);
  cursor: pointer; transition: all 0.2s ease;
}
body.rtl .post-modal__close { right: auto; left: 16px; }
.post-modal__close:hover { background: var(--green-main); color: white; border-color: var(--green-main); }

.post-modal__img { width: 100%; max-height: 380px; object-fit: cover; }
.post-modal__video { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.post-modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.post-modal__inner { padding: 36px 40px 44px; }
.post-modal__title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; line-height: 1.28;
  color: var(--green-deep); margin-bottom: 8px;
}
body.rtl .post-modal__title { font-family: var(--font-arabic); }
.post-modal__body { margin-top: 20px; }
.post-modal__body p {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.8; color: var(--text-body);
  margin-bottom: 18px;
}
body.rtl .post-modal__body p { font-family: var(--font-arabic); }
.post-modal__body a { color: var(--green-mid); text-decoration: underline; }

.post-modal__links {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.post-modal__links h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.post-modal__links a {
  display: block; font-family: var(--font-body); font-size: 14.5px;
  color: var(--green-main); padding: 11px 16px; margin-bottom: 8px;
  background: white; border: 1px solid var(--border-light); border-radius: 3px;
  transition: all 0.25s ease;
}
.post-modal__links a:hover {
  border-color: var(--green-main); background: rgba(17,104,57,0.04);
  transform: translateX(3px);
}
body.rtl .post-modal__links a:hover { transform: translateX(-3px); }

@media (max-width: 768px) {
  .news { padding: 70px 0; }
  .news__grid { grid-template-columns: 1fr; gap: 18px; }
  .post-modal { padding: 0; }
  .post-modal__content { border-radius: 0; min-height: 100%; }
  .post-modal__inner { padding: 26px 22px 40px; }
  .post-modal__title { font-size: 24px; }
  .post-modal__img { max-height: 240px; }
}
