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

:root {
  --afa-blue: #5469ad;
  --afa-blue-light: #8494e1;
  --afa-blue-dark: #142c5f;
  --afa-purple: #c59ccf;
  --afa-purple-deep: #8a65b5;
  --afa-gold: #d3b351;
  --afa-gold-dark: #43380b;
  --afa-cream: #f3f2fa;
  --afa-text: #1f2937;
  --afa-muted: #4b5563;
}

body {
  font-family: 'Merriweather', serif;
  background: #f3f2fa;
  color: #ddd793;
}

/* =========================
   REUSABLE ANIMATED BG
   Apply .page-bg to <body> on any page to get
   the floating-shapes animated purple gradient
   (same as the team page)
========================= */
body.page-bg {
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(-45deg, #f3f2fa, #eae6f5, #e8e4f8, #f0eef9);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
}

body.page-bg .section {
  background: linear-gradient(160deg, rgba(243,242,250,0.82) 0%, rgba(234,230,245,0.78) 45%, rgba(240,234,252,0.80) 100%);
}

body.page-bg .combined-shapes-wrapper .section {
  background: transparent;
}

body.page-bg .leadership-section,
body.page-bg .board-section {
  background: transparent;
  animation: none;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 200;
  background: rgba(14, 18, 40, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(132, 148, 225, 0.15);
  color: #fff;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2.25rem;
  transition: transform 0.3s ease-in-out, background 0.3s ease;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Every direct link/wrapper in the nav */
.nav-menu > a,
.nav-menu > .nav-item > a {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.nav-menu > a:hover,
.nav-menu > .nav-item > a:hover {
  background: rgba(132, 148, 225, 0.22);
  color: #ffffff;
}

.nav-menu > a.nav-link.active,
.nav-menu > .nav-item > a.active {
  background: rgba(197, 156, 207, 0.28);
  color: #ffffff;
}

/* Donate — subtle gold accent */
.nav-menu > a[href*="gofundme"],
.nav-menu > a[href*="donate"] {
  background: linear-gradient(135deg, rgba(211,179,81,0.22), rgba(138,101,181,0.18));
  border: 1px solid rgba(211,179,81,0.35);
  color: #f0d97a;
  padding: 0.42rem 1.1rem;
}

.nav-menu > a[href*="gofundme"]:hover,
.nav-menu > a[href*="donate"]:hover {
  background: linear-gradient(135deg, rgba(211,179,81,0.38), rgba(138,101,181,0.28));
  color: #ffe9a0;
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 18, 38, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(132, 148, 225, 0.2);
  border-radius: 12px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 0.5rem;
  z-index: 200;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
}

.dropdown a {
  padding: 0.55rem 0.9rem;
  color: rgba(255,255,255,0.88);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  transition: background 0.18s ease, color 0.18s ease;
}

.dropdown a:hover {
  background: rgba(132, 148, 225, 0.22);
  color: #ffffff;
}

.nav-item:hover .dropdown {
  display: flex;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo {
  width: 44px;
  height: 52px;
  object-fit: contain;
}

.club-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}

nav a {
  margin-left: 0;
  text-decoration: none;
  font-weight: 600;
  color: #534d0a;
}

nav a.active {
  color: #e0dec8;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #5469ad, #c59ccf);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.homelogo {
  width: 300px;
  height: auto;
  object-fit: contain;
  margin-top: 0;
}

.hero h1 {
  color: #211f00;
  margin-top: 30px;
  font-size: 3rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(255,255,255,0.25);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(30, 27, 0, 0.72);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #1f2933;
  animation: heroFadeUp 1s ease both;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.65;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2400;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: #2a2400;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

#stars-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Floating shapes canvas (full-page or per-section zones) */
.shapes-canvas-zone { pointer-events: none; display: block; }
body > .shapes-canvas-zone { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; }
.shapes-zone { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
/* Wrapper that holds two sections and a single shapes overlay */
.combined-shapes-wrapper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(-45deg, #f3f2fa, #eae6f5, #e8e4f8, #f0eef9);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
}
.combined-shapes-wrapper .section { position: relative; z-index: 1; }
.combined-shapes-wrapper .shapes-canvas-zone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.star {
  position: absolute;
  width: 4px; height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: shooting 3s linear forwards;
}

@keyframes shooting {
  0%  { opacity: 0; transform: translateX(0) translateY(0) scale(0.5); }
  10% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  90% { opacity: 1; transform: translateX(var(--x-dest)) translateY(var(--y-dest)) scale(0.5); }
  100%{ opacity: 0; }
}

/* =========================
   CONTENT SECTIONS
========================= */
.section {
  padding: 4rem 2rem;
  padding-top: 120px;
  margin: auto;
  background: linear-gradient(160deg, rgba(243,242,250,0.96) 0%, rgba(234,230,245,0.95) 45%, rgba(240,234,252,0.96) 100%);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Decorative top-edge gradient bleed */
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(132,148,225,0.5), rgba(197,156,207,0.45), transparent);
  pointer-events: none;
}

.section + .section {
  padding-top: 4rem;
}

.section + .section::before {
  display: none;
}

.section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: black;
  font-size: 1.7rem;
  font-weight: 550;
  font-family: 'Manrope', sans-serif;
}

.section h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 6px;
  background-color: #8494e1;
  margin: 0.3rem auto 0;
  border-radius: 3px;
}

.section-text {
  text-align: center;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  color: #000000;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  font-weight: 510;
  font-family: 'Manrope', sans-serif;
}

#about .front-image {
  width: 60%;
  max-width: 900px;
  min-width: 50px;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* =========================
   MISSION ICONS
========================= */
.mission-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 3rem auto 0;
}

.mission-item h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #1f2933;
  font-family: 'Manrope', sans-serif;
}

.mission-item p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

.icon-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: #8494e1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 8px 20px rgba(132, 148, 225, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-item:hover .icon-circle {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 14px 28px rgba(132, 148, 225, 0.45);
}

