/* ===== CSS Variables & Reset ===== */
:root {
  --navy: #2b2d2f;
  --navy-light: #3a3c3f;
  --navy-mid: #323436;
  --gold: #C9A84C;
  --gold-light: #E8C87A;
  --gold-dark: #A8872E;
  --gold-glow: rgba(201, 168, 76, 0.25);
  --accent-color: #C9A84C;
  --accent-color-light: #E8C87A;
  --accent-glow: rgba(201, 168, 76, 0.25);
  --cream: #f5f0e8;
  --white: #ffffff;
  --off-white: #fafaf8;
  --text: #1a1a1a;
  --text-light: #5a5a5a;
  --text-muted: #8a8a8a;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.15);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.2); /* Kept original for consistency where not explicitly changed */
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  color: var(--text);
  background: var(--navy);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Utility ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: var(--cream);
}

.section--navy h2,
.section--navy h3 {
  color: var(--gold); /* Kept original */
}

.section--dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--cream);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold); /* Kept original */
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.15rem;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section--navy .section-subtitle {
  color: rgba(245, 240, 232, 0.65);
}

.gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color));
  margin: 20px auto 28px;
  border: none;
  border-radius: 2px;
}

/* ===== Scroll Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger > .fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in-stagger > .fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in-stagger > .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #000000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold), #E8C87A, var(--gold), transparent) 1;
  transition: all var(--transition);
  box-shadow: 0 4px 32px rgba(201, 168, 76, 0.15);
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  transition: all var(--transition);
  font-family: 'Source Sans 3', sans-serif;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(232,200,122,0.06));
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-links a.active {
  color: var(--gold);
}

/* Donate CTA link in nav */
.nav-donate {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  border-radius: 6px;
  padding: 8px 18px !important;
  font-weight: 700 !important;
}

.nav-donate:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--navy) !important;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Separator dots between links */
.nav-links li:not(:last-child)::after {
  content: '◆';
  font-size: 0.35rem;
  color: rgba(201, 168, 76, 0.35);
  margin-left: 2px;
  vertical-align: middle;
  pointer-events: none;
}

/* Hamburger */
.hamburger {
  position: absolute;
  right: 32px;
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  display: block;
  border-radius: 1px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 120px 32px 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero-logo {
  width: 160px;
  margin-bottom: 32px;
  filter: invert(1);
  mix-blend-mode: screen;
  animation: fadeUp 1s ease both;
}

.hero h1 {
  font-size: 3.4rem;
  color: var(--white);
  margin-bottom: 12px;
  animation: fadeUp 1s ease 0.15s both;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  margin-bottom: 28px;
  animation: fadeUp 1s ease 0.3s both;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeUp 1s ease 0.45s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s ease 0.6s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: 'Source Sans 3', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  color: var(--navy);
  border-color: var(--accent-color);
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--accent-glow);
  color: var(--navy);
  filter: brightness(1.08);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(201, 168, 76, 0.5);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.btn--navy {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--navy:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 40px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(0, 255, 255, 0.05);
  border-color: rgba(0, 255, 255, 0.25);
  transform: translateY(-4px);
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-top: 12px;
  font-weight: 600;
}

.section--navy .stat-label {
  color: rgba(245, 240, 232, 0.5);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--navy-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

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

.card-body {
  padding: 28px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card-body p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 3rem;
}

/* ===== Pillars / Values ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar {
  text-align: center;
  padding: 48px 28px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--navy-light);
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar:hover {
  border-color: rgba(0, 255, 255, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-glow);
  margin-left: auto;
  margin-right: auto;
}

.pillar h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.pillar p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Leadership ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.leader-card {
  text-align: center;
  padding: 44px 28px;
  background: var(--navy-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

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

.leader-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}

.leader-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.leader-card .role {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.leader-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ===== Events ===== */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-item {
  display: flex;
  gap: 0;
  background: var(--navy-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.event-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}

.event-date {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  padding: 28px;
  min-width: 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-color);
  font-weight: 700;
}

.event-date .day {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin: 4px 0;
}

.event-date .year {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.event-details {
  padding: 28px 32px;
  flex: 1;
}

.event-details h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.event-meta {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.event-meta span::before {
  margin-right: 6px;
}

.event-details p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

/* Past events gallery */
.past-event-card .card-image {
  height: 180px;
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.past-event-card .card-body {
  padding: 24px;
}

.past-event-card .event-tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ===== Testimonials - BOLD & LOUD ===== */
.testimonial-section {
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, var(--gold-glow) 0%, transparent 60%);
  pointer-events: none;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  position: relative;
  transition: all var(--transition);
  border: 1px solid rgba(201, 168, 76, 0.12);
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-light), var(--accent-color));
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.18), 0 0 0 1px rgba(201, 168, 76, 0.15);
}

.testimonial-card .quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.35;
  position: absolute;
  top: 20px;
  right: 28px;
  pointer-events: none;
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.85;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-author .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}

.testimonial-author .name {
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}

