/* ==========================================
   INNOVEST HOLDING - multi-page site
   Header (mega-menu, drawer), page hero, breadcrumb, unit tabs, page sections, cards, lists, pager, empty state,
   call-to-action band, footer columns, 404, and the brand adjustments of the home sections.
   Logical properties only (one stylesheet for RTL and LTR); a physical left/right carries a comment.
   ========================================== */

body { background: var(--white); color: var(--text-dark); font-family: var(--font-family); }
main { flex: 1 0 auto; }

/* Arabic never gets letter-spacing or upper-casing (it breaks the joining of letters). */
html[lang="ar"] .eyebrow, html[lang="ar"] .mega-num, html[lang="ar"] .unit-num { letter-spacing: 0; text-transform: none; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
  background: var(--accent); color: var(--navy-deep); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ── The brand triangle ── */
.tri-bullet {
  display: inline-block; flex-shrink: 0; width: 9px; height: 9px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .tri-bullet, [dir="rtl"] .tri-mark { transform: scaleX(-1); }
.tri-mark {
  display: inline-block; width: 14px; height: 14px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%); margin-inline-end: 10px; flex-shrink: 0;
}
.tri-mark-lg { width: 64px; height: 64px; opacity: .55; margin: 0; }
.card-corner {
  position: absolute; top: 0; inset-inline-end: 0; width: 20px; height: 20px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%); border-start-end-radius: inherit;
}
[dir="rtl"] .card-corner { clip-path: polygon(0 0, 100% 0, 0 100%); }

/* ==========================================
   HEADER
   ========================================== */
#main-header { border-bottom-color: rgba(247, 134, 16, 0.18); }
#main-header.is-solid { background: var(--navy-deep); }
#main-header.is-over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
#main-header.is-over-hero.scrolled { background: rgba(11, 11, 46, 0.97); border-bottom-color: rgba(247, 134, 16, 0.18); backdrop-filter: blur(20px); }
body.has-solid-header main { padding-top: var(--header-height); }

.logo-area::after { background: linear-gradient(180deg, transparent, var(--accent), transparent); }
.logo-img { height: 44px; width: auto; }
.nav-link { color: var(--text-on-dark); }
.nav-link:hover { color: var(--text-light); background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: var(--text-light); background: transparent; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.btn-lang:hover { color: var(--text-light); }

/* Mega-menu: the "Our Ecosystem" dropdown, three columns (unit + its pages). */
.nav-dropdown { position: static; }
#main-header .nav-container { position: relative; }
.mega-menu {
  inset-inline: 24px; top: calc(100% - 4px); min-width: 0; padding: 22px; border-radius: var(--radius-lg);
  background: var(--navy-deep); border: 1px solid var(--border-on-dark); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.mega-all {
  display: inline-flex; align-items: center; color: var(--text-light); font-weight: 800; font-size: .95rem;
  padding: 6px 4px 16px; border-bottom: 1px solid var(--border-on-dark); margin-bottom: 16px; width: 100%;
}
.mega-all:hover { color: var(--accent-light); }
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mega-col { min-width: 0; }
.mega-unit { display: grid; gap: 4px; padding: 12px; border-radius: var(--radius-md); color: var(--text-light); }
.mega-unit:hover, .mega-unit.active { background: rgba(255, 255, 255, 0.05); }
.mega-unit strong { font-size: 1rem; line-height: 1.4; }
.mega-num { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .14em; }
.mega-summary { color: var(--text-on-dark-muted); font-size: .82rem; line-height: 1.6; }
.mega-links { display: grid; gap: 2px; padding: 6px 12px 0; }
.mega-links a {
  display: flex; align-items: center; gap: 8px; color: var(--text-on-dark); font-size: .88rem; font-weight: 600;
  padding: 6px 8px; border-radius: var(--radius-sm);
}
.mega-links a::before {
  content: ''; width: 7px; height: 7px; background: rgba(247, 134, 16, .5); clip-path: polygon(0 0, 100% 0, 100% 100%); flex-shrink: 0;
}
.mega-links a:hover, .mega-links a.active { color: var(--text-light); background: rgba(255, 255, 255, 0.05); }
.mega-links a.active::before { background: var(--accent); }
.mega-menu a:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* The hamburger is a real button now. */
button.hamburger { border: 1px solid rgba(255, 255, 255, 0.12); }

/* Drawer */
.mobile-nav { background: linear-gradient(180deg, var(--navy-night), var(--navy-deep)); border-inline-start-color: rgba(247, 134, 16, 0.25); padding-top: calc(var(--header-height) + 16px); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }

.mobile-nav-head .mobile-lang-link { margin: 0; min-height: 40px; padding: 6px 14px; border-radius: var(--radius-full); }
.mobile-row { display: flex; align-items: stretch; gap: 6px; }
.mobile-row > a { flex: 1; min-width: 0; }
.mobile-row-unit > a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 16px; color: var(--text-light); font-weight: 700; border-radius: var(--radius-sm);
}
.mobile-row-unit > a:hover, .mobile-row-unit > a.active { background: rgba(247, 134, 16, 0.1); }
.mobile-dropdown-trigger {
  width: 44px; min-height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark); border: 1px solid var(--border-on-dark); border-radius: var(--radius-sm);
}
.mobile-dropdown-trigger .dropdown-arrow { transition: transform var(--transition-normal); }
.mobile-dropdown-trigger[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); }
.mobile-dropdown-trigger:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.mobile-dropdown-sub { padding-inline-start: 18px; }
.mobile-dropdown-items a.active { color: var(--accent-light); }
.mobile-cta { width: 100%; justify-content: center; }

