/* =================================================================
   جمعية تنبة للسلامة المرورية — التصميم v2
   خط: Rubik | ألوان: بحري داكن #0A2447 | سماوي #00BCD4
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
  --brown-dark:   #0A2447;
  --brown-mid:    #1565C0;
  --brown-light:  #2196F3;
  --gold:         #00BCD4;
  --gold-light:   #4DD0E1;
  --gold-pale:    #E0F7FA;
  --sand:         #BBDEFB;
  --cream:        #F0F6FF;
  --cream-dark:   #E3F2FD;
  --white:        #FFFFFF;
  --text-dark:    #0A1628;
  --text-mid:     #1A3A5C;
  --text-light:   #5B7FA6;
  --border:       rgba(0,188,212,0.22);
  --shadow:       0 6px 28px rgba(10,36,71,0.10);
  --shadow-hover: 0 12px 40px rgba(10,36,71,0.22);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --trans:        all .26s cubic-bezier(.4,0,.2,1);
  --header-h:     80px;
  --font:         'Rubik', 'Cairo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.75;
  direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--trans); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ── TOPBAR ─────────────────────────────────────────── */
.topbar {
  background: var(--brown-dark);
  color: rgba(255,255,255,.70);
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,188,212,.15);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: rgba(255,255,255,.70); }
.topbar-right a:hover { color: var(--gold-light); }
.topbar-left { display: flex; gap: 8px; }
.topbar-left a {
  color: rgba(255,255,255,.65);
  font-size: 15px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  transition: var(--trans);
}
.topbar-left a:hover { background: var(--gold); color: var(--brown-dark); }

/* ── BREAKING BAR ───────────────────────────────────── */
.breaking-bar {
  background: var(--gold);
  color: var(--brown-dark);
  padding: 9px 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}
.breaking-bar .container { display: flex; align-items: center; }
.breaking-label {
  background: var(--brown-dark);
  color: var(--gold-light);
  padding: 4px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 16px;
}
.breaking-ticker { flex: 1; overflow: hidden; }
.ticker-content {
  display: flex; gap: 28px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}
.ticker-content a { color: var(--brown-dark); white-space: nowrap; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(10,36,71,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 3px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--gold); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.site-logo a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 72px; width: auto; max-width: 260px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-ar { font-weight: 800; font-size: 18px; color: var(--brown-dark); letter-spacing: -0.3px; }
.logo-en { font-size: 12px; color: var(--brown-mid); letter-spacing: 0.5px; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.nav-list {
  display: flex; align-items: center; justify-content: center;
  gap: 2px; flex: 1;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 15px; font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--trans);
}
.nav-icon {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  opacity: .80;
  transition: var(--trans);
  flex-shrink: 0;
}
.nav-item > a:hover .nav-icon,
.nav-item > a.active .nav-icon {
  opacity: 1;
  color: var(--gold);
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}
.dropdown li a .nav-icon { font-size: 16px; }
.nav-item > a:hover,
.nav-item > a.active {
  color: var(--brown-dark);
  background: var(--gold-pale);
}
.nav-item > a.active { color: var(--gold); }
.arrow-down { font-style: normal; font-size: 11px; transition: var(--trans); }
.nav-item:hover .arrow-down { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--trans);
  border-top: 3px solid var(--gold);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; color: var(--text-mid); }