.testimonial-author .title {
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Featured / highlight testimonial */
.testimonial-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 56px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.testimonial-card--featured::before {
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

.testimonial-card--featured .quote-mark {
  font-size: 8rem;
  opacity: 0.12;
  top: 24px;
  right: 40px;
  -webkit-text-fill-color: var(--gold);
  background: none;
}

.testimonial-card--featured blockquote {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  line-height: 1.9;
}

.testimonial-card--featured .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.testimonial-card--featured .testimonial-author .name {
  color: var(--white);
}

.testimonial-card--featured .testimonial-author .title {
  color: var(--accent-color);
}

.testimonial-card--featured:hover {
  box-shadow: 0 24px 64px rgba(10, 22, 40, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.2);
}

/* Testimonial page hero quote */
.testimonial-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-hero blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testimonial-hero .author-name {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Forms ===== */
.form-section {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.form-group label {
  color: rgba(255,255,255,0.85);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(201, 168, 76, 0.25);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  transition: all var(--transition);
  background: var(--navy-light);
  color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-message {
  padding: 14px 20px;
  border-radius: 10px;
  margin-top: 20px;
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-message.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Membership ===== */
.membership-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 6px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(201,168,76,0.2);
}

.tab-btn {
  padding: 12px 28px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition);
  font-family: 'Source Sans 3', sans-serif;
}

.tab-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.tab-btn.active {
  background: var(--navy);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard */
.dashboard {
  max-width: 700px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 36px;
}

.dashboard-header h3 {
  font-size: 1.8rem;
}

.dashboard-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), var(--accent-color-light));
}

.dashboard-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.dashboard-card p {
  color: rgba(255,255,255,0.65);
}

.dashboard-card .status-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-light));
  color: var(--navy);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logout-btn {
  background: none;
  border: 2px solid rgba(200, 40, 40, 0.3);
  color: #c62828;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition);
  font-family: 'Source Sans 3', sans-serif;
}

.logout-btn:hover {
  background: #c62828;
  border-color: #c62828;
  color: var(--white);
}

/* ===== Footer ===== */
.footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 28px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-logo {
  height: 36px;
  filter: invert(1);
  mix-blend-mode: screen;
  margin-bottom: 16px;
  opacity: 0.9;
}

/* ===== Page Headers (inner pages) ===== */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 140px 32px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 80%, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.page-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 80px 32px;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* ===== RSVP List ===== */
.rsvp-list {
  margin-top: 16px;
}

.rsvp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--off-white);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.rsvp-item .event-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.rsvp-item .rsvp-status {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-card--featured {
    grid-template-columns: 1fr;
    padding: 40px 36px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 14px 20px;
    display: block;
    border-radius: 8px;
  }

  .hero {
    padding: 100px 20px 80px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .tagline {
    font-size: 1.05rem;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .event-item {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    gap: 10px;
    min-width: auto;
    padding: 14px 24px;
  }

  .event-details {
    padding: 0 24px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-header {
    padding: 110px 20px 52px;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .hero-logo {
    width: 120px;
  }

  .testimonial-hero blockquote {
    font-size: 1.4rem;
  }

  .testimonial-card {
    padding: 32px 28px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .membership-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-number {
    font-size: 2.6rem;
  }
}

/* Additional styling for Testimonial Polish Modal */
.polish-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeInOverlay 0.3s forwards;
}

.polish-modal {
  background: var(--off-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  width: 90%;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInModal 0.3s 0.1s forwards;
  position: relative;
}

.polish-modal-overlay.closing {
  animation: fadeOutOverlay 0.3s forwards;
}

.polish-modal-overlay.closing .polish-modal {
  animation: slideOutModal 0.3s forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutOverlay {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideInModal {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutModal {
  from { transform: translateY(0); opacity: 0; } /* Changed to opacity 0 here */
  to { transform: translateY(20px); opacity: 0; }
}

.polish-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.polish-modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.polish-modal-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.polish-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.polish-compare-col {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.polish-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.polish-label--gold {
  color: var(--gold-dark);
}

.polish-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  max-height: 150px;
  overflow-y: auto;
  padding-right: 5px; /* For scrollbar */
}

.polish-text--original {
  color: var(--text-muted);
}

.polish-edit-section {
  margin-bottom: 30px;
}

.polish-edit-textarea {
  width: 100%;
  min-height: 180px;
  padding: 15px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: all var(--transition);
  resize: vertical;
}

.polish-edit-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.polish-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.polish-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 768px) {
  .polish-compare {
    grid-template-columns: 1fr;
  }
}

/* ===== Hero Logo Pulse ===== */
.hero-logo--pulse {
  width: 40vw;
  max-width: 480px;
  min-width: 200px;
  animation: fadeUp 1s ease both, logoPulse 3s ease-in-out 1s infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1);    filter: invert(1) drop-shadow(0 0 0px rgba(255,255,255,0)); }
  50%       { transform: scale(1.06); filter: invert(1) drop-shadow(0 0 40px rgba(201,168,76,0.5)); }
}

/* ===== Group Photo (Home Page) ===== */
.group-photo-frame {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(201, 168, 76, 0.25);
  min-height: 360px;
  background: var(--navy);
  position: relative;
}

.group-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 360px;
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.5);
}

.group-photo-placeholder p {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.group-photo-placeholder span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

.group-photo-placeholder strong {
  color: var(--gold);
}

/* ===== Gallery Page ===== */
.gallery-upload-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-grid-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.gallery-grid-empty p {
  font-size: 1.1rem;
  margin-top: 12px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(10, 22, 40, 0.45);
}

.gallery-delete-btn {
  background: rgba(200, 40, 40, 0.9);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-delete-btn {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover { opacity: 1; }

@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
  .hero-logo--pulse { width: 160px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}

/* ===== Founder Spotlight (About Page) ===== */
.founder-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
  padding: 40px;
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,76,0.2);
}

.founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
  flex-shrink: 0; /* Prevent shrinking on smaller screens */
}

.founder-text {
  max-width: 600px;
  text-align: center;
}

.founder-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
}

.founder-text p:last-child {
  margin-bottom: 0;
}

.founder-text strong {
  color: var(--navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .founder-spotlight {
    flex-direction: row;
    text-align: left;
  }

  .founder-text {
    text-align: left;
  }

  .founder-text strong {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .founder-photo {
    width: 150px;
    height: 150px;
  }
}