:root {
  --ink: #111111;
  --ink-soft: #353a36;
  --muted: #6a706d;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #e0e2dd;
  --green: #a6dc39;
  --green-dark: #5b8412;
  --blue: #00a4d8;
  --blue-dark: #006d8f;
  --rose: #fc242a;
  --rose-dark: #a80009;
  --amber: #ff9f00;
  --wine: #820006;
  --mint: #f0f9df;
  --sky: #e0f7ff;
  --pink: #ffe2e4;
  --yellow: #fff1c8;
  --shadow: 0 18px 40px rgba(17, 17, 17, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.24s ease, background 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: padding 0.24s ease;
}

.site-header.is-scrolled .nav-wrap {
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--ink);
  min-width: 224px;
}

.brand-logo {
  width: 222px;
  max-width: 38vw;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(17, 17, 17, 0.08));
  transition: transform 0.24s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.025);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 750;
  padding: 9px 12px;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--yellow);
  color: var(--rose-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 178px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 850;
  color: var(--ink);
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.58s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(16, 35, 29, 0.12);
}

.btn:hover::after {
  transform: translateX(520%) skewX(-18deg);
}

.btn-primary {
  color: var(--white);
  background: var(--rose);
  border-color: var(--rose);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.76);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
}

.btn-danger {
  background: #fff0f2;
  color: #9f1731;
  border-color: #ffd0d8;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: pageIn 0.34s ease both;
}

.section {
  padding: 82px 20px;
}

.section.tight {
  padding: 56px 20px;
}

.section.white {
  background: var(--white);
}

.section.green-band {
  background:
    linear-gradient(135deg, rgba(252, 36, 42, 0.12), rgba(0, 164, 216, 0.18)),
    #111111;
  color: var(--white);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.green-band .eyebrow {
  color: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 4.45rem;
  line-height: 0.98;
  font-weight: 950;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.55rem;
  line-height: 1.08;
  font-weight: 930;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 900;
}

.lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.green-band .lead,
.green-band p {
  color: rgba(255, 255, 255, 0.82);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  padding: 108px 20px 44px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(130, 0, 6, 0.58) 46%, rgba(0, 164, 216, 0.2) 100%),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1800&q=82") center / cover;
  background-position: center, center calc(50% + var(--hero-shift, 0px));
  display: flex;
  align-items: end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(255, 159, 0, 0.18) 45% 46%, transparent 46% 100%),
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(255, 255, 255, 0.055) 42px 43px, transparent 43px 86px);
  opacity: 0.56;
  transform: translateX(var(--hero-lines, 0px));
  animation: driftLines 13s linear infinite;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.hero-kicker,
.hero h1,
.hero-subtitle,
.hero-actions,
.hero-metrics {
  animation: heroRise 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  animation-delay: 0.08s;
}

.hero-subtitle {
  animation-delay: 0.16s;
}

.hero-actions {
  animation-delay: 0.24s;
}

.hero-metrics {
  animation-delay: 0.32s;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #dff4e8;
  font-weight: 850;
}

.hero-kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 8px;
  background: var(--amber);
}

.hero-subtitle {
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  max-width: 880px;
}

.metric {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.metric:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.36);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.55rem;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.91rem;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.quote-panel {
  position: sticky;
  top: 96px;
  min-height: 360px;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(17, 17, 17, 0.88), rgba(130, 0, 6, 0.3)),
    url("https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&w=1100&q=82") center / cover;
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
}

.quote-panel p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.45rem;
  line-height: 1.22;
  font-weight: 900;
}

.mission-list {
  display: grid;
  gap: 14px;
}

.mission-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mission-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mission-icon.green {
  background: var(--mint);
  color: var(--green-dark);
}

.mission-icon.blue {
  background: var(--sky);
  color: var(--blue);
}

.mission-icon.rose {
  background: var(--pink);
  color: var(--rose);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.area-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.area-tile:nth-child(2) {
  background: var(--sky);
}

.area-tile:nth-child(3) {
  background: var(--pink);
}

.area-tile:nth-child(4) {
  background: var(--yellow);
}

.area-tile:nth-child(5) {
  background: var(--mint);
}

.area-tile .icon {
  color: var(--green-dark);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.program-card,
.event-card,
.post-card,
.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(16, 35, 29, 0.06);
}

.interactive-card {
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 159, 0, 0.14), transparent 34%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.interactive-card > * {
  position: relative;
  z-index: 1;
}

.interactive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.13);
}