/* ==========================================
   PAGE HERO (title band) + BREADCRUMB + UNIT TABS
   ========================================== */
.page-hero {
  position: relative; overflow: hidden; color: var(--text-light);
  background: linear-gradient(160deg, var(--navy-night) 0%, var(--navy-deep) 55%, var(--navy-mid) 100%);
  padding: 56px 0 64px;
}
.page-hero .container { position: relative; z-index: 2; }
.hero-tri { position: absolute; pointer-events: none; }
.hero-tri-a {
  width: 220px; height: 220px; inset-inline-end: -40px; top: -40px; background: var(--accent); opacity: .9;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .hero-tri-a { clip-path: polygon(0 0, 100% 0, 0 100%); }
.hero-tri-b {
  width: 160px; height: 160px; inset-inline-start: -30px; bottom: -50px; background: var(--navy-brand); opacity: .8;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
[dir="rtl"] .hero-tri-b { clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.page-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 14px; max-width: 900px; }
.page-intro { color: var(--text-on-dark); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.9; max-width: 820px; }
/* An Arabic fallback title/intro (lang="ar" dir="rtl") on an English page: the box hugs its text, so it starts at the
   page's start edge like the breadcrumb; the lines inside keep the Arabic right alignment (QA-C3 P3). */
html[dir="ltr"] :is(.page-title, .page-intro)[dir="rtl"] { width: fit-content; }

.breadcrumb { margin-bottom: 18px; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--text-on-dark-muted); }
.breadcrumb li + li::before {
  content: ''; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-block-start: 2px solid currentColor;
  transform: rotate(calc(45deg * var(--dir) * -1)); opacity: .7;
}
.breadcrumb a { color: var(--text-on-dark); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb [aria-current="page"] { color: var(--text-light); font-weight: 700; }

.unit-tabs {
  position: sticky; top: var(--header-height); z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.unit-tabs-inner { overflow-x: auto; scrollbar-width: none; }
.unit-tabs-inner::-webkit-scrollbar { display: none; }
.unit-tabs ul { display: flex; gap: 4px; white-space: nowrap; }
.unit-tabs a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 700; font-size: .92rem;
  color: var(--text-body); border-bottom: 3px solid transparent;
}
.unit-tabs a:hover { color: var(--navy-brand); }
.unit-tabs a.active { color: var(--navy-deep); border-bottom-color: var(--accent); }

/* ==========================================
   PAGE SECTIONS
   ========================================== */
.page-section { padding: 72px 0; position: relative; }
.page-section.is-cream { background: var(--cream); }
.page-section.is-dark { background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid)); color: var(--text-light); }
.page-section:not(.is-cream):not(.is-dark) + .page-section:not(.is-cream):not(.is-dark) { padding-top: 0; }
.container.narrow { max-width: 860px; }
.page-body p { font-size: 1.08rem; line-height: 2; color: var(--text-body); margin-bottom: 18px; }
html[lang="en"] .page-body p { line-height: 1.8; }

.block-head { margin-bottom: 36px; max-width: 760px; }
.block-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--text-dark); line-height: 1.35; }
.block-title::before {
  content: ''; display: inline-block; vertical-align: middle; width: 16px; height: 16px; margin-inline-end: 12px;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .block-title::before { transform: scaleX(-1); }
.block-title .gold { color: var(--accent-ink); }
.block-intro { margin-top: 10px; color: var(--text-body); font-size: 1.05rem; line-height: 1.9; }
.is-dark .block-title, .is-dark .block-title .gold, .on-dark .gold { color: var(--text-light); }
.is-dark .block-title .gold, .section-title.on-dark .gold, .cta-title .gold { color: var(--accent); }
.is-dark .block-intro { color: var(--text-on-dark); }

/* Cards of ContentItems */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.item-card, .vision-card, .service-card, .unit-card {
  position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.item-card:hover, .service-card:hover, .unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(247, 134, 16, .5); }
.item-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md);
  background: rgba(35, 48, 130, 0.08); color: var(--navy-brand); margin-bottom: 16px;
}
.item-icon svg { width: 24px; height: 24px; }
.item-number { font-weight: 800; color: var(--navy-brand); font-size: 1.1rem; }
.item-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); line-height: 1.5; }
.item-card p { margin-top: 8px; color: var(--text-body); font-size: .92rem; line-height: 1.8; }
.is-dark .item-card { background: rgba(255, 255, 255, 0.04); border-color: var(--border-on-dark); box-shadow: none; }
.is-dark .item-card h3 { color: var(--text-light); }
.is-dark .item-card p { color: var(--text-on-dark); }
.is-dark .item-icon { background: rgba(247, 134, 16, 0.12); color: var(--accent); }

/* Compact lists (sectors, why-points): chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--white);
  border: 1px solid var(--border-color); border-radius: var(--radius-full); font-weight: 600; color: var(--text-dark); font-size: .95rem;
}
.chip-icon { width: 18px; height: 18px; color: var(--navy-brand); flex-shrink: 0; }

/* Vision / mission */
.vision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.vision-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.vision-card p { color: var(--text-body); line-height: 1.9; font-size: 1.02rem; }

