/* ========================================
   Irimpan Kudumba Yogam – Main Stylesheet
   ======================================== */

:root {
  --bg: #f3efe6;
  --surface: rgba(255, 252, 246, 0.86);
  --surface-soft: #f6f0e6;
  --border: rgba(112, 82, 44, 0.14);
  --line: rgba(112, 82, 44, 0.08);
  --brand: #7f5539;
  --brand-strong: #5e3c27;
  --brand-soft: #a27048;
  --accent: #0f766e;
  --text: #2b221b;
  --text-dim: #776455;
  --male: #2c6893;
  --female: #a05078;
  --danger: #8b3a3a;
  --radius: 24px;
  --radius-lg: 34px;
  --shadow: 0 24px 60px rgba(70, 43, 24, 0.10);
  --shadow-soft: 0 14px 34px rgba(70, 43, 24, 0.07);
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 26%),
    radial-gradient(circle at top right, rgba(218, 237, 234, 0.7), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, #f2ebdf 42%, #ede4d6 100%);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.65;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 85, 57, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 85, 57, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.32), transparent 82%);
}

a { color: inherit; }
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

p { color: var(--text-dim); }

.site-shell { position: relative; z-index: 1; }

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(248, 243, 235, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(112, 82, 44, 0.08);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.nav-links, .nav-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a:focus-visible {
  background: rgba(127, 85, 57, 0.08);
  color: var(--brand-strong);
  transform: translateY(-1px);
  outline: none;
}

.nav-dropdown { position: relative; }
.nav-dropbtn { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.nav-caret { font-size: 0.72rem; opacity: 0.8; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 210px;
  padding: 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.97);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.nav-dropdown.is-open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}

.nav-dropdown-menu .nav-menu-title {
  display: block;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  color: var(--brand-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn-link, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn-link {
  padding: 0.62rem 1rem !important;
  color: var(--brand-strong) !important;
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--border);
}

.btn {
  padding: 0.82rem 1.35rem;
  font-size: 0.93rem;
  min-height: 48px;
}

.btn:hover, .btn-link:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff8f2 !important;
  box-shadow: 0 16px 26px rgba(127, 85, 57, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-color: var(--border);
}

.btn-danger { background: var(--danger); color: #fff; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-strong);
}

/* ── Main Layout ── */
main {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 3rem;
}

/* ── Cards & Surfaces ── */
.card, .info-card, .hero-band, .surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card, .info-card, .surface-card { padding: 1.5rem; }

:is(.card, .info-card, .surface-card, .stat-tile, .stat-card, .quick-card, .side-ad,
  .about-copy, .history-card, .source-card, .committee-wrap, .committee-year-card,
  .committee-card, .family-card, .house-block, .album-card, .contact-block,
  .contact-form-shell, .event-box, .event-card, .ad-section-card) {
  position: relative;
  isolation: isolate;
}

:is(.card, .info-card, .surface-card, .stat-tile, .stat-card, .quick-card, .side-ad,
  .about-copy, .history-card, .source-card, .committee-wrap, .committee-year-card,
  .committee-card, .family-card, .house-block, .album-card, .contact-block,
  .contact-form-shell, .event-box, .event-card, .ad-section-card)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.46), transparent 28%),
    radial-gradient(circle at top right, rgba(216, 236, 233, 0.28), transparent 24%);
  z-index: -1;
}

/* ── Section Layout ── */
.section-shell {
  display: grid;
  gap: 1.5rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-copy { max-width: 580px; }

.section-kicker {
  display: inline-flex;
  padding: 0.34rem 0.8rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand-strong); margin-bottom: 0.6rem; }
.section-sub { color: var(--text-dim); font-size: 1rem; }