/* =========================
   CTA SECTION
========================= */
.cta-section {
  position: relative;
  z-index: 1;
  background: url('../assets/longimg.jpg') center 60% / cover no-repeat;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  padding: 5.5rem 2rem 6rem;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 44, 95, 0.88) 0%,
    rgba(84, 105, 173, 0.82) 45%,
    rgba(138, 101, 181, 0.78) 100%
  );
  z-index: 1;
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--afa-gold);
  margin-bottom: 0.75rem;
}

.cta-header h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.cta-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.cta-panel {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  color: var(--afa-text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.cta-panel-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.cta-panel--donate .cta-panel-icon {
  background: linear-gradient(135deg, var(--afa-gold-dark), var(--afa-gold));
}

.cta-panel--involve .cta-panel-icon {
  background: linear-gradient(135deg, var(--afa-blue), var(--afa-purple-deep));
}

.cta-panel h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--afa-blue-dark);
}

.cta-panel > p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--afa-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.cta-impact-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.cta-impact-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--afa-muted);
  margin-bottom: 0.45rem;
}

.cta-impact-list li i {
  color: var(--afa-blue-light);
  font-size: 0.75rem;
}

.cta-involve-link i {
  font-size: 1.1rem;
  color: var(--afa-purple-deep);
}

.cta-involve-link:hover {
  background: #eae6f5;
  border-color: var(--afa-blue-light);
  transform: translateY(-2px);
}

.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

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

.cta-btn--primary {
  background: linear-gradient(135deg, var(--afa-gold-dark), #5a4a12);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(67, 56, 11, 0.35);
}

.cta-btn--primary:hover {
  background: linear-gradient(135deg, #5a4a12, var(--afa-gold));
  color: var(--afa-blue-dark);
}

.cta-btn--secondary {
  background: linear-gradient(135deg, var(--afa-blue), var(--afa-purple-deep));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(84, 105, 173, 0.35);
}

.cta-btn--secondary:hover {
  filter: brightness(1.08);
}

@media (max-width: 768px) {
  .cta-panels { grid-template-columns: 1fr; }
  .cta-involve-grid { grid-template-columns: 1fr; }
  .cta-btn { align-self: stretch; }
}

/* =========================
   CARDS
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* =========================
   LEADERSHIP / TEAM PAGE
========================= */
.leadership-section {
  padding: 4rem 2rem 4.5rem;
  padding-top: 130px;
  background: linear-gradient(-45deg, #f3f2fa, #eae6f5, #e8e4f8, #f0eef9);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
  position: relative;
  z-index: 1;
}

.exec-section {
  padding-top: 4rem;
}

.leadership-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.leadership-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--afa-blue-light);
  margin-bottom: 0.5rem;
}

.leadership-header h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--afa-text);
  margin-bottom: 0.75rem;
}

