:root {
  --saffron: #ff9933;
  --green: #138808;
  --blue: #0a3d91;
  --light-blue: #e6f0ff;
  --dark: #1b1b1b;
  --text: #333333;
  --bg: #f5f7fb;
  --white: #ffffff;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius-xl: 18px;
  --radius-pill: 999px;
  --max-width: 1200px;
}

/* RESET + BASICS */

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

body {
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

section {
  padding: 4rem 1.5rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.section-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.9rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 600px;
  margin: 0.3rem auto 0;
  font-size: 0.98rem;
  color: #555555;
}

/* HEADER / NAV */

header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.chakra-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chakra-logo::before,
.chakra-logo::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 60%;
  background: var(--blue);
}

.chakra-logo::after {
  transform: rotate(90deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-text .title-main {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.brand-text .title-sub {
  font-size: 0.85rem;
  color: #666666;
}

.brand-text .title-sub span {
  color: var(--saffron);
  font-weight: 600;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--saffron), var(--green));
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* MOBILE NAV TOGGLE */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 999px;
}

/* BUTTONS */

.btn {
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Montserrat", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--green));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(10, 61, 145, 0.35);
  color: var(--blue);
}

.btn-outline:hover {
  background: rgba(10, 61, 145, 0.06);
}

/* HERO (HOME PAGE) */

.hero {
  background: radial-gradient(circle at top left, #ffe9d1 0, transparent 38%),
              radial-gradient(circle at top right, #d3e6ff 0, transparent 36%),
              radial-gradient(circle at bottom left, #d6f5e0 0, transparent 38%),
              #f8fbff;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 61, 145, 0.07);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
}

.hero-eyebrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
  color: var(--saffron);
}

.hero-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-title span.saffron {
  color: var(--saffron);
}

.hero-title span.green {
  color: var(--green);
}

.hero-subtext {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 1.25rem;
}

.hero-subtext-quote {
  font-size: 0.9rem;
  color: #777777;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.hero-subtext-quote span {
  font-weight: 600;
  color: var(--blue);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.hero-badge {
  font-size: 0.78rem;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.8rem;
  color: #777777;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-graphic {
  border-radius: 26px;
  background: linear-gradient(150deg, #ffffff, #eaf3ff);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-tag-pill {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: rgba(10, 61, 145, 0.06);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  font-weight: 700;
}

.hero-graphic-main {
  border-radius: 20px;
  border: 1px solid rgba(10, 61, 145, 0.12);
  padding: 1.1rem;
  background: radial-gradient(circle at top left, #ffe6cc 0, transparent 50%),
              radial-gradient(circle at bottom right, #d6f5e0 0, transparent 50%),
              #ffffff;
}

.hero-graphic-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--blue);
}

.hero-graphic-subtitle {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 0.9rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.hero-pill {
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-stat-card {
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
}

.hero-stat-label {
  color: #777777;
  margin-bottom: 0.2rem;
}

.hero-stat-value {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

/* GENERIC GRID & CARDS */

.two-col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.pill-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}

.pill-grid li {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--green));
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* PROGRAM / RESOURCE / CHAPTER CARDS */

.programs-grid,
.resource-grid,
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.program-card {
  background: var(--white);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.program-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(255, 153, 51, 0.08);
  color: var(--saffron);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.program-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.program-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.program-footer {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #777777;
}

.program-footer a {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.8rem;
}

.resource-card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
}

.resource-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.resource-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.resource-meta {
  font-size: 0.8rem;
  color: #777777;
}

.chapter-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.chapter-list li {
  background: var(--white);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.chapter-state {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

.chapter-meta {
  font-size: 0.78rem;
  color: #777777;
}

/* SPECIAL BACKGROUNDS */

.chapters-bg {
  background: var(--light-blue);
}

/* CONTACT PAGE */

.contact-page {
  background: #0b1a30;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 153, 51, 0.28) 0, transparent 50%),
              radial-gradient(circle at bottom right, rgba(19, 136, 8, 0.3) 0, transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

.contact-page .section-inner {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.contact-page .section-header {
  text-align: left;
  margin-bottom: 1.3rem;
}

.contact-page .section-title {
  color: var(--white);
}

.contact-page .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.contact-points {
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.contact-points p {
  margin-bottom: 0.4rem;
}

.contact-points span.label {
  font-weight: 700;
  color: var(--light-blue);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-link-btn {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(4, 13, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.contact-link-btn span.icon {
  font-size: 1.1rem;
}

.contact-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.social-icon-btn {
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  background: rgba(5, 14, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.social-icon-btn span.icon {
  font-size: 1.1rem;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-form {
  background: rgba(4, 13, 38, 0.8);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

input,
textarea,
select {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 14, 40, 0.9);
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
}

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

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.4rem;
}

/* PAGE HERO / BANNER FOR INNER PAGES */

.page-hero {
  background: #f0f5ff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 3rem 1.5rem 2.5rem;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.page-hero-subtitle {
  max-width: 650px;
  color: #555;
  font-size: 0.98rem;
}

/* FOOTER */

footer {
  background: #050b18;
  color: rgba(255, 255, 255, 0.72);
  padding: 1.3rem 1.5rem;
  font-size: 0.78rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid,
  .two-col-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2.3rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-graphic {
    order: -1;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 0.75rem;
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .page-hero {
    padding: 2.5rem 1.2rem 2rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 3rem 1.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
