/*
 * Sirte ELC — unified design system (v4).
 * Replaces main.css, visual-upgrade.css, pages.css and modern.css.
 * Built with CSS logical properties so RTL (Arabic) and LTR (English)
 * both render correctly without direction-specific overrides.
 */

/* ============ Tokens ============ */

:root {
  color-scheme: light;

  --ink: #0d1b2a;
  --ink-soft: #3d5468;
  --muted: #64798c;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #ecf3f9;
  --border: #dde8f1;

  --navy: #0a2540;
  --navy-2: #0c4a6e;
  --accent: #0284c7;
  --accent-2: #0d9488;
  --accent-soft: #e0f1fc;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.06);
  --shadow: 0 14px 40px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);

  --container: 1200px;
  --header-height: 76px;
  --font: "Cairo", Tahoma, Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9f1f8;
  --ink-soft: #c0d0dd;
  --muted: #90a7b8;
  --bg: #0a141f;
  --surface: #101d2c;
  --surface-2: #172939;
  --border: #21384c;
  --navy: #0d2236;
  --navy-2: #123c5a;
  --accent: #38bdf8;
  --accent-2: #2dd4bf;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

html[dir="ltr"] {
  --font: "Inter", "Cairo", Tahoma, Arial, sans-serif;
}

/* ============ Base ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="ltr"] body {
  line-height: 1.65;
}

.site-main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 800;
}

svg {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  inset-inline-start: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip: auto;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text small {
  font-size: 0.78rem;
  color: var(--muted);
}

.primary-nav {
  margin-inline-start: auto;
}

.menu {
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.menu a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.38);
}

.menu-toggle {
  display: none;
}

/* ============ Buttons ============ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.32);
}

.button-primary:hover {
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.42);
}

.button-light {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.button-outline {
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
}

.button-outline:hover {
  background: var(--accent-soft);
}

/* ============ Sections & headings ============ */

.section {
  padding-block: 88px;
}

.section-soft {
  background: var(--surface);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-heading p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.section-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-more {
  margin-top: 44px;
  text-align: center;
}

.section-more-split {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============ Card base ============ */

.stat-card,
.counter-card,
.faculty-card,
.document-card,
.guide-card,
.support-card,
.org-card,
.news-card,
.feature-panel,
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover,
.counter-card:hover,
.faculty-card:hover,
.document-card:hover,
.guide-card:hover,
.support-card:hover,
.org-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow);
}

.panel-icon,
.document-icon,
.support-icon,
.counter-icon,
.event-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 16px;
}

.panel-icon svg,
.document-icon svg,
.support-icon svg,
.counter-icon svg,
.event-icon svg {
  width: 24px;
  height: 24px;
}

/* ============ Hero ============ */

.hero-section {
  position: relative;
  min-height: 680px;
  padding-block: 104px 112px;
  overflow: hidden;
  color: #fff;
  background: var(--navy) var(--hero-image, none) center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(5, 22, 38, 0.98) 0%, rgba(7, 43, 65, 0.94) 48%, rgba(7, 77, 86, 0.84) 100%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 85% 12%, rgba(13, 148, 136, 0.35), transparent 60%),
    radial-gradient(520px 280px at 8% 92%, rgba(2, 132, 199, 0.32), transparent 60%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  color: #bfe8ff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-content h1 {
  margin: 20px 0 14px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 32px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #d3e5f2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: #cfe8f3;
}

.hero-trust span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-trust svg {
  color: #5eead4;
}

.hero-panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-panel-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 4px 20px;
}

.hero-panel-heading > div {
  display: flex;
  flex-direction: column;
}

.hero-panel-heading small {
  color: #bdd6e5;
}

.hero-panel-icon,
.hero-quick-links a > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.15);
  border-radius: 14px;
}

.hero-quick-links {
  display: grid;
  gap: 10px;
}

.hero-quick-links a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-quick-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateX(-4px);
}