.dropdown li a:hover { background: var(--cream); color: var(--brown-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-join {
  background: var(--gold);
  color: var(--brown-dark);
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: var(--trans);
  box-shadow: 0 3px 14px rgba(0,188,212,.35);
}
.btn-join:hover { background: var(--brown-dark); color: var(--gold-light); box-shadow: none; }
.btn-join-nav { order: 999; margin-inline-start: auto; flex-shrink: 0; }
.search-btn { color: var(--text-mid); font-size: 20px; padding: 6px; border-radius: 50%; transition: var(--trans); }
.search-btn:hover { color: var(--gold); background: var(--gold-pale); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.menu-toggle span { display: block; width: 26px; height: 2.5px; background: var(--brown-dark); border-radius: 2px; transition: var(--trans); }

/* ── SECTION HELPERS ────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale);
  color: var(--brown-mid);
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  letter-spacing: 0.3px;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.section-title {
  font-size: clamp(22px,3vw,34px);
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
  letter-spacing: -0.3px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}
.section-sub { color: var(--text-light); font-size: 16px; margin-top: 18px; }
.section-footer { text-align: center; margin-top: 40px; }

/* ── HERO SLIDER ────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: clamp(380px, 38vw, 520px);
  overflow: hidden;
  background: var(--brown-dark);
}
.hero-slide {
  opacity: 0; position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transition: opacity 0.9s ease;
  pointer-events: none; z-index: 0;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
/* Overlay خفيف جداً لقراءة النص */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0,0,0,.30) 0%,
    transparent 60%
  );
  z-index: 2;
  pointer-events: none;
}
.hero-overlay { display: none; }
.hero-content {
  position: relative; z-index: 3;
  height: clamp(380px, 38vw, 520px);
  display: flex; align-items: center;
}
.hero-text { max-width: 580px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--brown-dark);
  padding: 5px 16px;
  border-radius: 6px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
}
.hero-tag::before { content:''; width: 8px; height: 8px; background: var(--brown-dark); border-radius: 50%; display: inline-block; }
.hero-title {
  font-size: clamp(26px,4vw,50px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  letter-spacing: -0.5px;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.88);
  margin-bottom: 34px;
  max-width: 500px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--brown-dark);
  padding: 13px 34px;
  border-radius: 50px;
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,188,212,.40);
  transition: var(--trans);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,188,212,.30);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.65);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 600; font-size: 15px;
  transition: var(--trans);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.9); }
.slider-controls {
  position: absolute; bottom: 28px;
  left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--trans);
  border: none;
}
.slider-dot.active { background: var(--gold); width: 30px; border-radius: 5px; }
.slider-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 100%;
  display: flex; justify-content: space-between;
  padding: 0 20px; pointer-events: none;
}
.slider-arrow {
  pointer-events: all;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--trans);
  border: 1px solid rgba(255,255,255,.25);
}
.slider-arrow:hover { background: var(--gold); color: var(--brown-dark); border-color: var(--gold); }

/* ── SERVICES ───────────────────────────────────────── */
.services-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
}
.services-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--brown-dark) 70%, transparent);
}
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px 32px;
  text-align: center;
  transition: var(--trans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
  border-radius: 3px 3px 0 0;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  background: var(--white);
}
.service-icon {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 30px;
  transition: var(--trans);
  box-shadow: 0 8px 28px rgba(10,36,71,.18);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 12px 28px rgba(0,188,212,.30);
}
.service-icon .material-symbols-outlined { color: var(--white); }
.service-card:hover .service-icon .material-symbols-outlined { color: var(--brown-dark); }
.service-name { font-weight: 800; font-size: 17px; color: var(--brown-dark); margin-bottom: 10px; }
.service-desc { color: var(--text-light); font-size: 14px; line-height: 1.65; }

/* ── STATS ──────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 60%, #0D47A1 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::after {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,188,212,.12) 0%, transparent 70%);
  pointer-events: none;
}
.stats-section .section-title { color: var(--white); }
.stats-section .section-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.stats-section .section-sub { color: rgba(255,255,255,.65); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(0,188,212,.18);
  border-radius: var(--radius-lg);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.stat-icon { font-size: 34px; margin-bottom: 14px; }
.stat-num {
  font-size: clamp(36px,5vw,56px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 600; }
.stat-sublabel { color: rgba(255,255,255,.45); font-size: 12px; margin-top: 4px; }

/* ── NEWS ───────────────────────────────────────────── */
.news-section { padding: 80px 0; background: var(--cream); }
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.news-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.news-featured-placeholder {
  width: 100%; height: 360px;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
.news-featured-img {
  width: 100%; height: 360px;
  object-fit: cover;
  transition: transform .55s ease;
}
.news-featured:hover .news-featured-img { transform: scale(1.04); }
.news-featured-body {
  position: absolute; bottom: 0; right: 0; left: 0;
  background: linear-gradient(to top, rgba(10,18,36,.96) 0%, rgba(10,18,36,.55) 55%, transparent 100%);
  padding: 36px 28px 26px;
}
.news-cat-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-dark);
  padding: 3px 14px;
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  margin-bottom: 10px;
}
.news-featured-title {
  font-size: 22px; font-weight: 800;
  color: var(--white); margin-bottom: 8px;
  line-height: 1.4;
}
.news-meta { color: rgba(255,255,255,.60); font-size: 13px; display: flex; gap: 12px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--trans);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}
.news-card-img-wrap { height: 170px; overflow: hidden; position: relative; }
.news-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img { transform: scale(1.07); }
.news-card-placeholder {
  width: 100%; height: 100%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}