.leadership-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--afa-blue-light), var(--afa-purple));
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

.leadership-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--afa-muted);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.15rem;
  max-width: 1200px;
  margin: 0 auto;
}

.leadership-grid--board {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the whole row and leftover items */
  gap: 1.15rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Target the individual child cards inside the container */
.leadership-grid--board > * {
  flex: 0 0 160px; /* Do not grow, do not shrink, stay exactly 160px */
}



.leader-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 1.1rem 0.85rem 1rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(84, 105, 173, 0.08);
  border: 1px solid rgba(132, 148, 225, 0.18);
  transition: opacity 0.5s ease, transform 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(18px);
}

.leader-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(84, 105, 173, 0.16);
  border-color: rgba(197, 156, 207, 0.45);
}

.leader-photo-ring {
  width: 150px;
  height: 150px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--afa-blue-light), var(--afa-purple), var(--afa-gold));
  background-size: 200% 200%;
  animation: ringShift 6s ease infinite;
}

@keyframes ringShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.leader-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  display: block;
}

.leader-photo--bottom {
  object-position: 50% 100%;
}

.leader-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--afa-purple-deep);
  margin-bottom: 0.25rem;
}

.leader-name {
  font-family: 'Merriweather', serif;
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--afa-text);
  line-height: 1.3;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.leader-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.77rem;
  color: var(--afa-muted);
  line-height: 1.4;
  min-height: 1.1em;
  margin-top: 0.99rem;
}

.exec-groups {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--afa-blue-light), var(--afa-purple), var(--afa-gold), transparent);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .leadership-grid--board {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 640px) {
  .leadership-grid,
  .leadership-grid--board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .leadership-grid,
  .leadership-grid--board {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .leader-photo-ring {
    width: 70px;
    height: 70px;
  }
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.leadership-section {
  padding: 0;
  min-height: 100vh;
  /* page-bg handles the gradient animation; this is a fallback */
  background: linear-gradient(-45deg, #f3f2fa, #eae6f5, #e8e4f8, #f0eef9);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
}

body.leadership-section .leadership-section,
body.leadership-section .board-section {
  background: transparent;
  animation: none;
}

/* When page-bg is also on the body, let it own the gradient */
body.page-bg.leadership-section {
  background: linear-gradient(-45deg, #f3f2fa, #eae6f5, #e8e4f8, #f0eef9);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
}

/* =========================
   UNIVERSAL PAGE TEMPLATE
========================= */
.template-hero,
.newsletter-hero {
  position: relative;
  z-index: 1;
  min-height: 42vh;
  padding: 9rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 25%, rgba(211,179,81,0.26), transparent 28%),
    linear-gradient(135deg, rgba(84,105,173,0.96), rgba(197,156,207,0.94));
  overflow: hidden;
}

.template-hero::after,
.newsletter-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}

.template-hero-inner,
.newsletter-hero-inner {
  max-width: 780px;
  color: #ffffff;
}

.template-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #f0d97a;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.template-hero h1,
.newsletter-hero h1 {
  color: #ffffff;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  text-shadow: 0 12px 34px rgba(20, 44, 95, 0.32);
}

.template-hero p,
.newsletter-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
  font-family: 'Inter', sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
}

.template-content,
.newsletter-archive {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 6rem;
  background: transparent;
  color: var(--afa-text);
}

.template-content-inner,
.newsletter-archive-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.template-content-inner {
  padding: 2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(132,148,225,0.18);
  box-shadow: 0 16px 42px rgba(84,105,173,0.12);
}

.template-content h2 {
  margin-bottom: 0.85rem;
  color: var(--afa-blue-dark);
}

.template-content p {
  color: var(--afa-muted);
  font-family: 'Inter', sans-serif;
  line-height: 1.75;
}

/* =========================
   NEWSLETTERS
========================= */
.newsletter-year {
  margin-bottom: 3.25rem;
  text-align: center;
}

.newsletter-year:last-child {
  margin-bottom: 0;
}

.newsletter-year h2 {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--afa-blue-dark);
  font-family: 'Merriweather', serif;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
}

