:root {
  --red: #E11D48;
  --dark-red: #BE123C;
  --black: #0F172A;
  --gray: #475569;
  --offwhite: #FEF2F2;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: var(--black);
  background: white;
  overflow-x: hidden;
}

.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  z-index: 1000;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #000;
}

.mobile-menu {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  background: white;
  width: 280px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(-30px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--black);
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:hover {
  background: var(--offwhite);
  color: var(--red);
  padding-left: 2.5rem;
}

/* ============================================= */
/* HERO SECTIONS – BOTH PAGES NOW 100% IDENTICAL */
/* ============================================= */

.hero,
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)),
              url('/images/Ithacademic_hero.jpg') center/cover no-repeat;
}

#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

/* Unified hero text styling – applies to BOTH homepage and donate page */
.hero h1,
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
}

.hero p,
.hero-content p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.95;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Buttons in hero */
.hero .btn,
.hero-content .btn {
  background: var(--red);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.35);
  transition: all 0.3s;
  display: inline-block;
}

.hero .btn:hover,
.hero-content .btn:hover {
  background: var(--dark-red);
  transform: translateY(-5px);
}

/* ============================================= */
/* REST OF THE SITE */
/* ============================================= */

section {
  padding: 5rem 0;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 3.8rem);
  text-align: center;
  color: var(--red);
  margin-bottom: 3rem;
  font-weight: 800;
}

.grid,
.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.card,
.success-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover,
.success-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(225, 29, 72, 0.18);
}

.success-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.success-info {
  padding: 1.5rem;
}

.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.text-gray-600 { color: #6b7280; }

.section-light {
  background: #FEF2F2;
  padding: 5rem 0;
}

.banking-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  max-width: 1000px;
  margin: 0 auto;
}

.banking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  text-align: center;
  margin: 2.5rem 0;
  font-size: 1.2rem;
}

@media (min-width: 640px) {
  .banking-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.banking-grid div:nth-child(odd) {
  font-weight: 600;
  color: var(--black);
}

.banking-grid div:nth-child(even) {
  font-weight: 800;
  color: var(--red);
  font-size: 1.5rem;
}

.copy-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.npo-note {
  text-align: center;
  margin-top: 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--red);
}

.npo-note i {
  margin-right: 0.5rem;
}

.btn {
  background: var(--red);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.35);
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--dark-red);
  transform: translateY(-5px);
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
}

.copy-btn {
  background: var(--red);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.3);
}

.copy-btn.secondary {
  background: var(--black);
}

.section-contact-cta h2 {
  font-size: clamp(2.8rem, 7vw, 4rem);
  margin-bottom: 1.5rem;
}

.lead-text {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #374151;
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal-content {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(225, 29, 72, 0.3);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--black);
}

.modal-title {
  color: var(--red);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 1rem;
  margin: 0.8rem 0;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: inherit;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--red);
}

.status-msg {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  margin: 2rem 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

footer {
  background: linear-gradient(135deg, var(--red), #000);
  color: white;
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.footer-copy {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.social-links {
  margin-bottom: 1rem;
}

.social-links a {
  color: white;
  font-size: 2.2rem;
  margin: 0 1rem;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: translateY(-6px) scale(1.2);
}

.footer-heart {
  color: #ef4444;
}

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 480px) {
  .hero,
  .hero-video {
    min-height: 580px;
  }
  .hero h1,
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* Thank You Page – Perfect & Consistent */
.thank-you-main,
.thank-you-secondary {
  max-width: 960px;
  margin: 0 auto 2.5rem;
}

.thank-you-secondary {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
}

.thank-you-share {
  max-width: 800px;
  margin: 3rem auto 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.heartbeat {
  font-size: 5.5rem;
  margin: 2.5rem 0;
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.btn-outline {
  background: transparent !important;
  border: 2px solid white !important;
}

.btn-outline:hover {
  background: white !important;
  color: var(--red) !important;
}

/* Thank You Pop-up */
.thankyou-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.6s ease-out;
}

.thankyou-content {
  background: white;
  color: #1f2937;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  max-width: 550px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.7s ease-out;
}

.thankyou-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  color: #10b981;
}

.thankyou-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin: 1rem 0;
  color: #1e40af;
}

.highlight {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e40af;
  background: #dbeafe;
  padding: 1rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.close-thankyou {
  background: #1e40af;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.close-thankyou:hover {
  background: #1e3a8a;
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}