.interactive-card:hover::before {
  opacity: 1;
}

.program-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.program-media,
.event-media,
.post-media,
.gallery-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--mint);
}

.program-media {
  aspect-ratio: 16 / 10;
}

.event-media,
.post-media {
  aspect-ratio: 16 / 10;
}

.gallery-media {
  aspect-ratio: 4 / 3;
}

.program-media img,
.event-media img,
.post-media img,
.gallery-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.program-card:hover .program-media img,
.event-card:hover .event-media img,
.post-card:hover .post-media img,
.gallery-card:hover .gallery-media img {
  transform: scale(1.055);
  filter: saturate(1.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.badge.blue {
  color: var(--blue);
  background: var(--sky);
}

.badge.rose {
  color: #a51835;
  background: var(--pink);
}

.program-body,
.event-body,
.post-body,
.gallery-body {
  padding: 20px;
}

.program-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.program-body p,
.event-body p,
.post-body p,
.gallery-body p {
  color: var(--muted);
}

.program-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
}

.program-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.program-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--amber);
  flex: 0 0 auto;
}

.agenda-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.agenda-number {
  display: grid;
  gap: 12px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.agenda-number > strong {
  color: var(--amber);
  font-size: 4.5rem;
  line-height: 0.95;
}

.progress {
  overflow: hidden;
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--rose), var(--blue), var(--green));
  transition: width 1.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress.is-visible span {
  width: 22%;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-item strong {
  color: var(--green);
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 950;
}

.timeline-item p {
  margin: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

#featuredEvents .event-card,
#featuredPosts .post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

#featuredEvents .event-media,
#featuredPosts .post-media {
  aspect-ratio: 16 / 9;
}

#featuredEvents .event-body,
#featuredPosts .post-body {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  gap: 10px;
}

#featuredEvents .event-body h3,
#featuredPosts .post-body h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.18rem;
}

#featuredEvents .event-body p,
#featuredPosts .post-body p {
  margin-bottom: auto;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#featuredEvents .event-card .btn,
#featuredPosts .post-card .btn {
  margin-top: 8px;
}

.event-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.event-card .btn,
.gallery-card .btn,
.post-card .btn {
  width: 100%;
  margin-top: 10px;
}

.cta-band {
  padding: 0 20px 82px;
  background: var(--white);
}

.cta-wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.cta-wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--amber), var(--rose), var(--blue), var(--green));
}

.cta-copy {
  padding: 46px 42px 46px 52px;
}

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

.cta-copy .hero-actions {
  margin-bottom: 24px;
}

.social-panel {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.social-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 10px;
}

.social-button {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.social-button:hover {
  border-color: rgba(17, 17, 17, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
}

.social-icon.instagram {
  background: linear-gradient(135deg, var(--amber), var(--rose), var(--blue));
}

.social-icon.threads,
.social-icon.tiktok {
  background: var(--ink);
}

.social-icon.youtube {
  background: var(--rose);
}

.social-icon.linkedin {
  background: var(--blue-dark);
}

.social-svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-glyph {
  color: var(--white);
  font-weight: 950;
  line-height: 1;
}

.cta-image {
  min-height: 320px;
  background:
    linear-gradient(0deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.02)),
    url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1100&q=82") center / cover;
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.partner-pill {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.footer {
  padding: 54px 20px 28px;
  color: var(--ink-soft);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
}

.footer-logo {
  display: block;
  width: min(100%, 250px);
  margin-bottom: 12px;
  height: auto;
}

.footer-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white) !important;
}

.footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.inner-hero {
  padding: 80px 20px 46px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(130, 0, 6, 0.36)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: var(--white);
}

.inner-hero.blog-hero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(0, 164, 216, 0.34)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.inner-hero.admin-hero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.92), rgba(255, 159, 0, 0.28)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.inner-hero h1 {
  color: var(--white);
  font-size: 3.4rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-weight: 850;
}

.filter-btn.is-active {
  color: var(--white);
  background: var(--rose);
  border-color: var(--rose);
}

.search-field {
  width: min(100%, 360px);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
}

