:root {
  --blue: #1565c0;
  --blue-soft: #3f72af;
  --blue-light: #dbe9ff;
  --white: #ffffff;
  --gray: #f5f8ff;
  --text: #102a43;
  --muted: #526474;
  --shadow: 0 24px 80px rgba(8, 52, 99, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gray);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-fade {
  position: fixed;
  inset: 0;
  background: #fff;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
  z-index: 1000;
}

body.loaded .page-fade {
  opacity: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: rgba(21, 101, 192, 0.1);
  color: var(--blue);
  font-size: 0.95rem;
}

.topbar span {
  margin-left: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(18, 56, 106, 0.08);
}

.brand {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  gap: 0.8rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary:hover {
  background: #0f4d9d;
}

.btn-alt,
.btn-outline {
  background: transparent;
  border: 1px solid rgba(21, 101, 192, 0.18);
  color: var(--blue);
}

.btn-outline:hover,
.btn-alt:hover {
  background: rgba(21, 101, 192, 0.06);
}

main {
  padding: 2rem;
}

.hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  border-radius: 2rem;
  margin-bottom: 2rem;
}

.hero-carousel {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  max-width: 640px;
  margin-left: 3rem;
  color: var(--white);
  text-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  margin: 0;
  line-height: 1.05;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.carousel-controls {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--white);
}

.features,
.service-grid,
.partner-grid,
.activity-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.features article,
.content-grid article,
.service-grid article,
.partner-grid article,
.activity-grid article {
  padding: 1.85rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  background: rgba(21, 101, 192, 0.12);
  border-radius: 1rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.features article h2,
.service-grid article h3,
.partner-grid article h3,
.activity-grid article h3,
.content-grid article h3 {
  margin: 0 0 0.75rem;
}

section.content-block {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.content-text {
  max-width: 640px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stats-strip article {
  background: var(--blue);
  color: var(--white);
  padding: 1.8rem;
  border-radius: 1.5rem;
  text-align: center;
}

.stats-strip strong {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero {
  padding: 4rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(21, 101, 192, 0.95), rgba(12, 61, 110, 0.95));
  color: var(--white);
  margin-bottom: 2rem;
}

.page-hero-alt {
  background: linear-gradient(135deg, rgba(12, 61, 110, 0.95), rgba(56, 103, 175, 0.9));
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0.75rem 0 1.2rem;
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
}

.contact-block,
.auth-page {
  display: grid;
  gap: 2rem;
}

.contact-block {
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  margin-top: 2rem;
}

.contact-block div,
.auth-card {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-block h2,
.auth-card h1 {
  margin-top: 0;
}

.contact-block p {
  color: var(--muted);
  line-height: 1.8;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d6e0f0;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fff;
}

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

.form-message {
  color: var(--blue);
  font-weight: 600;
}

.auth-page {
  max-width: 520px;
  margin: 3rem auto 4rem;
}

.auth-card h1 {
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.auth-switch {
  margin-top: 1rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--blue);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 3rem 2rem 1.5rem;
  background: #0d2f60;
  color: #f4f7ff;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  margin: 0.35rem 0;
}

.footer-note {
  padding: 1rem 2rem 2rem;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  background: #0b2043;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 960px) {
  .topbar,
  .main-nav,
  .footer-grid,
  .contact-block {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .main-nav {
    justify-content: space-between;
  }
}

@media (max-width: 730px) {
  .hero-copy {
    margin-left: 1.25rem;
  }

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

  .contact-block,
  .content-block {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 2.5rem 1.5rem;
  }

  .topbar,
  .main-nav,
  .footer-grid {
    flex-direction: column;
  }
}
