/* ============================================================================
   Ministry of Youth and Sports, South West State of Somalia
   Design system: colors derived from the South West State flag
   (green field, blue Somali-flag canton, red diagonal) + one energetic
   accent used for calls to action. Swap --color-* variables once the
   official logo/brand colors are confirmed.
   ============================================================================ */

:root {
  /* Brand colors */
  --color-primary: #04653D;        /* deep flag green */
  --color-primary-dark: #034A2C;
  --color-primary-light: #E8F5EE;
  --color-secondary: #3E7CC2;      /* Somali-flag blue */
  --color-accent: #E8542E;         /* energetic red-orange, from the flag's red diagonal */
  --color-accent-dark: #C73F1C;

  /* Neutrals */
  --color-ink: #16201C;
  --color-text: #2B332F;
  --color-text-muted: #5C6760;
  --color-border: #E1E6E2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F8F6;
  --color-success: #1C7C3F;
  --color-warning: #B9772E;
  --color-danger: #C62828;

  /* Type */
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 24, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 32, 24, 0.10);
  --shadow-lg: 0 16px 48px rgba(16, 32, 24, 0.16);
  --container-width: 1200px;
}

/* ---- Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--color-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }

section { padding: 56px 0; }
.section-alt { background: var(--color-surface-alt); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--color-text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .78rem; color: var(--color-accent); margin-bottom: 10px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary-light); }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.topbar { background: var(--color-primary-dark); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 20px; flex-wrap: wrap; gap: 6px; }
.topbar-contact { display: flex; gap: 18px; }
.topbar-contact a { color: #fff; opacity: .92; }
.topbar-contact a:hover { opacity: 1; text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-social a { color: #fff; opacity: .92; }
.lang-switch a { color: #fff; opacity: .75; }
.lang-switch a.active { opacity: 1; font-weight: 700; text-decoration: underline; }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-ink); }
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; color: var(--color-primary-dark); }
.brand-text small { font-size: .72rem; color: var(--color-text-muted); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); display: block; }

.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.primary-nav ul a {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-text); font-weight: 600; font-size: .92rem;
}
.primary-nav ul a:hover, .primary-nav ul a.active { background: var(--color-primary-light); color: var(--color-primary-dark); text-decoration: none; }
.nav-search { display: flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.nav-search input { border: 0; padding: 9px 10px; font-family: var(--font-base); width: 150px; }
.nav-search button { border: 0; background: var(--color-surface-alt); padding: 0 12px; cursor: pointer; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 10px 20px 20px; box-shadow: var(--shadow-md); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; }
  .nav-search { margin-top: 10px; }
  .nav-search input { width: 100%; }
  .topbar-contact { display: none; }
}

/* ---- Flash messages ------------------------------------------------------ */
.flash-container { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 10px; font-weight: 600; }
.flash-success { background: #E6F4EA; color: var(--color-success); border: 1px solid #BEE3C8; }
.flash-error { background: #FBE9E7; color: var(--color-danger); border: 1px solid #F2C6C2; }
.flash-info { background: #EAF2FB; color: var(--color-secondary); border: 1px solid #CFE2F7; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-secondary) 130%);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(232,84,46,.35), transparent 45%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 16px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
}

/* ---- Stats ---------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-card .stat-number { font-size: 2.1rem; font-weight: 800; color: var(--color-primary); display: block; }
.stat-card .stat-label { color: var(--color-text-muted); font-weight: 600; font-size: .92rem; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cards ------------------------------------------------------------ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media { aspect-ratio: 16/10; background: var(--color-primary-light); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--color-accent); }
.card-body h3 { margin: 0; font-size: 1.08rem; }
.card-body h3 a { color: var(--color-ink); }
.card-body h3 a:hover { color: var(--color-primary); text-decoration: none; }
.card-meta { font-size: .85rem; color: var(--color-text-muted); }
.card-footer-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-green { background: #E6F4EA; color: var(--color-success); }
.badge-blue { background: #EAF2FB; color: var(--color-secondary); }
.badge-orange { background: #FDEEE8; color: var(--color-accent-dark); }
.badge-gray { background: #EDEFEE; color: var(--color-text-muted); }

/* ---- Minister welcome ------------------------------------------------- */
.welcome-block { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: 36px; }
.welcome-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; background: var(--color-primary-light); }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; }
.welcome-quote { font-size: 1.15rem; color: var(--color-ink); font-style: italic; margin-bottom: 14px; }
.welcome-name { font-weight: 700; color: var(--color-primary-dark); }
.welcome-title { color: var(--color-text-muted); font-size: .9rem; }
@media (max-width: 760px) { .welcome-block { grid-template-columns: 1fr; text-align: center; } .welcome-photo { max-width: 220px; margin: 0 auto; } }