.newsletter-year h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 0.45rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--afa-blue-light), var(--afa-purple));
}

.newsletter-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.newsletter-month {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(132,148,225,0.24);
  color: var(--afa-blue-dark);
  box-shadow: 0 10px 26px rgba(84,105,173,0.1);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.newsletter-month:hover {
  transform: translateY(-3px);
  border-color: rgba(197,156,207,0.72);
  color: var(--afa-purple-deep);
  box-shadow: 0 16px 34px rgba(84,105,173,0.18);
}

@media (max-width: 760px) {
  .newsletter-month-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 420px) {
  .template-hero,
  .newsletter-hero {
    padding: 8rem 1.25rem 4rem;
  }

  .template-content,
  .newsletter-archive {
    padding: 4rem 1.25rem 5rem;
  }

  .newsletter-month-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================
    EVENTS PAGE STYLES
===================== */

.events-content {
  padding: 4rem 2rem 6rem;
  background: transparent;
  position: relative;
  z-index: 1;
}

.events-content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.events-intro {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 2.5rem 2rem 2rem;
  background: rgba(255,255,255,0.84);
  border-radius: 18px;
  border: 1px solid rgba(132,148,225,0.18);
  box-shadow: 0 16px 42px rgba(84,105,173,0.10);
}

.events-intro h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  color: #142c5f;
  margin-bottom: 0.6rem;
}

.events-intro h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #8494e1, #c59ccf);
  margin: 0.5rem auto 0;
  border-radius: 3px;
}

.events-intro p {
  font-family: 'Inter', sans-serif;
  color: #4b5563;
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* =====================
    TIMELINE LAYOUT
===================== */

.events-timeline {
  position: relative;
  padding: 2rem 0 4rem;
}

/* The SVG path that runs behind all cards */
.events-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.events-path-base {
  fill: none;
  stroke: rgba(132,148,225,0.15);
  stroke-width: 4;
  stroke-linecap: round;
}

.events-path-progress {
  fill: none;
  stroke: url(#eventsPathGradient);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 0.05s linear;
  filter: drop-shadow(0 0 8px rgba(197,156,207,0.55));
}

/* =====================
    EVENT ITEMS
===================== */

.event-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 5.5rem;
  z-index: 1;
}

.event-item:last-child {
  margin-bottom: 2rem;
}

/* Left-side items: card on left, dot in center */
.event-item--left {
  flex-direction: row;
  justify-content: flex-start;
  padding-right: 54%;
}

/* Right-side items: dot in center, card on right */
.event-item--right {
  flex-direction: row-reverse;
  justify-content: flex-start;
  padding-left: 54%;
}

/* The dot on the path */
.event-dot {
  position: absolute;
  left: 50%;
  top: 1.85rem;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c59ccf, #8a65b5);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(197,156,207,0.35), 0 4px 12px rgba(138,101,181,0.4);
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover .event-dot {
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 5px rgba(197,156,207,0.4), 0 6px 18px rgba(138,101,181,0.5);
}

/* The connector line from dot to card */
.event-item--left .event-dot::after,
.event-item--right .event-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(197,156,207,0.6), rgba(132,148,225,0.3));
  transform: translateY(-50%);
}

.event-item--left .event-dot::after {
  right: 100%;
  width: 2.2rem;
  margin-right: 2px;
}