.eyebrow {
  display: inline-flex;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  background: rgba(127, 85, 57, 0.08);
  color: var(--brand-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.muted { color: var(--text-dim); font-size: 0.85rem; }

/* ── Footer ── */
footer {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 252, 246, 0.72);
  backdrop-filter: blur(14px);
  color: var(--text-dim);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* ============================================
   HOME PAGE
   ============================================ */

.home-stack {
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(1.75rem, 4vw, 3.25rem);
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Homepage Hero */
.hero-panel {
  position: relative;
  width: 100%;
  min-height: clamp(720px, 100vh, 920px);
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background:
    radial-gradient(circle at top left, rgba(229, 196, 151, 0.34), transparent 26%),
    radial-gradient(circle at bottom right, rgba(165, 196, 206, 0.26), transparent 24%),
    linear-gradient(180deg, #f7f2ea 0%, #efe6d8 100%);
}

.homepage-hero {
  width: 100vw;
  margin-top: -0.25rem;
  margin-bottom: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 30px 80px rgba(28, 19, 12, 0.14);
}

.homepage-hero-inner {
  position: relative;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.1rem, 5.6vh, 4rem) 0 clamp(5rem, 9vh, 6rem);
}

.hero-quick-band {
  width: min(1280px, calc(100% - 2rem));
  margin: -2.1rem auto 0;
  padding: 1.55rem;
  border-radius: 32px;
  border: 1px solid rgba(196, 174, 147, 0.34);
  background:
    radial-gradient(circle at top right, rgba(218, 197, 171, 0.28), transparent 28%),
    radial-gradient(circle at bottom left, rgba(126, 167, 160, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(246, 238, 227, 0.98));
  box-shadow:
    0 22px 50px rgba(110, 76, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.55fr);
  gap: 1.25rem;
  position: relative;
  z-index: 3;
}

.hero-quick-band-copy {
  padding: 0.75rem 0.7rem 0.75rem 0.4rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.hero-quick-band-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(123, 85, 49, 0.08);
  border: 1px solid rgba(123, 85, 49, 0.12);
  color: #8a6445;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-quick-band-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #6b3f25;
}

.hero-quick-band-copy p {
  margin: 0;
  color: #8a725f;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 48ch;
}

.hero-quick-band-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-quick-band-link {
  position: relative;
  min-height: 172px;
  padding: 1.1rem 1.1rem 1.15rem 1.15rem;
  border-radius: 26px;
  border: 1px solid rgba(198, 175, 149, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 245, 237, 0.86));
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.05rem;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(121, 92, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hero-quick-band-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 45%, rgba(181, 119, 69, 0.07));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.hero-quick-band-link:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 34px rgba(114, 86, 59, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 118, 110, 0.24);
}

.hero-quick-band-link:hover::before {
  opacity: 1;
}

.hero-quick-band-link-accent {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(244, 251, 249, 0.96), rgba(233, 246, 242, 0.96));
}

.hero-quick-band-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(107, 63, 37, 0.08);
  color: #8a6445;
  border: 1px solid rgba(138, 100, 69, 0.12);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero-quick-band-text {
  display: grid;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

.hero-quick-band-text strong {
  color: #2e2b28;
  font-size: 1.24rem;
  line-height: 1.15;
}

.hero-quick-band-text span {
  color: #7d6d61;
  font-size: 0.96rem;
  line-height: 1.65;
}

.hero-quick-band-mark {
  align-self: flex-end;
  color: #0f766e;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.homepage-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
  gap: clamp(1.1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.homepage-hero-stage {
  position: relative;
  min-height: clamp(420px, 68vh, 680px);
  border-radius: 38px;
  overflow: hidden;
  background: #231811;
  box-shadow: 0 30px 80px rgba(30, 18, 10, 0.26);
}

.homepage-hero-side {
  align-self: stretch;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: clamp(220px, 30vw, 420px);
  height: clamp(220px, 30vw, 420px);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

.hero-panel::before {
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(212, 167, 106, 0.75) 0%, rgba(212, 167, 106, 0) 70%);
  animation: heroGlowDrift 14s ease-in-out infinite;
}

.hero-panel::after {
  right: -8%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(71, 129, 166, 0.75) 0%, rgba(71, 129, 166, 0) 72%);
  animation: heroGlowDrift 18s ease-in-out infinite reverse;
}

@keyframes heroGlowDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22px, -18px, 0) scale(1.08); }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s ease;
  transform: scale(1.03);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  will-change: transform;
}

.hero-slide.active img {
  animation: heroImageDrift 12s ease-in-out forwards;
}

@keyframes heroImageDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.06) translate3d(-10px, -6px, 0); }
  100% { transform: scale(1.1) translate3d(8px, 6px, 0); }
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d2512 0%, #5e3c27 40%, #2c6893 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Animated background particles */
.hero-slide-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 30%);
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -20px) scale(1.1); }
}

