:root {
  --color-primary: #006d77;
  --color-primary-soft: #e0f4f6;
  --color-secondary: #ffb703;
  --color-accent: #fb8500;
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --radius-lg: 16px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
}

.section-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header-inline .link-inline {
  font-size: 0.95rem;
}

/* Grid */

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.logo-text small {
  color: var(--color-muted);
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 10px;
}

/* Navigation */

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.main-nav a:hover {
  background: rgba(148, 163, 184, 0.1);
  text-decoration: none;
}

.main-nav a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

/* Hero */

.hero {
  padding: 64px 0 40px;
  background: radial-gradient(circle at top left, #e0fbfc 0, #f9fafb 40%, #ffffff 100%);
}

/* Slider */

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.hero-slider-inner {
  display: flex;
  transition: transform 0.6s ease;
}

.hero-slide {
  min-width: 100%;
  height: 260px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-content {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  color: #fff;
  z-index: 2;
}

.hero-slide-title {
  font-weight: 600;
  margin: 0 0 4px;
}

.hero-slide-caption {
  font-size: 0.9rem;
  margin: 0;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
}

.hero-slider-dots button.is-active {
  width: 16px;
  background: #ffffff;
}

/* Hero layout */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 0;
  font-size: 2.3rem;
  line-height: 1.25;
}

.hero-copy p {
  color: var(--color-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-badges span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.hero-highlight {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.hero-card ul {
  padding-left: 18px;
  margin: 10px 0 14px;
}

.hero-card li {
  margin-bottom: 4px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Cards */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.program-card h3 {
  margin-top: 0;
}

/* Stats */

.stats-grid {
  text-align: center;
}

.stat {
  padding: 16px 10px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Badges */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.badge-student {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.badge-alumni {
  background: rgba(234, 88, 12, 0.08);
  color: #c2410c;
}

/* Story cards */

.story-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.story-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.story-thumb {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e7eb;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0792a1);
  color: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--color-text);
}

.btn-outline:hover {
  background: rgba(148, 163, 184, 0.08);
}

.btn-small {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
}

.btn-small.danger {
  border-color: #ef4444;
  color: #b91c1c;
}

/* Steps */

.steps {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.section-cta {
  text-align: center;
  margin-top: 8px;
}

/* Page hero */

.page-hero {
  padding: 48px 0 16px;
  background: linear-gradient(135deg, #e0fbfc, #ffffff);
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.page-hero p {
  margin: 0;
  max-width: 600px;
  color: var(--color-muted);
}

/* Filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.filter-group select {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* Forms */

.form {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
}

.form-group small {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.form-footer {
  margin-top: 6px;
}

.form-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Donate layout */

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.donation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip-amount {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 6px 10px;
  font-size: 0.85rem;
  background: #ffffff;
  cursor: pointer;
}

.chip-amount.is-active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Misc */

.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  margin-top: 40px;
  background: #020617;
  color: #e5e7eb;
  padding: 28px 0 16px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 16px;
}

.footer-links h4,
.footer-contact h4 {
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 10px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Admin basic */

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-nav a {
  margin-left: 8px;
  font-size: 0.9rem;
}

/* Story detail */

.story-detail-body {
  max-width: 720px;
  margin: 0 auto;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-highlight {
    justify-content: stretch;
  }

  .donate-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 48px 0;
  }

  .header-inner {
    padding-inline: 8px;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 56px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 10px 16px 14px;
  }

  .main-nav a {
    color: #e5e7eb;
    padding: 8px 10px;
  }

  .main-nav a.is-active {
    background: rgba(148, 163, 184, 0.2);
    color: #ffffff;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
  }

  .site-footer {
    margin-top: 32px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-slide {
    height: 200px;
  }
}

/* Utility */

.hidden {
  display: none !important;
}