.event-item--right .event-dot::after {
  left: 100%;
  width: 2.2rem;
  margin-left: 2px;
  background: linear-gradient(90deg, rgba(132,148,225,0.3), rgba(197,156,207,0.6));
}

/* =====================
    EVENT CARD
===================== */

.event-card {
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 1.6rem 1.75rem 1.5rem;
  border: 1px solid rgba(132,148,225,0.2);
  box-shadow: 0 12px 36px rgba(84,105,173,0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent bar */
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c59ccf, #8a65b5, #5469ad);
  border-radius: 16px 16px 0 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.event-item:hover .event-card {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(84,105,173,0.17);
  border-color: rgba(197,156,207,0.45);
}

.event-item:hover .event-card::before {
  opacity: 1;
}

.event-date {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a65b5;
  margin-bottom: 0.5rem;
  background: rgba(138,101,181,0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(138,101,181,0.18);
}

.event-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #142c5f;
  margin: 0.4rem 0 0.6rem;
  line-height: 1.35;
}

.event-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.event-register {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #5469ad, #8a65b5);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(84,105,173,0.28);
}

.event-register:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(84,105,173,0.38);
}

/* =====================
    RESPONSIVE
===================== */

@media (max-width: 640px) {
  .event-item--left,
  .event-item--right {
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
  }

  .event-dot {
    left: 0;
  }

  .event-item--left .event-dot::after,
  .event-item--right .event-dot::after {
    display: none;
  }

  .events-path-svg {
    left: 0;
    width: 20px;
  }
}




.pdf-viewer {
  width: 100%;
  height: 700px;
  margin: 30px 0 60px;
  overflow: hidden;
  border-radius: 8px;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}







/* =========================
   SCROLL FADE-IN
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* =========================
   FALLING SHAPES CANVAS
========================= */
#shapes-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(
    145deg,
    rgba(15, 22, 55, 0.92) 0%,
    rgba(30, 38, 90, 0.88) 40%,
    rgba(50, 30, 80, 0.88) 100%
  );
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid rgba(132, 148, 225, 0.2);
  color: #e5e7eb;
  padding: 3.5rem 2rem 1.5rem;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Subtle top glow line */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,156,207,0.5), rgba(132,148,225,0.6), rgba(211,179,81,0.4), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
  min-width: 250px;
}

.footer-left .footer-logo { width: 60px; margin-bottom: 1rem; }
.footer-left h3 { margin-bottom: 0.6rem; font-size: 1.05rem; color: #c4cbf5; }
.footer-left p { margin: 0.3rem 0; font-size: 0.95rem; line-height: 1.5; color: rgba(229,231,235,0.75); }

.footer-center h3 { margin-bottom: 1rem; font-size: 1.05rem; color: #c4cbf5; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { text-decoration: none; color: rgba(229,231,235,0.82); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-links a:hover { color: #b8c4f8; }

.footer-right { display: flex; flex-direction: column; gap: 1rem; }
.footer-right h3 { font-size: 1.05rem; color: #c4cbf5; }

.social-buttons { display: flex; gap: 0.8rem; }

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-btn.link      { background-color: #8a65b5; }
.social-btn.instagram { background-color: #93445e; }
.social-btn.reddit    { background-color: #7373bc; }
.social-btn:hover { transform: translateY(-3px); filter: brightness(1.15); }

.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.newsletter-form input {
  flex: 1; min-width: 160px;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(132,148,225,0.3);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.45);
}

.newsletter-form button {
  padding: 0.55rem 1rem;
  border-radius: 6px; border: none;
  background-color: #4f46e5;
  color: white; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-form button:hover { background-color: #3730a3; transform: translateY(-2px); }

.footer-bottom { text-align: center; margin-top: 2.5rem; font-size: 0.85rem; color: rgba(203,213,225,0.65); border-top: 1px solid rgba(132,148,225,0.12); padding-top: 1.25rem; }

@media (max-width: 768px) {
  .footer-container { flex-direction: column; text-align: center; gap: 2.5rem; }
  .social-buttons { justify-content: center; }
  .newsletter-form { justify-content: center; }
}
