/* ===== نادي قضاة المنوفية — نظام التصميم ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Amiri:wght@400;700&family=Aref+Ruqaa:wght@400;700&display=swap');

:root {
  --green-900: #073827;
  --green-800: #0b4d34;
  --green-700: #0e5e3f;
  --green-600: #147350;
  --green-050: #eef5f1;
  --gold-600: #a67c1f;
  --gold-500: #c9a227;
  --gold-400: #d8b64a;
  --gold-100: #f4ecd3;
  --ink: #1f2a25;
  --muted: #5c6b63;
  --line: #e2e8e3;
  --bg: #f6f8f6;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(7,56,39,.10);
  --shadow-sm: 0 2px 10px rgba(7,56,39,.07);
  --radius: 14px;
  --maxw: 1200px;
  --header-h: 116px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: transparent; }
body {
  font-family: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: transparent;
  line-height: 1.7;
  direction: rtl;
  position: relative;
}
/* علامة مائية أنيقة لخلفية الموقع (المبنى + الشعار) — طبقة ثابتة خلف كل المحتوى.
   التدرّج الأبيض 90% فوق الصورة يعطي إحساس opacity ≈ 10% مع خلفية أساسية ثابتة. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(246,248,246,.35), rgba(246,248,246,.45)),
    url('/assets/site-bg.jpg?v=2') center top / cover no-repeat;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.serif { font-family: 'Amiri', 'Cairo', serif; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--green-900);
  color: #cfe3d8;
  font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar a { color: #cfe3d8; opacity: .9; }
.topbar a:hover { color: var(--gold-400); opacity: 1; }
.topbar .t-left { display: flex; gap: 18px; align-items: center; }
.topbar .t-right { display: flex; gap: 14px; align-items: center; }
.topbar .socials a { font-size: 14px; }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { width: 66px; height: 66px; flex: 0 0 66px; }
.brand .logo img, .brand .logo svg { width: 100%; height: 100%; object-fit: contain; }
.brand .brand-text h1 { font-size: 22px; color: var(--green-800); font-weight: 800; line-height: 1.25; }
.brand .brand-text span { font-size: 13px; color: var(--gold-600); font-weight: 600; }

.main-nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; color: var(--ink); font-size: 15.5px; transition: .18s;
}
.main-nav a:hover { background: var(--green-050); color: var(--green-800); }
.main-nav a.active { background: var(--green-800); color: #fff; }
.nav-cta {
  background: var(--gold-500) !important; color: var(--green-900) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-400) !important; }
.nav-toggle { display: none; background: var(--green-800); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 8px; font-size: 20px; cursor: pointer; }
.nav-auth-m { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7,56,39,.94), rgba(11,77,52,.86)),
    radial-gradient(circle at 80% 20%, rgba(201,162,39,.25), transparent 55%);
  background-color: var(--green-800);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0l6 24 24 6-24 6-6 24-6-24-24-6 24-6z' fill='%23ffffff' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .6; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-block: 84px; text-align: center; }
.hero h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin-bottom: 14px; }
.hero p { font-size: clamp(16px, 2.4vw, 21px); max-width: 720px; margin: 0 auto 26px; color: #e8f1ec; }
.hero .scales { font-size: 46px; margin-bottom: 10px; color: var(--gold-400); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 30px; border-radius: 10px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; transition: .18s; font-family: inherit;
}
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== Stats strip ===== */
.stats { background: rgba(255,255,255,.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-block: 28px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--green-700); }
.stat .lbl { font-size: 15px; color: var(--muted); margin-top: 2px; }
.stat + .stat { border-right: 1px solid var(--line); }

/* ===== Sections ===== */
section.block { padding-block: 44px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.section-head h3 { font-size: clamp(24px, 3.5vw, 34px); color: var(--green-800); font-weight: 800; margin-top: 6px; }
.section-head .rule { width: 70px; height: 4px; background: var(--gold-500); border-radius: 4px; margin: 14px auto 0; }
.section-head p { color: var(--muted); max-width: 640px; margin: 12px auto 0; }

/* Cards grid */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.service-card { padding: 26px; text-align: center; border-top: 3px solid var(--gold-500); }
.service-card .ic { font-size: 40px; margin-bottom: 12px; }
.service-card h4 { color: var(--green-800); font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

/* Board / org */
.board-tier { margin-bottom: 34px; }
.board-tier .tier-label { text-align: center; color: var(--gold-600); font-weight: 700; margin-bottom: 18px; font-size: 15px; }
.board-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.person {
  width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center; padding: 22px 16px 18px; transition: .2s;
}
.person:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold-400); }
.person .avatar {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  border: 3px solid var(--gold-500); background: var(--green-050);
  display: flex; align-items: center; justify-content: center; color: var(--green-700); font-size: 40px;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { color: var(--green-800); font-size: 17.5px; margin-bottom: 4px; }
.person .role { display: inline-block; background: var(--green-050); color: var(--green-700); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 20px; }
.person .bio { color: var(--muted); font-size: 13px; margin-top: 10px; }
.person.lead { width: 290px; border-top: 4px solid var(--gold-500); }
.person.lead .avatar { width: 130px; height: 130px; }

/* News */
.news-card .news-img { height: 180px; background: var(--green-050); display: flex; align-items: center; justify-content: center; color: var(--green-600); font-size: 44px; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { padding: 20px; }
.news-card .date { color: var(--gold-600); font-size: 13px; font-weight: 600; }
.news-card h4 { color: var(--green-800); font-size: 18px; margin: 6px 0 8px; }
.news-card p { color: var(--muted); font-size: 14.5px; }

/* ===== Page banner ===== */
.page-banner {
  background: #fbfbf9;
  border-bottom: 1px solid var(--line);
  padding-block: 40px; position: relative; overflow: hidden;
}
.page-banner::before {
  content:''; position:absolute; inset:0 auto 0 0; width: 6px; background: var(--gold-500);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--green-800); }
.page-banner .crumb { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.page-banner .crumb a { color: var(--green-700); }
.page-banner .crumb a:hover { color: var(--gold-600); }

/* ===== Hero slider ===== */
.hero-slider { position: relative; height: clamp(380px, 60vh, 600px); overflow: hidden; background: linear-gradient(120deg, var(--green-800), var(--green-900)); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
}
.hero-slide.active { opacity: 1; }
/* خلفية مموّهة تملأ الفراغ + الصورة كاملة (fit) فوقها */
.hero-photo-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(22px) brightness(.5); transform: scale(1.18); z-index: 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 1; }
.hero-slide::after {
  content:''; position:absolute; inset:0; z-index: 2;
  background: linear-gradient(to top, rgba(7,40,28,.85) 0%, rgba(7,40,28,.35) 20%, transparent 46%);
}
.hero-slide .fallback-bg { position:absolute; inset:0; z-index: 1; background: linear-gradient(120deg,var(--green-800),var(--green-900)); }
/* شريط سفلي: نص أصغر + أزرار جنبه */
.hero-content {
  position: relative; z-index: 3; color: #fff; width: 100%; max-width: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px clamp(18px, 4vw, 48px) 18px; text-align: right;
  background: linear-gradient(to top, rgba(7,40,28,.9) 0%, rgba(7,40,28,.5) 55%, rgba(7,40,28,0) 100%);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
/* وهج ذهبي بسيط أعلى الشريط */
.hero-content::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(216,182,74,.8), transparent);
  box-shadow: 0 0 14px 2px rgba(216,182,74,.4);
}
.hero-text { min-width: 0; }
.hero-content .hero-badge { display: inline-block; background: var(--gold-500); color: var(--green-900); font-weight: 800; font-size: 11px; padding: 2px 12px; border-radius: 20px; margin-bottom: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.hero-content h2 { font-size: clamp(17px, 2.4vw, 24px); font-weight: 800; margin-bottom: 3px; text-shadow: 0 2px 12px rgba(0,0,0,.85), 0 0 26px rgba(0,0,0,.55); }
.hero-content p { font-size: clamp(12px, 1.4vw, 14px); margin: 0; color: #eef4f0; text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 20px rgba(0,0,0,.5); max-width: 640px; }
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; }
.hero-actions .btn { padding: 9px 20px; font-size: 14px; white-space: nowrap; }
.hero-dots { position: absolute; top: 16px; bottom: auto; left: 0; right: 0; z-index: 4; display: flex; gap: 9px; justify-content: center; }
@media (max-width: 640px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; text-align: center; }
}
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: .2s; }
.hero-dots button.active { background: var(--gold-500); border-color: var(--gold-500); width: 26px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: .2s; direction: ltr; display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: var(--gold-500); color: var(--green-900); }
.hero-arrow.prev { right: 18px; } .hero-arrow.next { left: 18px; }