/* Unit cards (ecosystem) */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.unit-card { display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; }
.unit-num { font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent-ink); letter-spacing: .06em; }
.unit-card h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.unit-card h3 a { color: var(--text-dark); }
.unit-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.unit-card p { color: var(--text-body); line-height: 1.8; }
.unit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; position: relative; z-index: 2; }
.unit-chips a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: var(--radius-full);
  background: rgba(35, 48, 130, 0.07); color: var(--navy-brand); font-size: .82rem; font-weight: 700;
}
.unit-chips a:hover { background: var(--navy-brand); color: var(--text-light); }
.unit-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-brand); }
.unit-link svg { width: 16px; height: 16px; }
.is-dark .unit-card { background: rgba(255, 255, 255, 0.04); border-color: var(--border-on-dark); box-shadow: none; }
.is-dark .unit-card h3 a { color: var(--text-light); }
.is-dark .unit-card p { color: var(--text-on-dark); }
.is-dark .unit-num { color: var(--accent); }
.is-dark .unit-chips a { background: rgba(255, 255, 255, 0.08); color: var(--text-light); }
.is-dark .unit-chips a:hover { background: var(--accent); color: var(--navy-deep); }
.is-dark .unit-link { color: var(--accent-light); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service-head { display: flex; align-items: center; justify-content: space-between; }
.service-num { font-weight: 800; font-size: 1.6rem; color: rgba(17, 17, 69, 0.15); }
.service-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.tri-list { display: grid; gap: 8px; }
.tri-list li { display: flex; align-items: baseline; gap: 10px; color: var(--text-body); font-size: .93rem; line-height: 1.7; }
.tri-list li::before {
  content: ''; width: 8px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%); flex-shrink: 0;
  transform: translateY(-1px);
}
[dir="rtl"] .tri-list li::before { transform: translateY(-1px) scaleX(-1); }

/* Impact numbers */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.impact-card {
  position: relative; padding: 26px 20px; border-radius: var(--radius-lg); text-align: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-on-dark);
}
.impact-card::after {
  content: ''; position: absolute; inset-inline-start: 14px; bottom: 14px; width: 18px; height: 18px;
  border-inline-start: 2px solid var(--accent); border-block-end: 2px solid var(--accent);
}
.impact-number {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--accent); line-height: 1.1;
  font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
}
.impact-label { margin-top: 6px; color: var(--text-on-dark); font-weight: 600; }

/* Events (list page and teasers) */
.event-list { display: grid; gap: 18px; }
.event-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: var(--white);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card);
}
.event-row .event-info h3 { color: var(--text-dark); }
.event-row .event-register-btn { white-space: nowrap; }

/* Partner tiles */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.partner-tile {
  display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 18px; text-align: center;
  background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  font-weight: 700; color: var(--navy-brand); box-shadow: var(--shadow-sm);
}

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }
.pager-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-md);
  border: 2px solid var(--navy-brand); color: var(--navy-brand); font-weight: 700;
}
.pager-link:hover { background: var(--navy-brand); color: var(--text-light); }
.pager-status { color: var(--text-body); font-weight: 600; }

/* Empty state ("coming soon") */
.empty-state { max-width: 560px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 18px; padding: 24px 0; }
.empty-art { width: 96px; height: 96px; color: var(--navy-brand); }
.empty-art-fill { fill: var(--accent); }
.empty-text { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); line-height: 1.8; }

/* Founder */
.founder { max-width: 820px; }
.founder-message { margin: 18px 0; font-size: 1.1rem; line-height: 2; color: var(--text-body); border-inline-start: 4px solid var(--accent); padding-inline-start: 20px; }
.founder-name { display: grid; gap: 2px; color: var(--text-dark); }

