:root {
  --teal-900: #0b3d3a;
  --teal-700: #0f766e;
  --teal-500: #14b8a6;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --paper: #fffdf9;
  --cream: #fbf6ec;
  --line: #e7e0d2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; color: var(--teal-900); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--amber-600); }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.btn {
  display: inline-block;
  padding: .8em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--amber-500); color: var(--teal-900); }
.btn-primary:hover { background: var(--amber-600); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--teal-900); }
.btn-teal { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-900); transform: translateY(-2px); }

/* Header */
.site-header { background: var(--teal-900); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9em 0; }
.brand { display: flex; align-items: center; gap: .6em; color: var(--white); }
.brand:hover { color: var(--amber-500); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 1.6em; }
.site-nav a { color: #d7ece9; font-weight: 500; }
.site-nav a.active, .site-nav a:hover { color: var(--white); }
.nav-cta { background: var(--amber-500); color: var(--teal-900) !important; padding: .5em 1.2em; border-radius: 999px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--amber-600); color: var(--white) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* Flash */
.flash { padding: .8em 0; text-align: center; font-weight: 500; }
.flash-success { background: #e4f6ec; color: #166534; }
.flash-error { background: #fdecec; color: #b42318; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: var(--white);
  padding: 5.5em 0;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.hero p { color: #d7ece9; font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.6em; }
.hero-actions { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 3em 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: .2em; }

/* Sections */
section { padding: 4em 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--amber-600); font-size: .8rem; }

/* Grids & cards */
.grid { display: grid; gap: 1.8em; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8em;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(15, 118, 110, .1); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: .8em;
}

/* Session gallery cards */
.session-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.session-card:hover { transform: translateY(-4px); }
.session-cover { aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.session-cover img { width: 100%; height: 100%; object-fit: cover; }
.session-body { padding: 1.3em; }
.session-date { font-size: .85rem; color: var(--amber-600); font-weight: 600; }
.session-count { font-size: .85rem; color: var(--ink-soft); }

/* Slideshow (auto-advancing, "quick succession" photo cycling) */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}
.slideshow-viewport { position: relative; width: 100%; height: 100%; }
.slideshow .slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .9s ease;
}
.slideshow .slide.active { opacity: 1; z-index: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow .slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11,61,58,.75));
  color: var(--white); padding: 2.2em 1.2em 1em; font-weight: 500; font-size: .95rem;
}
.slideshow-prev, .slideshow-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255,255,255,.2); color: var(--white); border: none;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
  backdrop-filter: blur(2px);
}
.slideshow-prev:hover, .slideshow-next:hover { background: rgba(255,255,255,.35); }
.slideshow-prev { left: 14px; }
.slideshow-next { right: 14px; }
.slideshow-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slideshow-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer;
}
.slideshow-dots button.active { background: var(--white); }
.slideshow-count {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  background: rgba(11,61,58,.55); color: var(--white); font-size: .78rem;
  padding: .25em .7em; border-radius: 999px;
}

/* Photo grid + lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1em; }
.photo-grid figure { margin: 0; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; background: var(--cream); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.photo-grid figure:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; background: rgba(11, 61, 58, .92);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; z-index: 200; padding: 2em;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; }
.lightbox figcaption { color: var(--white); margin-top: 1em; text-align: center; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.15); color: var(--white);
  border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.empty-state { text-align: center; padding: 3em 1em; color: var(--ink-soft); }

/* Donate page */
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8em; }
.donate-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.donate-card-head { background: var(--teal-900); color: var(--white); padding: 1.4em 1.6em; }
.donate-card-head h3 { color: var(--white); margin: 0; }
.donate-card-body { padding: 1.6em; }
.detail-row { display: flex; justify-content: space-between; gap: 1em; padding: .7em 0; border-bottom: 1px dashed var(--line); }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--ink-soft); font-weight: 500; }
.detail-value { font-weight: 700; color: var(--teal-900); text-align: right; }
.donate-note { background: var(--cream); border-left: 4px solid var(--amber-500); padding: 1em 1.3em; border-radius: 8px; margin-top: 1.5em; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2em; max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 1.3em; }
.field label { display: block; font-weight: 600; margin-bottom: .4em; color: var(--teal-900); }
.field input, .field textarea, .field select {
  width: 100%; padding: .75em .9em; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: var(--paper);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--teal-500); border-color: var(--teal-500); }
.field-error { color: #b42318; font-size: .85rem; margin-top: .3em; }

/* Footer */
.site-footer { background: var(--teal-900); color: #cfe6e2; padding: 3em 0 1em; margin-top: 3em; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2em; }
.site-footer h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #cfe6e2; }
.site-footer a:hover { color: var(--amber-500); }
.site-footer .brand-name { color: var(--white); font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2em; padding-top: 1.2em; text-align: center; font-size: .85rem; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--teal-900); color: var(--white); padding: 1.6em 1.2em; }
.admin-sidebar a { display: block; color: #d7ece9; padding: .6em .5em; border-radius: 8px; }
.admin-sidebar a.active, .admin-sidebar a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.admin-main { flex: 1; padding: 2em; background: var(--cream); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6em; }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.admin-table th, table.admin-table td { padding: .9em 1em; text-align: left; border-bottom: 1px solid var(--line); }
table.admin-table th { background: var(--cream); font-family: 'Poppins', sans-serif; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--teal-900); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--teal-900);
    flex-direction: column; align-items: flex-start; padding: 1em 6%; gap: .2em;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .6em 0; width: 100%; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: auto; display: flex; overflow-x: auto; gap: .5em; }
}