/* ---- Leadership cards --------------------------------------------------- */
.person-card { text-align: center; }
.person-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; background: var(--color-primary-light); border: 4px solid var(--color-surface); box-shadow: var(--shadow-sm); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-name { font-weight: 700; color: var(--color-ink); }
.person-title { color: var(--color-text-muted); font-size: .88rem; }

/* ---- Timeline / history ------------------------------------------------- */
.timeline { position: relative; padding-left: 28px; border-left: 3px solid var(--color-primary-light); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before { content: ''; position: absolute; left: -35px; top: 2px; width: 14px; height: 14px; background: var(--color-primary); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--color-primary-light); }
.timeline-year { font-weight: 800; color: var(--color-primary); }

/* ---- Org chart ----------------------------------------------------------- */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.org-node { background: var(--color-primary); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; text-align: center; box-shadow: var(--shadow-sm); }
.org-node.secondary { background: var(--color-secondary); }
.org-node.tertiary { background: var(--color-surface-alt); color: var(--color-ink); border: 1px solid var(--color-border); font-weight: 600; }
.org-connector { width: 2px; height: 20px; background: var(--color-border); }
.org-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---- Forms --------------------------------------------------------------- */
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: .92rem; color: var(--color-ink); }
.form-group .req { color: var(--color-danger); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 13px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-base); font-size: .96rem;
  background: #fff; color: var(--color-text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-secondary); }
.form-hint { font-size: .8rem; color: var(--color-text-muted); }
.form-error { font-size: .82rem; color: var(--color-danger); font-weight: 600; }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

/* ---- Registration hub ---------------------------------------------------- */
.register-choice { display: block; height: 100%; }
.register-choice .card { height: 100%; }
.register-icon { font-size: 2.4rem; margin-bottom: 10px; }

/* ---- Success / reference number ------------------------------------------ */
.success-box { text-align: center; max-width: 560px; margin: 0 auto; padding: 48px 32px; background: var(--color-primary-light); border-radius: var(--radius-lg); }
.success-box .ref-number { display: inline-block; margin: 18px 0; padding: 14px 28px; background: #fff; border: 2px dashed var(--color-primary); border-radius: var(--radius-md); font-size: 1.5rem; font-weight: 800; color: var(--color-primary-dark); letter-spacing: .03em; }

/* ---- Tables (documents/fixtures) ------------------------------------------ */
.table-responsive { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; }
table.data-table th, table.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: .92rem; }
table.data-table th { background: var(--color-surface-alt); font-weight: 700; color: var(--color-ink); }
table.data-table tr:hover td { background: var(--color-surface-alt); }

/* ---- Filters bar ---------------------------------------------------------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 28px; background: var(--color-surface-alt); padding: 18px; border-radius: var(--radius-md); }
.filter-bar .form-group { margin-bottom: 0; min-width: 160px; }

/* ---- Gallery --------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; background: var(--color-primary-light); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.video-embed { aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Partner logos ---------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: center; }
.partner-logo { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; display: flex; align-items: center; justify-content: center; height: 90px; }
.partner-logo img { max-height: 48px; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Share buttons ---------------------------------------------------------- */
.share-row { display: flex; gap: 10px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-surface-alt); color: var(--color-ink); font-size: .9rem; }
.share-btn:hover { background: var(--color-primary-light); text-decoration: none; }