/* Call-to-action band */
.cta-band { background: linear-gradient(135deg, var(--navy-night), var(--navy-deep) 60%, var(--navy-brand)); color: var(--text-light); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ''; position: absolute; inset-inline-end: -30px; bottom: -30px; width: 180px; height: 180px; background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .9; pointer-events: none;
}
[dir="rtl"] .cta-band::after { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.35; }
.cta-band p { color: var(--text-on-dark); margin-top: 8px; max-width: 620px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Forms on inner pages: the same AJAX forms as the home page. */
.page-form { padding-top: 64px; }
.form-message { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 700; font-size: .9rem; }
.form-message ul { list-style: disc; padding-inline-start: 1.2em; margin: 0; }
.form-message li + li { margin-top: 4px; }
.form-message.is-ok { background: rgba(var(--status-ok-rgb), 0.15); color: var(--status-ok); }
.form-message.is-error { background: rgba(var(--status-error-rgb), 0.15); color: var(--status-error); }
.registration-section .form-message.is-ok { color: var(--status-ok-on-dark); }
.registration-section .form-message.is-error { color: var(--status-error-on-dark); }
.contact-social { margin-top: 8px; }
.contact-social h3 { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.contact-social .social-link { background: rgba(35, 48, 130, 0.07); border-color: var(--border-color); color: var(--navy-brand); }
/* One contact column on a phone (<= 576px): 8+ social networks take a second row instead of widening the grid
   item past the screen and clipping the form (Nader C5-3b). Up to 7 icons (340px) fit on one row from 375px up,
   so that layout is unchanged — same rule as the footer row in style.css. */
@media (max-width: 576px) {
  .contact-social .social-links { flex-wrap: wrap; }
  .contact-grid > .contact-info { min-width: 0; }
}
.contact-detail-text a { color: var(--navy-brand); }

/* "View all" under a home teaser */
.section-more { display: flex; justify-content: center; margin-top: 36px; }

/* 404 */
.not-found { padding: 96px 0 110px; }
.not-found-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; color: var(--accent); }
.not-found-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { background: linear-gradient(180deg, var(--navy-deep), var(--navy-night)); }
.site-footer .footer-top { grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer-logo img { height: 46px; }
.footer-desc { color: var(--text-on-dark-muted); }
.footer-link { color: var(--text-on-dark-muted); }
.footer-link:hover { color: var(--text-light); }
.footer-col-title { font-size: 1rem; }
.footer-col-title::after { background: var(--accent); }
.footer-col-title a { color: var(--text-light); }
.footer-unit > summary { list-style: none; cursor: pointer; }
.footer-unit > summary::-webkit-details-marker { display: none; }
.footer-contact a { color: inherit; }
.footer-contact-item svg { color: var(--accent); }
.footer-bottom { gap: 16px; flex-wrap: wrap; color: var(--text-on-dark-muted); }
.footer-bottom a { color: var(--accent-light); }
.back-to-top { margin-inline-start: auto; }

/* ==========================================
   HOME — brand adjustments of the one-page sections (sections.css)
   ========================================== */
.hero-section { background: linear-gradient(160deg, var(--navy-night) 0%, var(--navy-deep) 45%, var(--navy-mid) 100%); min-height: min(92vh, 860px); }
.hero-pattern { opacity: .05; }
.hero-layout { position: relative; z-index: 10; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-layout .hero-content { text-align: start; margin: 0; padding: 0; max-width: none; }
.hero-layout .hero-subtitle { margin-inline: 0; color: var(--text-on-dark); }
.hero-layout .hero-buttons, .hero-layout .hero-stats { justify-content: flex-start; }
.hero-logo-badge { padding-inline: 16px 20px; gap: 10px; }
.hero-logo-badge span { color: var(--text-light); }
.hero-title { font-weight: 800; letter-spacing: 0; }
.hero-title-en { color: var(--accent); font-family: 'Montserrat', 'Cairo', sans-serif; }
.hero-stat-number { color: var(--accent); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.hero-stat-label { color: var(--text-on-dark-muted); }
.hero-art { display: flex; justify-content: center; }
.hero-triangle { width: min(100%, 420px); height: auto; filter: drop-shadow(0 24px 60px rgba(247, 134, 16, 0.35)); animation: triFloat 8s ease-in-out infinite; }
@keyframes triFloat { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

.about-brand-panel {
  aspect-ratio: 4 / 3; border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 40px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-brand));
}
.about-brand-panel::before {
  content: ''; position: absolute; inset-inline-end: 0; top: 0; width: 90px; height: 90px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .about-brand-panel::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.about-brand-panel picture { display: flex; justify-content: center; width: 100%; }
.about-brand-panel img { width: min(100%, 300px); height: auto; }
.about-brand-panel p { color: var(--text-on-dark); font-weight: 600; }
.about-more { margin-top: 28px; }
.about-section { background: var(--white); }
.value-icon { background: rgba(35, 48, 130, 0.08); color: var(--navy-brand); }

.ecosystem-section { padding: 96px 0 24px; background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid)); }
.ecosystem-section .section-title, .ecosystem-section .section-subtitle { color: var(--text-light); }
.ecosystem-section .section-subtitle { color: var(--text-on-dark); }
.ecosystem-section .section-title .gold { color: var(--accent); }
.ecosystem-section .section-badge { color: var(--accent-light); }
.ecosystem-section .page-section { padding-top: 0; }

.platforms-section { background: var(--cream); }
.stats-section { background: linear-gradient(160deg, var(--navy-night), var(--navy-deep)); padding: 72px 0; }
.stats-section::before { display: none; }
.news-section { background: var(--cream); }
.news-visual {
  width: 100%; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-brand));
}
.news-category-badge { background: var(--accent); color: var(--navy-deep); }
.events-section { background: var(--white); }
.event-date-box { background: linear-gradient(135deg, var(--navy-deep), var(--navy-brand)); }
.event-date-day { color: var(--accent); }
.event-register-btn { color: var(--navy-brand); border-color: rgba(35, 48, 130, 0.25); }
.registration-section { background: linear-gradient(160deg, var(--navy-night), var(--navy-deep) 60%, var(--navy-mid)); }
.registration-section::before { display: none; }
.registration-content .section-title.on-dark { color: var(--text-light); }
.registration-feature { align-items: center; }
.form-submit-btn { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: var(--navy-deep); }
.faq-item.is-open { border-color: rgba(247, 134, 16, 0.45); }
.faq-toggle { color: var(--navy-brand); }
.partners-section { background: var(--white); }
.partner-logo span { color: var(--navy-brand); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .site-footer .footer-top { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-triangle { width: min(60%, 280px); }
  .hero-art { padding-top: 16px; }
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .mega-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .page-hero { padding: 40px 0 44px; }
  .hero-tri-a { width: 120px; height: 120px; }
  .hero-tri-b { display: none; }
  .page-section { padding: 52px 0; }
  .event-row { grid-template-columns: auto 1fr; }
  .event-row .event-register-btn { grid-column: 1 / -1; justify-self: start; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .unit-tabs { top: var(--header-height); }
  .ecosystem-section { padding-top: 64px; }
}

@media (max-width: 640px) {
  .breadcrumb .crumb-mid { display: none; }
  .breadcrumb li.crumb-mid + li::before { content: '…'; width: auto; height: auto; border: 0; transform: none; }
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .item-card { padding: 18px 14px; }
  .service-grid, .unit-grid, .vision-grid { grid-template-columns: 1fr; }
  .back-to-top { margin-inline-start: 0; }
}

@media (max-width: 400px) {
  .item-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-triangle { animation: none; }
}

.about-content .section-badge { align-self: flex-start; }
.about-content .about-more { align-self: flex-start; }
.ecosystem-section .page-section.is-dark { background: transparent; }
.contact-form .form-submit-btn { background: linear-gradient(135deg, var(--navy-deep), var(--navy-brand)); color: var(--text-light); }
.contact-form .form-submit-btn:hover { background: linear-gradient(135deg, var(--navy-brand), var(--navy-mid)); color: var(--text-light); }
.section-badge.on-dark { color: var(--accent-light); background: rgba(247, 134, 16, 0.12); }
/* A closed drawer is out of the tab order and of the accessibility tree (it sits off-screen, past the inline end). */
.mobile-nav { visibility: hidden; transition: inset-inline-end var(--transition-slow), visibility 0s linear 0.5s; }
.mobile-nav.open { visibility: visible; transition: inset-inline-end var(--transition-slow); }
/* Controls in the drawer must not transition the inherited visibility ("transition: all" would keep them hidden for the
   first frame after opening, so focus could not move into the drawer). */
.mobile-nav a, .mobile-nav button { transition-property: color, background-color, border-color, box-shadow, transform, opacity; }
.section-anchor { display: block; scroll-margin-top: var(--header-height); }

/* Two-column desktop layouts of the home page. */
@media (min-width: 1025px) {
  /* The four hero figures share one row in both languages: equal columns, the number scales with the viewport. */
  .hero-layout .hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .hero-layout .hero-stat::after { inset-inline-end: -10px; }
  .hero-layout .hero-stat-number { font-size: clamp(1.4rem, 1.9vw, 2.1rem); white-space: nowrap; }
  /* The About logo card sits at the top of its column (not centred against the long text) and stays in view. */
  .about-grid { align-items: start; }
  .about-grid .about-image-wrap { position: sticky; top: calc(var(--header-height) + 32px); }
}

/* Home About: vision / mission / values as a full-width row of three cards under the about grid (one column below
   1024 px). Text starts at the inline start; the accent is a thin orange top border; values may render as chips. */
.about-section .about-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: stretch; }
.about-section .value-card {
  display: flex; flex-direction: column; gap: 14px; text-align: start; padding: 32px 28px;
  background: var(--off-white); border: 1px solid var(--border-color); border-block-start: 3px solid var(--accent);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.about-section .value-card:hover { border-color: rgba(var(--accent-rgb), 0.35); border-block-start-color: var(--accent); box-shadow: var(--shadow-card); }
.about-section .value-icon {
  width: 52px; height: 52px; margin: 0; flex: none; border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent-ink);
}
.about-section .value-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin: 0; line-height: 1.4; }
.about-section .value-card p { font-size: 1rem; color: var(--text-body); line-height: 1.85; margin: 0; }
.value-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.value-chips li {
  padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: rgba(var(--accent-rgb), 0.08); color: var(--accent-ink); font-size: 0.9rem; font-weight: 700; line-height: 1.5;
}
@media (max-width: 1023.98px) {
  .about-section .about-values { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .about-section .value-card { padding: 24px 20px; }
}
/* ==========================================
   DETAIL PAGES (news item, event) + uploaded images
   ========================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.detail-badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px;
  background: var(--accent); color: var(--navy-deep); font-size: .8rem; font-weight: 800;
}
.detail-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-on-dark); font-weight: 600; }
.detail-facts li { display: inline-flex; align-items: center; gap: 8px; }
.detail-facts svg { width: 18px; height: 18px; flex: none; color: var(--accent-light); }
.detail-facts a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.detail-main { color: var(--text-body); font-size: 1.05rem; line-height: 2; }
.detail-main p + p { margin-top: 1em; }
.detail-lead { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1em; }
.detail-notice {
  margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-md); border-inline-start: 4px solid var(--accent);
  background: var(--cream); color: var(--text-dark); font-weight: 600;
}
.detail-notice.is-muted { border-inline-start-color: var(--navy-brand); }
.detail-figure { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); box-shadow: var(--shadow-card); }
.detail-figure img { display: block; width: 100%; height: auto; }
.detail-aside { position: sticky; top: 110px; }
.detail-card {
  display: grid; gap: 12px; padding: 22px; background: var(--white); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.detail-card .btn { width: 100%; white-space: normal; text-align: center; }

/* Card and tile images (uploads): fixed box, the picture fits inside it. */
.news-card-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--accent-ink); }
.event-row .event-info h3 a { color: inherit; }
.event-row .event-info h3 a:hover { color: var(--accent-ink); }
.event-thumb { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.event-row.has-thumb { grid-template-columns: auto auto 1fr auto; }
.event-state {
  display: inline-block; margin-inline-start: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  background: var(--light-gray); color: var(--text-dark); font-size: .75rem; font-weight: 800;
}
.event-row.is-past { opacity: .85; }
.partner-group + .partner-group { margin-top: 36px; }
.partner-group-title { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.partner-tile img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.partner-tile a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; }
.partner-logo img { max-height: 56px; width: auto; height: auto; object-fit: contain; }
.unit-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 16px; }