.hero-slide-placeholder .placeholder-art {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20vw;
  color: rgba(255,255,255,0.06);
  user-select: none;
  animation: artFloat 6s ease-in-out infinite;
}

@keyframes artFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(16, 11, 8, 0.1) 0%, rgba(16, 11, 8, 0.12) 32%, rgba(16, 11, 8, 0.74) 100%),
    linear-gradient(90deg, rgba(16, 11, 8, 0.72) 0%, rgba(16, 11, 8, 0.2) 58%, rgba(16, 11, 8, 0.06) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(244, 205, 157, 0.16) 0 2px, transparent 2.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.5px);
  background-size: 180px 180px, 240px 240px, 140px 140px;
  background-position: 0 0, 80px 40px, 30px 100px;
  opacity: 0.65;
}

.hero-particles::before {
  animation: heroParticlesFloat 18s linear infinite;
}

.hero-particles::after {
  animation: heroParticlesFloatAlt 24s linear infinite;
  opacity: 0.35;
}

@keyframes heroParticlesFloat {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-30px, -50px, 0); }
}

@keyframes heroParticlesFloatAlt {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(20px, -38px, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  margin-left: clamp(0rem, 2vw, 1rem);
  padding: 0;
  color: #fff9f4;
  text-align: left;
  opacity: 1;
  transform: none;
}

.hero-content::before {
  content: none;
}

.hero-content::after {
  content: none;
}

.hero-content .eyebrow {
  display: inline-block;
  position: relative;
  z-index: 1;
  background: rgba(88, 77, 74, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  opacity: 0;
  transform: translateY(28px);
}

.hero-title {
  position: relative;
  z-index: 1;
  max-width: 7ch;
  font-size: clamp(3.6rem, 7vw, 5.9rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(36px);
}

.hero-title span { color: #d4f0eb; }
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  color: rgba(255, 249, 244, 0.88);
  font-size: clamp(1rem, 1.75vw, 1.12rem);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: 1.6rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(34px);
}

.hero-slide.active .hero-content .eyebrow {
  animation: heroTextReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-slide.active .hero-title {
  animation: heroTitleReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.hero-slide.active .hero-copy {
  animation: heroTextReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.hero-slide.active .hero-actions {
  animation: heroTextReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

@keyframes heroTextReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(42px);
    letter-spacing: -0.08em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.05em;
  }
}

.hero-actions .btn-secondary {
  background: rgba(54, 36, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-actions .btn-primary {
  background: #b97a4d;
  border-color: transparent;
  box-shadow: 0 18px 36px rgba(168, 112, 72, 0.35);
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  min-width: 190px;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(217, 160, 102, 0.42), 0 20px 40px rgba(168, 112, 72, 0.34);
}

.hero-actions .btn-secondary:hover,
.hero-actions .btn-secondary:focus-visible {
  transform: translateY(-3px);
  background: #4a3020;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-dots {
  position: absolute;
  left: 1.15rem;
  bottom: 0.95rem;
  display: flex;
  gap: 0.55rem;
  z-index: 3;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.13);
}

/* Side column */
.home-side { display: grid; gap: 1rem; }

.hero-quick-card {
  height: 100%;
  padding: clamp(1.55rem, 2.6vw, 2rem);
  gap: 1.2rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(220, 197, 169, 0.28), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(248, 241, 231, 0.96));
}

.hero-side-eyebrow {
  color: #b57745;
  background: rgba(188, 133, 78, 0.12);
  border: 1px solid rgba(188, 133, 78, 0.18);
  opacity: 1;
  transform: none;
  margin-bottom: 1rem;
}

.hero-quick-card h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #6b3f25;
  margin: 0;
}

.hero-quick-card > p {
  color: #8a725f;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-quick-links {
  gap: 0.95rem;
}

.hero-quick-link {
  padding: 1rem 1.05rem 1rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-quick-link strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.hero-quick-link span {
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-quick-link .quick-link-mark {
  font-size: 1.2rem;
  transform: rotate(45deg);
}

.quick-card, .side-ad {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.quick-card { padding: 1.4rem; display: grid; gap: 1rem; }
.quick-card h2 { font-size: 2rem; color: var(--brand-strong); }
.quick-card p { font-size: 0.96rem; }

.hero-side-ad {
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(244, 236, 224, 0.98));
  position: relative;
  min-height: 100%;
}

.side-ad-item {
  display: none;
  gap: 0;
  animation: sideAdFade 0.55s ease;
}

.hero-side-ad .side-ad-item:first-child.active {
  display: grid;
}

.side-ad-item.active {
  display: grid;
}

.side-ad-media {
  min-height: 180px;
  background: linear-gradient(135deg, rgba(127, 85, 57, 0.14), rgba(15, 118, 110, 0.12));
}

.side-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-ad-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
}

.side-ad-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-ad-body h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--brand-strong);
}

.side-ad-body p {
  color: var(--text-dim);
  line-height: 1.7;
}

@keyframes sideAdFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-links { display: grid; gap: 0.75rem; }

.quick-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(15, 118, 110, 0.22);
}

.quick-link strong { color: var(--text); font-size: 0.95rem; }
.quick-link span { color: var(--text-dim); font-size: 0.82rem; }
.quick-link-mark { color: var(--accent); font-size: 1.1rem; font-weight: 800; }

/* Sponsors */
.sponsors-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.sponsors-card h2 { font-size: 1.8rem; color: var(--brand-strong); }

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 60px;
}

.sponsor-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(15, 118, 110, 0.22);
}

