:root {
  --blue: #1f4e9c;
  --blue-dark: #12336b;
  --blue-soft: #eaf0fa;
  --red: #c8302c;
  --green: #1d7a46;
  --ink: #1c2330;
  --muted: #5d6676;
  --line: #e1e6ef;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(18, 51, 107, .08);
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf3; --muted: #a3acbd; --line: #2a3446; --bg: #0f1522; --bg-alt: #141c2c; --card: #182235;
    --blue-soft: #1a2944; --shadow: 0 6px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; font-size: 17px; line-height: 1.8;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
@media (prefers-color-scheme: dark) { a { color: #7fa8ee; } }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--red); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .site-header { background: rgba(15,21,34,.92); } }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { background: var(--blue-soft); color: var(--blue); }
.nav-cta { background: var(--red) !important; color: #fff !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; right: 0; left: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-family: inherit; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-blue { background: var(--blue); color: #fff; }

/* hero */
.hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #2d68c4); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("../img/meetings.jpg") center/cover; opacity: .12; mix-blend-mode: luminosity; }
.hero .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.hero p { font-size: 1.15rem; opacity: .92; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo { justify-self: center; background: #fff; border-radius: 50%; padding: 18px; width: min(300px, 70vw); aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.hero-logo img { width: 85%; border-radius: 50%; }
.page-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.page-hero p { opacity: .9; max-width: 680px; margin: 0 auto; }
@media (max-width: 880px) { .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 60px; padding-bottom: 60px; } .hero p { margin-inline: auto; } .hero-actions { justify-content: center; } .hero-logo { width: 200px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; border: 1px solid var(--line); }
.stat b { display: block; font-size: 2rem; color: var(--blue); font-weight: 800; }
@media (prefers-color-scheme: dark) { .stat b { color: #7fa8ee; } }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* grids & cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-right: 30px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "✓"; position: absolute; right: 0; color: var(--green); font-weight: 800; }

/* news */
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .15s; text-align: right; font: inherit; color: inherit; padding: 0; }
.news-card:hover { transform: translateY(-4px); }
.news-card .thumb { aspect-ratio: 16/10; background: var(--blue-soft); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card h3 { font-size: 1.08rem; margin: 0; }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; background: var(--blue-soft); color: var(--blue); }
.badge.team { background: #fdecec; color: var(--red); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 18px; border-radius: 30px; cursor: pointer; }
.filters button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* modal */
dialog.news-modal { border: none; border-radius: var(--radius); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: 90vh; background: var(--card); color: var(--ink); }
dialog.news-modal::backdrop { background: rgba(10, 20, 40, .6); }
.news-modal img { width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.news-modal .content { padding: 24px; white-space: pre-line; }
.news-modal .close { position: sticky; top: 10px; float: left; margin: 10px; background: #fff; border: none; border-radius: 50%; width: 38px; height: 38px; font-size: 1.3rem; cursor: pointer; z-index: 2; }

/* timeline / activities */
.activity { display: flex; gap: 16px; align-items: flex-start; }
.activity .num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 700; display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; display: none; }
.alert.ok { display: block; background: #e7f6ee; color: var(--green); }
.alert.err { display: block; background: #fdecec; color: var(--red); }
.req { color: var(--red); }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--red), #a3221f); color: #fff; border-radius: 20px; padding: 44px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .9; }

/* contact */
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-item .icon { margin: 0; flex: none; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* footer */
.site-footer { background: var(--blue-dark); color: #d6e0f2; padding: 48px 0 20px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; text-align: center; font-size: .9rem; opacity: .8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* admin table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { background: var(--blue); color: #fff; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
