:root {
  --bg-body: #f3f4f6;
  --bg-muted: #f9fafb;
  --bg-card: #ffffff;
  --bg-hero: radial-gradient(circle at top left, #2563eb 0%, #0f172a 55%);
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-heading: #0f172a;
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-card: 16px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-body);
}

/* Layout helpers */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
}

.section-muted {
  padding: 64px 0;
  background: var(--bg-muted);
}

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: var(--text-heading);
}

.section-text {
  max-width: 720px;
}

.section-text.small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary);
  color: var(--primary);
}

.nav-cta:hover {
  background: var(--primary);
  color: #fff;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

/* Hero */

.hero {
  background: var(--bg-hero);
  color: #e5e7eb;
  padding: 80px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-content {
  max-width: 560px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin: 6px 0 12px;
}

.hero-body {
  color: #cbd5f5;
}

.tagline {
  font-weight: 600;
  color: #bfdbfe;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.11em;
}

.hero-image-card {
  position: relative;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #020617;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.95;
}

.hero-badge {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  text-align: center;
  color: #e5e7eb;
}

/* Buttons */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn-outline:hover {
  background: #e5e7eb;
  color: #0f172a;
}

/* Generic grid */

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}

.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px 20px 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Impact / Stat cards */

.impact-grid {
  margin-top: 16px;
}

.stat-card {
  text-align: center;
}

.stat {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Gallery */

.gallery-grid {
  margin-top: 16px;
}

.gallery-item {
  text-decoration: none;
  color: inherit;
}

.gallery-item figure {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.gallery-item:hover img {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Partners */

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.partner-card {
  flex: 1 1 120px;
  min-width: 140px;
  max-width: 200px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.partner-card img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

/* Instructors */

.instructor-grid {
  margin-top: 18px;
}

.instructor-card {
  text-align: center;
}

.instructor-photo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.instructor-name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text-heading);
}

.instructor-role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 720px;
}

.steps-list li + li {
  margin-top: 6px;
}

/* Sample message block */

.sample-message {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  white-space: pre-wrap;
}

/* Links */

a {
  color: var(--primary);
}

/* Footer base */

.site-footer {
  font-size: 0.9rem;
}

/* Dark footer */

.footer-dark {
  background: #020617;
  color: #e5e7eb;
  padding-top: 40px;
  padding-bottom: 18px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-column {
  font-size: 0.95rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.footer-text {
  margin: 0 0 8px;
  color: #cbd5f5;
}

.footer-text a {
  color: #60a5fa;
  text-decoration: none;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* Social icons row */

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  text-decoration: none;
  transition: transform 0.18s ease-out, background 0.18s ease-out,
    box-shadow 0.18s ease-out;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
}

.footer-social a:hover {
  transform: translateY(-1px);
  background: #2563eb;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.6);
}

/* Bottom bar */

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  margin-top: 24px;
  padding-top: 10px;
}

.footer-bottom-inner {
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Contact-section helpers (if reused) */

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-header h2 {
  margin-bottom: 8px;
}

.contact-grid {
  display: grid;
  gap: 18px;
}

.contact-card {
  height: 100%;
}

.contact-org {
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-lines {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

/* Responsive */

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1.1fr 1fr;
    align-items: flex-start;
  }
}

/* Mobile-specific adjustments */

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 44px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 14px;
    min-width: 190px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .nav-links.nav-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .container {
    padding: 0 12px;
  }

  .hero-image-card {
    max-width: 100%;
  }

  .footer-grid {
    gap: 18px;
  }
}
