/** @format */

:root {
  --nav: #14252d;
  --acc: #2d6a4f;
  --text: #202124;
  --bul: #14252d;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
html,
body {
  height: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Besley", serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding-top: 120px;
}
main {
  width: 100%;
  margin: 0;
  flex: 1; /* pushes footer down if content is short */
}
nav {
  position: fixed;
  top: 0;
  /* background: #fff; */
  border-bottom: 1px solid #e8eaed;
  z-index: 1000; /* ensure it sits above page content and mobile menus */
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  /* background: #dfeffd; */
  backdrop-filter: blur(10px);
}
nav .wrap {
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  min-height: 120px;
}
nav a {
  color: var(--nav);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1.02rem;
}
nav a:hover {
  background: #f3f4f6;
}
section {
  padding: 54px 0;
  border-bottom: 1px solid #f1f3f4;
  scroll-margin-top: 140px;
}
h1 {
  margin: 0 0 10px;
}
h2 {
  color: var(--nav);
  margin: 0 0 10px;
}
.note {
  background: #e3f1ea;
  border: 1px solid #c3e3cf;
  color: #1f4e38;
  padding: 10px;
  border-radius: 8px;
}
.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
}
footer {
  background: var(--nav);
  color: #e2edf0;
  text-align: center;
  padding: 20px;
}
.logo {
  max-width: 450px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}
ul {
  list-style-type: disc;
  padding-left: 1.2rem;
}
li {
  margin-bottom: 6px;
}
ul li::marker {
  color: var(--bul);
  font-size: 0.7em;
}
.impact-block {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}
.impact-block li {
  margin-bottom: 14px;
}
.impact-block li strong {
  display: block;
  color: var(--nav);
  font-size: 1.05em;
  margin-bottom: 4px;
}
.impact-block li p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.impact-block li::marker {
  color: var(--bul);
  font-size: 0.7em;
}
/* Keep brand from wrapping */
.brand,
.brand a {
  white-space: nowrap;
}

.brand {
  display: block;
  max-width: calc(100% - 56px); /* 22px bars + padding/margins buffer */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* keep your no-wrap requirement */
  font-size: 1.2rem;
}

/* Base (desktop) keeps your current inline links */
.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Hamburger hidden on desktop */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav);
  margin: 5px 0;
}

/* Narrow screens: collapse links */
@media (max-width: 750px) {
  nav .wrap {
    position: relative;
    gap: 8px;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 8px 16px 12px;
    z-index: 20;
    flex-direction: column;
    gap: 6px;
  }

  /* larger tap targets */
  .nav-links a {
    padding: 10px;
  }

  /* show when toggled */
  nav.open .nav-links {
    display: flex;
  }
}

.nav-cohort-btn {
  background: #22c55e;
  color: white !important;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav-cohort-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* FULLSCREEN HERO CAROUSEL */
header {
  position: relative;
  min-height: 87vh;
  overflow: hidden;
  padding: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1); /* heroZoom */
  animation: heroZoom 12s ease-in-out infinite alternate; /* heroZoom */
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 24px;
  width: 100%;
  max-width: 1000px;
  animation: heroFade 1.4s ease;
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content .logo {
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  max-width: 850px;
  margin: 0 auto;
}

@media (max-width: 750px) {
  .hero-content .logo {
    max-width: 85%;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

#ourmission {
  background: #f8fafc;
  padding: 100px 32px;
  text-align: center;
  margin: 0;
}

#ourmission h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--nav);
}

#ourmission p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.9;
}

#ourprocess {
  padding: 100px 32px;
  text-align: center;
}

#ourprocess h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--nav);
}

.process-intro {
  max-width: 850px;
  margin: 0 auto 70px;
  font-size: 1.15rem;
  line-height: 1.9;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.process-step {
  padding: 20px;
}

.process-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  color: var(--nav);
}

.process-icon svg {
  width: 100%;
  height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step h3 {
  color: var(--nav);
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.process-step p {
  line-height: 1.7;
}

@media (max-width: 850px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

#accreditations {
  padding: 80px 32px;
  text-align: center;
  background: white;
}

#accreditations h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 50px;
  color: var(--nav);
}

.accreditation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.accreditation-logos img {
  max-width: 240px;
  width: 100%;
  height: auto;
}

#locations {
  padding: 100px 32px;
  text-align: center;
  background: #f8fafc;
}

#locations h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--nav);
}

#locations p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.9;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto 0;
}

.location-card {
  padding: 40px 32px;
  border-radius: 24px;
  background: white;
  border: 1px solid #e7ebef;
}

.location-card h3 {
  margin-bottom: 16px;
  color: var(--nav);
  font-size: 1.35rem;
}

.location-card p {
  margin: 0;
  line-height: 1.8;
}

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

#nextcohort {
  padding: 110px 32px;
  text-align: center;
  background: #3b82f6;
  color: white;
}

#nextcohort h2 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}

.cohort-date {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: 0.95;
}

.cohort-description {
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.9;
  font-size: 1.1rem;
  opacity: 0.92;
}

#nextcohort .btn {
  padding: 14px 24px;
  font-weight: 700;
}

#nextcohort h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 12px 0;
  font-weight: 600;
}

.apply-by {
  display: inline-block;
  background: #facc15;
  color: #14252d;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  margin: 20px 0 44px;
}

.cohort-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cohort-learnmore {
  background: white;
  color: var(--nav);
  min-width: 220px;
}

.cohort-apply {
  background: #22c55e;
  color: white;
  min-width: 220px;
  font-weight: 700;
}

.cohort-apply:hover {
  background: #16a34a;
}

#nondiscrimination {
  padding: 40px 32px 60px;
  text-align: center;
  background: white;
}

#nondiscrimination p {
  max-width: 950px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5f6b76;
}

#testimonials {
  padding: 140px 32px 110px;
  text-align: center;
  background: #f8fafc;
}

#testimonials h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 60px;
  color: var(--nav);
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  padding: 0 20px;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-slide p {
  font-size: 1.35rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-slide h4 {
  font-size: 1rem;
  color: #5f6b76;
  font-weight: 600;
}
