/* KUAA Redesign — Concept 3: Vibrant Community */

:root {
  --maroon-900: #4e0f1a;
  --maroon-700: #7a1f2b;
  --maroon-600: #922838;
  --gold-600: #c98d0f;
  --gold-500: #eab308;
  --gold-400: #f5c945;
  --gold-200: #fde9ad;
  --gold-100: #fff6df;
  --ink: #2a1a1c;
  --gray-600: #6f6265;
  --gray-100: #f4efe9;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(78, 15, 26, 0.14);
  --shadow-sm: 0 6px 18px rgba(78, 15, 26, 0.1);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; position: relative; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--maroon-700); background: var(--gold-200); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--maroon-900); font-weight: 800; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--gray-600); margin-top: 12px; font-size: 1.03rem; }
.section-head.align-left { text-align: left; margin-left: 0; }

.prose p { color: var(--gray-600); font-size: 1.03rem; line-height: 1.7; margin: 0 0 20px; text-align: justify; }
.prose p:last-of-type { margin-bottom: 0; }
.prose h3 { color: var(--maroon-900); font-size: 1.1rem; margin: 30px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { color: var(--gray-600); font-size: 1.03rem; line-height: 1.7; margin: 0 0 20px; padding-left: 22px; }
.prose ul li { margin-bottom: 6px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 14px; font-weight: 700; font-size: 0.96rem; border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-3px) rotate(-0.3deg); }
.btn-gold { background: var(--gold-500); color: var(--maroon-900); box-shadow: var(--shadow-sm); }
.btn-maroon { background: var(--maroon-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-white { background: #fff; color: var(--maroon-700); box-shadow: var(--shadow-sm); }

/* Top banner (index1.php only) */
.top-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 123.75; /* native 900x165, height reduced 25% */
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 3px solid var(--gold-400); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { line-height: 1.2; }
.brand-text .name { display: block; font-weight: 900; font-size: 1.25rem; color: var(--maroon-900); letter-spacing: 0.01em; }
.brand-text .tag { display: block; font-size: 0.68rem; font-weight: 700; color: var(--gold-600); letter-spacing: 0.01em; max-width: 230px; }

.crest-badge {
  display: block;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.crest-badge--lg {
  display: block;
  width: 192px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(78,15,26,0.25));
  margin-bottom: 14px;
}
.nav-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; row-gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu a { font-size: 0.85rem; font-weight: 700; color: var(--maroon-900); padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.nav-menu > li > a { text-transform: uppercase; letter-spacing: 0.03em; }
.nav-menu a:hover, .nav-menu a.active { background: var(--gold-100); color: var(--maroon-700); }

.has-dropdown { display: flex; align-items: center; border-radius: 999px; }
.has-dropdown:hover { background: var(--gold-100); }
.has-dropdown:hover > a { background: transparent; color: var(--maroon-700); }
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 10px 9px 0;
  margin-left: -6px;
  display: flex;
  align-items: center;
  color: inherit;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}
.has-dropdown:hover .caret,
.has-dropdown.dropdown-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  z-index: 60;
  display: none;
  transform: translateY(6px);
  transition: transform 0.15s ease;
}
.dropdown li { position: static; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--maroon-900);
  white-space: nowrap;
}
.dropdown a:hover { background: var(--gold-100); }
.has-dropdown:hover .dropdown,
.has-dropdown.dropdown-open .dropdown {
  display: block;
  transform: translateY(0);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .login-link { font-weight: 700; font-size: 0.88rem; color: var(--maroon-700); padding: 10px 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--maroon-700); margin: 5px 0; }

/* Hero */
.hero { background: var(--gold-100); overflow: hidden; padding: 60px 0 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); color: var(--maroon-900); font-weight: 900; }
.hero h1 .hl { color: var(--gold-600); position: relative; display: inline-block; }
.hero p.lead { color: var(--gray-600); font-size: 1.08rem; margin: 20px 0 30px;  }
.section-band .lead { text-align: justify; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; display: flex; justify-content: center; width: 100%; }
.hero-figure .blob {
  display: none;
  position: absolute; width: 420px; height: 420px; border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
}
.hero-figure .card {
  position: relative; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 320px;
}
.hero-figure .card strong { color: var(--maroon-900); font-size: 1.05rem; }
.hero-figure .card span { color: var(--gray-600); font-size: 0.82rem; margin-top: 4px; }
.hero-figure .chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  padding: 12px 16px; font-size: 0.82rem; font-weight: 700; color: var(--maroon-700);
  display: flex; align-items: center; gap: 8px;
}
.hero-figure .chip.c1 { top: -6%; right: -8%; }
.hero-figure .chip.c2 { bottom: 4%; left: -12%; }
.hero-figure .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

