/* =========================================================
   CHAPTERS 4 CHANGE - STYLE SHEET
   Theme: Modern Pastel Glass (Lavender, Mint, Sky Blue)
   Author: Praveen Rathee
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #eaf6ff, #f9efff, #e6fff9);
  color: #2b2b2b;
  overflow-x: hidden;
  position: relative;
}

/* ---------- REUSABLE CLASSES ---------- */
.section {
  width: 100%;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #5c6bc0, #26c6da, #a5d6a7);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-text {
  text-align: center;
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

/* ---------- GLASS EFFECT ---------- */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* ---------- NAVIGATION BAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 3rem;
  transition: background 0.4s ease;
}

.navbar.glass-nav {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

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

.nav-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-title {
  font-weight: 600;
  color: #2f2f6c;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #64b5f6, #ba68c8);
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #4a148c;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  transform: scale(1.1);
  transition: transform 0.5s ease-out;
}

.hero-overlay {
  z-index: 5;
  text-align: center;
  padding: 2rem 3rem;
  border-radius: 25px;
  color: #fff;
  animation: fadeSlide 2s ease;
}

.hero-icon {
  width: 100px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.gradient-text {
  background: linear-gradient(90deg, #7e57c2, #4fc3f7, #80cbc4);
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientMove 6s ease-in-out infinite alternate;
  background-size: 300% 300%;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  color: #e0f7fa;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-indicator span {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin: 4px 0;
  opacity: 0.6;
  animation: scrollPulse 1.5s infinite ease-in-out;
}

.scroll-indicator span:nth-child(2) { animation-delay: 0.3s; }
.scroll-indicator span:nth-child(3) { animation-delay: 0.6s; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

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

.info-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
}

.info-card i {
  font-size: 2.5rem;
  color: #5c6bc0;
  margin-bottom: 1rem;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(93, 80, 230, 0.15);
}

/* ---------- IMPACT SECTION ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.impact-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.impact-card i {
  font-size: 2.3rem;
  color: #5c6bc0;
  margin-bottom: 1rem;
}

.impact-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.counter {
  font-size: 2rem;
  font-weight: 700;
  color: #4a148c;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ---------- PARTNERS SECTION ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.partner-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.partner-card img {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.partner-card:hover img {
  transform: scale(1.08);
}

.partner-card h3 {
  font-weight: 600;
  color: #3f51b5;
  margin-bottom: 0.6rem;
}

.partner-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* ---------- FUNDRAISER SECTION ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tier-card {
  padding: 2rem;
  text-align: center;
  border-radius: 20px;
  transition: all 0.4s ease;
}

.tier-card h3 {
  font-size: 1.4rem;
  color: #4527a0;
  margin-bottom: 0.5rem;
}

.tier-card p {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1976d2;
}

.tier-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tier-card ul li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.cta-banner {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2.5rem 1.5rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-banner img {
  width: 90px;
  margin-bottom: 0.5rem;
}

.cta-banner h3 {
  font-size: 1.4rem;
  color: #2b2b2b;
}

/* ---------- GALLERY SECTION ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(to top, rgba(63, 81, 181, 0.8), transparent);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.gallery-item p {
  font-size: 0.95rem;
  line-height: 1.4;
}


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

.contact-card {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact-card i {
  font-size: 2.2rem;
  color: #3949ab;
  margin-bottom: 1rem;
}

.contact-card a {
  color: #4527a0;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ---------- FOOTER ---------- */
.footer-section {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-logo {
  width: 70px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
}

.footer-content a {
  color: #3949ab;
  text-decoration: none;
  transition: 0.3s;
}

.footer-content a:hover {
  color: #6a1b9a;
}

/* ---------- FLOATING DONATE BUTTON ---------- */
.float-donate {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(90deg, #9575cd, #4fc3f7);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.4rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(63, 81, 181, 0.25);
  opacity: 0;
  transform: translateY(30px);
  z-index: 100;
}

.float-donate i {
  font-size: 1.1rem;
}

.float-donate:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(63, 81, 181, 0.4);
}

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #7e57c2, #4fc3f7);
  width: 0%;
  z-index: 9999;
  transition: width 0.2s ease;
}
/* ---------- BUTTONS ---------- */
.primary-btn,
.secondary-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.4px;
}

.primary-btn {
  background: linear-gradient(90deg, #ba68c8, #4fc3f7, #80cbc4);
  color: #fff;
  box-shadow: 0 8px 20px rgba(63, 81, 181, 0.25);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(63, 81, 181, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.5);
  color: #3f51b5;
  border: 1px solid rgba(63, 81, 181, 0.3);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ---------- RIPPLE EFFECT ---------- */
.primary-btn span.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.5);
}

@keyframes ripple {
  to {
    transform: scale(15);
    opacity: 0;
  }
}

/* ---------- GRADIENT ANIMATION BACKGROUND ---------- */
.gradient-bg {
  background: linear-gradient(120deg, #f3e5f5, #e0f7fa, #f1f8e9);
  background-size: 400% 400%;
  animation: gradientFlow 12s ease infinite alternate;
}

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

/* ---------- POPUP + THANK YOU CARD ---------- */
#thankYouCard.visible {
  display: block;
  animation: fadeSlide 1.2s ease forwards;
}

.hidden {
  display: none;
}

/* ---------- CONFETTI SIMULATION LAYER ---------- */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2000;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(45deg, #ba68c8, #4fc3f7);
  opacity: 0.8;
  border-radius: 2px;
  animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---------- ANIMATION EFFECTS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

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

.fade-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease-out;
}

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

/* ---------- INTRO SCREEN ---------- */
.intro-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #ede7f6, #e1f5fe, #f1f8e9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 1s ease;
}

.intro-content {
  text-align: center;
  animation: fadeSlide 1.5s ease;
}

.intro-logo {
  width: 100px;
  margin-bottom: 1rem;
}

.intro-title {
  font-size: 1.4rem;
  color: #4a148c;
  background: linear-gradient(90deg, #4fc3f7, #ba68c8);
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* ---------- PARALLAX BACKGROUND ---------- */
.section.light-section {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .tier-grid,
  .info-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .popup-content {
    padding: 2rem 1.2rem;
  }

  .footer-content p {
    font-size: 0.85rem;
  }
}

/* ---------- SCROLLBAR STYLING ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ba68c8, #4fc3f7);
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(240, 240, 240, 0.6);
}
/* =========================================================
   FUNDRAISING PAGE | CHAPTERS 4 CHANGE
   ========================================================= */

/* ====== HERO SECTION ====== */
.fund-hero {
  position: relative;
  height: 90vh;
  background: url("images/prospectparkgraphic.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.fund-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.fund-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}
.fund-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #b39ddb, #4dd0e1, #a5d6a7);
  -webkit-background-clip: text;
  color: transparent;
}
.fund-hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #f5f5f5;
}

/* ====== NARRATIVE SECTION ====== */
.narrative-section {
  background: linear-gradient(120deg, #f3e5f5, #e1f5fe, #f1f8e9);
  padding: 5rem 2rem;
}
.narrative-section h2 {
  color: #4527a0;
  text-align: center;
  margin-bottom: 2rem;
}
.narrative-section p {
  max-width: 900px;
  margin: 1rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}
.narrative-section blockquote {
  background: rgba(124, 77, 255, 0.08);
  border-left: 5px solid #7e57c2;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  font-style: italic;
  color: #5e35b1;
  max-width: 800px;
}

/* ====== EVENT DETAILS ====== */
.event-details {
  background: #fafafa;
  padding: 5rem 2rem;
  text-align: left;
}
.event-details ul {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 800px;
}
.event-details li {
  margin: 0.5rem 0;
  font-size: 1.05rem;
  color: #333;
}

/* ====== CAMPUS DRIVE CARDS ====== */
.drives-section {
  background: linear-gradient(160deg, #f3e5f5, #f1f8e9);
  padding: 5rem 2rem;
}
.fundraising-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.fundraising-card {
  position: relative;
  width: 340px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fundraising-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.fundraising-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}
.card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.card-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.fund-btn {
  display: inline-block;
  background: linear-gradient(135deg, #9575cd, #4dd0e1);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.fund-btn:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #7e57c2, #26c6da);
}

/* ====== IMPACT NUMBERS ====== */
.impact-numbers {
  background: linear-gradient(180deg, #e8eaf6, #f3e5f5);
  padding: 5rem 2rem;
  text-align: center;
}
.impact-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}
.impact-card {
  width: 200px;
  padding: 2rem;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}
.impact-card h3 {
  font-size: 2rem;
  color: #512da8;
}
.impact-card p {
  font-size: 1rem;
  color: #333;
}

/* ====== SUBSCRIPTION TIERS ====== */
.subs-section {
  background: linear-gradient(120deg, #f1f8e9, #f3e5f5);
  padding: 5rem 2rem;
  text-align: center;
}
.sub-tiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.tier {
  width: 300px;
  padding: 1.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tier:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.tier h3 {
  font-size: 1.4rem;
  background: linear-gradient(90deg, #7e57c2, #26c6da);
  -webkit-background-clip: text;
  color: transparent;
}
.tier p {
  font-size: 1.05rem;
  color: #333;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: #333;
}
.tier ul li {
  margin: 0.3rem 0;
}

/* ====== REGISTER POPUP ====== */
.popup-backdrop {
  display: none; /* FIX: must come first so it’s truly hidden initially */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55); /* unified color format */
  justify-content: center; /* FIX: center content horizontally */
  align-items: center; /* FIX: center vertically */
  z-index: 4000; /* FIX: raise above all hero overlays and navbar */
  opacity: 0; /* FIX: ensures transition can fade in */
  transition: opacity 0.3s ease; /* smoother fade */
}

.popup-backdrop[style*="display: flex"] {
  opacity: 1 !important; /* FIX: makes visible when JS sets display:flex */
}

.popup-card {
  width: 90%;
  max-width: 520px;
  padding: 2rem;
  border-radius: 20px; /* FIX: matches global rounded design */
  background: rgba(255,255,255,0.97); /* FIX: brighter for glass effect */
  box-shadow: 0 10px 40px rgba(0,0,0,0.25); /* deeper shadow */
  position: relative;
  text-align: center;
}

.popup-card h2 {
  color: #512da8;
  margin-bottom: 1rem;
}

.popup-card input,
.popup-card textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.register-thankyou {
  text-align: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.register-thankyou.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ====== JOIN SECTION ====== */
.join-section {
  background: #fafafa;
  padding: 4rem 2rem;
  text-align: center;
}
.join-section h2 {
  color: #512da8;
}
.join-section p {
  max-width: 700px;
  margin: 1rem auto;
  color: #444;
}
.join-section .small-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .fund-hero-content h1 {
    font-size: 2.2rem;
  }
  .fund-hero-content p {
    font-size: 1rem;
  }
  .fundraising-card,
  .tier {
    width: 90%;
  }
}

/* ---------- FOOTER FADE-IN ANIMATION (variant) ---------- */
.footer-section.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

/* ---------- HOVER ELEVATION ANIMATION ---------- */
.glass:hover {
  box-shadow: 0 10px 35px rgba(80, 80, 255, 0.1);
}

/* ---------- PARALLAX SCROLL EFFECT (SECTION BG) ---------- */
.section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ---------- COLOR UTILITIES ---------- */
.text-purple { color: #7e57c2; }
.text-blue { color: #4fc3f7; }
.text-mint { color: #80cbc4; }

/* ---------- Z-INDEX LAYERS (UPDATED) ---------- */
.hero-bg { z-index: 1; }
.hero-overlay { z-index: 2; }
.navbar { z-index: 1000; } /* slightly higher for dropdowns/navigation */
.confetti { z-index: 200; }

/* unified popup layer */
.popup-backdrop {
  z-index: 4000; /* ensures it sits above all sections and nav */
}

/* make sure popup-card content is above the dark backdrop */
.popup-card {
  z-index: 4010;
  position: relative;
}

/* =========================================================
   BLUE CIRCULAR DONATION METER (SAFE VERSION)
   ========================================================= */
.donation-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  position: relative;
  isolation: isolate;
}
/* =========================================================
   MULTI-METRIC PROGRESS RINGS (FUNDS / BOOKS / REACH)
   ========================================================= */

.multi-metric-section .donation-flex {
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.donation-circle {
  position: relative;
  width: 160px;
  height: 160px;
  text-align: center;
}

.progress-ring {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 12;
}

.progress-ring-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1.5s ease-out;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15));
}

.donation-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1.8rem;
  color: #1976d2;
  text-shadow: 0 0 6px rgba(25, 118, 210, 0.3);
}

.donation-label {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

/* Colored Glow Variants */
#fundPercent { color: #2196f3; text-shadow: 0 0 8px rgba(33,150,243,0.4); }
#bookPercent { color: #43a047; text-shadow: 0 0 8px rgba(67,160,71,0.4); }
#reachPercent { color: #8e24aa; text-shadow: 0 0 8px rgba(142,36,170,0.4); }

@media (max-width: 768px) {
  .multi-metric-section .donation-flex {
    flex-direction: column;
    gap: 2rem;
  }
}

.impact-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.impact-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  min-width: 220px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(100, 181, 246, 0.2);
}

.impact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.impact-card p {
  font-size: 1rem;
  color: #333;
}

.donation-circle {
  position: relative;
  width: 160px;
  height: 160px;
}

.progress-ring {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 12;
}

.progress-ring-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 339.292; /* 2πr */
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 1s ease-in-out;
  will-change: stroke-dashoffset;
}

.donation-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1.8rem;
  color: #2196f3;
  text-shadow: 0 0 6px rgba(33, 150, 243, 0.4);
}

.donation-info {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  text-align: center;
  line-height: 1.6;
}

.donation-stats {
  font-weight: 600;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .donation-flex {
    flex-direction: column;
    text-align: center;
  }
}
/* ---------- POPUP TIER NOTE ---------- */
.small-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #3949ab;
  text-align: center;
}
/* ---------- DONATION AMOUNT QUOTE ---------- */
.donation-quote {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: #5c6bc0;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
/* ---------- NYIT POPUP EVENT DETAILS (SCALED VERSION) ---------- */
.event-details-mini {
  margin: 1.2rem auto 1.5rem auto;
  padding: 0.9rem 1.3rem;
  max-width: 420px;
  text-align: left;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(100, 181, 246, 0.25);
  box-shadow: 0 4px 20px rgba(63, 81, 181, 0.1);
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  transform: scale(0.98);
}

.event-details-mini:hover {
  transform: scale(1);
  transition: transform 0.3s ease;
}

.event-details-mini h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #303f9f;
  font-weight: 600;
}

.event-details-mini p {
  font-size: 0.92rem;
  margin: 0.2rem 0;
  color: #424242;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.donation-quote {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: #5c6bc0;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: opacity 0.8s ease;
}

/* ---------- END OF STYLE ---------- */

/* ---------- END OF STYLE ---------- */
