/* =========================
   1. ROOT / DESIGN TOKENS
========================= */
:root {
  --color-primary: #1f315d;
  --color-primary-2: #2c4277;
  --color-accent: #d3a54a;
  --color-accent-hover: #bc9038;

  --color-bg: #f7f4ef;
  --color-surface: #fcfbf8;
  --color-surface-alt: #f1ede6;

  --color-text: #24304a;
  --color-text-soft: #5d6472;
  --color-text-light: #ffffff;

  --color-border: #e2ddd4;
  --color-overlay: rgba(20, 26, 42, 0.34);

  --shadow-sm: 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --container-max: 90vw;
  --container-narrow: 1200px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
}

/* =========================
   2. RESET / BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1,
h2,
h3,
h4,
.site-logo,
.navbar-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-soft);
}

.statement-copy p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.25;
  color: #2a3550;
  margin: 0;
}

.vertical-hr {
  width: 100px;          /* This becomes the line's height after rotation */
  height: 2px;           /* This becomes the line's width */
  transform: rotate(90deg);
}

/* =========================
   3. GLOBAL UTILITIES
========================= */
.container {
  width: 94vw;
  margin-inline: auto;
}

.container-narrow {
  width: 80vw;
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.section-sm {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-title {
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  color: #6e7280;
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  font-family: "Nunito Sans", Arial, sans-serif;
}

.text-center {
  text-align: center;
}

.surface {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  display: inline-block;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
  font-size: clamp(1.25rem, 1.25vw, 1.75rem);
}

/* =========================
   4. BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(44px, 4vw, 50px);
  padding: clamp(0.75rem, 1vw, 0.85rem) clamp(1.1rem, 2vw, 1.55rem);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(0.95rem, 1vw, 1rem);
  font-weight: 700;
  transition: all 0.2s ease;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(199, 154, 59, 0.3);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: #2f4374;
  color: white;
}

.btn-secondary:hover {
  background: var(--color-primary-2);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* =========================
   5. HEADER / NAVBAR
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 222, 231, 0.7);
}

.navbar {
  min-height: clamp(70px, 6vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 0.9rem);
  color: var(--color-primary);
  font-weight: 800;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.navbar-brand img {
  width: clamp(40px, 4vw, 52px);
  height: clamp(40px, 4vw, 52px);
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
}

.nav-menu a {
  font-size: clamp(0.92rem, 0.95vw, 1rem);
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
}

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

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* =========================
   6. HERO
========================= */
.hero {
  position: relative;
  min-height: clamp(420px, 52vw, 720px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(20, 26, 42, 0.28), rgba(20, 26, 42, 0.28)),
    url("/images/index/hero.png") center center / cover no-repeat;
  color: #fff;
}

.hero .eyebrow {
  color: #f2d28a;
}

.hero-title {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 0.65rem;
  color: #fff;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.65rem);
  line-height: 1.35;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
}

.hero-content {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 6vw, 6rem);
  padding-left: clamp(1rem, 6vw, 6rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.construction-hero {
  position: relative;
  min-height: clamp(420px, 52vw, 720px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(20, 26, 42, 0.28), rgba(20, 26, 42, 0.28)),
    url("/images/under-construction.jpg") center center / cover no-repeat;
  color: #fff;
}
/* =========================
   7. MISSION / SPLIT SECTION
========================= */
.split-section {
  background: #f7f4ef;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.split-copy h2 {
  color: var(--color-primary);
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
  text-align: left;
}

.split-copy p {
  font-size: clamp(1rem, 1.4vw, 2rem);
  line-height: 1.75;
  color: #3c4760;
  font-weight: bold;
}

.split-image img {
  border-radius: 10px;
  box-shadow: none;
  width: 100%;
  height: auto;
}

/* =========================
   8. IMPACT STATS
========================= */
.impact {
  background: linear-gradient(180deg, #23386b 0%, #1f315d 100%);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
  border-radius: 0;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.stat-card {
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 2rem);
  text-align: center;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(255, 255, 255, 0.18);
}

.stat-number {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 600;
  color: #e0b455;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-label {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1rem, 1vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
}

/* =========================
   9. PROGRAM CARDS
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media {
  height: clamp(180px, 20vw, 260px);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.card-title {
  color: var(--color-primary);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  min-height: clamp(3rem, 5vw, 4rem);
}

.card-text {
  color: #747b88;
  font-size: clamp(0.92rem, 1vw, 0.98rem);
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
}

.card-link:hover {
  color: var(--color-accent);
}

/* =========================
   10. CTA BAND
========================= */
.cta-band {
  background:
    linear-gradient(rgba(31, 42, 68, 0.82), rgba(31, 42, 68, 0.82)),
    url("images/mountains.jpg") center / cover no-repeat;
  color: #fff;
}

.cta-band-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.5rem, 1.2vw, 2rem);
}

.cta-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  padding: clamp(1.25rem, 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-panel h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-date {
  font-weight: 700;
  color: var(--color-primary);
}

.event-name {
  color: var(--color-text-soft);
}

/* =========================
   11. VIDEO / STORY EMBED
========================= */
.video-section {
  background: var(--color-surface);
}

.video-wrap {
  width: min(100%, 960px);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-wrap iframe,
.video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* =========================
   12. DONATION SECTION
========================= */
.donate-section {
  text-align: center;
}

.donate-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(217, 222, 231, 0.75);
}

.donate-box h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.donate-box p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

/* =========================
   13. FOOTER
========================= */
.site-footer {
  background: #162036;
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.footer-brand h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.footer-brand p,
.footer-col a,
.footer-col li {
  color: rgba(255, 255, 255, 0.78);
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
}

.footer-col a:hover {
  color: #f2d28a;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================
   14. FORMS
========================= */
.form-group {
  margin-bottom: 1rem;
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(199, 154, 59, 0.14);
}

/* =========================
   15. RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .split-grid,
  .cta-band-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stat-card:not(:last-child)::after {
    display: none;
  }

  .hero-content {
    padding-right: clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 820px) {
  .section,
  .section-sm {
    padding: 4rem 0;
  }

  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: clamp(420px, 70vh, 620px);
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero-text {
    font-size: clamp(1rem, 3.2vw, 1.15rem);
  }

  .split-grid,
  .cta-band-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-image {
    order: -1;
  }

  .donate-box {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 2.5rem 1rem 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .card-body {
    padding: 1.2rem;
  }

  .cta-panel {
    padding: 1.4rem;
  }
}

@media (max-width: 520px) {
  .container,
  .container-narrow {
    width: min(100% - 1.25rem, var(--container-max));
  }

  .navbar {
    min-height: 70px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-brand img {
    width: 44px;
    height: 44px;
  }

  .statement-copy p {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }

  .card-media {
    height: clamp(180px, 48vw, 240px);
  }
}

/* =========================
   16. ABOUT PAGE
========================= */

.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 0;
}

.page-hero-banner img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.statement-centered {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.story-grid-reverse .story-media {
  order: 2;
}

.story-grid-reverse .story-copy {
  order: 1;
}

.story-copy p {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.8;
  color: #3c4760;
}

.story-copy strong {
  color: var(--color-primary);
}

.story-media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

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

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

.feature-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.feature-media img {
  width: 100%;
  border-radius: 10px;
}

.feature-copy {
  max-width: 700px;
}

.section-title-left {
  text-align: left;
}

.story-grid-tall {
  align-items: center;
}

.story-media-tall img {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 45vw, 640px);
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .story-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .story-grid-reverse .story-media,
  .story-grid-reverse .story-copy {
    order: initial;
  }

  .section-title-left {
    text-align: center;
  }

  .feature-copy {
    max-width: none;
  }
}

/* =========================
   17. PAGE BUTTONS
========================= */

.page-links-section {
  padding-top: 0;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: 1rem;
}

.page-links-full {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.page-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(60px, 8vw, 120px);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(211, 165, 74, 0.45);
}

.page-link-title {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 800;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 0.01rem;
}

.page-link-text {
  font-size: clamp(0.95rem, 1vw, 1.02rem);
  text-align: center;
  line-height: 1.6;
  color: var(--color-text-soft);
}

@media (max-width: 900px) {
  .page-links {
    grid-template-columns: 1fr;
  }
}

/* =========================
   18. INVOLVEMENT PAGE
========================= */

.involvement-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.involvement-hero-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.involvement-hero-copy p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: #3c4760;
}

.alumni-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.alumni-quote-card {
  background: linear-gradient(180deg, #23386b 0%, #1f315d 100%);
  color: #fff;
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

.alumni-quote {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.35;
  color: #fff;
}

.alumni-attribution {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.alumni-photo {
  width: min(100%, 260px);
  border-radius: 10px;
  display: block;
  margin: auto;
}

.alumni-copy p {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.8;
  color: #3c4760;
}

.callout-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.callout-copy {
  max-width: 900px;
  margin: 0 auto;
}

.callout-copy p {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.8;
  color: #3c4760;
}

.form-embed-wrap {
  text-align: center;
}

.form-embed-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  min-height: 700px;
}

.form-embed-box iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .involvement-hero,
  .alumni-section {
    grid-template-columns: 1fr;
  }

  .alumni-photo {
    width: min(100%, 220px);
  }
}

/* =========================
   19. TEAM PAGE
========================= */

.team-section + .team-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.team-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.team-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-photo {
  width: clamp(120px, 14vw, 170px);
  height: clamp(120px, 14vw, 170px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  border: 4px solid #fff;
}

.team-name {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 800;
  color: var(--color-primary);
}

.team-role {
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  color: var(--color-text-soft);
  margin-top: 0.25rem;
}

/* Modal */
.team-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.team-modal.is-open {
  display: block;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 35, 0.62);
  backdrop-filter: blur(4px);
}

.team-modal-dialog {
  position: relative;
  width: min(92vw, 860px);
  margin: min(8vh, 4rem) auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  overflow: hidden;
}

.team-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: rgba(36, 48, 74, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.team-modal-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.team-modal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.team-modal-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.team-modal-role {
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.team-modal-bio {
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: #3c4760;
}

@media (max-width: 700px) {
  .team-modal-dialog {
    width: min(94vw, 860px);
    margin: 4vh auto;
  }

  .team-modal-content {
    grid-template-columns: 1fr;
  }

  .team-modal-photo {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* =========================
   20. PROGRAM PAGE
========================= */

.program-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.program-feature-reverse .program-feature-media {
  order: 2;
}

.program-feature-reverse .program-feature-copy {
  order: 1;
}

.program-feature-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.program-feature-copy {
  max-width: 760px;
}

.program-feature-copy p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: #3c4760;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .program-feature {
    grid-template-columns: 1fr;
  }

  .program-feature-reverse .program-feature-media,
  .program-feature-reverse .program-feature-copy {
    order: initial;
  }

  .program-feature-copy {
    max-width: none;
  }
}

/* =========================
   20a. CONNECT GRANT PAGE
========================= */

.program-year-callout {
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.program-year-callout p {
  margin: 0.3rem 0;
  color: var(--color-text);
}

.grant-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.grant-feature-copy p {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.8;
  color: #3c4760;
}

.grant-meta {
  color: var(--color-primary);
}

.grant-feature-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}

.deadline-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  text-align: center;
}

.deadline-date {
  display: block;
  font-weight: 800;
  color: var(--color-primary);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  margin-bottom: 0.4rem;
}

.deadline-label {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.priority-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.priority-card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.priority-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.priority-card-body {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.priority-card-title {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.apply-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.apply-copy p {
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: #3c4760;
}

.apply-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
}
/* ---------- OUTCOMES SECTION ---------- */

.outcomes-grid {
  display: block;
}

.outcome-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  padding: clamp(1rem, 2vw, 1.4rem);
  text-align: center;
}

.outcome-card-title {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.outcome-card p {
  margin-bottom: 0.7rem;
  color: #3c4760;
}


/* ---------- GRANTS CAROUSEL ---------- */

.grants-carousel {
  position: relative;
  margin-top: 2rem;
}

.grants-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.grants-carousel-track {
  display: flex;
  transition: transform 0.75s ease;
  will-change: transform;
}

/* Slide container */

.grant-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);

  padding: clamp(2rem, 4vw, 3rem);
}

/* Slide content */

.grant-slide-copy {
  max-width: 720px;
  text-align: center;
}

.grant-slide-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.grant-slide-copy p {
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: #3c4760;
  margin-bottom: 0.75rem;
}


/* ---------- CAROUSEL BUTTONS ---------- */

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;

  background: var(--color-primary);
  color: #fff;

  font-size: 1.5rem;
  cursor: pointer;

  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: var(--color-primary-2);
}

.carousel-btn-prev {
  left: -24px;
}

.carousel-btn-next {
  right: -24px;
}


/* ---------- CAROUSEL DOTS ---------- */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;

  background: rgba(31, 49, 93, 0.25);
  cursor: pointer;

  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.1);
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

  .carousel-btn-prev,
  .carousel-btn-next {
    display: none;
  }

  .grant-slide {
    padding: 2rem 1.25rem;
  }

}