@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 768px) {
  .event-row.has-thumb { grid-template-columns: auto 1fr; }
  .event-thumb { display: none; }
}
.founder-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin: 0 auto 18px; display: block; box-shadow: var(--shadow-card); }

/* ── Ecosystem lists and pages: speakers, guests, episodes, opportunities, sponsorship packages ── */
.entity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.entity-grid.is-people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entity-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); /* keeps the reveal fade (opacity) and adds the hover lift */ transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform var(--transition-normal), box-shadow var(--transition-normal); }
.entity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.entity-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--navy-deep), var(--navy-brand)); }
.entity-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entity-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.entity-card.is-person { text-align: center; padding-block-start: 28px; }
.entity-card.is-person .entity-media { width: 132px; height: 132px; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent); }
.entity-card.is-person .entity-placeholder .tri-mark-lg { width: 44px; height: 44px; }
.entity-badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: var(--radius-full); background: var(--accent); color: var(--navy-deep); font-size: .8rem; font-weight: 700; }
.entity-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entity-kicker { color: var(--accent-ink); font-size: .85rem; font-weight: 700; }
.entity-title { font-size: 1.12rem; font-weight: 800; color: var(--text-dark); line-height: 1.5; }
.entity-title a { color: inherit; }
.entity-title a::after { content: ''; position: absolute; inset: 0; }
.entity-title a:hover, .entity-title a:focus-visible { color: var(--accent-ink); }
.entity-subtitle { color: var(--text-dark); font-weight: 600; font-size: .95rem; }
.entity-summary { color: var(--text-muted); font-size: .95rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entity-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 10px; }
.entity-card.is-person .entity-chips { justify-content: center; }
.entity-chips li { padding: 3px 12px; border-radius: var(--radius-full); background: var(--cream); color: var(--navy-brand); font-size: .82rem; font-weight: 700; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.package-card { position: relative; background: var(--white); border: 1px solid var(--border-color); border-block-start: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.package-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-block-end: 6px; }
.package-price { color: var(--accent-ink); font-weight: 800; font-size: 1.1rem; margin-block-end: 14px; }
.package-benefits li { position: relative; padding-inline-start: 22px; margin-block-end: 8px; color: var(--text-body); line-height: 1.7; }
.package-benefits li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.detail-figure.is-portrait { width: min(240px, 60%); aspect-ratio: 1; border-radius: 50%; margin-inline: 0 auto; }
.detail-figure.is-portrait img { height: 100%; object-fit: cover; }
.video-facade { position: relative; aspect-ratio: 16 / 9; margin-block-end: 10px; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--navy-night), var(--navy-brand)); box-shadow: var(--shadow-card); }
.video-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-poster.is-blank { display: flex; align-items: center; justify-content: center; }
.video-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--accent); color: var(--navy-deep); cursor: pointer; box-shadow: var(--shadow-accent); transition: transform .2s ease; }
.video-play svg { width: 36px; height: 36px; transform: translateX(3px); } /* a play symbol points right in both languages: optical centring */
.video-play:hover, .video-play:focus-visible { transform: scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.video-facade iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-note { color: var(--text-muted); font-size: .85rem; margin-block-end: 28px; }
.detail-profiles { display: flex; justify-content: center; gap: 12px; }
.detail-profiles a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--navy-brand); }
.detail-profiles a:hover, .detail-profiles a:focus-visible { background: var(--accent); color: var(--navy-deep); }
.detail-profiles svg { width: 20px; height: 20px; }
@media (max-width: 1200px) { .entity-grid.is-people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .entity-grid, .entity-grid.is-people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .entity-grid { grid-template-columns: 1fr; }
  .entity-grid.is-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .entity-card.is-person .entity-media { width: 96px; height: 96px; }
  .entity-card.is-person .entity-body { padding: 14px 12px 18px; }
  .video-play { width: 64px; height: 64px; }
}
@media (max-width: 400px) { .entity-grid.is-people { grid-template-columns: 1fr; } }
.video-link { margin-inline-start: 6px; color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.external-icon { width: 16px; height: 16px; margin-inline-start: 6px; vertical-align: -2px; }
.hero-image { height: auto; object-fit: contain; border-radius: var(--radius-lg); }
@media (max-width: 1024px) { .hero-art .hero-image { margin-block-start: 24px; } }
/* ==========================================
   LEAD FORMS (Forum registration, Join the Network, sponsorship, opportunity interest)
   ========================================== */
.lead-section .lead-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.lead-section .lead-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
.lead-side { padding-top: 8px; }
.lead-side .block-title { margin-bottom: 14px; }
.lead-side-text { color: var(--text-body); line-height: 1.9; margin-bottom: 20px; }
.lead-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lead-points li { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-weight: 600; }
.lead-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; }
.lead-steps li { counter-increment: step; position: relative; padding-inline-start: 48px; min-height: 34px; display: flex; align-items: center; color: var(--text-dark); font-weight: 600; line-height: 1.6; }
.lead-steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--navy-deep); color: var(--orange); display: grid; place-items: center; font-weight: 800; }
.lead-section .lead-card { background: var(--white); box-shadow: var(--shadow-card); }
.lead-form .form-required-note { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }
.lead-form .req { color: var(--orange-ink); margin-inline-start: 4px; font-weight: 800; }
.lead-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.lead-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead-form legend { font-size: .88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; padding: 0; }
.lead-form .kind-fields { border-top: 1px solid var(--border-color); padding-top: 18px; margin-top: 6px; margin-bottom: 8px; }
.lead-form .kind-fields > legend { font-size: 1rem; color: var(--navy-brand); float: inline-start; width: 100%; margin-bottom: 14px; }
.lead-form .kind-fields > legend + * { clear: both; }
.lead-form .kind-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-form .kind-option { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--white); cursor: pointer; font-weight: 700; color: var(--text-dark); }
.lead-form .kind-option:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.lead-form .kind-option input, .lead-form .check-item input, .lead-form .form-consent input { accent-color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.lead-form .check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.lead-form .check-item { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-body); cursor: pointer; }
.lead-form .form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 16px; }
.lead-form .form-consent input { margin-top: 4px; }
.lead-form .form-consent label { font-size: .88rem; color: var(--text-body); line-height: 1.7; cursor: pointer; }
/* The privacy policy link of the consent box: after the label (no {privacy} token) or inside it (token). */
.lead-form .form-consent-text { font-size: .88rem; line-height: 1.7; }
.lead-form .form-consent-text label { margin-inline-end: 6px; }
.lead-form .form-consent .consent-privacy { color: var(--navy-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lead-form .form-control[aria-invalid="true"] { border-color: var(--status-error); }
.lead-form textarea.form-control { min-height: 110px; }

@media (max-width: 1024px) {
  .lead-section .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .lead-form .form-row, .lead-form .kind-options, .lead-form .check-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================
   F10 — month-only events (home, forum, lists): the month name takes the day's place, the year goes under it.
   ========================================== */
.event-date-box.is-month .event-date-day { font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }

/* ==========================================
   F10 — FORUM CONTENT BLOCKS (Views/Shared/Blocks/_ForumAbout, _Figures, _BulletCards, _Numbered, _Editions,
   _Patronage, _Facts). These blocks render on the forum pages only, so every rule is scoped to .theme-forum and its
   colours come ONLY from F9's --forum-* tokens (wwwroot/css/forum.css + the admin's values). Contrast rules: white text
   only on --forum-primary / --forum-primary-deep; gold is a border or a mark, never a background under light text; text on
   light surfaces is --forum-ink / --forum-text / --forum-gold-ink. Logical properties only (RTL and LTR).
   ========================================== */
.theme-forum .forum-eyebrow {
  display: inline-block; margin-block-end: 10px; padding-block: 4px; padding-inline: 14px;
  border: 2px solid var(--forum-gold); border-radius: 999px;
  color: var(--forum-gold-ink); font-weight: 800; font-size: .9rem;
}
.theme-forum .forum-about .block-title { margin-block-end: 14px; }
.theme-forum .forum-lead { font-size: 1.15rem; font-weight: 700; color: var(--forum-ink); margin-block-end: 14px; }
.theme-forum .forum-about p { color: var(--forum-text); line-height: 1.9; margin-block-end: 12px; }

/* The highlighted band (positioning, Strategic Link): deep red, light text. */
.theme-forum .forum-band {
  margin-block-start: 28px; padding-block: 24px; padding-inline: 28px; border-radius: 18px;
  background: var(--forum-primary-deep); color: var(--forum-on-primary);
  border-inline-start: 6px solid var(--forum-gold);
}
.theme-forum .forum-band h3 { color: var(--forum-on-primary); font-size: 1.2rem; margin-block-end: 10px; }
.theme-forum .forum-about .forum-band p,
.theme-forum .forum-band p,
.theme-forum .forum-band li { color: var(--forum-on-primary); line-height: 1.8; }
.theme-forum .forum-band-lead { font-weight: 700; margin-block-end: 8px; }
.theme-forum .forum-band-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.theme-forum .forum-band-list li { position: relative; padding-inline-start: 22px; }
.theme-forum .forum-band-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .65em; width: 10px; height: 10px;
  border: 2px solid var(--forum-gold); border-radius: 50%;
}

/* Figures: open gold rings with the figure in red (large text). */
.theme-forum .forum-figure-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px;
}
.theme-forum .forum-figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding-block: 22px; padding-inline: 12px; border: 3px solid var(--forum-gold); border-radius: 22px;
  background: rgba(var(--forum-surface-rgb), 0.45);
}
.theme-forum .forum-figure-value { color: var(--forum-primary); font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.theme-forum .forum-figure-label { color: var(--forum-ink); font-weight: 600; font-size: .95rem; }

/* Bullet cards (audiences, pillars). */
.theme-forum .forum-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.theme-forum .forum-card {
  background: #fff; border-radius: 18px; padding-block: 22px; padding-inline: 22px;
  border-block-start: 4px solid var(--forum-primary); box-shadow: 0 8px 24px rgba(var(--forum-ink-rgb), 0.08);
}
.theme-forum .forum-card h3 { display: flex; align-items: center; gap: 10px; color: var(--forum-ink); font-size: 1.1rem; margin-block-end: 12px; }
.theme-forum .forum-card-icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--forum-primary); }
.theme-forum .forum-bullet-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.theme-forum .forum-bullet-list li { position: relative; padding-inline-start: 20px; color: var(--forum-text); line-height: 1.7; }
.theme-forum .forum-bullet-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--forum-primary);
}