/* ---- Article / detail page ---------------------------------------------- */
.article-header { max-width: 820px; margin: 0 auto 28px; text-align: center; }
.article-cover { max-width: 960px; margin: 0 auto 32px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; background: var(--color-primary-light); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.article-body h2 { margin-top: 1.4em; }
.article-body img { border-radius: var(--radius-md); margin: 1.2em 0; }

/* ---- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--color-text-muted); }

/* ---- Facebook embed panel ------------------------------------------------- */
.facebook-panel { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: 28px; text-align: center; }

/* ---- WhatsApp floating button ---------------------------------------------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 150; transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,.85); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 20px 36px; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.footer-brand p { font-size: .88rem; max-width: 260px; margin: 12px 0; }
.footer-social { display: flex; gap: 14px; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; text-align: center; font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Utility --------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 40px; } .mb-lg { margin-bottom: 40px; }
.muted { color: var(--color-text-muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-weight: 600; font-size: .9rem; }
.pagination a:hover { background: var(--color-primary-light); text-decoration: none; }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Print: documents page */
@media print { .site-header, .whatsapp-float, .site-footer { display: none; } }


/* ============================================================================
   ENHANCEMENTS — icons, navigation, hero, motion, forms, lightbox
   ============================================================================ */

/* ---- Icons ---------------------------------------------------------------- */
.icon { flex-shrink: 0; vertical-align: -0.2em; }
.topbar a, .footer-contact li, .icon-line { display: inline-flex; align-items: center; gap: 7px; }
.footer-contact li { display: flex; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; opacity: .8; }
.icon-line { display: flex; align-items: flex-start; }
.icon-line .icon { margin-top: 4px; color: var(--color-primary); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow .icon { transform: scaleX(-1); }

/* ---- Better focus + selection ---------------------------------------------- */
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--color-primary); color: #fff; }

/* ---- Buttons --------------------------------------------------------------- */
.btn { letter-spacing: .01em; }
.btn:active { transform: translateY(0); }
.btn-accent { box-shadow: 0 6px 18px rgba(232, 84, 46, .35); }
.btn-primary { box-shadow: 0 4px 14px rgba(4, 101, 61, .25); }
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }

