/* ============================================
   CYF - Create Your Future
   Main Stylesheet
   ============================================ */

:root {
  --gold:      #b8a16a;
  --gold-dark: #8a7340;
  --navy:      #050505;
  --navy-mid:  #050505;
  --dark:      #050505;
  --dark-rgb:  5, 5, 5;
  --text:      #333333;
  --text-light:#666666;
  --white:     #ffffff;
  --off-white: #f8f6f2;
  --border:    #e0d9ce;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;
  --transition: 0.3s ease;
  --shadow:     0 4px 30px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- HEADER WRAPPER (overlay on hero, fades to solid on scroll) ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  /* Background is controlled via JS scroll opacity --hdr-bg */
  background: rgba(var(--dark-rgb), var(--hdr-bg, 0));
  backdrop-filter: blur(var(--hdr-blur, 0px));
  -webkit-backdrop-filter: blur(var(--hdr-blur, 0px));
  border-bottom: 1px solid rgba(255,255,255, var(--hdr-border, 0));
  transition: background 0.2s linear, backdrop-filter 0.2s linear, border-color 0.2s linear;
}

/* ---- TOP BAR ---- */
.topbar {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  background: transparent;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}
.lang-link { color: rgba(255,255,255,0.85); font-weight: 500; }
.lang-link:hover { color: var(--gold); }
.topbar-email { color: rgba(255,255,255,0.85); }
.topbar-email:hover { color: var(--gold); }

/* ---- NAVBAR ---- */
.navbar {
  background: transparent;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: color var(--transition), text-shadow var(--transition);
  border-radius: 4px;
  transition: var(--transition);
}
.nav-link:hover, .nav-item.active > .nav-link { color: var(--gold); }

/* When header is scrolled (solid bg), drop the text-shadow */
.site-header.scrolled .nav-link {
  text-shadow: none;
}

.nav-link.nav-highlight {
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 600;
}
.nav-link.nav-highlight:hover {
  background: var(--gold-dark);
  color: var(--white);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  list-style: none;
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 300;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  color: var(--text);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--off-white); color: var(--gold); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  width: 100%;
}
.hero-text {
  max-width: 580px;
  animation: fadeUp 1s ease forwards;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}
.hero-text h1 .accent { color: var(--gold); font-weight: 600; }
.hero-text p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.03em;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ---- VIDEO SECTION ---- */
.video-section {
  background: var(--off-white);
  padding: 5rem 0 4rem;
}
.video-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: center;
}
.video-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  position: relative;
}
.video-thumb {
  display: block;
  position: relative;
  cursor: pointer;
}
.video-thumb img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,5,5,0.12);
  transition: background var(--transition);
}
.play-btn:hover { background: rgba(5,5,5,0.28); }
.play-btn svg { width: 80px; height: 80px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }

.video-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.arrow-icon { height: 36px; width: auto; flex-shrink: 0; }

@media (max-width: 768px) {
  .video-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .video-cta {
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
  }
}

/* ---- PILLARS ---- */
.pillars-section {
  padding: 6rem 0;
  background: var(--white);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.pillar-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.pillar-card:nth-child(1) { animation-delay: 0s; }
.pillar-card:nth-child(2) { animation-delay: 0.15s; }
.pillar-card:nth-child(3) { animation-delay: 0.3s; }
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.pillar-icon { margin-bottom: 1.5rem; }
.pillar-icon img { height: 64px; width: auto; margin: 0 auto; }
.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.pillar-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; }