html[dir="ltr"] .hero-quick-links a:hover {
  transform: translateX(4px);
}

.hero-quick-links a > svg {
  color: #7dd3fc;
}

.service-ribbon {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.service-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.service-ribbon-grid > div {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 18px;
  border-inline-end: 1px solid var(--border);
}

.service-ribbon-grid > div:last-child {
  border-inline-end: 0;
}

.service-ribbon-grid span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
}

/* ============ About / stats ============ */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 26px 16px;
  text-align: center;
}

.stat-card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: var(--accent);
}

.stat-card strong {
  font-size: 1rem;
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ============ Vision ============ */

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.feature-panel {
  padding: 34px;
}

.feature-panel h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.feature-panel p {
  margin: 0;
  color: var(--muted);
}

.feature-panel-dark {
  color: #fff;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  border-color: transparent;
}

.feature-panel-dark p {
  color: #c6d8e6;
}

.feature-panel-dark .panel-icon {
  color: #7fd4ff;
  background: rgba(255, 255, 255, 0.12);
}

/* ============ Counters ============ */

.counters-section {
  padding-block: 64px;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.counter-card {
  padding: 30px 20px;
  text-align: center;
}

.counter-card .counter-icon {
  margin-inline: auto;
}

.counter-number {
  display: block;
  margin-block: 4px 2px;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.counter-card > span:last-child {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============ Faculties ============ */

.faculty-search input {
  width: min(320px, 100%);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faculty-search input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}

.faculty-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 28px 18px;
  text-align: center;
}

.faculty-logo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  padding: 14px;
  background: var(--surface-2);
  border-radius: 50%;
}

.faculty-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.faculty-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.faculty-link svg {
  transition: transform 0.2s ease;
}

.faculty-card:hover .faculty-link svg,
.news-card:hover .faculty-link svg {
  transform: translateX(-4px);
}

.faculty-card-pending {
  cursor: default;
  border-style: dashed;
}

.faculty-card-pending .faculty-link {
  color: var(--muted);
}

html[dir="ltr"] .faculty-card:hover .faculty-link svg,
html[dir="ltr"] .news-card:hover .faculty-link svg {
  transform: translateX(4px) rotate(180deg);
}

html[dir="ltr"] .faculty-link svg,
html[dir="ltr"] .button svg,
html[dir="ltr"] .document-card a svg,
html[dir="ltr"] .guide-card a svg,
html[dir="ltr"] .event-card em svg,
html[dir="ltr"] .breadcrumb svg {
  transform: rotate(180deg);
}

.faculty-empty-state {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}

/* ============ Documents & guides ============ */

.document-grid,
.guide-grid,
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.document-card,
.guide-card,
.org-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.document-card h3,
.guide-card h3,
.org-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.document-card p,
.guide-card p,
.org-card p {
  flex-grow: 1;
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.document-card > a,
.guide-card > a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.guide-audience {
  align-self: flex-start;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

/* ============ Events ============ */

.events-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px;
  color: #fff;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-icon {
  color: #7fd4ff;
  background: rgba(255, 255, 255, 0.12);
}

.event-card strong {
  font-size: 1.15rem;
}

.event-card > span:not(.event-icon) {
  font-size: 0.92rem;
  color: #c6d8e6;
}

.event-card em {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  color: #8fdcff;
}

/* ============ Support ============ */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 30px;
}

.support-card strong {
  font-size: 1.02rem;
}

.support-card > span:not(.support-icon) {
  font-size: 0.9rem;
  color: var(--muted);
}

.support-card.whatsapp .support-icon {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

/* ============ FAQ ============ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 36px auto 0;
}

.faq-item {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.faq-question {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  background: none;
  border: 0;
}

.faq-question svg {
  color: var(--accent);
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 360px;
}

.faq-answer p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--muted);
}

/* ============ Timeline ============ */

.timeline {
  position: relative;
  max-width: 760px;
  padding: 0;
  padding-inline-start: 30px;
  margin: 40px 0 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-block-end: 36px;
}

.timeline-item:last-child {
  padding-block-end: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-start: -30px;
  width: 16px;
  height: 16px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-year {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.timeline-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
}

/* ============ CTA band ============ */

.cta-band {
  padding-block: 40px 90px;
}

.cta-band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 52px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0f766e 100%);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cta-band-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at 88% 0%, rgba(45, 212, 191, 0.25), transparent 65%);
}

.cta-band-inner > div,
.cta-band-inner > a {
  position: relative;
  z-index: 1;
}

.cta-band-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.cta-band-inner p {
  max-width: 560px;
  margin: 0;
  color: #c9dcea;
}

/* ============ Page hero & breadcrumb ============ */

.page-hero {
  position: relative;
  padding-block: 76px 66px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, #071c30, #0a3752 60%, #0c5a63);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 280px at 85% 20%, rgba(13, 148, 136, 0.3), transparent 60%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: #9fc3da;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-hero-kicker {
  color: #bfe8ff;
  background: rgba(255, 255, 255, 0.12);
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.page-hero-lead {
  max-width: 680px;
  margin: 0;
  color: #cfe2ef;
}

.page-body {
  max-width: 820px;
}

.page-body img {
  border-radius: var(--radius);
}

/* ============ News ============ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.news-thumb {
  margin: -24px -24px 18px;
}

.news-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-date {
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.news-card h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.news-card h3 a:hover {
  color: var(--accent);
}

.news-card p {
  flex-grow: 1;
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 44px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 12px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pagination .current {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
}

.empty-state {
  padding: 60px 20px;
  color: var(--muted);
  text-align: center;
}

/* ============ Contact ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}

.contact-form-wrap {
  padding: 36px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-row textarea {
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-notice {
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  border-radius: 12px;
}

.form-notice-success {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.form-notice-error {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.12);
}

.contact-support-grid {
  grid-template-columns: 1fr;
}

/* ============ 404 ============ */

.error-404-inner {
  max-width: 580px;
  padding-block: 40px;
  margin-inline: auto;
  text-align: center;
}

.error-404-inner h1 {
  margin: 18px 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.error-404-inner p {
  margin: 0 0 28px;
  color: var(--muted);
}

.error-404-inner .hero-actions {
  justify-content: center;
}

/* ============ Footer ============ */

.site-footer {
  position: relative;
  color: #c3d5e2;
  background: #081a2b;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--gradient);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-block: 64px 44px;
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-brand .brand-text small {
  color: #9db4c6;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #fff;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  list-style: none;
}

.site-footer a {
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  color: #9db4c6;
}

.footer-bottom {
  padding-block: 20px;
  font-size: 0.85rem;
  color: #8aa2b5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* ============ Reveal animations ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.48s; }

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    order: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .menu-toggle > span:not(.screen-reader-text) {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    padding: 12px 20px 18px;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 2px;
  }

  .menu a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .header-controls {
    margin-inline-start: auto;
  }

  .section {
    padding-block: 64px;
  }

  .about-grid,
  .events-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-panel {
    max-width: 680px;
  }

  .service-ribbon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-ribbon-grid > div:nth-child(2) {
    border-inline-end: 0;
  }

  .service-ribbon-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px 36px;
  }

  .cta-band-inner {
    padding: 36px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
    padding-block: 76px 96px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .hero-panel {
    padding: 18px;
  }

  .service-ribbon {
    margin-top: -30px;
  }

  .service-ribbon-grid {
    grid-template-columns: 1fr;
  }

  .service-ribbon-grid > div {
    justify-content: flex-start;
    min-height: 68px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--border);
  }

  .service-ribbon-grid > div:last-child {
    border-bottom: 0;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    padding: 11px 13px;
  }

  .contact-form-wrap {
    padding: 26px 20px;
  }

  .cta-band-inner {
    padding: 30px 24px;
  }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