.news-card-body { padding: 16px; }
.news-card-title {
  font-weight: 700; font-size: 15px;
  color: var(--text-dark); margin-bottom: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-meta { color: var(--text-light); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.news-urgent {
  position: absolute; top: 12px; right: 12px;
  background: #DC2626; color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 50px;
  animation: pulse 1.5s infinite;
}

/* ── SIDEBAR ────────────────────────────────────────── */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.widget-title {
  font-weight: 800; font-size: 17px;
  color: var(--brown-dark);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 2px solid var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: var(--trans);
  font-size: 14px;
}
.cat-item:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--brown-dark); }
.cat-count {
  background: var(--gold); color: var(--brown-dark);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.search-form { display: flex; }
.search-input {
  flex: 1; padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font); font-size: 14px;
  background: var(--cream); color: var(--text-dark);
  outline: none;
}
.search-input:focus { border-color: var(--gold); }
.search-submit {
  background: var(--gold); color: var(--brown-dark);
  padding: 11px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700; transition: var(--trans);
}
.search-submit:hover { background: var(--brown-dark); color: var(--gold-light); }
.join-widget { background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid)); color: var(--white); text-align: center; }
.join-widget .widget-title { color: var(--gold-light); border-color: rgba(255,255,255,.2); }
.join-widget p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 18px; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn-gold {
  background: var(--gold); color: var(--brown-dark);
  padding: 12px 30px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
  display: inline-block; transition: var(--trans);
}
.btn-gold:hover { background: var(--brown-dark); color: var(--gold-light); transform: translateY(-2px); }
.btn-secondary {
  background: transparent; border: 2px solid var(--gold);
  color: var(--brown-mid); padding: 11px 28px;
  border-radius: 50px; font-weight: 700; font-size: 15px;
  display: inline-block; transition: var(--trans);
}
.btn-secondary:hover { background: var(--gold); color: var(--brown-dark); }
.btn-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brown-mid); font-weight: 700; font-size: 14px;
  border: 1.5px solid var(--gold); padding: 9px 22px;
  border-radius: 50px; transition: var(--trans);
}
.btn-more:hover { background: var(--gold); color: var(--brown-dark); }
.btn-outline {
  border: 2px solid var(--gold); color: var(--gold);
  padding: 11px 28px; border-radius: 50px;
  font-weight: 700; font-size: 15px;
  display: inline-block; transition: var(--trans);
}
.btn-outline:hover { background: var(--gold); color: var(--brown-dark); }