.flyer-carousel {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gold-100);
}
.flyer-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.flyer-carousel img.active { opacity: 1; }

.hero-flyer {
  z-index: 2;
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-wave { display: block; width: 100%; height: 70px; margin-top: 50px; }

/* Feature */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--gray-100); border-radius: 20px; padding: 32px 26px; text-align: center; transition: transform 0.18s ease, background 0.18s ease; }
.feature-card:hover { transform: translateY(-6px); background: var(--gold-100); }
.feature-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--maroon-700); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.feature-card h3 { font-size: 1.08rem; color: var(--maroon-900); margin-bottom: 10px; }
.feature-card p { color: var(--gray-600); font-size: 0.93rem; margin: 0; }

.officer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.officer-card { background: var(--gray-100); border-radius: 20px; padding: 34px 26px; text-align: center; transition: transform 0.18s ease, background 0.18s ease; }
.officer-card:hover { transform: translateY(-6px); background: var(--gold-100); }
.officer-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--maroon-700); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.officer-role { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.officer-name { display: block; font-size: 1.1rem; color: var(--maroon-900); }

.ob-table-wrap { overflow-x: auto; border: 1px solid var(--gray-100); border-radius: 16px; }
.ob-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.ob-table th {
  text-align: left;
  background: var(--maroon-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 20px;
}
.ob-table td { padding: 14px 20px; border-top: 1px solid var(--gray-100); color: var(--ink); }
.ob-table tbody tr:hover { background: var(--gold-100); }
.ob-inactive { color: var(--gray-600); font-size: 0.82rem; font-weight: 400; }

.year-breadcrumb {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray-100);
  -webkit-overflow-scrolling: touch;
}
.year-breadcrumb a {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--maroon-700);
  background: var(--gray-100);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.year-breadcrumb a:hover { background: var(--gold-200); }
.year-breadcrumb a.active { background: var(--maroon-900); color: var(--white); }

.member-check-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member-check-results li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
}
.member-check-results .icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.member-check-results .icon-badge-active { background: #eafaf1; color: #1e7e45; }
.member-check-results .icon-badge-inactive { background: #fdecea; color: #a93226; }
.member-check-name { font-weight: 600; color: var(--maroon-900); flex: 1; }
.member-check-status { font-weight: 700; font-size: 0.9rem; }
.member-check-status.active { color: #1e7e45; }
.member-check-status.inactive { color: #a93226; }

/* Kelani Magazine — page header + cover card (styled after vic2/downloads) */
.mag-page-header { background: var(--maroon-900); padding: 54px 0 34px; }
.mag-page-header h1 { color: var(--gold-500); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; margin: 0; }

.mag-cover-section { background: var(--gold-100); padding: 70px 0; }
.mag-cover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); gap: 40px; justify-content: center; }
.mag-cover-card {
  position: relative;
  margin-top: 45px;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 45px rgba(78, 15, 26, 0.1);
}
.mag-cover-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  background: var(--maroon-900);
  transition: height 0.4s ease;
  z-index: 0;
}
.mag-cover-card:hover::before { height: 100%; }
.mag-cover-img {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 45px);
  margin: -45px 0 0 45px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.mag-cover-body { position: relative; z-index: 1; padding: 20px 24px 28px; text-align: center; }
.mag-cover-body h5 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--maroon-900);
  transition: color 0.3s ease;
}
.mag-cover-card:hover .mag-cover-body h5 { color: var(--white); }
.mag-cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--maroon-900);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.mag-cover-card:hover .mag-cover-btn { background: var(--gold-500); transform: translateX(4px); }