.gallery-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(16, 35, 29, 0.74);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  width: min(100%, 980px);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.modal-head h3 {
  margin: 0;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  place-items: center;
}

.modal-body {
  padding: 20px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.photo-grid img {
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-stack {
  display: grid;
  gap: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.blog-detail-layout {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
}

.detail-main,
.detail-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(16, 35, 29, 0.06);
}

.detail-main {
  overflow: hidden;
}

.detail-main > .lead,
.detail-main > .content-body,
.detail-main > .detail-meta {
  margin-inline: 24px;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--mint);
}

.detail-cover img {
  height: 100%;
  object-fit: cover;
}

.detail-main > .lead {
  margin-top: 22px;
}

.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}

.detail-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  aspect-ratio: 4 / 3;
}

.detail-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.detail-photo:hover img {
  transform: scale(1.045);
}

.detail-aside {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.detail-facts {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-facts div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-facts strong,
.detail-facts span {
  display: block;
}

.detail-facts strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.86rem;
}

.detail-facts span {
  color: var(--muted);
  font-weight: 750;
}

.content-body {
  padding-bottom: 26px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.content-body p {
  margin-bottom: 18px;
}

.detail-meta {
  padding-top: 20px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.admin-sidebar,
.admin-panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px;
}

.admin-status {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat {
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
}

.admin-stat strong {
  display: block;
  font-size: 1.45rem;
}

.admin-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-height: 42px;
  padding: 9px 12px;
  text-align: left;
  font-weight: 850;
  color: var(--ink-soft);
}

.admin-tab.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.admin-panel {
  padding: 22px;
  display: none;
}

.admin-panel.is-active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.form-state {
  display: none;
  grid-column: 1 / -1;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 800;
}

.form-state.is-visible {
  display: block;
}

.form-state.is-error {
  border-color: #ffd0d8;
  background: #fff0f2;
  color: #9f1731;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input[type="file"] {
  min-height: 44px;
  padding: 8px;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 164, 216, 0.16);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.login-panel {
  max-width: 500px;
  padding: 26px;
}

.login-state {
  margin-top: 12px;
  color: #9f1731;
  font-weight: 800;
}

.export-box {
  margin-top: 16px;
  min-height: 260px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
  display: none;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.toast.is-visible {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftLines {
  from {
    transform: translateX(-36px);
  }
  to {
    transform: translateX(36px);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .hero::before {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .progress span {
    width: 22% !important;
  }

  .interactive-card:hover,
  .metric:hover,
  .btn:hover,
  .brand:hover .brand-logo {
    transform: none !important;
  }
}

@media (max-width: 1080px) {
  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-grid,
  .showcase-grid,
  .gallery-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .brand,
  .header-actions {
    min-width: auto;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 82svh;
    padding-top: 86px;
  }

  .hero-metrics,
  .about-grid,
  .agenda-wrap,
  .cta-wrap,
  .admin-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quote-panel,
  .admin-sidebar {
    position: static;
  }

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

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .blog-detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .cta-image {
    min-height: 280px;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 58px 16px;
  }

  .section.tight {
    padding: 42px 16px;
  }

  .nav-wrap {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 168px;
    max-width: 56vw;
  }

  h1 {
    font-size: 2.35rem;
  }

  .inner-hero h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-subtitle,
  .lead {
    font-size: 1.03rem;
  }

  .hero-metrics,
  .area-grid,
  .program-grid,
  .showcase-grid,
  .gallery-grid,
  .blog-grid,
  .partners,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .mission-item,
  .timeline-item,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .detail-main > .lead,
  .detail-main > .content-body,
  .detail-main > .detail-meta {
    margin-inline: 18px;
  }

  .detail-photo-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .admin-row-actions {
    justify-content: stretch;
  }

  .admin-row-actions .btn {
    flex: 1;
  }

  .cta-copy,
  .quote-panel {
    padding: 26px;
  }

  .cta-copy {
    padding-left: 32px;
  }

  .cta-copy .hero-actions .btn,
  .social-grid {
    width: 100%;
  }

  .cta-copy .hero-actions .btn {
    justify-content: flex-start;
  }

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

  .social-button {
    min-height: 76px;
  }

  .agenda-number > strong {
    font-size: 3.2rem;
  }

  .admin-actions .btn {
    width: 100%;
  }
}