/* Numbered lists (goals, sectors): gold-ringed discs, number in deep red. */
.theme-forum .forum-numbered-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.theme-forum .forum-numbered-list li { display: flex; align-items: flex-start; gap: 16px; }
.theme-forum .forum-number {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--forum-gold);
  color: var(--forum-primary-deep); font-weight: 900; font-size: 1rem; background: #fff;
}
.theme-forum .forum-numbered-text { display: grid; gap: 4px; padding-block-start: 10px; color: var(--forum-ink); font-weight: 600; line-height: 1.7; }
.theme-forum .forum-numbered-desc { color: var(--forum-text); font-weight: 400; }
.theme-forum .forum-note,
.theme-forum .items-note {
  margin-block-start: 24px; padding-block: 16px; padding-inline: 20px; border-radius: 14px;
  background: var(--forum-surface); color: var(--forum-ink); line-height: 1.8;
  border-inline-start: 4px solid var(--forum-gold);
}

/* Past editions: teaser cards (hub) and the gallery (/forum/editions). */
.theme-forum .forum-edition-cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.theme-forum .forum-edition-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(var(--forum-ink-rgb), 0.08); }
.theme-forum .forum-edition-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.theme-forum .forum-edition-body { padding-block: 16px; padding-inline: 18px; }
.theme-forum .forum-edition-meta { color: var(--forum-gold-ink); font-weight: 800; font-size: .88rem; margin-block-end: 6px; }
.theme-forum .forum-edition-year { color: var(--forum-primary-deep); }
.theme-forum .forum-edition-card h3 { color: var(--forum-ink); font-size: 1.05rem; line-height: 1.6; }
.theme-forum .forum-edition-place { color: var(--forum-text); font-size: .9rem; margin-block-start: 4px; }
.theme-forum .forum-more { margin-block-start: 24px; text-align: center; }

