/* MSK Youth – match design mockup */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,500;1,600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --bg: #F3F6F0;
  --bg-warm: #F7F5F0;
  --surface: #FFFFFF;
  --green: #1B5E3B;
  --green-2: #2A7A4B;
  --green-3: #3D8F5C;
  --green-soft: #E8F0E9;
  --green-wash: #EEF4EF;
  --muted: #5C6B62;
  --text: #1A2E22;
  --name: #6B5344;
  --line: #D8E0D6;
  --shadow: 0 12px 40px rgba(27, 94, 59, 0.08);
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(200, 220, 190, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 5%, rgba(210, 225, 200, 0.35), transparent 50%),
    linear-gradient(180deg, #F8FAF6 0%, var(--bg) 35%, #EEF2EB 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2A7A4B, #1B5E3B);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  border: 2px solid #A8C9B0;
  box-shadow: 0 4px 14px rgba(27,94,59,0.2);
}
.brand-text strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
  position: relative;
}
.brand-text span::before,
.brand-text span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--green-3);
  opacity: 0.5;
}
.brand-text span::before { left: -22px; }
.brand-text span::after { right: -22px; }
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}
.nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-radius: 8px;
  transition: 0.15s;
  position: relative;
}
.nav a .ico { font-size: 1.05rem; line-height: 1; color: var(--green-2); opacity: 0.85; }
.nav a:hover { color: var(--green); background: var(--green-soft); }
.nav a.active {
  color: var(--green);
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -2px;
  height: 3px;
  background: var(--green);
  border-radius: 3px 3px 0 0;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--green);
  font-size: 1.1rem;
}

/* Hero */
.hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-kicker::before {
  content: "🌿";
  font-size: 0.9rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-2);
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero-tagline::before { content: "🍃 "; }
.hero-tagline::after { content: " 🍃"; }
.hero p.lead {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  font-family: var(--font);
}
.btn-primary {
  background: var(--green-2);
  color: #fff;
  box-shadow: 0 6px 18px rgba(42, 122, 75, 0.3);
}
.btn-primary:hover { background: var(--green); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green-2);
  color: var(--green);
}
.btn-outline:hover { background: var(--green-soft); }
.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(27, 94, 59, 0.12);
  border: 4px solid #fff;
  background: var(--green-wash);
  min-height: 300px;
  aspect-ratio: 4/3;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}
.hero-visual-fallback {
  min-height: 300px;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(27,94,59,0.25), rgba(255,255,255,0.1)),
    linear-gradient(180deg, #7BA88A, #2A7A4B 60%, #1B5E3B);
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 2rem;
}
.hero-visual-fallback span { font-size: 3rem; }
.hero-visual-fallback p { margin-top: 0.5rem; opacity: 0.9; }

/* Section shells */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0.5rem;
}
.section-soft {
  background: linear-gradient(180deg, rgba(232, 240, 233, 0.55), rgba(243, 246, 240, 0.3));
  border-radius: 28px;
  padding: 1.75rem 1.25rem 1.5rem;
  margin: 0.5rem 0 1rem;
  border: 1px solid rgba(216, 224, 214, 0.8);
}
.section-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 1.35rem;
  text-transform: uppercase;
}
.section-title::after {
  content: "🌿";
  display: block;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  letter-spacing: 0;
  opacity: 0.7;
}

/* Members – rectangular cards, 5 visible, scroll */
.members-scroll-wrap { position: relative; }
.members-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.15rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--green-3) var(--green-soft);
}
.members-scroll::-webkit-scrollbar { height: 6px; }
.members-scroll::-webkit-scrollbar-thumb {
  background: var(--green-3);
  border-radius: 6px;
}
.member-card-rect {
  flex: 0 0 calc((100% - 4rem) / 5);
  min-width: 160px;
  max-width: 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(27, 94, 59, 0.06);
  transition: 0.2s;
}
.member-card-rect:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.member-card-rect .photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--green-soft);
}
.member-card-rect .photo-ph {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  background: linear-gradient(145deg, #E8F0E9, #d4e5d8);
  font-family: var(--display);
}
.member-card-rect .meta {
  padding: 0.75rem 0.65rem 0.9rem;
  text-align: center;
  background: linear-gradient(180deg, #FFFEFB, #F7F3EC);
}
.member-card-rect .meta h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--name);
  margin-bottom: 0.15rem;
}
.member-card-rect .meta p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-3);
  margin: 0;
}
.members-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}
.members-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.members-nav button:hover {
  background: var(--green-2);
  color: #fff;
  border-color: var(--green-2);
}
.scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

@media (max-width: 1000px) {
  .member-card-rect { flex: 0 0 calc((100% - 3rem) / 4); }
}
@media (max-width: 800px) {
  .member-card-rect { flex: 0 0 calc((100% - 2rem) / 3); }
}
@media (max-width: 560px) {
  .member-card-rect { flex: 0 0 calc((100% - 1rem) / 2); min-width: 140px; }
}

/* Festivals */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.festival-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(27, 94, 59, 0.05);
  transition: 0.2s;
  height: 100%;
}
.festival-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.festival-img {
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: linear-gradient(145deg, #E8F0E9, #F5EBD4);
}
.festival-body {
  padding: 0.85rem 0.75rem 1rem;
  text-align: center;
}
.festival-body h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 0.35rem;
}
.festival-body p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.festival-body .line {
  width: 28px;
  height: 2px;
  background: var(--green-3);
  margin: 0.65rem auto 0;
  border-radius: 2px;
}