/* ── GALLERY ────────────────────────────────────────── */
.gallery-section { padding: 80px 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-img-placeholder {
  width: 100%; height: 100%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.gallery-item:hover img { transform: scale(1.09); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(10,36,71,0);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.gallery-item:hover .gallery-overlay {
  background: rgba(10,36,71,.50);
}
.gallery-icon {
  color: var(--white); font-size: 32px;
  opacity: 0; transform: scale(.6);
  transition: var(--trans);
}
.gallery-item:hover .gallery-icon { opacity: 1; transform: scale(1); }

/* ── PARTNERS ───────────────────────────────────────── */
.partners-section { padding: 60px 0; background: var(--cream); overflow: hidden; }
.partners-track-wrap { overflow: hidden; position: relative; }
.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.partners-track-wrap::before { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.partners-track-wrap::after { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.partners-track {
  display: flex; gap: 32px; align-items: center;
  animation: scrollPartners 28s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partner-logo {
  flex-shrink: 0; width: 130px; height: 70px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 12px; transition: var(--trans);
  filter: grayscale(40%);
}
.partner-logo:hover {
  filter: grayscale(0);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0,188,212,.20);
  transform: translateY(-3px);
}
.partner-logo img { max-height: 46px; max-width: 100%; object-fit: contain; }
.partner-placeholder { color: var(--text-light); font-size: 13px; font-weight: 600; text-align: center; }
@keyframes scrollPartners { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── CTA ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid) 50%, var(--brown-dark));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,188,212,.18) 0%, transparent 70%);
}
/* شكل هندسي علوي أيمن */
.cta-section::after {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 60px solid rgba(0,188,212,.07);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-tag {
  display: inline-block;
  background: rgba(0,188,212,.2);
  color: var(--gold-light);
  border: 1px solid rgba(0,188,212,.4);
  padding: 5px 20px; border-radius: 50px;
  font-size: 13px; margin-bottom: 18px;
}
.cta-title {
  font-size: clamp(24px,4vw,42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.cta-desc {
  color: rgba(255,255,255,.75); font-size: 17px;
  max-width: 580px; margin: 0 auto 38px;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,.8);
  padding-top: 60px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 70%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); margin: 16px 0 24px; line-height: 1.8; }
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-text-ar { font-size: 17px; font-weight: 800; color: var(--white); display: block; }
.footer-logo-text-en { font-size: 11px; color: rgba(255,255,255,.45); display: block; margin-top: 2px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: 16px;
  transition: var(--trans);
  border: 1px solid rgba(255,255,255,.08);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--brown-dark);
  border-color: var(--gold);
}
.footer-col-title {
  color: var(--gold-light); font-weight: 700; font-size: 16px;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,.60);
  font-size: 14px; transition: var(--trans);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--gold-light); padding-right: 4px; }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 14px;
  color: rgba(255,255,255,.60); font-size: 14px;
}
.footer-contact-icon { color: var(--gold); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.50); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── INNER PAGES ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  padding: 52px 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-title { font-size: clamp(24px,4vw,38px); font-weight: 800; color: var(--white); }
.page-hero h1 { font-size: clamp(24px,4vw,38px); font-weight: 800; color: var(--white); }
.page-hero p { color: rgba(255,255,255,.7); margin-top: 8px; }
.page-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55); font-size: 14px;
  margin-top: 12px; flex-wrap: wrap;
}
.page-breadcrumb a { color: var(--gold-light); }
.page-breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: .5; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ── ARTICLE ────────────────────────────────────────── */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 50px 0 70px; }
.article-body { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.article-header { margin-bottom: 24px; }
.article-category {
  display: inline-block; background: var(--gold);
  color: var(--brown-dark); padding: 3px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 700;
  margin-bottom: 12px;
}
.article-title { font-size: clamp(20px,3vw,28px); font-weight: 800; color: var(--brown-dark); margin-bottom: 16px; line-height: 1.4; }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; color: var(--text-light); font-size: 13px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.article-meta-item { display: flex; align-items: center; gap: 6px; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.article-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.article-cover img, .article-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }
.article-content { color: var(--text-mid); font-size: 16px; line-height: 2; }
.article-content span[style] { color: revert; }
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3 { color: var(--brown-dark); margin: 28px 0 12px; font-weight: 800; }
.article-content blockquote {
  border-right: 4px solid var(--gold);
  padding: 14px 20px;
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; color: var(--brown-mid); font-style: italic;
}
.article-content img { border-radius: var(--radius-sm); margin: 16px 0; max-width: 100%; }
.share-bar { display: flex; align-items: center; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-label { font-weight: 700; font-size: 14px; color: var(--text-mid); }
.share-btn { padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: var(--trans); }
.share-tw { background: #1DA1F2; color: #fff; }
.share-wa { background: #25D366; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; margin-top: 24px; }
.gallery-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-thumb:hover img { transform: scale(1.08); }
.related-news { margin-top: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ── NEWS PAGE ──────────────────────────────────────── */
.news-page { padding: 50px 0; }
.news-page-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.news-grid-page { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--trans); display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.card-image { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .card-image img { transform: scale(1.05); }
.card-image .no-image {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 2.5rem;
}
.card-category {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: var(--brown-dark);
  padding: 3px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.card-breaking {
  position: absolute; top: 12px; left: 12px;
  background: #DC2626; color: var(--white);
  padding: 3px 10px; border-radius: 50px;
  font-size: 11px; font-weight: 700;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text-dark); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .card-title { color: var(--brown-mid); }
.card-excerpt { color: var(--text-light); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.read-more { color: var(--gold); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.read-more:hover { color: var(--brown-dark); }
.card-views { font-size: 13px; color: var(--text-light); }
.featured-card { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
.featured-card .card-image { aspect-ratio: auto; min-height: 280px; }
.featured-card .card-body { padding: 30px; justify-content: center; }
.featured-card .card-title { font-size: 1.3rem; -webkit-line-clamp: 3; }
.cat-badge { background: var(--cream-dark); color: var(--text-light); padding: 1px 8px; border-radius: 6px; font-size: 12px; }

/* ── MEMBERS - Premium Cards ─────────────────────────── */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; padding: 44px 0 70px; }

.member-card { background: var(--white); border-radius: 20px; overflow: hidden; text-align: center; border: 1px solid rgba(0,0,0,0.07); transition: all 0.32s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 4px 20px rgba(0,0,0,0.06); position: relative; }
.member-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 50px rgba(10,36,71,0.16); border-color: var(--gold); }

/* Gradient Header Banner */
.member-card-header { height: 88px; background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 100%); position: relative; overflow: hidden; }
.member-card-header::before { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(0,188,212,0.18); top: -70px; right: -30px; }
.member-card-header::after { content: ''; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.06); bottom: -50px; left: 10px; }

/* Type Badge */
.member-type-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; padding: 4px 11px; border-radius: 50px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,0.25); }

/* Avatar overlapping header */
.member-photo-wrapper { margin-top: -42px; position: relative; z-index: 2; display: flex; justify-content: center; }
.member-avatar, .member-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.member-photo-placeholder { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.18); font-size: 28px; font-weight: 900; }
.member-photo-placeholder.female { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #92400E; }
.member-photo-placeholder.male { background: linear-gradient(135deg, #E0F7FA, #B2EBF2); color: var(--brown-dark); }
.member-avatar-placeholder { width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--white); background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid)); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: rgba(255,255,255,0.7); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* Card Body */
.member-info { padding: 14px 18px 22px; }
.member-name { font-weight: 800; font-size: 16px; color: var(--brown-dark); margin: 2px 0 6px; line-height: 1.35; }
.member-role, .member-spec { display: inline-block; background: rgba(0,188,212,0.1); color: #006064; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 50px; margin: 5px 0 8px; border: 1px solid rgba(0,188,212,0.22); }
.member-city { color: var(--text-light); font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 5px 0; }
.member-id { display: inline-block; color: var(--brown-dark); font-size: 11px; font-weight: 700; margin-top: 12px; padding: 4px 12px; background: rgba(10,36,71,0.06); border-radius: 50px; letter-spacing: 1px; font-family: 'Courier New', monospace; }
.member-badge { display: inline-block; background: var(--gold-pale); color: var(--brown-mid); padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; margin-top: 8px; }

/* ── JOBS ────────────────────────────────────────────── */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.job-card { background: var(--white); border-radius: 16px; border: 1px solid rgba(0,0,0,0.07); box-shadow: 0 4px 16px rgba(0,0,0,0.05); display: flex; flex-direction: column; transition: all 0.3s ease; overflow: hidden; }
.job-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(10,36,71,0.12); border-color: var(--gold); }
.job-card.job-closed { opacity: .75; }
.job-card.job-closed:hover { transform: none; box-shadow: 0 4px 16px rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.07); }
.job-card-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: rgba(10,36,71,0.03); border-bottom: 1px solid rgba(0,0,0,0.06); }
.job-status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.job-status-badge.open { background: #D1FAE5; color: #065F46; }
.job-status-badge.closed { background: #F1F5F9; color: #64748B; }
.job-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; animation: pulse-dot 1.5s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }
.job-type-badge { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 50px; background: rgba(0,188,212,0.1); color: #006064; border: 1px solid rgba(0,188,212,0.2); }
.job-card-body { padding: 20px 20px 12px; flex: 1; }
.job-title { font-size: 17px; font-weight: 800; color: var(--brown-dark); margin-bottom: 12px; line-height: 1.35; }
.job-title a { color: inherit; text-decoration: none; }
.job-title a:hover { color: var(--brown-mid); }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.job-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-light); }
.job-excerpt { font-size: 13.5px; color: var(--text-light); line-height: 1.6; }
.job-card-footer { padding: 14px 20px 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(0,0,0,0.06); margin-top: auto; }
.job-deadline { font-size: 12.5px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.job-deadline.urgent { color: #DC2626; font-weight: 700; }
.job-btn { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 50px; text-decoration: none; transition: all .2s; }
.job-btn-apply { background: var(--brown-dark); color: #fff; }
.job-btn-apply:hover { background: var(--brown-mid); }
.job-btn-view { background: rgba(10,36,71,0.07); color: var(--brown-dark); }
.job-btn-view:hover { background: rgba(10,36,71,0.12); }

/* ── FORMS ──────────────────────────────────────────── */
.join-section { padding: 60px 0 80px; }
.join-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.join-info h2 { font-size: 1.6rem; font-weight: 800; color: var(--brown-dark); margin-bottom: 16px; }
.join-info p { color: var(--text-light); margin-bottom: 20px; }
.join-benefits li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--text-mid); font-size: 15px; }
.join-benefits li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-title { font-size: 1.3rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 24px; border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: span 2; }
.form-label { font-weight: 700; font-size: 14px; color: var(--text-mid); }
.form-label .req { color: #DC2626; }
.form-control, .form-input, .form-select, .form-textarea { padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; background: var(--cream); color: var(--text-dark); transition: var(--trans); outline: none; width: 100%; }
.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(0,188,212,.12); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { color: #DC2626; font-size: 12px; }
.form-submit { width: 100%; padding: 14px; background: var(--gold); color: var(--brown-dark); border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; margin-top: 8px; transition: var(--trans); font-family: var(--font); cursor: pointer; border: none; }
.form-submit:hover { background: var(--brown-mid); color: var(--gold-light); }
.alert-success { background: #D4EDDA; border: 1px solid #C3E6CB; color: #155724; padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; }

/* ── CONTACT ────────────────────────────────────────── */
.contact-section { padding: 60px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 50px 0 70px; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.contact-info h2 { font-size: 1.5rem; font-weight: 800; color: var(--brown-dark); margin-bottom: 24px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); margin-bottom: 0; display: flex; gap: 16px; align-items: flex-start; transition: var(--trans); }
.contact-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,188,212,.15); }
.contact-card-icon, .contact-icon-wrap { width: 48px; height: 48px; background: var(--gold-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.contact-icon-wrap { background: var(--brown-dark); border-radius: 50%; font-size: 1.2rem; }
.contact-card-title, .contact-card h4 { font-weight: 700; font-size: 15px; color: var(--brown-dark); margin-bottom: 4px; }
.contact-card-val, .contact-card p { color: var(--text-light); font-size: 14px; }

/* ── ABOUT ──────────────────────────────────────────── */
.about-section { padding: 60px 0 80px; }
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: start; }
.about-content h2, .page-article h1 { font-size: 1.8rem; font-weight: 800; color: var(--brown-dark); margin-bottom: 20px; }
.about-content p, .page-article .page-body p { color: var(--text-mid); font-size: 16px; line-height: 2; margin-bottom: 18px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.value-card { background: var(--white); padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; transition: var(--trans); }
.value-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(0,188,212,.15); }
.value-icon { font-size: 32px; margin-bottom: 10px; }
.value-title { font-weight: 800; font-size: 15px; color: var(--brown-dark); margin-bottom: 6px; }
.value-desc { color: var(--text-light); font-size: 13px; }

/* ── GENERAL PAGE ───────────────────────────────────── */
.page-content { padding: 50px 0; }
.page-article { max-width: 860px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.page-article .page-body { font-size: 16px; line-height: 1.9; color: var(--text-mid); }
.page-article .page-body h2, .page-article .page-body h3 { color: var(--brown-dark); margin: 20px 0 10px; }
.page-article .page-body span[style], .article-content span[style] { color: revert; }

/* ── MISC ───────────────────────────────────────────── */
.section-categories { padding: 50px 0; background: var(--cream-dark); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; }
.cat-card { background: var(--white); border: 2px solid transparent; border-radius: var(--radius); padding: 24px 16px; text-align: center; transition: var(--trans); cursor: pointer; }
.cat-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-name { font-weight: 700; color: var(--brown-dark); font-size: 15px; }
.cat-count { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ── LIGHTBOX ───────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; background: rgba(10,5,0,.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--trans); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: fixed; top: 20px; left: 20px; width: 44px; height: 44px; background: rgba(255,255,255,.15); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; transition: var(--trans); }
.lightbox-close:hover { background: var(--gold); color: var(--brown-dark); }

/* ── PAGINATION ─────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-link, .pagination-wrap a, .pagination-wrap span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; background: var(--white); color: var(--text-mid); transition: var(--trans); }
.pagination .page-link:hover, .pagination .page-link.active, .pagination-wrap a:hover, .pagination-wrap .active { background: var(--gold); border-color: var(--gold); color: var(--brown-dark); }

/* ── SOCIAL ─────────────────────────────────────────── */
.social-links { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(0,188,212,.3); display: flex; align-items: center; justify-content: center; color: var(--gold-light); transition: var(--trans); }
.social-link:hover { background: var(--gold); color: var(--brown-dark); }
.social-link svg { width: 16px; height: 16px; }

/* ── STATS BAR ──────────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 24px 0; }
.stats-bar .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stats-bar .stat-item h3 { font-size: 2rem; font-weight: 800; color: var(--brown-dark); line-height: 1; }
.stats-bar .stat-item p { font-size: 13px; color: var(--brown-mid); font-weight: 600; margin-top: 4px; }

/* ── ANIMATION ──────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── SCROLL HEADER ──────────────────────────────────── */
/* يُضاف عبر JS عند التمرير */

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1280px) {
  .logo-img { height: 64px; }
  .logo-ar { font-size: 17px; }
}
@media (max-width: 1024px) {
  .logo-img { height: 60px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .news-grid, .news-grid-page { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(3,1fr); }
  .gallery-item.span-2 { grid-column: span 2; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .article-layout { grid-template-columns: 1fr 240px; }
  .news-page-layout { grid-template-columns: 1fr 240px; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(3,1fr); gap: 20px; }
  .topbar { display: none; }
  .stats-bar .stats-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .logo-img { height: 52px; max-width: 180px; }
  .logo-ar { font-size: 15px; }
  .logo-en { font-size: 11px; }
  .menu-toggle { display: flex; }
  .main-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0;
    width: 82%; max-width: 300px;
    height: 100dvh;
    background: var(--white);
    padding: 70px 20px 32px;
    gap: 4px; overflow-y: auto;
    z-index: 1100;
    transform: translateX(110%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    box-shadow: -6px 0 32px rgba(0,0,0,0.18);
    border-left: 3px solid var(--gold);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1099; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
  .nav-overlay.open { display: block; }
  .nav-close-btn { position: absolute; top: 16px; left: 16px; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); padding: 8px; line-height: 1; }
  .nav-list { flex-direction: column; width: 100%; gap: 2px; }
  .nav-item, .nav-item > a { width: 100%; }
  .nav-item > a { color: var(--text-dark); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-right: 12px; display: none; border-radius: 0; border-top: none; }
  .nav-item.open .dropdown { display: block; }
  .hero-slider { height: 380px; }
  .hero-content { height: 380px; }
  .hero-slide-bg { background-position: center top; }
  .hero-btns { flex-direction: column; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .news-grid, .news-grid-page { grid-template-columns: 1fr; }
  .news-sidebar { grid-template-columns: 1fr; }
  .article-layout, .news-page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .members-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .member-card-header { height: 76px; }
  .member-photo-wrapper { margin-top: -38px; }
  .member-photo, .member-photo-placeholder, .member-avatar, .member-avatar-placeholder { width: 76px; height: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  .join-layout, .contact-section .contact-layout { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .card-image { aspect-ratio: 16/9; }
  .related-grid { grid-template-columns: 1fr; }
  .header-inner { position: relative; }
  .stats-bar .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-img { height: 44px; max-width: 150px; }
  .logo-ar { font-size: 13px; }
  .logo-en { display: none; }
  .hero-slider { height: 280px; }
  .hero-content { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .members-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