/* ---- FUTURES SECTION ---- */
.futures-section { padding: 4rem 0 5rem; background: var(--off-white); }
.futures-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.story-row {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.story-row.story-left { direction: rtl; }
.story-row.story-left > * { direction: ltr; }

.story-photo { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.story-photo img { width: 100%; height: 360px; object-fit: cover; }

.story-content { }
.story-profile {
  height: 60px;
  width: auto;
  margin-bottom: 1.2rem;
}
.story-content p {
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text-light);
}

/* ---- GALLERY ---- */
.gallery-section {
  background: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}
.gallery-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.gallery-img-wrap { max-width: 1100px; margin: 0 auto; }

/* ---- STATS ---- */
.stats-section {
  background: var(--navy);
  padding: 5rem 0;
  color: var(--white);
}
.stats-header {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.stats-header img { height: 40px; filter: invert(1); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-card { padding: 2rem 1rem; }
.stat-card img { height: 60px; width: auto; margin: 0 auto 1.5rem; filter: invert(1) sepia(1) saturate(2) hue-rotate(8deg) brightness(1.2); }
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: var(--off-white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.send-icon { height: 48px; margin: 0 auto 1.5rem; }
.newsletter-inner h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.8rem;
  letter-spacing: 0.03em;
}
.newsletter-form, .footer-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto 1.2rem;
}
.newsletter-form input, .footer-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 4px 0 0 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
  transition: border-color var(--transition);
}
.newsletter-form input:focus, .footer-form input:focus { border-color: var(--gold); }
.newsletter-form button, .footer-form button {
  padding: 0.8rem 1.5rem;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.newsletter-form button:hover, .footer-form button:hover { background: var(--gold-dark); }
.contact-email { font-size: 0.9rem; color: var(--text-light); }
.contact-email a:hover { color: var(--gold); }

/* ---- FOOTER ---- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.75); }
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo { height: 48px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 1.2rem; }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-contact p, .footer-contact address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  line-height: 1.8;
}
.footer-contact a:hover { color: var(--gold); }
.footer-subscribe p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.footer-form input { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); color: var(--white); }
.footer-form input::placeholder { color: rgba(255,255,255,0.35); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero .hero-bg, .page-hero .hero-img, .page-hero .hero-overlay { position: absolute; inset: 0; }
.page-hero .hero-img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-overlay { display: none; }
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  width: 100%;
}
.page-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
.page-hero-content h1 .accent { color: var(--gold); font-weight: 600; }
.page-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.75;
}

/* ---- ABOUT PAGE ---- */
.philosophy-section { padding: 6rem 0; }
.section-title-block { margin-bottom: 3rem; }
.section-title-block h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.philosophy-text ol { padding-left: 1.4rem; }
.philosophy-text ol li { margin-bottom: 1rem; line-height: 1.8; color: var(--text-light); }
.philosophy-image img { border-radius: 8px; box-shadow: var(--shadow); }

.history-section { background: var(--off-white); padding: 6rem 0; }
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.history-block p { font-size: 0.95rem; line-height: 1.85; color: var(--text-light); }
.history-block img { border-radius: 6px; margin-bottom: 1.5rem; box-shadow: var(--shadow); }

.trustees-section { padding: 6rem 0; }
.trustees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem;
}
.trustee-card { text-align: center; }
.trustee-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  box-shadow: var(--shadow);
}
.trustee-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.2rem; }
.trustee-card .role { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.trustee-card p { font-size: 0.87rem; color: var(--text-light); line-height: 1.8; font-style: italic; }

/* ---- NEWS PAGE ---- */
.news-section { padding: 5rem 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.news-card-img img { width: 100%; height: 220px; object-fit: cover; }
.news-card-body { padding: 1.5rem; }
.news-card-date { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.news-card-body h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.8rem; }
.news-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.75; }
.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: var(--transition);
}
.read-more:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

/* ---- HOW TO APPLY ---- */
.apply-section { padding: 6rem 0; }
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.apply-steps { counter-reset: steps; }
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-text h4 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.4rem; }
.step-text p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* ---- PARTNER ORGS ---- */
.partners-section { padding: 6rem 0; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}
.partner-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.8rem; }
.partner-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* ---- I WANT TO HELP ---- */
.help-section { padding: 6rem 0; background: var(--off-white); }
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.help-form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.help-form-card h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-row textarea { min-height: 120px; resize: vertical; }
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--gold-dark); }