/* Flipbook (Kelani Magazine) */
.flipbook { max-width: 900px; margin: 0 auto; }
.flipbook-stage { display: flex; align-items: center; justify-content: center; gap: 16px; }
.flipbook-nav {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--maroon-900);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.flipbook-nav:hover:not(:disabled) { background: var(--maroon-700); transform: scale(1.06); }
.flipbook-nav:disabled { background: var(--gray-100); color: var(--gray-600); cursor: not-allowed; }
.flipbook-page-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 300px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#flipbook-canvas {
  display: none;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transform-origin: center;
  transform: perspective(1400px) rotateY(0deg) scale(1);
  opacity: 1;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
#flipbook-canvas.flipping { transform: perspective(1400px) rotateY(6deg) scale(0.97); opacity: 0.7; }
.flipbook-loading { color: var(--gray-600); font-size: 0.95rem; padding: 60px 20px; text-align: center; }
.flipbook-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.flipbook-page-indicator { font-size: 0.9rem; font-weight: 600; color: var(--maroon-900); }

@media (max-width: 620px) {
  .flipbook-stage { gap: 8px; }
  .flipbook-nav { width: 38px; height: 38px; font-size: 0.95rem; }
  .flipbook-page-wrap { padding: 8px; }
  .flipbook-controls { flex-direction: column; gap: 12px; }
}

@media (max-width: 620px) {
  .member-check-results li { flex-wrap: wrap; }
  .ob-table thead { display: none; }
  .ob-table, .ob-table tbody, .ob-table tr, .ob-table td { display: block; width: 100%; }
  .ob-table tr { border-top: 1px solid var(--gray-100); padding: 10px 0; }
  .ob-table td { border-top: none; padding: 4px 20px; }
  .ob-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--maroon-700); }
}

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--maroon-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list p { margin: 0; color: var(--ink); font-size: 0.96rem; line-height: 1.55; }

.section-band .check-list p { color: var(--white); }
.section-band .check-list .check-icon { background: var(--gold-500); color: var(--maroon-900); }