.theme-forum .forum-edition { padding-block: 28px; border-block-end: 1px solid rgba(var(--forum-gold-rgb), 0.45); }
.theme-forum .forum-edition:first-child { padding-block-start: 0; }
.theme-forum .forum-edition:last-child { border-block-end: 0; }
.theme-forum .forum-edition-head h2 { color: var(--forum-primary); font-size: 1.45rem; line-height: 1.5; }
.theme-forum .forum-edition-text { color: var(--forum-text); line-height: 1.9; margin-block-start: 10px; }
.theme-forum .forum-gallery {
  margin-block-start: 18px; display: grid; gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto;
}
.theme-forum .forum-gallery img,
.theme-forum .forum-gallery-rest img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px;
  background: var(--forum-surface);
}
.theme-forum .forum-gallery .forum-gallery-main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.theme-forum .forum-gallery-more { margin-block-start: 12px; }
.theme-forum .forum-gallery-more summary {
  cursor: pointer; display: inline-block; padding-block: 8px; padding-inline: 18px; border-radius: 999px;
  border: 2px solid var(--forum-gold); color: var(--forum-gold-ink); font-weight: 700;
}
.theme-forum .forum-gallery-more summary:focus-visible { outline: 3px solid var(--forum-primary); outline-offset: 2px; }
.theme-forum .forum-gallery-rest { margin-block-start: 12px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* Organising bodies strip. */
.theme-forum .forum-patronage-groups { display: grid; gap: 24px; }
.theme-forum .forum-patronage-name {
  color: var(--forum-gold-ink); font-size: 1rem; font-weight: 800; margin-block-end: 12px;
  padding-inline-start: 12px; border-inline-start: 4px solid var(--forum-gold);
}

/* Contact details. */
.theme-forum .forum-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.theme-forum .forum-fact {
  display: flex; align-items: flex-start; gap: 14px; padding-block: 16px; padding-inline: 18px;
  background: var(--forum-surface); border-radius: 14px; min-width: 0;
}
.theme-forum .forum-fact-icon {
  width: 40px; height: 40px; flex-shrink: 0; padding: 9px; border-radius: 50%;
  background: var(--forum-primary); color: var(--forum-on-primary);
}
.theme-forum .forum-fact-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; color: var(--forum-ink); }
.theme-forum .forum-fact-label { color: var(--forum-gold-ink); font-weight: 700; font-size: .88rem; }
.theme-forum .forum-fact a { color: var(--forum-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .theme-forum .forum-figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .theme-forum .forum-figure-value { font-size: 1.5rem; }
  .theme-forum .forum-card-grid,
  .theme-forum .forum-edition-cards,
  .theme-forum .forum-facts { grid-template-columns: minmax(0, 1fr); }
  .theme-forum .forum-band { padding-inline: 18px; }
  .theme-forum .forum-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .theme-forum .forum-number { width: 40px; height: 40px; }
}