/* ---- STUDENT LETTERS ---- */
.letters-section { padding: 6rem 0; }
.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}
.letter-card {
  background: var(--off-white);
  border-radius: 8px;
  padding: 2rem;
  border-left: 3px solid var(--gold);
  transition: transform var(--transition);
}
.letter-card:hover { transform: translateY(-3px); }
.letter-card .student-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.letter-card .student-year { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.letter-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.85; font-style: italic; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .story-row { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .philosophy-grid, .apply-grid, .help-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .history-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    transition: right 0.35s ease;
    z-index: 150;
  }
  .nav-menu .nav-link {
    color: var(--navy);
    text-shadow: none;
  }
  .nav-menu .nav-link.nav-highlight {
    color: var(--white);
  }
  .nav-menu.open { right: 0; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-left: 2px solid var(--gold); border-top: none; display: none; margin: 0.3rem 0 0.3rem 1rem; }
  .has-dropdown.open .dropdown { display: block; }
  .stats-grid, .pillars-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-row.story-left { direction: ltr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .history-grid, .trustees-grid { grid-template-columns: 1fr; }
  .newsletter-form, .footer-form { flex-direction: column; }
  .newsletter-form input, .footer-form input { border-radius: 4px; }
  .newsletter-form button, .footer-form button { border-radius: 4px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-content { padding: 5rem 1.2rem 3rem; }
  .nav-inner { padding: 0.7rem 1.2rem; }
}

/* ============================================
   OUR STORY SLIDER (full-width, click-driven)
   ============================================ */
.our-story-section {
  background: var(--off-white);
  padding: 5rem 0 0;
  overflow: hidden;
}
.story-header {
  margin-bottom: 3rem;
}

.story-slider {
  position: relative;
  width: 100%;
  background: var(--navy);
}

/* Slides: stacked, only .active visible. Height is dynamic via aspect-ratio of the image. */
.story-slides {
  position: relative;
  width: 100%;
}
.story-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}
.story-slide img {
  width: 100%;
  height: auto;            /* dynamic height — keeps natural aspect ratio */
  display: block;
  object-fit: contain;
}
.story-slide.active {
  position: relative;       /* first/visible slide takes up the space; others stack on it */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: storyFadeIn 0.6s ease;
}
.story-slide:not(.active) {
  position: absolute;
}
@keyframes storyFadeIn {
  from { opacity: 0; transform: scale(1.01); }
  to   { opacity: 1; transform: scale(1); }
}

/* Progress overlay sits across the bottom of the slider */
.story-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem clamp(1rem, 5vw, 4rem) 1.6rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
  z-index: 5;
}
.story-progress-track {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
  border-radius: 1px;
}
.story-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gold);
  width: 0%;
  border-radius: 1px;
  transition: width 0.5s ease;
}

.story-dots {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 0.5rem;
}
.story-dot {
  position: relative;
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  transition: color var(--transition);
}
.story-dot-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.story-dot-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
  transition: color var(--transition), transform var(--transition);
}
.story-dot:hover .story-dot-circle {
  background: rgba(255,255,255,0.85);
}
.story-dot:hover {
  color: var(--white);
}
.story-dot.active {
  color: var(--gold);
}
.story-dot.active .story-dot-circle {
  background: var(--gold);
  border-color: rgba(184,161,106,0.35);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(184,161,106,0.15);
}
.story-dot.active .story-dot-label {
  color: var(--gold);
  transform: translateY(1px);
}

/* Make progress bar align dot centers — pad track so first/last align with first/last dot */
@media (max-width: 768px) {
  .story-progress {
    padding: 1.5rem 1rem 1rem;
  }
  .story-dot-label { font-size: 0.72rem; letter-spacing: 0.06em; }
  .story-dot-circle { width: 10px; height: 10px; }
}
@media (max-width: 480px) {
  .story-dot-label { font-size: 0.65rem; }
}