/* Events - magazine grid */
.section-band { background: var(--maroon-900); color: #fff; }
.section-band .section-head h2 { color: #fff; }
.section-band .section-head p { color: rgba(255,255,255,0.7); }
.section-band .eyebrow { background: var(--gold-400); }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; padding: 24px; transition: transform 0.18s ease, background 0.18s ease; }
.event-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.1); }
.event-date { display: inline-block; background: var(--gold-500); color: var(--maroon-900); font-weight: 800; font-size: 0.76rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.event-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.event-card .subtitle { font-size: 0.8rem; color: var(--gold-400); font-weight: 700; margin-bottom: 10px; }
.event-card p { font-size: 0.86rem; color: rgba(255,255,255,0.7); margin: 0 0 16px; }
.event-card a { font-size: 0.82rem; font-weight: 700; color: var(--gold-400); }
.event-meta {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #541e1e; /* adjust to match hero background contrast */
}
.event-meta svg {
  flex-shrink: 0;
  opacity: 0.85;
}
/* Sponsors */
.sponsor-row { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.sponsor-row .sponsor-name { font-weight: 800; color: var(--maroon-800, var(--maroon-700)); background: var(--gold-100); padding: 12px 24px; border-radius: 999px; font-size: 0.98rem; }

/* Contact */
.contact-band { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-band h2 { color: var(--maroon-900); }
.contact-band p { color: rgba(46,20,23,0.75); margin-top: 12px; max-width: 44ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid rgba(78, 15, 26, 0.18); }
.contact-list li { border-bottom: 1px solid rgba(78, 15, 26, 0.18); }
.contact-list a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--maroon-900);
  transition: gap 0.2s ease, color 0.2s ease;
}
.contact-list a:hover { gap: 20px; color: var(--maroon-700); }
.contact-list .icon-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-list a:hover .icon-badge { background: #fff; transform: scale(1.08); }
.contact-list a::after {
  content: "\2192";
  margin-left: auto;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-list a:hover::after { opacity: 1; transform: translateX(0); }

/* Contact form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 40px;
}
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3col { grid-template-columns: 1.4fr 1fr 1fr; }
.form-label { display: block; font-size: 0.92rem; font-weight: 700; color: var(--maroon-900); margin-bottom: 8px; }
.required-mark { color: #c0392b; }
.form-input {
  width: 100%;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form-input:focus { outline: none; border-color: var(--maroon-700); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-input.has-error { border-color: #c0392b; }

.input-icon-group { display: flex; align-items: stretch; border: 1px solid var(--gray-100); border-radius: 10px; overflow: hidden; transition: border-color 0.15s ease; }
.input-icon-group input { flex: 1; min-width: 0; border: none; padding: 12px 14px; font-size: 0.95rem; font-family: inherit; color: var(--ink); background: var(--white); }
.input-icon-group input:focus { outline: none; }
.input-icon-group:focus-within { border-color: var(--maroon-700); }
.input-icon-group.has-error { border-color: #c0392b; }
.input-icon-group .input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: var(--gray-100);
  color: var(--gray-600);
}

.field-error { display: block; margin-top: 6px; font-size: 0.82rem; color: #c0392b; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--maroon-900);
  border: 2px solid var(--gold-500);
  border-radius: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.form-submit:hover { background: var(--maroon-700); transform: translateY(-2px); }

.form-reset {
  padding: 16px 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.form-reset:hover { background: var(--gray-100); border-color: var(--maroon-700); color: var(--maroon-900); }

.form-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.form-alert-success { background: #eafaf1; color: #1e7e45; border: 1px solid #b7e4c7; }
.form-alert-error { background: #fdecea; color: #a93226; border: 1px solid #f5b7b1; }

/* Footer */
.site-footer { background: var(--maroon-900); color: rgba(255,255,255,0.6); padding: 30px 0; font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--gold-400); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { margin: 0 auto 30px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .officer-grid { grid-template-columns: 1fr 1fr; }
  .contact-band { grid-template-columns: 1fr; padding: 36px; }
  .nav-menu { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px; gap: 6px; border-bottom: 3px solid var(--gold-400); transform: translateY(-140%); transition: transform 0.2s ease; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: block; }

  .has-dropdown { flex-wrap: wrap; border-radius: 12px; }
  .has-dropdown:hover { background: none; }
  .dropdown-toggle { padding: 12px; margin-left: auto; }
  .dropdown {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
    background: var(--gray-100);
    margin-top: 4px;
    transform: none;
  }
  .has-dropdown.dropdown-open .dropdown { display: block; }
}
@media (max-width: 620px) {
  .feature-grid, .events-grid, .officer-grid, .check-list, .form-row, .form-row-3col { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-figure .blob { width: 300px; height: 300px; }
  .hero-figure .card { width: 240px; padding: 28px; }
  .contact-form { padding: 26px; }
}
/* Popup */
#popupOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 28, 0.72);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#popupOverlay.open { display: flex; }
#popupBox {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: popupIn 0.25s ease;
}
#popupBox img { display: block; width: 100%; height: auto; }
.closeBtn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.closeBtn:hover { background: var(--maroon-900); }
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Business Links accordion */
.biz-accordion { max-width: 760px; margin: 0 auto; }
.biz-item { border-bottom: 1px solid var(--gray-100); }
.biz-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  padding: 18px 4px;
  cursor: pointer;
  text-align: left;
}
.biz-plus {
  flex-shrink: 0;
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--maroon-900);
  transition: background 0.15s ease;
}
.biz-plus i,
.biz-plus i::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.biz-plus i { width: 14px; height: 2px; }
.biz-plus i::before { width: 2px; height: 14px; transition: transform 0.15s ease; }
.biz-item.open .biz-plus { background: var(--maroon-700); }
.biz-item.open .biz-plus i::before { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.biz-label { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--maroon-900); }
.biz-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.biz-item.open .biz-panel { max-height: 300px; }
.biz-panel-inner { padding: 0 4px 22px 50px; }
.biz-panel-empty { color: var(--gray-600); font-size: 0.9rem; margin: 0; }

/* Photo album grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-grid a { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.photo-grid img { display: block; width: 100%; height: 220px; object-fit: cover; transition: transform 0.2s ease; }
.photo-grid a:hover img { transform: scale(1.05); }
@media (max-width: 620px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .photo-grid img { height: 150px; }
}

/* Photo album lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 6, 9, 0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; color: var(--white);
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav:disabled { opacity: 0.3; cursor: default; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 700;
}
@media (max-width: 620px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