/* Festival funds cards */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: 0 4px 16px rgba(27,94,59,0.05);
  transition: 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .lbl { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.stat-card .val {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 0.2rem;
}
.stat-card.expense .val { color: #a33; }

/* Stats bar */
.stats-bar {
  max-width: 1140px;
  margin: 1.25rem auto 1.5rem;
  padding: 0 1.5rem;
}
.stats-inner {
  background: linear-gradient(135deg, #1B5E3B 0%, #2A7A4B 50%, #3D8F5C 100%);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 36px rgba(27, 94, 59, 0.25);
}
.stat-item .num {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-item .lbl { font-size: 0.78rem; opacity: 0.9; margin-top: 0.15rem; }
.stat-item .ico { font-size: 1.2rem; margin-bottom: 0.25rem; opacity: 0.95; }

.quote-block {
  text-align: center;
  padding: 1.75rem 1.5rem 2.5rem;
  color: var(--muted);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}
.quote-block .credit {
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
}

/* Inner pages shared */
.page-hero {
  background: linear-gradient(180deg, var(--green-wash), transparent);
  padding: 2.2rem 1.5rem 1.4rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--green);
  font-weight: 700;
}
.page-hero p { color: var(--muted); margin-top: 0.35rem; font-size: 0.95rem; }
.container { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 16px rgba(27,94,59,0.04);
}
.panel h2 {
  font-size: 1.05rem;
  color: var(--green);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-soft);
  font-weight: 700;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 0.8rem; }
tr:hover td { background: #F7FAF6; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green);
}
.empty { text-align: center; padding: 2rem; color: var(--muted); }

.donor-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.donor-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.7rem;
  text-align: center;
}
.donor-card img, .donor-card .ph {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.45rem;
  border: 2px solid #A8C9B0;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.donor-card h3 { font-size: 0.85rem; }
.donor-card .amt { font-weight: 700; color: var(--green); font-size: 0.88rem; }
.donor-card .cat { font-size: 0.68rem; color: var(--green-2); font-weight: 600; margin-bottom: 0.2rem; }

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.15rem;
}
.gallery-filters select {
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  min-width: 220px;
  font-family: var(--font);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(27,94,59,0.05);
}
.gallery-item img { width: 100%; height: 155px; object-fit: cover; }
.gallery-item .cap { padding: 0.5rem 0.7rem; font-size: 0.8rem; color: var(--muted); }

.festival-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.festival-tabs a {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.festival-tabs a.active {
  background: var(--green-2);
  color: #fff;
  border-color: var(--green-2);
}

.site-footer {
  text-align: center;
  padding: 1.75rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.site-footer strong { color: var(--green); }

@media print {
  .topbar, .menu-btn, .no-print, .members-nav { display: none !important; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .festivals-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 0.5rem; }
  .nav a.active::after { display: none; }
  .festivals-grid { grid-template-columns: 1fr; }
}

/* —— Enhanced beauty pass —— */
body {
  background:
    radial-gradient(ellipse 90% 55% at 5% -5%, rgba(120, 180, 140, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(200, 180, 120, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(100, 160, 120, 0.12), transparent 50%),
    linear-gradient(165deg, #FAFCF8 0%, #F0F5EE 40%, #E8EFE6 100%) !important;
}
.topbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,250,246,0.94)) !important;
  box-shadow: 0 4px 30px rgba(27,94,59,0.06);
}
.section-soft {
  background: linear-gradient(165deg, rgba(255,255,255,0.88), rgba(232,240,233,0.65)) !important;
  box-shadow: 0 10px 40px rgba(27,94,59,0.07);
  border: 1px solid rgba(180, 200, 185, 0.5) !important;
}
.hero h1 {
  background: linear-gradient(135deg, #1B5E3B, #2A7A4B 60%, #3D9B63);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1B5E3B;
}
.member-card-rect {
  box-shadow: 0 8px 28px rgba(27,94,59,0.08) !important;
  border: 1px solid rgba(200, 215, 205, 0.9) !important;
}
.member-card-rect .meta {
  background: linear-gradient(180deg, #FFFEFB, #F3EEE4) !important;
}
.stats-inner {
  background: linear-gradient(125deg, #164A30 0%, #1B5E3B 30%, #2A7A4B 70%, #3D8F5C 100%) !important;
  box-shadow: 0 16px 48px rgba(22, 74, 48, 0.35) !important;
}
.btn-primary {
  background: linear-gradient(135deg, #2A7A4B, #1B5E3B) !important;
}
.festival-card {
  background: linear-gradient(180deg, #fff, #F7FAF6) !important;
}

/* Premium member badge */
.member-card-rect .photo-wrap {
  position: relative;
  display: block;
}
.member-card-rect .photo-wrap .photo,
.member-card-rect .photo-wrap .photo-ph {
  width: 100%;
  display: block;
}
.member-card-rect.is-premium {
  border-color: rgba(212, 175, 55, 0.55) !important;
  box-shadow: 0 8px 28px rgba(184, 134, 11, 0.18) !important;
}
.member-card-rect .premium-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #5a3e00;
  background: linear-gradient(135deg, #fff6c8 0%, #f0d060 40%, #d4af37 100%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  line-height: 1.2;
  white-space: nowrap;
}