/* ---- Header ---------------------------------------------------------------- */
.site-header { box-shadow: 0 1px 0 var(--color-border); transition: box-shadow .2s ease; }
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.topbar { background: linear-gradient(90deg, var(--color-primary-dark), #02382a); }
.brand-logo { transition: transform .3s ease; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text strong { letter-spacing: -.01em; }

.primary-nav ul a, .nav-more-btn {
  position: relative; border-radius: var(--radius-sm);
}
.primary-nav > ul > li > a.active::after,
.nav-more.has-active > .nav-more-btn::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px;
  border-radius: 3px; background: var(--color-accent);
}
.primary-nav ul a.active { background: var(--color-primary-light); }
.nav-search { transition: border-color .15s ease, box-shadow .15s ease; }
.nav-search:focus-within { border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(62, 124, 194, .18); }
.nav-search input:focus-visible { outline: none; }
.nav-search button { display: flex; align-items: center; color: var(--color-primary); }

/* "More" dropdown */
.nav-more { position: relative; }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none;
  font: 600 .92rem var(--font-base); color: var(--color-text); cursor: pointer;
}
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { background: var(--color-primary-light); color: var(--color-primary-dark); }
.nav-more-btn .icon { transition: transform .2s ease; }
.nav-more-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-more-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px; display: none !important; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 120;
}
.nav-more-btn[aria-expanded="true"] + .nav-more-menu { display: flex !important; animation: pop .16s ease; }
.nav-more-menu a { padding: 10px 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Mobile drawer (replaces the old dropdown panel) */
.nav-backdrop { position: fixed; inset: 0; background: rgba(10, 18, 14, .55); z-index: 90; }
.nav-backdrop[hidden] { display: none; }
@media (max-width: 1180px) {
  .nav-toggle { display: flex; position: relative; z-index: 130; }
  .nav-toggle span { transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav {
    display: flex; position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 14px; padding: 76px 20px 28px; overflow-y: auto;
    background: var(--color-surface); box-shadow: var(--shadow-lg); z-index: 120;
    transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s;
  }
  .primary-nav.open { transform: none; visibility: visible; transition: transform .28s ease; }
  .primary-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .primary-nav ul a, .nav-more-btn { padding: 12px 14px; font-size: 1rem; width: 100%; }
  .primary-nav > ul > li > a.active::after, .nav-more.has-active > .nav-more-btn::after { display: none; }
  .primary-nav ul a.active { box-shadow: inset 4px 0 0 var(--color-accent); }
  .nav-more-btn { justify-content: space-between; }
  .nav-more-menu { position: static; display: none !important; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav-more-btn[aria-expanded="true"] + .nav-more-menu { display: flex !important; animation: none; }
  .nav-search { margin-top: 4px; }
  .nav-search input { flex: 1; width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  padding: 84px 0 140px;
  background:
    radial-gradient(circle at 12% 88%, rgba(62, 124, 194, .35), transparent 40%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #0b7a4c 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 65%); mask-image: linear-gradient(115deg, #000 0%, transparent 65%);
}
.hero-eyebrow { backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.22); }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgba(232,84,46,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(232,84,46,0); } 100% { box-shadow: 0 0 0 0 rgba(232,84,46,0); } }
.hero h1 { text-wrap: balance; letter-spacing: -.02em; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.28)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero + section, .hero + .stats-section { position: relative; }

/* ---- Stats overlap the hero ------------------------------------------------- */
.stats-section { padding-top: 0; padding-bottom: 24px; margin-top: -76px; position: relative; z-index: 2; }
.stat-card { position: relative; overflow: hidden; border: 0; box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease; }
.stat-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); }
.stat-card:nth-child(even)::before { background: linear-gradient(90deg, var(--color-accent), #f08a4b); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
  background: var(--color-primary-light); color: var(--color-primary); font-size: 1.5rem;
}
.stat-card .stat-number { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---- Section rhythm -------------------------------------------------------- */
section { padding: 72px 0; }
.section-head h2 { text-wrap: balance; }
.section-head h2::after {
  content: ''; display: block; width: 56px; height: 4px; border-radius: 4px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.eyebrow { padding: 4px 12px; border-radius: 999px; background: #FDEEE8; }
.section-alt { background: linear-gradient(180deg, var(--color-surface-alt), #fff 140%); }

/* ---- Cards ----------------------------------------------------------------- */
.card { border-radius: var(--radius-md); }
.card:hover { box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; }
.card-media img { transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.img-fallback, .gallery-item.img-fallback, .welcome-photo.img-fallback, .article-cover.img-fallback {
  background: linear-gradient(135deg, var(--color-primary-light), #d4e8f7);
}
.card-media.img-fallback img, .gallery-item.img-fallback img { opacity: .35; object-fit: contain; padding: 18%; }
.card-body h3 { line-height: 1.35; }
.card-body h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.card-body h3 a:hover { background-size: 100% 2px; }
.register-icon {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center;
  background: var(--color-primary-light); color: var(--color-primary); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.register-choice:hover .register-icon { background: var(--color-primary); color: #fff; transform: rotate(-4deg) scale(1.05); }
.register-choice:hover { text-decoration: none; }

/* ---- Tables ----------------------------------------------------------------- */
.table-responsive { border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table.data-table th { text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; color: var(--color-text-muted); }
table.data-table tr:last-child td { border-bottom: 0; }

/* ---- Forms ------------------------------------------------------------------ */
.form-group input, .form-group select, .form-group textarea { transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(62, 124, 194, .16);
}
.form-group input.touched:invalid, .form-group select.touched:invalid, .form-group textarea.touched:invalid {
  border-color: var(--color-danger); background: #fff8f7;
}
.form-group input.touched:valid:not(:placeholder-shown), .form-group textarea.touched:valid:not(:placeholder-shown) { border-color: var(--color-success); }
.form-card { box-shadow: var(--shadow-md); }
.btn[disabled] { position: relative; }

/* ---- Facebook click-to-load -------------------------------------------------- */
.fb-embed { margin: 20px auto 0; max-width: 500px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.fb-embed iframe { border: 0; width: 100%; max-width: 500px; height: 400px; display: block; border-radius: var(--radius-md); background: #fff; }

/* ---- Lightbox ---------------------------------------------------------------- */
.lightbox-overlay { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 15, 12, .94); }
.lightbox-overlay.open { display: flex; animation: fade .2s ease; }
.lightbox-overlay figure { margin: 0; text-align: center; max-width: 94vw; }
.lightbox-overlay img { max-width: 94vw; max-height: 80vh; border-radius: 8px; margin: 0 auto; }
.lightbox-overlay figcaption { color: rgba(255,255,255,.85); margin-top: 12px; font-size: .95rem; }
.lightbox-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; transition: background .15s ease;
}
.lightbox-btn:hover { background: rgba(255,255,255,.28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev .icon { transform: scaleX(-1); }
@keyframes fade { from { opacity: 0; } }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer { margin-top: 0; background: linear-gradient(180deg, #14201a, #0d1511); border-top: 4px solid var(--color-primary); position: relative; }
.site-footer::before { content: ''; position: absolute; top: -4px; left: 0; width: 33%; height: 4px; background: var(--color-secondary); }
.site-footer::after { content: ''; position: absolute; top: -4px; right: 0; width: 20%; height: 4px; background: var(--color-accent); }
.footer-col h4 { position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--color-accent); border-radius: 3px; }
.footer-col ul a { transition: padding .15s ease, color .15s ease; }
.footer-col ul:not(.footer-contact) a:hover { padding-inline-start: 4px; text-decoration: none; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); }
.footer-social a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.whatsapp-float { animation: pop 0.5s ease 1.2s backwards; }

/* ---- Back to top -------------------------------------------------------------- */
.to-top {
  position: fixed; bottom: 22px; left: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--color-primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); z-index: 140;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.to-top .icon { transform: rotate(180deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Scroll reveal ----------------------------------------------------------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0s); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ---- Small screens ------------------------------------------------------------ */
@media (max-width: 860px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 120px; }
  .hero-art { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .stat-card { padding: 20px 12px; }
  .stat-card .stat-number { font-size: 1.7rem; }
  .form-card { padding: 22px 18px; }
  .brand-text small { display: none; }
}

/* ---- Reduced motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

@media print { .to-top, .nav-backdrop { display: none !important; } }

/* ---- Desktop nav: single row ---------------------------------------------------- */
@media (min-width: 1181px) {
  .navbar-inner { gap: 12px; }
  .brand-text strong { font-size: .98rem; white-space: nowrap; }
  .brand-text small { white-space: nowrap; }
  .primary-nav { gap: 8px; flex-shrink: 0; }
  .primary-nav ul { flex-wrap: nowrap; gap: 0; }
  .primary-nav ul a, .nav-more-btn { padding: 10px 9px; font-size: .88rem; white-space: nowrap; }
  .primary-nav > ul > li > a.active::after, .nav-more.has-active > .nav-more-btn::after { left: 9px; right: 9px; }
  .nav-search { width: 40px; transition: width .25s ease, border-color .15s ease, box-shadow .15s ease; }
  .nav-search input { width: 0; padding: 9px 0; flex: 1; min-width: 0; }
  .nav-search:focus-within { width: 190px; }
  .nav-search:focus-within input { padding: 9px 10px; }
  .nav-search button { width: 38px; flex-shrink: 0; justify-content: center; }
}
@media (min-width: 1181px) {
  .brand { min-width: 0; flex: 0 1 auto; margin-inline-end: 8px; }
  .brand-text strong { white-space: normal; max-width: 210px; font-size: .95rem; }
  .brand-text small { display: none; }
}
@media (min-width: 1400px) { .brand-text small { display: block; } }


/* ============================================================================
   LAYOUT REFRESH — inspired by government-ministry portal structure
   (announcement strip → centred identity block → full-width nav bar →
   photo slider → services → news mosaic → project cards)
   ============================================================================ */

/* ---- Announcement strip --------------------------------------------------------- */
.topstrip { background: var(--color-primary); color: #fff; font-size: .85rem; }
.topstrip-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 20px; }
.topstrip-msg { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topstrip-msg .icon { color: #cfe9da; }
.topstrip a { color: #fff; }
.topstrip .topbar-right { display: flex; align-items: center; gap: 18px; }
.topstrip .lang-switch a { opacity: .75; }
.topstrip .lang-switch a.active { opacity: 1; font-weight: 700; text-decoration: underline; }
@media (max-width: 640px) { .hide-sm { display: none; } .topstrip-msg span { font-size: .78rem; } }

/* ---- Identity block ---------------------------------------------------------------- */
.identity { background: var(--color-surface); padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.identity-link { display: flex; align-items: center; justify-content: center; gap: 22px; color: var(--color-ink); padding: 0 20px; }
.identity-link:hover { text-decoration: none; }
.identity-logo { width: 96px; height: 96px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(16,32,24,.18)); }
.identity-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.id-so { font-size: 1.35rem; font-weight: 800; color: var(--color-primary); letter-spacing: .01em; }
.id-en { font-size: 1.1rem; font-weight: 600; color: var(--color-ink); }
.id-ar { font-size: 1.15rem; font-weight: 600; color: var(--color-text-muted); text-align: start; }
@media (max-width: 760px) {
  .identity { padding: 12px 0; }
  .identity-link { gap: 12px; justify-content: flex-start; }
  .identity-logo { width: 64px; height: 64px; }
  .id-so { font-size: .95rem; } .id-en { font-size: .85rem; } .id-ar { font-size: .9rem; }
}

/* ---- Full-width green nav bar -------------------------------------------------------- */
.site-header { background: var(--color-primary-dark); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.nav-brand-mini { display: none; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.nav-brand-mini:hover { text-decoration: none; }
.nav-brand-mini img { border-radius: 50%; background: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle span { background: #fff; }

@media (min-width: 1181px) {
  .navbar-inner { padding-block: 0; justify-content: space-between; gap: 16px; min-height: 58px; }
  .primary-nav { flex: 1; justify-content: space-between; gap: 16px; }
  .primary-nav > ul > li { display: flex; align-items: center; }
  .primary-nav > ul > li + li::before { content: ''; width: 1px; height: 18px; background: rgba(255,255,255,.28); }
  .primary-nav ul a, .nav-more-btn {
    color: #fff; text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; font-weight: 700;
    padding: 20px 14px; border-radius: 0;
  }
  .primary-nav ul a:hover, .primary-nav ul a.active, .nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] {
    background: rgba(255,255,255,.12); color: #fff;
  }
  .primary-nav > ul > li > a.active::after, .nav-more.has-active > .nav-more-btn::after {
    left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; background: var(--color-accent);
  }
  .nav-more-menu { top: 100%; border-radius: 0 0 var(--radius-md) var(--radius-md); border-top: 4px solid var(--color-accent); }
  .nav-more-menu a { color: var(--color-text); text-transform: none; letter-spacing: 0; font-size: .92rem; padding: 11px 16px; }
  .nav-more-menu a:hover, .nav-more-menu a.active { background: var(--color-primary-light); color: var(--color-primary-dark); }
  .nav-search { background: rgba(255,255,255,.12); border: 0; border-radius: var(--radius-sm); }
  .nav-search button { background: none; color: #fff; }
  .nav-search input { color: var(--color-ink); }
  .nav-search:focus-within { background: #fff; width: 210px; }
  .nav-search:focus-within button { color: var(--color-primary); }
  .nav-cta { box-shadow: none; text-transform: uppercase; letter-spacing: .03em; font-size: .78rem; }
}
@media (max-width: 1180px) {
  .navbar-inner { padding-block: 8px; }
  .nav-brand-mini { display: inline-flex; }
  .nav-toggle { margin-inline-start: auto; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 6px; }
  .nav-cta { width: 100%; padding: 12px; }
}

/* ---- Hero slider ----------------------------------------------------------------------- */
.hero-slider { position: relative; min-height: 600px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--color-primary-dark); padding: 0 0 130px; }
.hero-slider .slides, .hero-slider .slide { position: absolute; inset: 0; }
.hero-slider .slide { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; transform: scale(1.04); }
.hero-slider .slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.0); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,58,36,.9) 0%, rgba(3,58,36,.68) 45%, rgba(3,58,36,.22) 100%); }
.hero-slider::after { display: none; }
.hero-content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 20px; }
.hero-content > * { max-width: 640px; }
.hero-slider h1 { color: #fff; margin-bottom: 18px; text-wrap: balance; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-slider .lead { font-size: 1.12rem; color: rgba(255,255,255,.93); margin-bottom: 28px; }
.slider-arrow {
  position: absolute; top: 45%; z-index: 3; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); transition: background .15s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,.34); }
.slider-prev { left: 18px; } .slider-prev .icon { transform: rotate(90deg); }
.slider-next { right: 18px; } .slider-next .icon { transform: rotate(-90deg); }
.slider-dots { position: absolute; z-index: 3; left: 50%; bottom: 100px; transform: translateX(-50%); display: flex; gap: 8px; }
.slider-dots button { width: 34px; height: 5px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s ease, width .2s ease; }
.slider-dots button.is-active { background: var(--color-accent); width: 48px; }
@media (max-width: 760px) {
  .hero-slider { min-height: 560px; padding-bottom: 110px; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,58,36,.78), rgba(3,58,36,.86)); }
  .hero-content { text-align: center; } .hero-content > * { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .slider-arrow { display: none; }
  .slider-dots { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slider .slide, .hero-slider .slide.is-active { animation: none; transform: none; } }

/* ---- Services (three-up) ---------------------------------------------------------------- */
.services { padding-top: 40px; }
.service { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.service-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--color-primary-light); color: var(--color-primary); }
.service h3 { margin: 0; font-size: 1.15rem; text-wrap: balance; }
.service img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.service p { color: var(--color-text-muted); font-size: .95rem; margin: 4px 0 0; text-align: start; }

/* ---- News mosaic -------------------------------------------------------------------------- */
.news-mosaic { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
.news-feature h3 { font-size: 1.35rem; margin: 6px 0; }
.news-feature h3 a, .news-item h3 a { color: var(--color-ink); }
.news-feature h3 a:hover, .news-item h3 a:hover { color: var(--color-primary); text-decoration: none; }
.news-feature-media { display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-md); border-bottom: 5px solid var(--color-accent); background: var(--color-primary-light); margin-bottom: 14px; }
.news-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-feature:hover .news-feature-media img { transform: scale(1.04); }
.news-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; width: 100%; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.news-item-media { aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-primary-light); }
.news-item-media img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 1rem; margin: 0 0 4px; line-height: 1.35; }
@media (max-width: 860px) { .news-mosaic { grid-template-columns: 1fr; } }

/* ---- Project cards ------------------------------------------------------------------------- */
.project-card { display: flex; flex-direction: column; border-radius: var(--radius-md); overflow: hidden; background: var(--color-primary); box-shadow: var(--shadow-md); color: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.project-media { position: relative; display: block; aspect-ratio: 16/10; background: var(--color-primary-light); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-date { position: absolute; left: 14px; bottom: -13px; padding: 4px 14px; border-radius: 999px; background: var(--color-primary-dark); color: #fff; font-size: .8rem; font-weight: 700; z-index: 1; border: 2px solid #fff; }
.project-title { display: block; padding: 26px 16px 18px; min-height: 92px; background: var(--color-primary-light); color: var(--color-primary-dark); font-weight: 700; line-height: 1.35; border-top: 4px solid var(--color-accent); flex: 1; }

/* ---- Footer logo ---------------------------------------------------------------------------- */
.footer-logo { border-radius: 50%; background: #fff; padding: 2px; }

@media print { .hero-slider .slider-arrow, .slider-dots { display: none; } }
.nav-toggle[aria-expanded="true"] span { background: var(--color-ink); }
.hero-content { width: 100%; }
.id-ar { text-align: left; }

/* ---- Hero slider v2: each slide carries its own content (featured news) ------------------ */
.hero-slider .slide {
  display: flex; align-items: center; padding-bottom: 130px; transform: none; animation: none !important;
  visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero-slider .slide.is-active { visibility: visible; z-index: 2; transition: opacity 1s ease; }
.hero-slider .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); }
.hero-slider .slide.is-active .slide-img { animation: kenburns 9s ease-out forwards; }
.hero-title { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.hero-title a { color: inherit; }
.hero-title a:hover { text-decoration: none; opacity: .92; }
.hero-slider .lead { max-width: 600px; }
@media (max-width: 760px) { .hero-slider .slide { padding-bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .hero-slider .slide-img, .hero-slider .slide.is-active .slide-img { animation: none; transform: none; } }
.hero-slider .slide .hero-content { opacity: 0; transition: opacity .25s ease; }
.hero-slider .slide.is-active .hero-content { opacity: 1; transition: opacity .6s ease .45s; }

/* Dropdown links must stay dark on the white panel (override the white nav-bar link colour) */
@media (min-width: 1181px) {
  .primary-nav ul.nav-more-menu a { color: var(--color-text); padding: 11px 16px; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; white-space: nowrap; }
  .primary-nav ul.nav-more-menu a:hover,
  .primary-nav ul.nav-more-menu a.active { background: var(--color-primary-light); color: var(--color-primary-dark); }
  .primary-nav ul.nav-more-menu a.active::after { display: none; }
  .nav-more-menu { padding: 6px; gap: 2px; }
}