.sponsor-item.no-link { pointer-events: none; }

.sponsor-item img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.sponsor-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow-soft);
}

.stat-card p { margin-top: 0.35rem; font-size: 0.9rem; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--brand-strong);
  line-height: 0.95;
}

.stat-label {
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* About section */
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
}

.about-copy, .about-visual {
  border-radius: 30px;
  overflow: hidden;
}

.about-copy {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-copy h3 { font-size: 2.1rem; color: var(--brand-strong); margin-bottom: 0.8rem; }
.about-copy p { max-width: 60ch; font-size: 1rem; }

.about-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.about-meta-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
}

.about-meta-card strong {
  display: block;
  color: var(--brand-strong);
  margin-bottom: 0.25rem;
}

.about-visual {
  min-height: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e8ddd0 0%, #d4c4b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about-visual-placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: rgba(94, 60, 39, 0.12);
  text-align: center;
  padding: 3rem;
}

/* Events */
.events-grid, .mentors-grid, .ad-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.event-card, .mentor-card, .ad-section-card {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.event-card, .ad-section-card {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.event-card:hover, .ad-section-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 56px rgba(70, 43, 24, 0.16);
  border-color: rgba(15, 118, 110, 0.18);
}

.event-image, .mentor-photo { position: relative; background: var(--surface-soft); }

.event-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(31, 21, 14, 0.2));
  pointer-events: none;
}

.event-image img { width: 100%; display: block; height: 240px; object-fit: cover; }
.mentor-photo img { height: 400px; object-fit: fill; width: 100%; display: block; }

