@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700;800&display=swap');

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

:root {
  --primary-color: #0d4ea6;
  --primary-dark: #08306f;
  --accent: #1f7ae0;
  --bg: #ffffff;
  --bg-soft: #f4f8fd;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #dbe5f1;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
.logo,
.btn,
.nav-menu a,
.topbar,
.eyebrow,
.panel-kicker,
.tip-card span,
.news-date,
.quick-card a {
  font-family: 'Libre Franklin', 'Source Sans 3', system-ui, sans-serif;
}

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

a {
  color: inherit;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.eyebrow.dark {
  color: var(--primary-color);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  max-width: 780px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.topbar {
  background: var(--primary-dark);
  color: #d8e8fb;
  font-size: 0.88rem;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar a {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 229, 241, 0.8);
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a {
  text-decoration: none;
  font-weight: 700;
  color: #1f2a44;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

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

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn-outline.dark {
  border-color: var(--line);
  color: var(--text);
}

.about-page .btn-outline.dark {
  color: #fff;
}

.btn-ghost {
  background: #eef5ff;
  color: var(--primary-dark);
  border-color: #d6e6ff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #0b2f66 0%, #123f81 44%, #dbe6f2 100%);
  color: #fff;
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(6, 26, 61, 0.78) 0%, rgba(6, 26, 61, 0.68) 44%, rgba(6, 26, 61, 0.22) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -38% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 45%, transparent 68%);
  filter: blur(3px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
  padding: 74px 20px 64px;
}

.hero-left h1 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.lead {
  max-width: 54ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-highlights {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-highlights div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 14px 12px;
}

.hero-highlights strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 4px;
}

.hero-highlights span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  color: var(--text);
}

.hero-panel-image {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.hero-panel-body {
  padding: 22px;
}

.panel-kicker {
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-panel-body h2 {
  font-size: 1.75rem;
  line-height: 1.06;
  margin-bottom: 14px;
}

.page-hero {
  background: linear-gradient(135deg, #0b2f66 0%, #123f81 55%, #dbe6f2 100%);
  color: #fff;
  padding: 78px 0 66px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(6, 26, 61, 0.74) 0%, rgba(6, 26, 61, 0.5) 50%, rgba(6, 26, 61, 0.18) 100%);
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
  margin-bottom: 16px;
}

.dark-lead {
  color: rgba(255, 255, 255, 0.9);
}

.about-panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.about-panel h2 {
  color: var(--primary-dark);
  font-size: 1.8rem;
  line-height: 1.08;
  margin-bottom: 12px;
}

.about-story,
.about-stats {
  padding: 72px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 14px;
}

.about-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  margin-bottom: 12px;
}

.about-values {
  display: grid;
  gap: 14px;
}

.about-card,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.about-card h3,
.stat-card strong {
  color: var(--primary-dark);
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

.stat-card p {
  color: var(--muted);
}

.panel-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-tags span,
.news-date,
.quick-card a,
.tip-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.panel-tags span {
  padding: 8px 12px;
  background: #eef4fb;
  color: #254063;
  font-weight: 700;
  font-size: 0.86rem;
}

quick-links,
services,
gallery,
learning,
help-band,
contact {
  padding: 72px 0;
}

.quick-links {
  background: #fff;
}

.quick-link-grid,
.services-cards {
  display: grid;
  gap: 18px;
}

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

.quick-card,
.service-card,
.tip-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.quick-card {
  padding: 24px;
  border: 1px solid var(--line);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.quick-card h3 {
  font-size: 1.35rem;
}

.quick-card p,
.service-card p,
.learning-feature p,
.contact-info p,
.footer-inner p {
  color: var(--muted);
}

.quick-card a {
  width: fit-content;
  background: #eef5ff;
  color: var(--primary-dark);
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.accent-band {
  background: linear-gradient(180deg, #f6f9fd 0%, #eef4fa 100%);
}

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

.gallery {
  background: #fff;
}

.gallery-carousel {
  display: grid;
  gap: 16px;
}
.board-carousel {
  display: grid;
  gap: 16px;
}

.gallery-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.gallery-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}

.gallery-card {
  flex: 0 0 100%;
  background: #fff;
  display: block;
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-card:not(.board-card) img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #f3f7fb;
}

.board-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.board-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: auto;
}

.board-card img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain !important;
  background: #f3f7fb;
  display: block;
}

.board-card figcaption {
  padding: 18px 20px 20px;
  text-align: center;
  background: #fff;
}

.board-card h3 {
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin: 0;
}

.board-section {
  padding: 72px 0;
  background: #fff;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: #c5d4ea;
  cursor: pointer;
  padding: 0;
}

.gallery-dot.active {
  background: var(--primary-color);
  transform: scale(1.18);
}

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

.service-card {
  padding: 24px;
  border: 1px solid #e6eef7;
}

.service-card h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
}

.learning-feature {
  background: linear-gradient(135deg, #0d4ea6, #08306f);
  color: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.learning-feature h2,
.tip-card h3,
.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
  margin-bottom: 10px;
}

.learning-feature p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: 18px;
}

.tip-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tip-card span {
  width: fit-content;
  background: #e8f2ff;
  color: var(--primary-dark);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.news-grid { /* removed: News section deleted from markup */
  display: none;
}

.help-band {
  background: linear-gradient(180deg, #0c2f67 0%, #0d4ea6 100%);
  color: #fff;
}

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.help-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment {
  background: linear-gradient(135deg, #0d4ea6 0%, #1f7ae0 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.payment-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.payment-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  max-width: 500px;
}

.payment-inner p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.9);
}

.btn-large {
  padding: 16px 32px !important;
  font-size: 1.1rem;
  border-radius: 12px;
  display: inline-block;
}

.payment-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 12px;
}

.payment-note a {
  color: #fff;
  text-decoration: underline;
}

.payment-note a:hover {
  opacity: 0.8;
}

.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
}

.contact-info {
  padding-right: 20px;
}

.contact-info .info-item {
  margin-top: 12px;
  color: var(--muted);
}

.contact-info .info-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-info .info-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.gallery-card,
.quick-card,
.service-card,
.tip-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.quick-card:hover,
.service-card:hover,
.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
}

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dce6f2;
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  width: 100%;
  margin-top: 12px;
}

.footer {
  background: #08182f;
  color: #d7e2f4;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d7e2f4;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.footer a {
  color: #d7e2f4;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.pre-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (max-width: 1024px) {
  .hero-grid,
  .learning-grid,
  .contact-grid,
  .page-hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .quick-link-grid,
  .services-cards,
  .gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-left h1 {
    max-width: 12ch;
  }

  .board-card img {
    max-height: 520px;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .footer-inner,
  .help-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    background-position: center top;
  }

  .hero-grid {
    padding-top: 58px;
    padding-bottom: 52px;
  }

  .hero-highlights,
  .quick-link-grid,
  .services-cards,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero-highlights {
    gap: 10px;
  }

  .hero-panel-image {
    height: 220px;
  }

  .page-hero {
    padding-top: 60px;
    padding-bottom: 54px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .board-card img {
    max-height: 420px;
  }
}