/* ===== من نحن (لوحة مميزة) ===== */
.about-first { background:
  radial-gradient(circle at 12% 0%, rgba(201,162,39,.06), transparent 40%),
  radial-gradient(circle at 100% 100%, rgba(11,77,52,.05), transparent 40%), rgba(255,255,255,.55); }
.about-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-media { position: relative; }
.about-frame {
  position: relative; border-radius: 20px; padding: 44px 30px 40px; text-align: center;
  background: linear-gradient(150deg, var(--green-800), var(--green-900));
  border: 1px solid var(--green-700);
  box-shadow: 0 20px 50px rgba(7,56,39,.22);
}
.about-frame::before {
  content: ''; position: absolute; inset: 12px; border: 1.5px solid rgba(201,162,39,.5);
  border-radius: 14px; pointer-events: none;
}
.about-frame .about-logo { width: 200px; height: 200px; margin: 0 auto 14px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
.about-frame .about-logo img, .about-frame .about-logo svg { width: 100%; height: 100%; object-fit: contain; }
.about-frame .about-tag { color: var(--gold-400); font-size: 20px; font-weight: 700; }
.about-badge {
  position: absolute; bottom: -22px; inset-inline-start: -18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 22px; text-align: center; min-width: 120px;
}
.about-badge strong { display: block; font-size: 34px; font-weight: 800; color: var(--green-700); line-height: 1; }
.about-badge span { font-size: 13px; color: var(--muted); }
.about-copy .eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.about-copy h3 { font-size: clamp(24px, 3.4vw, 34px); color: var(--green-800); font-weight: 800; margin-top: 6px; }
.about-copy .lead-text { font-size: 16.5px; color: var(--ink); }
.vm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.vm-mini { display: flex; gap: 14px; align-items: flex-start; background: #fbfbf9; border: 1px solid var(--line); border-radius: 12px; padding: 16px; border-top: 3px solid var(--gold-500); }
.vm-mini .vm-icon {
  width: 62px; height: 62px; flex: 0 0 62px; object-fit: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow-sm);
}
.vm-mini h5 { color: var(--green-800); font-size: 16px; margin-bottom: 4px; }
.vm-mini p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ===== كلمة رئيس النادي (President Word) ===== */
.president-word-section {
  --green: #07563f;
  --green-dark: #034b37;
  --green-deep: #003f2e;
  --gold: #c89a27;
  --gold-light: #dfc06c;
  --cream: #fbfaf5;
  --text: #252b29;
  --muted: #777b78;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,1) 0%, rgba(250,248,240,.92) 46%, rgba(248,246,237,.88) 100%);
  padding: 56px 30px 68px;
  font-family: "Cairo", sans-serif;
  color: var(--text);
}
.president-word-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/site-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.17;
  pointer-events: none;
}
.president-word-section::after {
  content: "\2696";
  position: absolute;
  top: 30px;
  right: -40px;
  font-size: 330px;
  line-height: 1;
  color: rgba(195, 159, 66, 0.055);
  pointer-events: none;
}
.president-bg-left,
.president-bg-right { position: absolute; pointer-events: none; z-index: 0; }
.president-bg-left {
  width: 360px; height: 360px; bottom: -150px; left: -100px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,157,47,.08), transparent 68%);
}
.president-bg-right {
  width: 420px; height: 420px; top: 130px; right: -180px; border-radius: 50%;
  border: 1px solid rgba(200,154,39,.08);
}
.president-container { max-width: 1260px; margin: 0 auto; position: relative; z-index: 2; }
.president-heading { text-align: center; margin-bottom: 32px; }
.heading-eyebrow { display: flex; justify-content: center; align-items: center; gap: 17px; margin-bottom: 7px; }
.heading-eyebrow span { width: 44px; height: 1px; background: var(--gold); }
.heading-eyebrow p { margin: 0; font-size: 17px; font-weight: 700; color: var(--gold); }
.president-heading h2 { margin: 0; color: var(--green); font-size: 42px; line-height: 1.35; font-weight: 800; }
.heading-subtitle { margin: 5px 0 12px; color: #333b37; font-size: 18px; font-weight: 500; }
.heading-line { width: 65px; height: 3px; border-radius: 50px; margin: 0 auto; background: var(--gold); }
.president-content {
  display: grid; grid-template-columns: 355px minmax(0, 1fr); align-items: stretch; gap: 0;
  direction: ltr; max-width: 1170px; margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(46, 55, 48, 0.08));
}
.president-profile-card {
  grid-column: 1; direction: rtl;
  background: linear-gradient(180deg, #07583f 0%, #004b36 100%);
  color: white; border-radius: 22px 0 0 22px; position: relative; overflow: hidden;
  padding-bottom: 30px; min-height: 620px;
}
.president-profile-card::before {
  content: "\2696"; position: absolute; bottom: 30px; left: -18px; font-size: 160px;
  color: rgba(255,255,255,.045); transform: rotate(-4deg);
}
.president-profile-card::after {
  content: ""; position: absolute; width: 160px; height: 160px; right: -80px; top: 420px;
  border-radius: 50%; border: 1px solid rgba(214,174,66,.16);
}
.president-image-box {
  width: calc(100% - 40px); margin: 16px auto 0; position: relative; z-index: 3; overflow: hidden;
  border-radius: 18px; border: 2px solid var(--gold); box-shadow: 0 12px 24px rgba(0,0,0,.12);
  background: #ffffff;
}
.president-image { width: 100%; height: auto; display: block; object-fit: contain; }
.president-profile-info { position: relative; z-index: 2; padding: 25px 30px 0; text-align: center; }
.president-profile-info h3 { margin: 0 0 5px; font-size: 21px; font-weight: 800; line-height: 1.6; }
.president-role { margin: 0; color: #ffffff; opacity: .93; font-size: 15px; font-weight: 500; }
.profile-divider { width: 42px; height: 2px; margin: 18px auto 14px; background: var(--gold); }
.profile-scale { font-size: 27px; color: var(--gold); margin-bottom: 22px; }
.profile-quote { margin-top: 30px; text-align: center; padding: 0; font-family: 'Aref Ruqaa', 'Amiri', serif; }
.profile-quote span { display: block; color: var(--gold-light); font-size: 28px; font-weight: 700; }
.profile-quote p { margin: 8px 0 0; font-size: 32px; line-height: 1.7; font-weight: 700; color: #fff; }
.profile-small-line { width: 52px; height: 2px; margin: 16px auto 0; background: var(--gold); }
.president-speech-card {
  grid-column: 2; direction: rtl; position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(253,251,245,.98));
  border: 1px solid rgba(255,255,255,.9); border-radius: 0 22px 22px 0;
  padding: 44px 50px 35px; min-height: 620px; display: flex; flex-direction: column;
}
.president-speech-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(198,157,48,.16); pointer-events: none;
}
.quote-mark {
  position: absolute; font-family: Georgia, serif; font-size: 82px; line-height: 1;
  font-weight: 700; color: rgba(201,161,63,.60); user-select: none;
}
.quote-mark-top { top: 20px; right: 24px; }
.quote-mark-bottom { bottom: 2px; right: 26px; opacity: .25; }
.speech-content { position: relative; z-index: 2; padding: 0 15px 0 0; flex: 1; }
.speech-content p { margin: 0 0 21px; color: #272d2a; font-size: 15.5px; font-weight: 500; line-height: 2; text-align: justify; }
.speech-content .bismillah { color: var(--green-dark); font-weight: 800; font-size: 16px; margin-bottom: 18px; text-align: center; }
.speech-content .speech-closing { color: var(--green); font-weight: 700; margin-top: 14px; margin-bottom: 0; text-align: center; }
.speech-footer { position: relative; margin-top: 8px; padding-top: 21px; z-index: 2; }
.signature-line { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(197,155,44,.65), transparent); margin-bottom: 16px; }
.signature-info { text-align: right; }
.signature-info h4 { margin: 0 0 1px; color: var(--green); font-size: 16px; font-weight: 800; }
.signature-info p { margin: 0; color: #575d5a; font-size: 13px; }
@media (max-width: 1050px) {
  .president-content { grid-template-columns: 310px minmax(0, 1fr); }
  .president-speech-card { padding: 38px 34px 30px; }
  .speech-content p { font-size: 14.5px; }
}
@media (max-width: 850px) {
  .president-word-section { padding: 48px 20px 56px; }
  .president-heading h2 { font-size: 34px; }
  .president-content { display: flex; flex-direction: column; }
  .president-profile-card { width: 100%; border-radius: 22px 22px 0 0; min-height: unset; padding-bottom: 28px; }
  .president-image-box { width: 280px; margin-top: 25px; }
  .profile-quote { text-align: center; padding-right: 0; }
  .profile-small-line { margin: 16px auto 0; }
  .president-speech-card { width: 100%; border-radius: 0 0 22px 22px; min-height: unset; }
}
@media (max-width: 560px) {
  .president-word-section { padding: 40px 14px 48px; }
  .heading-eyebrow p { font-size: 14px; }
  .heading-eyebrow span { width: 30px; }
  .president-heading h2 { font-size: 29px; }
  .heading-subtitle { font-size: 15px; }
  .president-image-box { width: 220px; }
  .president-profile-info h3 { font-size: 19px; }
  .president-speech-card { padding: 40px 23px 30px; }
  .speech-content { padding: 0; }
  .speech-content p { font-size: 14px; line-height: 2; text-align: right; }
  .quote-mark { font-size: 60px; }
}

/* ===== لوحة شرف رؤساء النادي السابقين ===== */
.honor-section { position: relative; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 14px); background:
  radial-gradient(circle at 15% 0%, rgba(201,162,39,.08), transparent 36%),
  radial-gradient(circle at 90% 100%, rgba(11,77,52,.06), transparent 40%),
  linear-gradient(180deg, #fbfbf7, #f4f8f4); }
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.honor-card {
  position: relative; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 20px 24px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold-500); transition: transform .28s ease, box-shadow .28s ease;
}
.honor-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(7,56,39,.16); }
.honor-no {
  position: absolute; top: 14px; inset-inline-start: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-800); color: var(--gold-400); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(7,56,39,.25);
}
.honor-photo {
  position: relative; width: 150px; height: 182px; margin: 4px auto 16px; border-radius: 14px;
  overflow: hidden; border: 3px solid var(--gold-400); background: var(--green-050);
  box-shadow: 0 14px 30px rgba(7,56,39,.22);
}
.honor-photo::after { content: '👤'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 62px; color: #a9bcb0; }
.honor-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.honor-card h4 { color: var(--green-800); font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.honor-term { display: inline-flex; flex-direction: column; gap: 3px; background: var(--green-050); border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; }
.honor-term span { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.honor-term span:first-child { color: var(--green-700); }
@media (max-width: 860px) { .honor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .honor-grid { grid-template-columns: 1fr; } }

/* ===== خدمات النادي (كروت مميّزة) ===== */
.services-block { position: relative; overflow: hidden; background:
  radial-gradient(circle at 12% 12%, rgba(20,115,80,.07), transparent 34%),
  radial-gradient(circle at 88% 90%, rgba(201,162,39,.08), transparent 34%),
  linear-gradient(180deg, #f5f9f6, #eef4f0); }
.services-block::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 6l3.5 14 14 3.5-14 3.5L32 41l-3.5-14-14-3.5 14-3.5z' fill='%230b4d34' opacity='0.028'/%3E%3C/svg%3E");
}
.services-block .container { position: relative; z-index: 1; }
.svc-stagger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.svc-item {
  position: relative; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9f5 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 48px 26px 34px;
  box-shadow: 0 20px 46px rgba(7,56,39,.12), 0 2px 6px rgba(7,56,39,.05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.svc-stagger .svc-item:nth-child(3n+2) { margin-top: 36px; }
.svc-item::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; z-index: 2;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform: scaleX(0); transition: transform .3s ease; transform-origin: center;
}
.svc-item::after {
  content: ''; position: absolute; top: -46px; left: 50%; transform: translateX(-50%);
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,115,80,.12), transparent 68%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.svc-item:hover { transform: translateY(-12px); box-shadow: 0 34px 66px rgba(7,56,39,.22); border-color: var(--gold-400); }
.svc-item:hover::before { transform: scaleX(1); }
.svc-item:hover::after { opacity: 1; }
.svc-num {
  position: absolute; top: 14px; left: 0; right: 0; z-index: 0; text-align: center;
  font-family: 'Amiri', serif; font-size: 110px; font-weight: 700; line-height: 1;
  color: rgba(11,77,52,.05); pointer-events: none;
}
.svc-badge {
  position: relative; z-index: 1; width: 106px; height: 106px; border-radius: 50%;
  margin: 6px auto 22px; display: flex; align-items: center; justify-content: center;
  font-size: 50px; line-height: 1;
  background: radial-gradient(circle at 50% 30%, #ffffff, var(--gold-100) 88%);
  border: 1px solid rgba(201,162,39,.5);
  box-shadow: 0 16px 30px rgba(166,124,31,.26), inset 0 0 0 7px rgba(255,255,255,.7);
  transition: transform .3s ease, box-shadow .3s ease;
}
.svc-item:hover .svc-badge {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 22px 40px rgba(166,124,31,.38), 0 0 0 9px rgba(201,162,39,.14), inset 0 0 0 7px rgba(255,255,255,.8);
}
.svc-item h4 { position: relative; z-index: 1; color: var(--green-800); font-size: 20px; margin-bottom: 10px; }
.svc-item p { position: relative; z-index: 1; color: var(--muted); font-size: 14.5px; max-width: 260px; margin-inline: auto; }
.svc-line { display: block; height: 3px; width: 40px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); border-radius: 3px; margin: 16px auto 0; transition: width .3s ease; }
.svc-item:hover .svc-line { width: 76px; }
.svc-corner { display: none; }

/* ===== سلايدر الخدمات (coverflow) ===== */
.svc-carousel { position: relative; margin-top: 30px; }
.svc-viewport { position: relative; height: 500px; overflow: hidden; cursor: grab; touch-action: pan-y; }
.svc-viewport:active { cursor: grabbing; }
.svc-carousel .svc-item {
  position: absolute; top: 50%; left: 50%; width: 300px; margin: 0;
  transform-origin: center center; will-change: transform, opacity;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .45s ease, box-shadow .3s ease;
  cursor: pointer;
}
.svc-carousel .svc-item:hover { transform: none; }              /* المنطق في الـJS */
.svc-carousel .svc-item.is-active { border-color: rgba(201,162,39,.5); box-shadow: 0 40px 80px rgba(7,56,39,.26); cursor: default; }
.svc-carousel .svc-item.is-active::before { transform: scaleX(1); }
.svc-carousel .svc-item.is-active::after { opacity: 1; }
.svc-carousel .svc-item.is-active .svc-badge { transform: translateY(-4px) scale(1.06); box-shadow: 0 22px 40px rgba(166,124,31,.38), 0 0 0 9px rgba(201,162,39,.14), inset 0 0 0 7px rgba(255,255,255,.8); }
.svc-carousel .svc-item.is-active .svc-line { width: 76px; }
.svc-cta {
  display: none; align-items: center; justify-content: center; gap: 10px;
  margin: 22px auto 4px; padding: 13px 32px; border-radius: 999px;
  background: var(--green-800); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 16px 30px rgba(7,56,39,.30); transition: .2s;
}
.svc-cta span { direction: ltr; }
.svc-cta:hover { background: var(--green-700); transform: translateY(-2px); }
.svc-item.is-active .svc-cta { display: inline-flex; }

.svc-arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 20;
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--green-800); font-size: 26px; line-height: 1; direction: ltr;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: .2s;
}
.svc-arrow:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.svc-arrow.prev { left: -4px; }
.svc-arrow.next { right: -4px; }

.svc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.svc-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: .25s; }
.svc-dots button.active { width: 26px; border-radius: 6px; background: var(--gold-500); }

.svc-allrow { display: flex; justify-content: flex-end; margin-top: 4px; }
.svc-all { display: inline-flex; align-items: center; gap: 10px; color: var(--green-800); font-weight: 700; border-bottom: 2px solid var(--gold-500); padding-bottom: 4px; }
.svc-all span { color: var(--gold-600); direction: ltr; }
.svc-all:hover { color: var(--green-700); }

@media (max-width: 760px) {
  .svc-viewport { height: 520px; }
  .svc-carousel .svc-item { width: 260px; }
  .svc-arrow { width: 44px; height: 44px; font-size: 22px; }
  .svc-arrow.prev { left: -2px; } .svc-arrow.next { right: -2px; }
}

/* ===== News read-more + popup ===== */
.news-card { display: flex; flex-direction: column; }
.news-card .news-body { display: flex; flex-direction: column; flex: 1; }
.news-card .read-more {
  margin-top: auto; align-self: flex-start; background: none; border: 0; cursor: pointer;
  color: var(--green-700); font-family: inherit; font-weight: 700; font-size: 14.5px;
  padding: 10px 0 2px; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s, color .2s;
}
.news-card .read-more:hover { color: var(--gold-600); gap: 11px; }
.news-card .read-more .arr { direction: ltr; }

.news-pop-bg {
  position: fixed; inset: 0; background: rgba(7,40,28,.62); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.news-pop-bg.show { display: flex; animation: popfade .2s ease; }
@keyframes popfade { from { opacity: 0; } to { opacity: 1; } }
.news-pop {
  position: relative; background: #fff; border-radius: 20px; max-width: 700px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: poprise .25s ease;
}
@keyframes poprise { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.news-pop .np-img { height: 320px; background: var(--green-050); display: flex; align-items: center; justify-content: center; color: var(--green-600); font-size: 56px; overflow: hidden; }
.news-pop .np-img img { width: 100%; height: 100%; object-fit: cover; }
.news-pop .np-close {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(7,40,28,.55); color: #fff; font-size: 22px; line-height: 1; transition: .2s;
}
.news-pop .np-close:hover { background: var(--gold-500); color: var(--green-900); }
.news-pop .np-body { padding: 26px 30px 32px; }
.news-pop .np-date { color: var(--gold-600); font-weight: 700; font-size: 13.5px; }
.news-pop h3 { color: var(--green-800); font-size: clamp(20px, 3vw, 26px); margin: 8px 0 16px; line-height: 1.4; }
.news-pop .np-text { color: var(--ink); line-height: 2; white-space: pre-line; font-size: 16px; }
.news-pop .np-img { cursor: zoom-in; }
.np-gallery { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.np-gallery-label { color: var(--gold-600); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.np-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.np-thumb { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--green-050); height: 100px; transition: .2s; }
.np-thumb:hover { border-color: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 300; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.show { display: flex; animation: popfade .2s ease; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 18px; inset-inline-start: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; transition: .2s; }
.lb-close:hover { background: var(--gold-500); color: var(--green-900); }

/* ===== صفحة مجلس الإدارة (تصميم مميّز) ===== */
.board-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background:
  radial-gradient(circle at 88% 0%, rgba(11,77,52,.06), transparent 42%),
  radial-gradient(circle at 5% 90%, rgba(201,162,39,.06), transparent 38%),
  linear-gradient(180deg, #fbfcfb, #f1f5f2); }
/* خلفية على هيئة واجهة محكمة كلاسيكية (أعمدة) */
.board-hero::before, .board-hero::after {
  content: ''; position: absolute; top: 24px; bottom: 16px; width: 340px; pointer-events: none; opacity: .08; z-index: 0;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='240' viewBox='0 0 300 240'%3E%3Cg fill='%230b4d34'%3E%3Cpath d='M20 70 L150 20 L280 70 Z'/%3E%3Crect x='28' y='72' width='244' height='12'/%3E%3Crect x='42' y='86' width='18' height='120'/%3E%3Crect x='80' y='86' width='18' height='120'/%3E%3Crect x='118' y='86' width='18' height='120'/%3E%3Crect x='156' y='86' width='18' height='120'/%3E%3Crect x='194' y='86' width='18' height='120'/%3E%3Crect x='232' y='86' width='18' height='120'/%3E%3Crect x='28' y='206' width='244' height='14'/%3E%3C/g%3E%3C/svg%3E");
}
.board-hero::before { inset-inline-end: -40px; }
.board-hero::after { inset-inline-start: -40px; }
.board-hero .container { position: relative; z-index: 1; }
.bh-grid { display: grid; grid-template-columns: 1.05fr 0.82fr auto; gap: 34px; align-items: center; }
.bh-info .eyebrow { color: var(--gold-600); font-weight: 800; letter-spacing: 1px; font-size: 14px; }
.bh-info h1 { font-size: clamp(28px, 3.6vw, 44px); color: var(--green-800); font-weight: 800; line-height: 1.25; margin: 10px 0 16px; }
.bh-desc { color: var(--muted); font-size: 16px; max-width: 440px; line-height: 1.9; margin-bottom: 22px; }
.bh-name { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; border-top: 2px solid var(--line); padding-top: 18px; transition: .2s; }
.bh-name:hover { transform: translateY(-2px); }
.bh-name-icon { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; background: var(--green-800); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 8px 20px rgba(7,56,39,.28); }
.bh-name h2 { color: var(--green-800); font-size: 22px; }
.bh-name span { color: var(--gold-600); font-weight: 700; font-size: 14px; }

.bh-photo-wrap { position: relative; cursor: pointer; padding: 14px 16px 20px; }
/* طبقة خلفية مزخرفة خلف الإطار */
.bh-photo-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: 156px 156px 34px 34px;
  background: linear-gradient(160deg, rgba(201,162,39,.5), rgba(11,77,52,.25));
  box-shadow: 0 30px 70px rgba(7,56,39,.28);
}
.bh-frame { position: relative; z-index: 1; border-radius: 140px 140px 24px 24px; overflow: hidden; aspect-ratio: 1 / 1.16; border: 4px solid var(--gold-500); box-shadow: 0 12px 30px rgba(7,56,39,.28); background: linear-gradient(160deg, var(--green-700), var(--green-900)); transition: .28s; }
.bh-frame::after { content: ''; position: absolute; inset: 6px; border: 2px solid rgba(255,255,255,.4); border-radius: 132px 132px 18px 18px; pointer-events: none; z-index: 2; }
.bh-photo-wrap:hover .bh-frame { transform: translateY(-4px); }
.bh-frame img { width: 100%; height: 100%; object-fit: cover; }
.bh-frame .bh-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 96px; color: rgba(255,255,255,.5); }
.bh-role-badge { position: absolute; z-index: 3; bottom: 2px; left: 50%; transform: translateX(-50%); background: var(--green-800); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 22px; border-radius: 14px; box-shadow: 0 10px 24px rgba(7,56,39,.4); white-space: nowrap; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(201,162,39,.5); }
.bh-role-badge span { color: var(--gold-400); font-size: 16px; }

.bh-quote { align-self: stretch; background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: #fff; border-radius: 18px; padding: 28px 20px; width: 148px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 18px 40px rgba(7,56,39,.22); }
.bh-quote .q { color: var(--gold-400); font-size: 46px; line-height: .5; font-family: 'Amiri', serif; }
.bh-quote p { font-size: 16px; font-weight: 700; line-height: 1.85; margin-top: 14px; }

/* أقسام الهيئة والأعضاء */
.board-section { padding: 46px 0 6px; }
.bsec-head { display: flex; align-items: center; justify-content: center; gap: 16px; }
.bsec-head::before, .bsec-head::after { content: ''; width: 42px; height: 2px; background: var(--gold-500); }
.bsec-head h3 { color: var(--green-800); font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.bsec-sub { text-align: center; color: var(--muted); margin: 10px auto 0; max-width: 620px; font-size: 15px; }
.bm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.bm-card { display: flex; align-items: flex-start; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 10px 28px rgba(7,56,39,.08); cursor: pointer; transition: .25s; border-inline-start: 4px solid var(--gold-500); }
.bm-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(7,56,39,.16); border-color: var(--gold-400); }
.bm-photo { width: 96px; height: 112px; flex: 0 0 96px; border-radius: 12px; overflow: hidden; background: var(--green-050); display: flex; align-items: center; justify-content: center; font-size: 42px; color: var(--green-600); }
.bm-photo img { width: 100%; height: 100%; object-fit: cover; }
.bm-info { flex: 1; position: relative; min-width: 0; }
.bm-info .bm-ic { position: absolute; top: 0; inset-inline-end: 0; color: var(--gold-500); font-size: 17px; opacity: .65; }
.bm-info h4 { color: var(--green-800); font-size: 16.5px; margin-bottom: 5px; padding-inline-end: 22px; }
.bm-info .bm-role { color: var(--muted); font-size: 13.5px; }
.bm-exp { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.bm-exp-t { font-size: 11.5px; font-weight: 800; color: var(--gold-600); margin-bottom: 6px; letter-spacing: .3px; }
.bm-exp ul { list-style: none; margin: 0; padding: 0; }
.bm-exp li { position: relative; padding-inline-start: 17px; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.bm-exp li::before { content: '◆'; position: absolute; inset-inline-start: 0; top: 3px; color: var(--gold-500); font-size: 9px; }
.bh-info .bm-exp { max-width: 460px; }

/* الباند الختامي */
.board-closing { position: relative; overflow: hidden; color: #fff; margin-top: 52px; border-top: 3px solid var(--gold-500);
  background:
    radial-gradient(130% 150% at 50% -25%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(125deg, var(--green-700), var(--green-900)); }
.board-closing::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url('/assets/logo-tile.png');
  background-repeat: repeat;
  background-position: center;
  background-size: 104px;
  opacity: .16; }
.bc-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 58px 20px; text-align: center; }
.bc-quote { text-align: center; }
.bc-quote .q { display: block; color: var(--gold-400); font-size: 58px; font-family: 'Amiri', serif; line-height: .25; }
.bc-quote h3 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; margin-top: 14px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.bc-values { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.bc-values span { color: #eaf3ee; font-weight: 700; font-size: 14px; padding: 7px 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(224,195,104,.4); border-radius: 999px; backdrop-filter: blur(2px); }

@media (max-width: 980px) {
  .bh-grid { grid-template-columns: 1fr; text-align: center; }
  .bh-info .bh-desc { margin-inline: auto; }
  .bh-name { justify-content: center; }
  .bh-photo-wrap { max-width: 320px; margin: 10px auto 26px; }
  .bh-quote { width: auto; max-width: 420px; margin: 0 auto; }
  .bm-grid { grid-template-columns: repeat(2, 1fr); }
  .bc-inner { padding: 44px 18px; gap: 18px; }
}
@media (max-width: 620px) { .bm-grid { grid-template-columns: 1fr; } }

/* ===== الرؤية والرسالة — تصميم خاص بصفحة عن النادي ===== */
.vm-feature-section { background: linear-gradient(180deg, rgba(251,251,249,.55), rgba(242,246,243,.55)); }
.vm-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 940px; margin-inline: auto; }
.vm-feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; text-align: center; padding-bottom: 36px;
  box-shadow: 0 18px 44px rgba(7,56,39,.10); transition: transform .28s ease, box-shadow .28s ease;
}
.vm-feature:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(7,56,39,.18); }
.vm-band { height: 104px; position: relative; }
.vm-band::after {
  content:''; position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Cpath d='M25 0l5 20 20 5-20 5-5 20-5-20-20-5 20-5z' fill='%23ffffff' opacity='0.10'/%3E%3C/svg%3E");
}
.vm-vision .vm-band { background: linear-gradient(135deg, var(--green-700), var(--green-900)); }
.vm-mission .vm-band { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); }
.vm-feature-icon {
  position: relative; z-index: 1; width: 118px; height: 118px; margin: -60px auto 18px;
  border-radius: 50%; background: #fff; padding: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.18);
  border: 3px solid;
}
.vm-vision .vm-feature-icon { border-color: var(--gold-400); }
.vm-mission .vm-feature-icon { border-color: var(--green-600); }
.vm-feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.vm-feature-body { padding-inline: 30px; }
.vm-feature-body h3 { color: var(--green-800); font-size: 23px; margin-bottom: 12px; position: relative; display: inline-block; padding-bottom: 10px; }
.vm-feature-body h3::after { content:''; position: absolute; bottom: 0; left: 0; right: 0; margin-inline: auto; width: 48px; height: 3px; border-radius: 3px; }
.vm-vision .vm-feature-body h3::after { background: var(--green-600); }
.vm-mission .vm-feature-body h3::after { background: var(--gold-500); }
.vm-feature-body p { color: var(--muted); line-height: 1.95; font-size: 15.5px; }
@media (max-width: 760px) { .vm-feature-grid { grid-template-columns: 1fr; } }

/* ===== بطاقة العضو قابلة للنقر + هينت السيرة ===== */
.person { cursor: pointer; }
.person .person-cv { display: inline-block; margin-top: 12px; color: var(--green-700); font-weight: 700; font-size: 12.5px; opacity: 0; transform: translateY(4px); transition: .2s; }
.person:hover .person-cv, .person:focus-visible .person-cv { opacity: 1; transform: translateY(0); }
.person:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
@media (hover: none) { .person .person-cv { opacity: 1; transform: none; } }

/* ===== نافذة السيرة الذاتية ===== */
.profile-pop-bg {
  position: fixed; inset: 0; background: rgba(7,40,28,.62); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.profile-pop-bg.show { display: flex; animation: popfade .2s ease; }
.profile-pop {
  position: relative; background: #fff; border-radius: 20px; max-width: 640px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: poprise .25s ease;
}
.pp-close {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 22px; line-height: 1; transition: .2s;
}
.pp-close:hover { background: var(--gold-500); color: var(--green-900); }
.pp-head {
  position: relative; text-align: center; color: #fff; padding: 40px 24px 26px;
  background: linear-gradient(150deg, var(--green-800), var(--green-900)); border-radius: 20px 20px 0 0; overflow: hidden;
}
.pp-head::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: url('/assets/logo-tile.png') center / 92px repeat;
  opacity: .14;
}
.pp-head > * { position: relative; z-index: 1; }
.pp-avatar {
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden;
  border: 4px solid var(--gold-500); background: var(--green-050); box-shadow: 0 10px 26px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center; color: var(--green-700); font-size: 52px;
}
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-head h3 { font-size: 23px; margin-bottom: 8px; }
.pp-role { display: inline-block; background: var(--gold-500); color: var(--green-900); font-weight: 800; font-size: 14px; padding: 5px 18px; border-radius: 20px; }
.pp-tier { color: #cfe3d8; font-size: 13px; margin-top: 10px; }
.pp-body { padding: 26px 30px 30px; }
.pp-section { margin-bottom: 22px; }
.pp-section:last-child { margin-bottom: 0; }
.pp-section h4 { color: var(--green-800); font-size: 16px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-100); position: relative; }
.pp-section h4::after { content:''; position:absolute; bottom:-2px; inset-inline-start:0; width:46px; height:2px; background: var(--gold-500); }
.pp-section p { color: var(--ink); line-height: 1.9; white-space: pre-line; }
.pp-list { list-style: none; }
.pp-list li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; color: var(--ink); line-height: 1.7; }
.pp-list li::before { content: '⚖️'; position: absolute; inset-inline-start: 0; font-size: 12px; }
.pp-contact { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.pp-contact span { color: var(--ink); font-size: 15px; }
.pp-contact a { color: var(--green-700); }

/* ===== Warm CTA band ===== */
.cta-band { background: linear-gradient(120deg, rgba(244,236,211,.72), rgba(251,246,230,.72)); border-top: 3px solid var(--gold-500); }
.cta-band .container { padding-block: 34px; text-align: center; }
.cta-band h2 { font-size: clamp(23px, 4vw, 34px); color: var(--green-800); font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }

/* ===== About ===== */
.about-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.about-cols .lead-text { font-size: 17px; color: var(--ink); }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-right: 4px solid var(--gold-500); }
.vm-card + .vm-card { margin-top: 18px; }
.vm-card h4 { color: var(--green-800); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.vm-card p { color: var(--muted); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.info-item .ic { width: 44px; height: 44px; flex: 0 0 44px; background: var(--green-050); color: var(--green-700); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.info-item h4 { color: var(--green-800); font-size: 15px; margin-bottom: 2px; }
.info-item p { color: var(--muted); font-size: 14.5px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ===== Forms ===== */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--green-800); font-size: 14.5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: #fcfdfc; transition: .15s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 3px rgba(20,115,80,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.ok { background: #e6f4ec; color: #14603c; border: 1px solid #b7dcc6; }
.alert.err { background: #fdecec; color: #a12a2a; border: 1px solid #f2c4c4; }

/* ===== Auth card ===== */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: transparent; }
.auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
/* تخطيط بانلين: صورة المبنى + نموذج الدخول */
.auth-split { max-width: 860px; display: grid; grid-template-columns: 1.02fr 1fr; }
.auth-visual { position: relative; min-height: 460px; overflow: hidden;
  background: linear-gradient(160deg, #eef5f1, #e0ede7); }
.auth-visual-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px; gap: 14px; }
.auth-pic { width: 100%; max-width: 430px; filter: drop-shadow(0 14px 26px rgba(7,56,39,.20)); }
.auth-visual-content p { color: var(--green-700); font-weight: 600; font-size: 14.5px; max-width: 280px; line-height: 1.8; }
.auth-pane { display: flex; flex-direction: column; }
.auth-head2 { text-align: center; padding: 30px 24px 6px; }
.auth-head2 h2 { font-size: 22px; color: var(--green-800); }
.auth-head2 p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.auth-body { padding: 26px; }
.role-tabs { display: flex; gap: 8px; margin-bottom: 20px; background: var(--green-050); padding: 5px; border-radius: 12px; }
.role-tabs button { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; font-family: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.role-tabs button.active { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .auth-split { grid-template-columns: 1fr; max-width: 430px; }
  .auth-visual { min-height: 190px; }
  .auth-logo-sm .logo { width: 64px; height: 64px; }
  .auth-visual-content h3 { font-size: 20px; }
  .auth-head2 { padding-top: 22px; }
}

/* ===== Services (member portal) ===== */
.portal { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.portal-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; position: sticky; top: calc(var(--header-h) + 10px); }
.portal-side .p-user { background: linear-gradient(120deg, var(--green-800), var(--green-900)); color: #fff; padding: 24px; text-align: center; }
.portal-side .p-user .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; border: 3px solid var(--gold-500); background: var(--green-050); display: flex; align-items: center; justify-content: center; color: var(--green-700); font-size: 32px; }
.portal-side .p-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.portal-side .p-user h4 { font-size: 17px; }
.portal-side .p-user span { color: #cfe3d8; font-size: 13px; }
.portal-menu { list-style: none; padding: 10px; }
.portal-menu button { width: 100%; text-align: right; padding: 12px 14px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--ink); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.portal-menu button:hover { background: var(--green-050); }
.portal-menu button.active { background: var(--green-800); color: #fff; }
.portal-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.portal-panel h3 { color: var(--green-800); margin-bottom: 4px; }
.portal-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.tabpane { display: none; } .tabpane.active { display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: #cfe3d8; margin-top: 60px; }
.footer-top { padding-block: 48px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-cols h4 { color: #fff; font-size: 17px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-cols h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--gold-500); border-radius: 3px; }
.footer-cols .f-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-cols .f-brand .logo { width: 54px; height: 54px; }
.footer-cols .f-brand strong { color: #fff; font-size: 18px; }
.footer-cols p { font-size: 14px; opacity: .9; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 14.5px; opacity: .9; transition: .15s; }
.footer-links a:hover { color: var(--gold-400); padding-right: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact .ic { color: var(--gold-400); }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a { height: 40px; padding: 0 16px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; transition: .18s; }
.footer-socials a span { font-family: Georgia, serif; font-weight: 700; }
.footer-socials a:hover { background: var(--gold-500); color: var(--green-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; text-align: center; font-size: 13.5px; opacity: .85; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom-row .kaffo-credit { opacity: .95; }
.footer-bottom-row .kaffo-credit a { color: var(--gold-400); font-weight: 700; }
.footer-bottom-row .kaffo-credit a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 600px){ .footer-bottom-row { justify-content: center; text-align: center; } }

/* ===== زر العودة لأعلى ===== */
.back-to-top {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-800); color: #fff; font-size: 24px; line-height: 1;
  box-shadow: 0 10px 26px rgba(7,56,39,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: .28s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(166,124,31,.45); }

/* ===== مؤشر الأقسام الجانبي (scroll-spy) ===== */
.scroll-spy {
  position: fixed; inset-inline-start: 20px; top: 50%; transform: translateY(-50%);
  z-index: 85; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.scroll-spy.show { opacity: 1; visibility: visible; }
.scroll-spy button { direction: ltr; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; gap: 12px; }
.scroll-spy .dot { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; background: #c4d2ca; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.18); transition: .25s; }
.scroll-spy button:hover .dot { background: var(--green-600); }
.scroll-spy button.active .dot { background: var(--gold-500); transform: scale(1.25); box-shadow: 0 0 0 5px rgba(201,162,39,.22); }
.scroll-spy .lbl {
  background: var(--green-800); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 5px 13px; border-radius: 20px; white-space: nowrap;
  opacity: 0; transform: translateX(-8px); pointer-events: none; transition: .22s; box-shadow: var(--shadow-sm);
}
.scroll-spy button:hover .lbl, .scroll-spy button.active .lbl { opacity: 1; transform: translateX(0); }
@media (max-width: 992px) { .scroll-spy { display: none; } }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; } .mt-2 { margin-top: 12px; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .about-cols, .contact-grid, .portal { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { inset-inline-start: 20px; }
  .svc-stagger { grid-template-columns: repeat(2, 1fr); }
  .svc-stagger .svc-item:nth-child(3n+2) { margin-top: 0; }
  .svc-stagger .svc-item:nth-child(4n) { margin-top: 36px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .portal-side { position: static; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: #fff; box-shadow: -6px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: .25s; padding: 20px; z-index: 60; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px; }
  .nav-toggle { display: block; }
  .nav-auth-m { display: block; }
  .main-nav .nav-auth-m:first-of-type { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-right: none; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .svc-stagger { grid-template-columns: 1fr; }
  .svc-stagger .svc-item { margin-top: 0 !important; }
  .vm-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .topbar .t-left span.hide-sm { display: none; }
}
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 45; }
.nav-backdrop.show { display: block; }

/* ===== سجل الحوكمة — الفلاتر والترتيب ===== */
.audit-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 14px 18px; margin: 12px 18px 0; background: #f7faf8; border: 1px solid var(--line); border-radius: 12px; }
.af-field { display: flex; flex-direction: column; gap: 4px; }
.af-field label { font-size: 11px; font-weight: 700; color: var(--muted); }
.af-field input, .af-field select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; min-width: 120px; }
.af-field input:focus, .af-field select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(197,160,80,.15); }
.af-grow { flex: 1 1 220px; }
.af-grow input { width: 100%; }
.af-actions { justify-content: flex-end; }
.audit-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 4px; }
.audit-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); padding: 5px 11px; border-radius: 20px; }
.audit-chip b { background: var(--c); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 11.5px; }
.audit-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.audit-table th.sortable:hover { color: var(--gold-600); }
.audit-table th.sortable.active { color: var(--gold-600); }
.audit-table th .sarr { font-size: 10px; margin-inline-start: 3px; }
.audit-act { font-weight: 700; white-space: nowrap; }
.audit-count { padding: 4px 18px 16px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .af-field input, .af-field select { min-width: 0; width: 100%; } .af-field { flex: 1 1 140px; } }

/* ===== كشف حركة الحساب ===== */
.ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.ledger-head b { font-size: 16px; }
.lh-lbl { display: block; font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.ledger-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 26%, #fff); padding: 6px 12px; border-radius: 10px; }
.ls-chip b { font-size: 13.5px; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger-table thead th { position: sticky; top: 0; background: var(--green-800, #0b3d2e); color: #fff; padding: 10px 11px; text-align: right; z-index: 1; }
.ledger-table tbody td { padding: 9px 11px; border-bottom: 1px solid var(--line); }
.ledger-table tbody tr:nth-child(even) { background: #fafcfb; }
.ledger-open td { background: #f1f5f4 !important; color: var(--muted); font-weight: 700; }

/* ===== ترحيب العضو في الشريط العلوي ===== */
.t-right .tb-welcome { color: #fff; font-size: 13px; }
.t-right .tb-welcome a { color: var(--gold-300, #f0d488); font-weight: 800; }
.t-right .tb-welcome a:hover { text-decoration: underline; }
.t-right .tb-logout { color: rgba(255,255,255,.82); font-size: 12.5px; margin-inline-start: 14px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.25); }
.t-right .tb-logout:hover { color: #fff; }