.event-image-placeholder {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.event-image-placeholder.c1 { background: linear-gradient(135deg, #e8c4a0, #c89060); }
.event-image-placeholder.c2 { background: linear-gradient(135deg, #a0c4d4, #6090b0); }
.event-image-placeholder.c3 { background: linear-gradient(135deg, #c4d4a0, #809060); }

.mentor-photo-placeholder {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #e8ddd0, #d4c4b0);
}

.event-body, .mentor-body, .ad-section-body { padding: 1.15rem; }
.event-body, .ad-section-body { display: grid; gap: 0.8rem; align-content: start; }

.event-tag, .ad-section-meta {
  display: inline-flex;
  width: fit-content;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-card h3, .mentor-body h3 {
  color: var(--brand-strong);
  font-size: 1.5rem;
  margin: 0.15rem 0 0;
}

.event-date, .mentor-role {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-copy { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.event-link {
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.event-link::after { content: " →"; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.empty-state .icon {
  font-family: 'Cormorant Garamond', serif;
  color: var(--brand);
  font-size: 4rem;
  line-height: 1;
}

.empty-state h2 { font-size: 2.3rem; color: var(--brand-strong); margin: 0.5rem 0; }

/* ============================================
   FAMILY TREE PAGE
   ============================================ */
.tree-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.tree-node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tree-node:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tree-node img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tree-node .name { font-weight: 700; font-size: 0.85rem; color: var(--brand-strong); }
.tree-node .years { font-size: 0.75rem; color: var(--text-dim); }

/* ============================================
   GALLERY PAGE
   ============================================ */
.gallery-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.4rem;
  padding: clamp(1.4rem, 2vw, 1.8rem);
  border-radius: 34px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.65), transparent 28%),
    linear-gradient(135deg, rgba(255, 248, 240, 0.96), rgba(238, 228, 214, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  color: var(--brand-strong);
  margin: 0.45rem 0 0.9rem;
}

.gallery-hero-copy p {
  max-width: 62ch;
  font-size: 1rem;
}

.gallery-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.gallery-stat-pill {
  min-width: 110px;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(112, 82, 44, 0.1);
  background: rgba(255,255,255,0.64);
  backdrop-filter: blur(10px);
}

.gallery-stat-pill strong {
  display: block;
  font-size: 1.35rem;
  color: var(--brand-strong);
}

.gallery-stat-pill span {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-hero-art {
  position: relative;
  min-height: 280px;
}

.gallery-art-card {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 24px 50px rgba(70, 43, 24, 0.14);
  overflow: hidden;
}

.gallery-art-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.28), transparent 42%),
    linear-gradient(135deg, rgba(127, 85, 57, 0.16), rgba(15, 118, 110, 0.18));
}

.gallery-art-card-a {
  inset: 10% 34% 24% 0;
  background: linear-gradient(135deg, #d4aa7d, #a97048);
  transform: rotate(-8deg);
}

.gallery-art-card-b {
  inset: 0 6% 36% 30%;
  background: linear-gradient(135deg, #9ebbb5, #5d8d86);
  transform: rotate(7deg);
}

.gallery-art-card-c {
  inset: 38% 0 0 18%;
  background: linear-gradient(135deg, #f4dfc2, #d3a779);
  transform: rotate(-3deg);
}

.gallery-section-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1.15rem 1.2rem;
  border-radius: 26px;
  background: rgba(255,255,255,0.52);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.gallery-section-banner h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--brand-strong);
  margin-top: 0.3rem;
}

.gallery-section-banner p {
  margin-top: 0.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-album-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gallery-album-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-album-cover {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-album-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(28, 19, 12, 0.82));
}

.gallery-album-count {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.gallery-album-meta {
  padding: 1rem 1.1rem 1.15rem;
}

.gallery-album-meta h3 {
  font-size: 1.45rem;
  color: var(--brand-strong);
  margin-bottom: 0.35rem;
}

.gallery-album-meta p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.gallery-album-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.95rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--brand-strong);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gallery-album-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.gallery-photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery-photo-card {
  display: grid;
  gap: 0.6rem;
}

.gallery-item {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 4/3;
  background: var(--surface-soft);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-photo-caption {
  padding: 0 0.3rem;
}

.gallery-photo-caption strong {
  color: var(--brand-strong);
  font-size: 0.96rem;
}

.gallery-empty-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
}

.gallery-empty-art span {
  color: rgba(43, 34, 27, 0.45);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .gallery-hero-shell {
    grid-template-columns: 1fr;
  }

  .gallery-hero-art {
    min-height: 210px;
  }

  .gallery-section-banner {
    align-items: start;
    flex-direction: column;
  }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.2rem;
}

.contact-block {
  padding: 1.6rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form-shell {
  padding: 1.6rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-group { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.form-label { font-size: 0.85rem; font-weight: 700; color: var(--brand-strong); }

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.6);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea.form-input { min-height: 140px; resize: vertical; }

.form-input:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
  background: #fff;
}

/* ============================================
   PEOPLE / MEMBERS LIST PAGE
   ============================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 1rem;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(127, 85, 57, 0.15);
}

.person-name { font-size: 1rem; font-weight: 700; color: var(--brand-strong); }
.person-role { font-size: 0.8rem; color: var(--text-dim); }

/* Badge gender colors */
.badge-m { color: var(--male); }
.badge-f { color: var(--female); }
.badge-o { color: var(--text-dim); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.history-card {
  padding: 2rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.history-card h2 { font-size: 2.4rem; color: var(--brand-strong); margin-bottom: 1rem; }
.history-card p + p { margin-top: 1rem; }

/* ============================================
   EVENTS PAGE
   ============================================ */
.events-list { display: grid; gap: 1.25rem; }

.event-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.4rem;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  align-items: start;
}

.event-box-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  flex-shrink: 0;
}

.event-box-date .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-box-date .mon { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.event-box h3 { font-size: 1.6rem; color: var(--brand-strong); margin-bottom: 0.4rem; }

/* ============================================
   ADMIN / DASHBOARD
   ============================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}

.admin-sidebar {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.admin-nav-item {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(127, 85, 57, 0.09);
  color: var(--brand-strong);
}

.admin-content { display: grid; gap: 1.2rem; }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.admin-stat {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--shadow-soft);
}

.admin-stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--brand-strong);
  line-height: 1;
}

.admin-stat .label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ============================================
   MESSAGES
   ============================================ */
.messages { margin-bottom: 1rem; }

.message {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  margin-bottom: 0.65rem;
  background: rgba(216, 236, 233, 0.78);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: #155e58;
  box-shadow: var(--shadow-soft);
}

.message.error {
  background: rgba(236, 216, 216, 0.78);
  border-color: rgba(139, 58, 58, 0.18);
  color: #7a2020;
}

/* ============================================
   WEBSITE POPUP
   ============================================ */
.site-ad-popup {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 17, 12, 0.62);
  backdrop-filter: blur(8px);
}

.site-ad-popup.open {
  display: flex;
}

.site-ad-popup-card {
  position: relative;
  width: min(100%, 560px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.42), transparent 24%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(240, 231, 218, 0.96));
  box-shadow: 0 30px 70px rgba(19, 13, 9, 0.32);
  overflow: hidden;
}

.site-ad-popup-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: min(60vh, 420px);
  background: linear-gradient(135deg, rgba(165, 134, 98, 0.22), rgba(127, 85, 57, 0.08));
  overflow: hidden;
}

.site-ad-popup-media img {
  width: 100%;
  max-height: min(60vh, 420px);
  object-fit: contain;
  display: block;
}

.site-ad-popup-body {
  display: grid;
  gap: 1rem;
  padding: 2rem;
}

.site-ad-popup-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-ad-popup-body h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand-strong);
}

.site-ad-popup-body p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}

.site-ad-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.3rem;
}

.site-ad-popup-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,0.78);
  color: var(--brand-strong);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.site-ad-popup-close:hover {
  background: #fff;
}

/* ============================================
   PAGE HEADER BAND
   ============================================ */
.page-hero {
  padding: 2.2rem 2rem;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--brand-strong); }
.page-hero p { color: var(--text-dim); max-width: 50ch; margin-top: 0.5rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .home-grid, .about-panel, .events-grid, .mentors-grid, .ad-section-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .homepage-hero-grid { grid-template-columns: 1fr; }
  .homepage-hero-stage { min-height: 560px; }
  .hero-quick-band {
    grid-template-columns: 1fr;
    margin-top: -1.5rem;
  }
  .hero-quick-band-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-quick-card { min-height: auto; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 78px;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 252, 246, 0.97);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .nav-links.open { display: flex; }
  .nav-group { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-links a, .nav-dropbtn { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.5rem;
    background: rgba(246, 240, 230, 0.9);
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; }
  .about-meta { grid-template-columns: 1fr; }
  .hero-quick-band {
    width: min(1280px, calc(100% - 1rem));
    margin-top: -1.1rem;
    padding: 1rem;
    border-radius: 28px;
  }
  .hero-quick-band-copy {
    padding: 0.25rem 0.1rem;
  }
  .hero-quick-band-links {
    grid-template-columns: 1fr;
  }
  .hero-quick-band-link {
    min-height: auto;
  }
  .hero-overlay {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.2rem;
    background:
      linear-gradient(180deg, rgba(10, 8, 7, 0.06) 0%, rgba(10, 8, 7, 0.76) 100%),
      linear-gradient(90deg, rgba(10, 8, 7, 0.64) 0%, rgba(10, 8, 7, 0.14) 100%);
  }
  .homepage-hero {
    margin-top: -0.15rem;
    border-radius: 0 0 28px 28px;
  }
  .homepage-hero-inner {
    width: min(100%, calc(100% - 1rem));
    padding-top: 3.7rem;
    padding-bottom: 4.5rem;
  }
  .homepage-hero-stage {
    min-height: 480px;
    border-radius: 28px;
  }
  .hero-content {
    margin-left: 0;
    padding-bottom: 1.1rem;
    text-align: left;
  }
  .hero-title {
    max-width: 8ch;
    font-size: clamp(3rem, 14vw, 4.2rem);
  }
  .hero-copy { margin: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    min-width: 0;
    width: 100%;
  }
  .hero-dots {
    left: 1rem;
    bottom: 0.8rem;
  }
  .events-grid, .mentors-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { min-height: 72px; }
  main { width: min(var(--container), calc(100% - 1rem)); padding-top: 0; }
  .homepage-hero { margin-top: 0; }
  .hero-quick-card {
    padding: 1.25rem;
    border-radius: 26px;
  }
  .hero-quick-card h2 {
    font-size: 2.25rem;
  }
  .hero-quick-link {
    padding: 0.95rem 1rem;
  }
  .card, .info-card, .surface-card { padding: 1.15rem; }
  footer { width: min(var(--container), calc(100% - 1rem)); margin-bottom: 1rem; }
  .site-ad-popup-body { padding: 1.35rem; }
  .site-ad-popup-actions .btn { width: 100%; }
}

/* ============================================
   ADMIN FORMS & TABLES (extra)
   ============================================ */
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23776455' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }

.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.92rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.45); }

.badge { display: inline-flex; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-male   { background: rgba(44,104,147,0.1); color: var(--male); }
.badge-female { background: rgba(160,80,120,0.1); color: var(--female); }
.badge-green  { background: rgba(15,118,110,0.1); color: var(--accent); }
.badge-brown  { background: rgba(127,85,57,0.1);  color: var(--brand); }

.form-shell { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-soft); padding: 1.8rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.empty-row td { text-align: center; padding: 2.5rem; color: var(--text-dim); font-size: 0.9rem; }

.file-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.file-preview-placeholder { width: 72px; height: 72px; border-radius: 12px; border: 1px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: rgba(255,255,255,0.5); }
