/* -------------------------------------------------
   Evelyn Dunlap Foundation • Complete CSS File
   -------------------------------------------------
   ▸  Key Enhancements:
      1.  Sophisticated keyframes with elegant motion paths
      2.  Unique animation profiles for each section element
      3.  Subtle parallax and depth effects
      4.  Refined timing functions using custom cubic-bezier curves
      5.  Delicate motion-blur effects for decorative elements
      6.  Precision-timed sequential animations 
      7.  Nuanced hover transitions
      8.  Enhanced 3D perspective transforms
   ------------------------------------------------- */

/* ---------- BASIC RESET & BOX-SIZING ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Base */
  --dark-bg: #0a0c15;
  --dark-surface: #111827;
  --dark-card: rgba(20, 24, 42, 0.7);
  --glass-card: rgba(26, 32, 56, 0.4);

  /* Brand */
  --royal-blue: #3454d1;
  --royal-blue-light: #4e6be6;
  --soft-pink: #e5a9bc;
  --soft-pink-light: #f6c7d5;

  /* Accent / utility */
  --gold: #d3ad69;
  --gold-light: #e0c79a;
  --accent: #f5f0f7;
  --separator: rgba(255, 255, 255, 0.08);

  /* Text colours */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-tertiary: #94a3b8;

  /* Shadows */
  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.2);
  --shadow-elegant: 0 10px 50px rgba(52, 84, 209, 0.15);
  --shadow-soft: 0 10px 30px rgba(229, 169, 188, 0.12);

  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(52, 84, 209, 0.4);
  --focus-ring-soft: 0 0 0 3px rgba(229, 169, 188, 0.4);

  /* Easing - upgraded with sophisticated curves */
  --ease-slow: 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  --ease-med: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-fast: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Additional timing functions for variety */
  --ease-gentle: 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: 1s cubic-bezier(0.33, 1, 0.68, 1);
  --ease-reveal: 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { 
  background: var(--dark-bg); 
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--royal-blue), var(--royal-blue-light));
  border-radius: 8px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover { 
  background: linear-gradient(to bottom, var(--royal-blue-light), var(--soft-pink)); 
}

/* ---------- GLOBAL ---------- */
html { 
  scroll-behavior: smooth; 
  height: 100%;
  font-size: 13px; /* Base font size for rem calculations */
}
body {
  background-color: var(--dark-bg);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(52, 84, 209, 0.05) 0%, transparent 70%),
    radial-gradient(circle at 75% 75%, rgba(229, 169, 188, 0.05) 0%, transparent 70%);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  font-size: 16px; /* Default font size for body text */
  font-weight: 300;
  overflow-x: hidden;
}

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.2rem); }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--royal-blue-light), var(--soft-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  transform: translateZ(0); /* Promotes to its own compositing layer */
  will-change: transform; /* Hint to the browser about upcoming changes */
  transition: background-position 1.4s cubic-bezier(0.33,1,0.68,1);
  background-size: 200% 100%;
  background-position: 0 0;
}

.text-gradient:hover {
  background-position: 100% 0;
}

/* Enhanced text selection */
::selection {
  background: rgba(52, 84, 209, 0.3);
  color: var(--text-primary);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* ---------- CONTAINERS ---------- */
.container { 
  width: 100%; 
  max-width: 1400px; 
  margin-inline: auto; 
  padding-inline: clamp(1rem, 5vw, 3rem); /* Responsive padding */
  position: relative;
}

main { /* Added main tag for semantic structure */
    display: block; /* Ensure it behaves as a block element */
}
.scholarship-page-section .form-control {
  background-color: rgba(40, 44, 65, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  padding: 12px 15px !important;
  margin-bottom: 15px !important;
  width: 100% !important;
  display: block !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9rem !important;
  border-radius: 4px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
/* Focus state */
.scholarship-page-section .form-control:focus {
  border-color: var(--royal-blue) !important;
  box-shadow: 0 0 0 3px rgba(52, 84, 209, 0.2) !important;
  outline: none !important;
}

/* Placeholder color */
.scholarship-page-section .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Section styles */
.scholarship-page-section .form-section {
  margin-bottom: 30px !important;
  padding-bottom: 30px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: block !important;
}

/* Form group styles */
.scholarship-page-section .form-group {
  margin-bottom: 20px !important;
  display: block !important;
  opacity: 1 !important;
}

/* Label styles */
.scholarship-page-section .form-label {
  display: block !important;
  margin-bottom: 8px !important;
  color: var(--text-secondary) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Form container */
.scholarship-page-section .form-container {
  background-color: rgba(20, 24, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  padding: 30px !important;
  margin-bottom: 50px !important;
  box-shadow: var(--shadow-lg) !important;
  display: block !important;
}

/* Text area specific */
.scholarship-page-section textarea.form-control {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Checkbox specific */
.scholarship-page-section input[type="checkbox"] {
  display: inline-block !important;
  width: auto !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
}

/* Form agreement container */
.scholarship-page-section .form-agreement {
  display: flex !important;
  align-items: flex-start !important;
  margin: 25px 0 !important;
}

.scholarship-page-section .form-agreement label {
  margin-top: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
}

/* Submit button */
.scholarship-page-section .form-submit {
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light)) !important;
  color: white !important;
  border: none !important;
  padding: 12px 30px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.scholarship-page-section .form-submit:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 20px rgba(52, 84, 209, 0.2) !important;
}

/* Submit container */
.scholarship-page-section .form-submit-container {
  text-align: center !important;
  margin-top: 30px !important;
}

/* Form row for multi-column layout */
.scholarship-page-section .form-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 15px !important;
  margin-bottom: 15px !important;
}

/* Form help text */
.scholarship-page-section .form-help {
  color: var(--text-tertiary) !important;
  font-size: 0.8rem !important;
  margin-top: 5px !important;
  display: block !important;
}

/* File inputs */
.scholarship-page-section input[type="file"].form-control {
  padding: 8px 12px !important;
}

/* Form section titles */
.scholarship-page-section .form-section-title {
  color: var(--soft-pink) !important;
  margin-bottom: 20px !important;
  font-size: 1.2rem !important;
  display: block !important;
}

/* Success message styling */
.scholarship-page-section #formStatusMessage {
  margin-top: 25px !important;
  padding: 15px !important;
  border-radius: 6px !important;
  text-align: center !important;
}

/* Success state */
.scholarship-page-section #formStatusMessage.success {
  background-color: rgba(76, 175, 80, 0.2) !important;
  color: #4CAF50 !important;
  border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

/* Error state */
.scholarship-page-section #formStatusMessage.error {
  background-color: rgba(244, 67, 54, 0.2) !important;
  color: #f44336 !important;
  border: 1px solid rgba(244, 67, 54, 0.3) !important;
}

/* Custom styling for date inputs */
.scholarship-page-section input[type="date"].form-control {
  padding-right: 10px !important;
}

/* Animation fix */
.scholarship-page-section .form-group,
.scholarship-page-section .form-control,
.scholarship-page-section .form-label {
  animation: none !important;
  opacity: 1 !important;
}
.section {
  padding: clamp(3rem, 6vh, 5rem) 0; /* Reduced vertical padding */
  position: relative; 
  overflow: hidden; /* Contains child elements and decorative blobs */
  z-index: 1;
}

.section-title-container {
  margin-bottom: clamp(2rem, 5vh, 3rem); /* Reduced margin */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 0.5rem;
  z-index: 1;
}
.form-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 21, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease-med);
    overflow-y: auto;
    padding: 2rem;
}

.form-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-popup {
    background-color: var(--dark-card);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all var(--ease-med);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-xl);
}

.form-popup-overlay.active .form-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--ease-fast);
}

.popup-close:hover {
    background-color: var(--royal-blue);
    color: white;
    transform: rotate(90deg);
}

.popup-close:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.apply-button-container {
    text-align: center;
    margin-top: 2.5rem;
    animation: fadeUp 0.7s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--soft-pink);
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  max-width: 700px;
  text-align: center;
  margin: 0 auto 1.5rem; /* Reduced bottom margin */
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.section-title-decoration {
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--soft-pink), transparent);
  margin: 1rem auto;
}

/* ---------- DECORATIVE BLOBS (PARALLAX) ---------- */
.decorative-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1; /* Behind content */
  pointer-events: none; /* Not interactive */
  will-change: transform, opacity; /* Performance hint */
  transition: transform 1.2s cubic-bezier(0.33,1,0.68,1),
              opacity 1.2s ease-out;
}

.blue-glow {
  background-color: var(--royal-blue);
  width: 300px;
  height: 300px;
  animation: floatBlobBlue 20s ease-in-out infinite, morphBlobBlue 30s ease-in-out infinite alternate;
}

.pink-glow {
  background-color: var(--soft-pink);
  width: 250px;
  height: 250px;
  animation: floatBlobPink 24s ease-in-out infinite, morphBlobPink 25s ease-in-out infinite alternate;
}

.gold-glow {
  background-color: var(--gold);
  width: 200px;
  height: 200px;
  animation: floatBlobGold 18s ease-in-out infinite, morphBlobGold 20s ease-in-out infinite alternate;
}

/* Animate each blob differently */
@keyframes floatBlobBlue {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -15px) rotate(2deg); }
  50% { transform: translate(0, 25px) rotate(0deg); }
  75% { transform: translate(-20px, 10px) rotate(-3deg); }
}

@keyframes floatBlobPink {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 20px) rotate(-2deg); }
  66% { transform: translate(25px, -15px) rotate(3deg); }
}

@keyframes floatBlobGold {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(15px, 25px) rotate(4deg); }
  60% { transform: translate(-10px, -20px) rotate(-2deg); }
}

/* Subtle shape morphing */
@keyframes morphBlobBlue {
  0% { border-radius: 50%; }
  25% { border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
  50% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
  75% { border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%; }
  100% { border-radius: 50%; }
}

@keyframes morphBlobPink {
  0% { border-radius: 50%; }
  33% { border-radius: 60% 40% 40% 60% / 45% 55% 45% 55%; }
  66% { border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%; }
  100% { border-radius: 50%; }
}

@keyframes morphBlobGold {
  0% { border-radius: 50%; }
  50% { border-radius: 55% 45% 50% 50% / 40% 60% 40% 60%; }
  100% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}

/* Hover effect for sections to animate blobs */
.section:hover .decorative-element {
  filter: blur(50px);
}

.section:hover .blue-glow {
  opacity: 0.2;
  transform: scale(1.05);
}

.section:hover .pink-glow {
  opacity: 0.18;
  transform: scale(1.03);
}

.section:hover .gold-glow {
  opacity: 0.17;
  transform: scale(1.07);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-primary);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: all var(--ease-med), box-shadow var(--ease-fast), transform var(--ease-fast);
  z-index: 1;
  isolation: isolate; /* New stacking context for ::before */
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0; /* shorthand for top, right, bottom, left = 0 */
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  z-index: -1;
  transition: transform var(--ease-med);
}

.btn:hover::before {
  transform: scale(1.08);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-md);
}

.btn-icon {
  transition: transform var(--ease-bounce);
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Button variants with enhanced animations */
.btn-alt::before {
  background: linear-gradient(135deg, var(--soft-pink), var(--soft-pink-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-gentle);
}

.btn-alt:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-alt:focus-visible {
  box-shadow: var(--focus-ring-soft), var(--shadow-soft);
}

.btn-gold::before {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease-gentle);
}

.btn-gold:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

/* Enhanced link animations */
.link {
  color: var(--royal-blue-light);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  padding-bottom: 2px;
  transition: color var(--ease-fast);
}

.link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--soft-pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-gentle);
}

.link:hover {
  color: var(--soft-pink-light);
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link:focus-visible {
  outline: none;
  color: var(--soft-pink);
  box-shadow: 0 2px 0 0 var(--soft-pink); /* Custom focus style */
}

/* ---------- CARDS AND CONTAINERS ---------- */
.glass-card {
  background-color: var(--glass-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--ease-med), transform var(--ease-fast), box-shadow var(--ease-fast);
  box-shadow: var(--shadow-md);
  will-change: transform, box-shadow, filter; /* Performance hint */
}

.glass-card:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1.05);
}

.card {
  background-color: var(--dark-card);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--ease-med), transform var(--ease-fast), box-shadow var(--ease-fast);
  box-shadow: var(--shadow-md);
  will-change: transform, box-shadow, filter; /* Performance hint */
}

.card:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-8px) scale(1.02);
  filter: brightness(1.05);
}

.card-content {
  padding: 2rem;
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--ease-med), filter var(--ease-fast);
  display: block;
  will-change: transform, filter; /* Performance hint */
}

.card:hover .card-img {
  transform: scale(1.08);
  filter: blur(2px) brightness(1.1);
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

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

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

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

/* ---------- HEADER / NAV ---------- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all var(--ease-med);
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: rgba(10, 12, 21, 0.9); /* Semi-transparent background on scroll */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--separator);
  padding: 1rem 0;
  box-shadow: var(--shadow-elegant);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: transform var(--ease-med);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon { /* If you have a separate icon for the logo */
  height: 35px;
  margin-right: 12px;
}

.logo-text {
  position: relative;
}

.logo-text::after { /* Underline effect for logo text */
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
  transform-origin: right;
  transform: scaleX(0);
  transition: transform var(--ease-med);
}

.logo:hover .logo-text::after {
  transform-origin: left;
  transform: scaleX(1);
}

.header-logo-img {
  height: 180px; /* Default height */
  width: auto;
  display: block;
  transition: filter var(--ease-fast);
}

.logo:hover .header-logo-img {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(52, 84, 209, 0.5));
}

.logo:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px; /* Added for better focus visibility */
}


.navbar {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--ease-fast), text-shadow var(--ease-fast);
  padding-bottom: 5px; /* Space for underline */
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease-gentle);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-item.active .nav-link {
  color: var(--soft-pink);
}

.nav-item.active .nav-link::after {
  transform: scaleX(1);
  background: linear-gradient(to right, var(--soft-pink), var(--soft-pink-light));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease;
}

.nav-link:focus-visible {
  outline: none;
  color: var(--text-primary);
  box-shadow: 0 2px 0 0 var(--soft-pink); /* Custom focus style */
}

.nav-cta {
  margin-left: 2rem;
}

.mobile-toggle {
  display: none; /* Hidden by default, shown in media queries */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1101; /* Above mobile nav */
  width: 40px;
  height: 40px;
  position: relative;
  transition: all var(--ease-fast);
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 3px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all var(--ease-med);
}

.mobile-toggle span:nth-child(1) {
  top: 8px;
}

.mobile-toggle span:nth-child(2) {
  top: 18px;
  transition-delay: 0.1s;
}

.mobile-toggle span:nth-child(3) {
  top: 28px;
  transition-delay: 0.2s;
}

/* Active state for mobile toggle (X icon) */
.mobile-toggle.active span:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 18px;
  width: 28px;
  transition-delay: 0.3s;
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-100px); /* Slide out */
  transition-delay: 0s;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 18px;
  width: 28px;
  transition-delay: 0.3s;
}

header.scrolled .mobile-toggle span {
  background-color: var(--text-primary); /* Ensure visibility on scrolled header */
}

.mobile-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 50%;
}

/* Mobile Navigation Panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%; /* Start off-screen */
  width: 100%;
  max-width: 320px; /* Or your preferred width */
  height: 100vh;
  background-color: rgba(17, 24, 39, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align items to the top */
  align-items: center;
  transition: right var(--ease-med), box-shadow var(--ease-med);
  z-index: 1100; /* Below mobile toggle but above content */
  overflow-y: auto; /* Scroll if content exceeds height */
  padding: 6rem 2rem 2rem; /* Padding for content, adjust top for header */
  box-shadow: none; /* Initially no shadow */
  backdrop-filter: blur(10px);
}

.mobile-nav.active {
  right: 0; /* Slide in */
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); /* Shadow when active */
}

.mobile-nav::before { /* Optional decorative gradient */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(52, 84, 209, 0.05) 0%, 
    rgba(10, 12, 21, 0.01) 50%,
    rgba(229, 169, 188, 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--ease-slow);
}

.mobile-nav.active::before {
  opacity: 1;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Spacing between links */
  text-align: center;
  width: 100%;
}

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem; /* Larger for touch targets */
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--ease-med);
  display: block; /* Make the whole area clickable */
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden; /* For underline effect */
}

.mobile-nav-link::after { /* Underline effect */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
  transform: translateX(-101%);
  transition: transform var(--ease-med);
}

.mobile-nav-link:hover::after {
  transform: translateX(0);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--soft-pink-light);
  text-shadow: 0 0 10px rgba(229, 169, 188, 0.3);
  outline: none;
}


/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 0; /* Remove any default margin */
  padding-top: 7rem; /* Account for fixed header height */
  box-sizing: border-box; /* Include padding in height calculation */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2; /* Behind overlay and content */
  filter: brightness(0.4) saturate(0.8) contrast(1.1);
  transition: filter 1.5s var(--ease-gentle);
}

.hero:hover .hero-video {
  filter: brightness(0.45) saturate(0.85) contrast(1.15);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(10, 12, 21, 0.8) 0%, 
    rgba(10, 12, 21, 0.5) 50%,
    rgba(10, 12, 21, 0.8) 100%);
  opacity: 0.95;
  transition: opacity 1.5s var(--ease-gentle);
  z-index: -1; /* Behind content, above video */
}

.hero:hover .hero-overlay {
  opacity: 0.9;
}

.hero-decorative-element {
  position: absolute;
  z-index: -1; /* Behind content */
}

.hero-content {
  max-width: 1000px;
  text-align: center;
  padding: 2rem 1rem 6rem; /* Bottom padding to avoid scroll indicator overlap */
  position: relative;
  z-index: 1; /* Above overlay */
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--soft-pink);
  margin-bottom: 2rem;
  margin-top: 0; /* Reset margin */
  padding: 0.5rem 0; /* Add some padding */
  opacity: 0; /* For animation */
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  animation-fill-mode: both; /* Keep final state */
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0; /* For animation */
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
  animation-fill-mode: both;
}

.hero-title .text-gradient {
  background-size: 300% 100%; /* For shimmer effect */
  animation: shimmer 8s linear infinite;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem); /* Responsive font size */
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0; /* For animation */
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
  animation-fill-mode: both;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0; /* For animation */
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
  animation-fill-mode: both;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
  flex-wrap: column; /* Allow buttons to wrap on smaller screens */
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0; /* For animation */
  animation: fadeIn 1s ease forwards 1.5s;
  z-index: 2; /* Above other hero elements */
  cursor: pointer;
  margin: 0; /* Reset margin */
  width: auto; /* Intrinsic width */
}

.hero-scroll:hover {
  opacity: 0.8; /* Slight fade on hover */
}

.scroll-text {
  margin-bottom: 0.5rem;
  animation: pulseOpacity 2s ease-in-out infinite;
}

.scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  position: relative;
  transition: border-color var(--ease-fast);
}

.hero-scroll:hover .scroll-icon {
  border-color: rgba(255, 255, 255, 0.5);
}

.scroll-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
  border-radius: 50%;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.hero-scroll .fas { /* If using Font Awesome for an arrow */
  margin-top: 0.5rem;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}


/* ---------- ABOUT SECTION ---------- */
.about-section {
  position: relative;
}

.about-blue-glow {
  top: -150px;
  right: -100px;
}

.about-pink-glow {
  bottom: -100px;
  left: -150px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.about-text.animated {
  animation: fadeLeft var(--ease-reveal) forwards;
}

.about-highlight {
  color: var(--soft-pink);
  font-weight: 500;
}

.about-mission,
.about-history,
.about-inspiration {
  margin-bottom: 2rem; /* Reduced from 2.5rem */
}

.about-mission-title,
.about-history-title,
.about-inspiration-title {
  margin-bottom: 0.75rem; /* Reduced from 1rem */
  opacity: 0;
}

.about-mission-title { color: var(--royal-blue-light); }
.about-history-title { color: var(--soft-pink); }
.about-inspiration-title { color: var(--gold); }

.about-text.animated .about-mission-title {
  animation: fadeLeft 0.7s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.about-text.animated .about-history-title {
  animation: fadeLeft 0.7s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.about-text.animated .about-inspiration-title {
  animation: fadeLeft 0.7s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.about-image {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.about-image.animated {
  animation: zoom var(--ease-reveal) forwards;
}

.about-img-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--ease-med), filter var(--ease-fast);
  -webkit-mask-image: radial-gradient(
    ellipse 75% 75% at center,
    black 15%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 85%
  );
  mask-image: radial-gradient(
    ellipse 75% 75% at center,
    black 15%,
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.1) 70%,
    transparent 85%
  );
  will-change: transform, filter;
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Enhanced image decoration animation */
.about-img-decoration{
  position:absolute;
  bottom:1.5rem;
  left:1.5rem;
  top:auto;
  background:linear-gradient(135deg,var(--royal-blue) 0%,var(--soft-pink) 100%);
  color:var(--text-primary);
  font-family:'Montserrat',sans-serif;
  font-size:0.95rem;
  font-weight:600;
  letter-spacing:1px;
  padding:0.6rem 1.4rem;
  border:none;
  border-radius:4px;
  max-width:none;
  box-shadow:var(--shadow-lg);
  transition:transform var(--ease-med),background var(--ease-med);
}

.about-img-wrapper:hover .about-img-decoration{
  transform:translateY(-3px);
  background:linear-gradient(135deg,var(--soft-pink) 0%,var(--royal-blue-light) 100%);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem; /* Reduced from 4rem */
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.about-stats.animated {
  animation: fadeUp var(--ease-med) 0.3s forwards;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--dark-card);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all var(--ease-med);
  overflow: hidden;
  position: relative;
  opacity: 0;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
  transform: translateX(-101%);
  transition: transform var(--ease-reveal);
  z-index: 1;
}

.stat-item:hover::before {
  transform: translateX(0);
}

.about-stats.animated .stat-item:nth-child(1) { 
  animation: slideUpFade 0.8s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; 
}
.about-stats.animated .stat-item:nth-child(2) { 
  animation: slideUpFade 0.8s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; 
}
.about-stats.animated .stat-item:nth-child(3) { 
  animation: slideUpFade 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; 
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elegant);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--royal-blue-light), var(--soft-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  transition: all var(--ease-med);
}

.stat-item:hover .stat-number {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(52, 84, 209, 0.3);
}

.stat-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- ELEGANCE QUOTE ---------- */
.elegance-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--soft-pink-light);
  position: relative;
  padding: 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transition: all var(--ease-med);
  overflow: hidden;
}

.elegance-quote::before,
.elegance-quote::after {
  content: '"';
  font-size: 5rem;
  color: var(--royal-blue);
  opacity: 0.2;
  position: absolute;
  line-height: 0;
  transition: all var(--ease-med);
  animation: blurIn 1.2s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.elegance-quote::before {
  top: 2rem;
  left: 0;
}

.elegance-quote::after {
  bottom: 0;
  right: 0;
}

.section:hover .elegance-quote {
  color: var(--soft-pink-light);
}

.section:hover .elegance-quote::before,
.section:hover .elegance-quote::after {
  color: var(--royal-blue-light);
  opacity: 0.25;
}

/* ---------- SCHOLARSHIP SECTION ---------- */
.scholarship-section {
  position: relative;
}

.scholarship-blue-glow {
  top: 20%;
  right: -100px;
}

.scholarship-pink-glow {
  bottom: 10%;
  left: -150px;
}

.scholarship-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem; /* Reduced from 4rem */
}

.scholarship-info {
  opacity: 0;
  transform: translateX(-30px);
  transition: all var(--ease-slow);
}

.scholarship-info.animated {
  animation: fadeRight var(--ease-reveal) forwards;
}

.scholarship-title {
  margin-bottom: 1.5rem;
  color: var(--royal-blue-light);
  position: relative;
  padding-bottom: 0.5rem;
}
.scholarship-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
}
.scholarship-info.animated .scholarship-title:nth-of-type(1) {
  animation: fadeRight 0.7s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scholarship-info.animated .scholarship-title:nth-of-type(2) {
  animation: fadeRight 0.7s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scholarship-info.animated .scholarship-title:nth-of-type(3) {
  animation: fadeRight 0.7s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scholarship-guidelines,
.scholarship-dates,
.scholarship-details {
  margin-bottom: 2rem; /* Reduced from 2.5rem */
}

.guidelines-subtitle, .details-subtitle {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--soft-pink);
}

.guidelines-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.guidelines-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.guidelines-item::before {
  content: '';
  position: absolute;
  top: 0.5em;
  transform: translateY(-50%);
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--soft-pink);
}
.process-timeline {
  position: relative;
  margin: 2rem 0 3rem;
}
.timeline-item {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-marker {
  width: 30px;
  height: 30px;
  background-color: var(--royal-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 1rem;
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding-top: 0.25rem;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  background-color: rgba(52, 84, 209, 0.1);
  padding: 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  background-color: rgba(52, 84, 209, 0.15);
}

.highlight-icon {
  font-size: 1.8rem;
  margin-right: 1rem;
  color: var(--royal-blue-light); /* Added color to icon */
}

.highlight-content h4 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.highlight-content p {
  margin: 0;
  color: var(--text-secondary);
}

.timeline-content h4 {
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.timeline-content p {
  margin: 0;
  color: var(--text-secondary);
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: linear-gradient(to bottom, var(--royal-blue), var(--soft-pink));
}
      
.requirement-icon {
  font-size: 1.2rem;
  margin-right: 0.75rem; /* Increased spacing */
  color: var(--royal-blue-light);
  width: 20px; /* Ensure consistent width for alignment */
  text-align: center;
}        
.application-requirements .guidelines-item {
  display: flex;
  align-items: flex-start; /* Align items to the start */
}
.scholarship-info.animated .guidelines-item:nth-child(1) {
  animation: slideUpFade 0.5s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-info.animated .guidelines-item:nth-child(2) {
  animation: slideUpFade 0.5s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-info.animated .guidelines-item:nth-child(3) {
  animation: slideUpFade 0.5s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-info.animated .guidelines-item:nth-child(4) {
  animation: slideUpFade 0.5s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-info.animated .guidelines-item:nth-child(5) {
  animation: slideUpFade 0.5s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Key Dates Styling */
.key-dates-container {
  margin: 2rem 0;
}

.key-dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.key-date-card {
  background-color: var(--glass-card);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--ease-med);
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scholarship-info.animated .key-date-card:nth-child(1) {
  animation-delay: 0.1s;
}

.scholarship-info.animated .key-date-card:nth-child(2) {
  animation-delay: 0.2s;
}

.scholarship-info.animated .key-date-card:nth-child(3) {
  animation-delay: 0.3s;
}

.scholarship-info.animated .key-date-card:nth-child(4) {
  animation-delay: 0.4s;
}

.key-date-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.key-date-title {
  font-weight: 600;
  color: var(--soft-pink);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.key-date-value {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .key-dates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .event-card {
    flex-direction: column;
  }
  .form-control:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(52, 84, 209, 0.2);
  }
  .event-date {
    width: 100%;
    padding: 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
   .about-img-decoration{
    font-size:0.85rem;
    padding:0.5rem 1rem;
  } 
  .key-date-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .key-dates-grid {
    grid-template-columns: 1fr;
  }
}

.scholarship-form {
  opacity: 0;
  transform: translateX(30px);
  transition: all var(--ease-slow);
}

.scholarship-form.animated {
  animation: fadeLeft var(--ease-reveal) forwards;
}

.form-container {
  background-color: var(--glass-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-title {
  margin-bottom: 2rem;
  color: var(--soft-pink);
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  opacity: 0;
}

.scholarship-form.animated .form-group:nth-child(1) {
  animation: fadeLeft 0.5s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-form.animated .form-group:nth-child(2) {
  animation: fadeLeft 0.5s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-form.animated .form-group:nth-child(3) {
  animation: fadeLeft 0.5s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-form.animated .form-group:nth-child(4) {
  animation: fadeLeft 0.5s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-form.animated .form-group:nth-child(5) {
  animation: fadeLeft 0.5s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-form.animated .form-group:nth-child(6) {
  animation: fadeLeft 0.5s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.scholarship-form.animated .form-group:nth-child(7) {
  animation: fadeLeft 0.5s 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--separator);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all var(--ease-fast), box-shadow var(--ease-fast);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: var(--focus-ring), 0 5px 15px rgba(52, 84, 209, 0.1);
  transform: translateY(-2px);
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: var(--focus-ring);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-submit:hover::before {
  transform: scale(1.08);
}
.submit-icon {
  margin-right: 0.8rem;
  transition: transform var(--ease-bounce);
}

.form-submit:hover .submit-icon {
  transform: translateX(5px);
}

.form-submit:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-md);
}

/* Success Styling */
.submit-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1.5rem;
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
/* Thank You Page Specific Styles - Add to your existing CSS */
.thank-you-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.thank-you-container {
  background-color: var(--dark-card);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--royal-blue-light);
  margin-bottom: 1.5rem;
  animation: scaleUp 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67) 0.3s forwards;
  opacity: 0;
  transform: scale(0.5);
}

.thank-you-icon i {
  display: inline-block;
  background: linear-gradient(135deg, var(--royal-blue-light), var(--soft-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(52, 84, 209, 0.3));
}

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
  opacity: 0;
}

.thank-you-message {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
  opacity: 0;
}

.thank-you-message p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.what-to-expect {
  text-align: left;
  background-color: rgba(52, 84, 209, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-top: 2rem;
  border-left: 3px solid var(--royal-blue);
}

.what-to-expect h2 {
  color: var(--soft-pink);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.what-to-expect ul {
  padding-left: 1.5rem;
}

.what-to-expect li {
  margin-bottom: 0.75rem;
  position: relative;
}

.what-to-expect li::before {
  content: '•';
  color: var(--soft-pink);
  position: absolute;
  left: -1.2rem;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
  opacity: 0;
}

@keyframes scaleUp {
  from {
      opacity: 0;
      transform: scale(0.5);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.success-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.success-btn {
  margin-top: 1rem;
}

@keyframes scaleUp {
  0% {
      transform: scale(0);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}
.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  z-index: -1;
  transition: transform var(--ease-med);
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  color: var(--text-primary);
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  transition: all var(--ease-med);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}
.scholarship-form.animated .form-submit {
  animation: fadeUp 0.5s 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Form status message styling */
#formStatusMessage {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none; /* Hidden by default */
}
#formStatusMessage.success {
    background-color: rgba(76, 175, 80, 0.2); /* Light green */
    color: #4CAF50; /* Green text */
    border: 1px solid #4CAF50;
}
#formStatusMessage.error {
    background-color: rgba(244, 67, 54, 0.2); /* Light red */
    color: #f44336; /* Red text */
    border: 1px solid #f44336;
}


/* Approved Uses */
.approved-uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.use-category {
  background-color: rgba(229, 169, 188, 0.1);
  padding: 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.use-category:hover {
  transform: translateY(-5px);
  background-color: rgba(229, 169, 188, 0.15);
}

.use-category h5 {
  display: flex;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

.use-icon {
  margin-right: 0.5rem;
  color: var(--soft-pink); /* Added color to icon */
}

.use-category ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.use-category li {
  margin-bottom: 0.5rem;
}

/* Important Notice */
.important-notice {
  background-color: rgba(211, 173, 105, 0.1);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.important-notice h4 {
  margin: 0 0 0.75rem;
  color: var(--gold);
}

.important-notice p {
  margin: 0;
  color: var(--text-secondary);
}

/* Quote */
.scholarship-quote {
  text-align: center;
  margin: 3rem 0 1rem;
  padding: 0 2rem;
}

.scholarship-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-primary);
  position: relative;
  margin: 0 0 1rem;
}

.scholarship-quote blockquote::before,
.scholarship-quote blockquote::after {
  content: '"';
  font-size: 3rem;
  color: rgba(229, 169, 188, 0.2);
  position: absolute;
  line-height: 0;
}

.scholarship-quote blockquote::before {
  top: 0.5rem;
  left: -1.5rem;
}

.scholarship-quote blockquote::after {
  bottom: 0;
  right: -1.5rem;
}

.scholarship-quote cite {
  font-style: normal;
  color: var(--soft-pink);
}

/* Form Enhancements */
.form-description {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.form-download {
  text-align: center;
  margin-bottom: 2.5rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  background-color: rgba(52, 84, 209, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--royal-blue-light);
  transition: all 0.3s ease;
}

.download-link:hover {
  background-color: rgba(52, 84, 209, 0.2);
  transform: translateY(-2px);
}

.download-icon {
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--separator);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section-title {
  margin-bottom: 1.25rem;
  color: var(--royal-blue-light);
}

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

.form-help {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

.form-info {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.document-list {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.document-list li {
  margin-bottom: 0.5rem;
}

.form-agreement {
  display: flex;
  align-items: flex-start;
  margin: 2rem 0;
}

.form-agreement input {
  margin-top: 0.25rem;
  margin-right: 0.75rem;
}

/* Award Highlights */
.award-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

/* ---------- DONATION SECTION ---------- */
.donation-section {
  position: relative;
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.donation-blue-glow {
  top: 10%;
  left: -100px;
}

.donation-pink-glow {
  bottom: 30%;
  right: -150px;
}

.donation-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.donation-container.animated {
  animation: zoom var(--ease-reveal) forwards;
}

.donation-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem; /* Reduced from 4rem */
}

.donation-methods {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}

.givelify-button-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  width: 100%;
}

.givelify-primary-button {
  transition: transform var(--ease-med), box-shadow var(--ease-med);
  display: inline-block;
}

.givelify-primary-button img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
}

.givelify-primary-button:hover {
  transform: translateY(-5px);
}

.givelify-primary-button:hover img {
  box-shadow: var(--shadow-lg);
}

.donation-method {
    background-color: var(--dark-card);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--ease-med);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(99, 91, 255, 0.1);
    margin: 0 auto 2rem;
}

.donation-method:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 91, 255, 0.3);
}

.donation-method-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.6rem;
}

.donation-method-description {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.payment-button-container {
  margin-top: auto;
  width: 100%;
  padding-top: 1rem;
  opacity: 0;
}

.donation-container.animated .payment-button-container {
  animation: fadeUp 0.6s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.payment-button {
  width: 100%;
  padding: 1.2rem 2rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: all var(--ease-med);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.payment-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  transform: scale(0);
  transition: transform var(--ease-med);
  z-index: -1;
}

.payment-button:hover::after {
  transform: scale(1);
}

.payment-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.paypal-button {
  background-color: #0070BA;
  color: white;
  border: 1px solid #0070BA;
}

.paypal-button:hover {
  background-color: #005ea6;
}

.givelify-button {
  background-color: #FF5D00;
  color: white;
  border: 1px solid #FF5D00;
}

.givelify-button:hover {
  background-color: #e65400;
}

.givelify-instructions {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.stripe-button {
  background-color: #635BFF;
  color: white;
  border: 1px solid #635BFF;
}

.stripe-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
  transform: scale(0);
  transition: transform var(--ease-med);
  z-index: -1;
}

.stripe-button:hover::after {
  transform: scale(1);
}

.stripe-button:hover {
  background-color: #8780FA;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.payment-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-lg);
}
/* Modal Styles for Evelyn Dunlap Foundation */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 12, 21, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  overflow-y: auto;
  padding: 50px 0;
  transition: all var(--ease-med);
}

.modal-content {
  background-color: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  width: 90%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: rotateZoom 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  will-change: transform, opacity;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--separator);
}

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0;
  color: var(--soft-pink);
  animation: fadeLeft 0.5s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.modal-close {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  animation: fadeIn 0.5s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.modal-close:hover {
  background-color: var(--royal-blue);
  color: white;
  transform: rotate(90deg);
}

.modal-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.modal-body {
  padding: 2.5rem;
  max-height: 70vh;
  overflow-y: auto;
  animation: fadeUp 0.7s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

/* Application Button Styles */
.application-btn {
  width: 100%;
  padding: 1.2rem 2.4rem;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  font-size: 1.1rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  transition: all var(--ease-med), box-shadow var(--ease-fast), transform var(--ease-fast);
}

.application-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  z-index: -1;
  transition: transform var(--ease-med);
}

.application-btn:hover::before {
  transform: scale(1.08);
}

.application-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
}

.application-icon {
  margin-right: 0.8rem;
  transition: transform var(--ease-bounce);
}

.application-btn:hover .application-icon {
  transform: translateX(5px);
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Form Status Message Styling */
#formStatusMessage {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
  animation: fadeUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#formStatusMessage.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

#formStatusMessage.error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--royal-blue), var(--royal-blue-light));
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--royal-blue-light), var(--soft-pink));
}

.stripe-button img { /* For Stripe logo if used */
  height: 24px;
  width: auto;
}

.donation-alternative {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--dark-card);
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.donation-alternative h4 {
  margin-bottom: 0.75rem;
  color: var(--soft-pink);
}

.donation-alternative p {
  color: var(--text-secondary);
}

.donation-alternative a {
  color: var(--royal-blue-light);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.donation-alternative a:hover {
  color: var(--soft-pink);
}

.donation-impact {
  background-color: var(--dark-card);
  border-radius: 8px;
  padding: 3rem 2rem; /* Reduced from 4rem 2rem */
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-top: 3rem; /* Reduced from 4rem */
}

.donation-impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
  animation: revealWidth 1.5s 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  width: 0;
}

.impact-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.impact-description {
  max-width: 700px;
  margin: 0 auto 2rem; /* Reduced from 3rem */
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.impact-stat {
  padding: 1rem;
  opacity: 0;
  overflow: hidden;
  position: relative;
  transition: all var(--ease-med);
}

.impact-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
  transform: translateX(-101%);
  transition: transform var(--ease-reveal);
  z-index: 1;
}

.impact-stat:hover::before {
  transform: translateX(0);
}

.impact-stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elegant);
}

.donation-container.animated .impact-stat:nth-child(1) {
  animation: blurIn 0.8s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.donation-container.animated .impact-stat:nth-child(2) {
  animation: blurIn 0.8s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.donation-container.animated .impact-stat:nth-child(3) {
  animation: blurIn 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.impact-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--soft-pink);
  display: inline-block;
  position: relative;
  line-height: 1;
  transition: all var(--ease-med);
}

.impact-stat:hover .impact-number {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(52, 84, 209, 0.3);
}

.impact-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--royal-blue);
  border-radius: 3px;
}

.impact-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--text-secondary);
}

.donation-testimonial {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: center;
  padding: 0 2rem;
}

.donation-testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-primary);
  position: relative;
  margin: 0 0 1rem;
}

.donation-testimonial blockquote::before,
.donation-testimonial blockquote::after {
  content: '"';
  font-size: 3rem;
  color: rgba(229, 169, 188, 0.2);
  position: absolute;
  line-height: 0;
}

.donation-testimonial blockquote::before {
  top: 0.5rem;
  left: -1.5rem;
}

.donation-testimonial blockquote::after {
  bottom: 0;
  right: -1.5rem;
}

.donation-testimonial cite {
  font-style: normal;
  color: var(--soft-pink);
}

/* ---------- EVENTS SECTION ---------- */
.events-section {
  position: relative;
  padding-bottom: clamp(2rem, 4vh, 3rem);
}

.events-blue-glow {
  bottom: 20%;
  right: -150px;
}

.events-pink-glow {
  top: 10%;
  left: -100px;
}

.featured-event {
  margin-bottom: 4rem; /* Reduced from 5rem */
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.featured-event.animated {
  animation: rotateZoom var(--ease-slow) forwards;
}

.soiree-event {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
}

.soiree-date {
  /* Refined positioning */
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  
  /* Luxury glass effect with vibrant gradient */
  background: linear-gradient(135deg, 
                rgba(52, 84, 209, 0.85) 0%, 
                rgba(76, 107, 230, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Elegant styling */
  color: white;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  
  /* Refined borders and shadows */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
  
  /* Prevent text wrapping/clipping */
  white-space: nowrap;
  max-width: calc(100% - 3rem);
  overflow: visible;
  
  /* Other properties */
  z-index: 3;
  transition: all var(--ease-med);
}

.soiree-event:hover .soiree-date {
  /* Luxurious hover effect */
  transform: translateY(-5px);
  background: linear-gradient(135deg, 
                rgba(76, 107, 230, 0.9) 0%, 
                rgba(52, 84, 209, 0.9) 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 
              inset 0 1px 3px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}


.soiree-date::before {
  content: '';
  position: absolute;
  top: -180%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  z-index: -1;
  transition: transform 0.6s ease;
}

.soiree-event:hover .soiree-date::before {
  transform: rotate(45deg) translateY(175%);
}



.soiree-img {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.soiree-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4) saturate(0.8) contrast(1.1);
  transition: filter 1.5s var(--ease-gentle);
}

.soiree-event:hover .soiree-video {
  filter: brightness(0.45) saturate(0.85) contrast(1.15);
}

.soiree-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(10, 12, 21, 0.6) 0%, 
    rgba(10, 12, 21, 0.4) 50%,
    rgba(10, 12, 21, 0.7) 100%);
  z-index: 1;
  transition: background 1.5s var(--ease-gentle);
}

.soiree-event:hover .soiree-img::before {
  background: linear-gradient(135deg, 
    rgba(10, 12, 21, 0.5) 0%, 
    rgba(10, 12, 21, 0.3) 50%,
    rgba(10, 12, 21, 0.6) 100%);
}

.soiree-img h1,
.soiree-img p {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.soiree-img h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
}

.soiree-img p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.soiree-content {
  padding: 2rem; /* Reduced from 3rem */
  background-color: var(--dark-card);
  text-align: center; /* Added to center the RSVP button */
}

.soiree-details {
  margin-bottom: 2rem; /* Reduced from 3rem */
}

.soiree-details-title {
  color: var(--royal-blue-light);
  margin-bottom: 1.5rem;
}

.rsvp-button-container {
  text-align: center;
  margin-top: 1rem;
  opacity: 0;
}

.featured-event.animated .rsvp-button-container {
  animation: fadeUp 0.7s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.rsvp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--soft-pink), var(--soft-pink-light));
  color: var(--dark-bg);
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all var(--ease-med);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  cursor: pointer;
}

.rsvp-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.rsvp-icon {
  margin-right: 0.75rem;
  font-size: 1.2em;
}

.rsvp-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-md);
}

/* Events Calendar */
.events-calendar {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
  margin-top: 3rem; /* Reduced from 4rem */
}

.events-calendar.animated {
  animation: fadeUp var(--ease-reveal) forwards;
}

.calendar-title {
  margin-bottom: 2rem; /* Reduced from 3rem */
  color: var(--text-primary);
  text-align: center;
}

.event-card {
  display: flex;
  background-color: var(--dark-card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem; /* Reduced from 2rem */
  box-shadow: var(--shadow-md);
  transition: all var(--ease-med), transform var(--ease-fast), box-shadow var(--ease-fast);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, box-shadow, filter;
}

.events-calendar.animated .event-card:nth-child(1) {
  animation: fadeUp 0.7s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.events-calendar.animated .event-card:nth-child(2) {
  animation: fadeUp 0.7s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.events-calendar.animated .event-card:nth-child(3) {
  animation: fadeUp 0.7s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-elegant);
  border-left: 3px solid var(--royal-blue);
  border-right: 3px solid var(--royal-blue);
  filter: brightness(1.05);
}

.event-date {
  width: 120px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  color: white;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.event-day {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Cormorant Garamond', serif;
}

.event-month {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  font-weight: 500;
}

.event-details {
  padding: 2rem;
  flex: 1;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.event-time {
  color: var(--soft-pink);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-time-icon {
  line-height: 1;
  color: var(--soft-pink); /* Ensure icon color matches text */
}

.event-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* ---------- PARTNERS SECTION ---------- */
.partners-section {
  padding-top: clamp(2rem, 4vh, 3rem);
  position: relative;
}

.partners-gold-glow {
  top: 30%;
  right: -100px;
}

.partners-blue-glow {
  bottom: -100px;
  left: -150px;
}

.partners-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.partners-container.animated {
  animation: fadeDown var(--ease-reveal) forwards;
}

.partners-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem; /* Reduced from 4rem */
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.partner-card {
  background-color: var(--dark-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--ease-med), transform var(--ease-fast), box-shadow var(--ease-fast);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, box-shadow, filter;
}

.partners-container.animated .partner-card:nth-child(1) {
  animation: fadeUp 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.partners-container.animated .partner-card:nth-child(2) {
  animation: fadeUp 0.7s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.partners-container.animated .partner-card:nth-child(3) {
  animation: fadeUp 0.7s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.partners-container.animated .partner-card:nth-child(4) {
  animation: fadeUp 0.7s 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.partner-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-elegant);
  filter: brightness(1.05);
}

.partner-img-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.partner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-med), filter var(--ease-fast);
  will-change: transform, filter;
}

.partner-card:hover .partner-img {
  transform: scale(1.08);
  filter: blur(2px) brightness(1.1);
}

.partner-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(10, 12, 21, 0.8));
}

.partner-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.partner-title {
  margin-bottom: 1rem;
  color: var(--royal-blue-light);
  font-size: 1.4rem;
}

.partner-description {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.partner-content .link {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- TEAM SECTION ---------- */
.team-section {
  position: relative;
}

.team-blue-glow {
  top: 20%;
  left: -150px;
}

.team-pink-glow {
  bottom: -100px;
  right: -100px;
}

.team-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--ease-slow);
}

.team-container.animated {
  animation: swingUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem; /* Reduced from 4rem */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Updated to 4 columns for board members */
  gap: 2rem;
}

.team-member {
  text-align: center;
  position: relative;
  opacity: 0;
}

.team-container.animated .team-member:nth-child(1) {
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.team-container.animated .team-member:nth-child(2) {
  animation: fadeUp 0.8s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.team-container.animated .team-member:nth-child(3) {
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.team-container.animated .team-member:nth-child(4) {
  animation: fadeUp 0.8s 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.member-img-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--royal-blue);
  transition: all var(--ease-med);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.team-member:hover .member-img-container {
  border-color: var(--soft-pink);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(229, 169, 188, 0.3);
}

.member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--ease-med);
  transform: scale(.85);
  display: block;
  animation: zoom 1.2s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.team-member:hover .member-img {
  transform: scale(1.0);
}

.member-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  opacity: 0;
}

.team-container.animated .member-name {
  animation: fadeUp 0.5s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.member-position {
  font-size: 0.95rem;
  color: var(--soft-pink);
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0;
}

.team-container.animated .member-position {
  animation: fadeUp 0.5s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.member-bio {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  opacity: 0;
}

.team-container.animated .member-bio {
  animation: fadeUp 0.5s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  opacity: 0;
  position: relative;
  z-index: 1;
}

.team-container.animated .member-social {
  animation: fadeUp 0.5s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.social-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all var(--ease-med);
  text-decoration: none;
  font-size: 0.9rem; /* Adjusted for icon size */
}

.social-link i { /* Style for Font Awesome icons */
    line-height: 1; /* Ensure icon is centered */
}

.social-link:hover {
  background-color: var(--royal-blue);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(52, 84, 209, 0.2);
}

.social-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  background-color: var(--royal-blue);
  color: white;
}

/* ---------- FOOTER STYLES ---------- */
footer {
  background-color: var(--dark-surface);
  padding: 3rem 0 1.5rem; /* Reduced from 5rem 0 2rem */
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--separator);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem; /* Reduced from 4rem */
}

.footer-logo-container {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo-img {
  height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
  transition: filter 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(52, 84, 209, 0.5));
}

.footer-description {
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: auto; /* Pushes social icons to the bottom if space allows */
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem; /* Icon size */
  transition: all var(--ease-med);
  text-decoration: none;
}

.footer-social-icon i { /* Style for Font Awesome icons */
    line-height: 1;
}

.footer-social-icon:hover {
  background-color: var(--royal-blue);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(52, 84, 209, 0.2);
}

.footer-social-icon:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  background-color: var(--royal-blue);
  color: white;
}

.footer-heading {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--royal-blue), var(--soft-pink));
}

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

.footer-link-item {
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--ease-fast);
  position: relative;
  padding-left: 1rem; /* Space for pseudo-element */
  display: block; /* Ensure it takes full width for hover effect */
}

.footer-link::before {
  content: '›'; /* Using a chevron character */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--soft-pink);
  transition: transform var(--ease-fast);
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.footer-link:hover::before {
  transform: translateY(-50%) translateX(3px); /* Slight move on hover */
}

.footer-link:focus-visible {
  outline: none;
  color: var(--soft-pink);
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start; /* Align icon with the start of text */
  margin-bottom: 1rem;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.footer-contact-icon {
  margin-right: 1rem;
  color: var(--soft-pink);
  font-size: 1.1rem;
  margin-top: 0.2rem; /* Align icon slightly better with text */
  width: 20px; /* Ensure consistent width for icons */
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: var(--separator);
  margin: 1.5rem 0; /* Reduced from 2rem 0 */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 1rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-copyright a {
  color: var(--soft-pink);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer-copyright a:hover {
  color: var(--soft-pink-light);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-link {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--ease-fast);
}

.footer-bottom-link:hover {
  color: var(--soft-pink);
}

.footer-bottom-link:focus-visible {
  outline: none;
  color: var(--soft-pink);
  box-shadow: 0 2px 0 0 var(--soft-pink); /* Custom focus style */
}

.footer-blue-glow {
  bottom: -150px;
  right: -100px;
}

.footer-pink-glow {
  top: 30%;
  left: -150px;
  opacity: 0.08;
}

/* ---------- BACK TO TOP BUTTON ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--ease-med);
  box-shadow: var(--shadow-md);
  z-index: 100;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-md);
}

/* ---------- ANIMATIONS KEYFRAMES ---------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-40px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes zoom {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes rotateZoom {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-6deg);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
    filter: blur(0);
  }
}

@keyframes blurIn {
  0% {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes swingUp {
  0% {
    opacity: 0;
    transform-origin: top;
    transform: rotateX(-90deg);
  }
  100% {
    opacity: 1;
    transform-origin: top;
    transform: rotateX(0);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes revealWidth {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.5; }
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0;
    transform: translate(-50%, 25px);
  }
  51% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media (max-width: 1200px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .about-content { gap: 3rem; }
  .scholarship-options { gap: 3rem; }
  
  .container {
    max-width: 1140px;
  }
  
  .section-title-container {
    margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
  }
  
  .section {
    padding: clamp(3rem, 6vh, 5rem) 0;
  }
  
  .decorative-element {
    filter: blur(50px);
  }
}

@media (max-width: 992px) {
  :root {
    /* Adjust timing for mobile experience */
    --ease-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --ease-med: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .navbar { display: none; }
  .mobile-toggle { display: block; }
  
  .container {
    max-width: 960px;
  }

  .grid-2,
  .about-content,
  .scholarship-options,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-content { gap: 2rem; }
  .scholarship-options { gap: 3rem; }

  .about-image {
    order: -1; /* Move image above text on smaller screens */
    margin-bottom: 3rem;
  }

  .about-img-wrapper { max-width: 500px; margin: 0 auto; }

  .impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .soiree-img { min-height: 400px; }
  .soiree-img h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
  .soiree-img p { font-size: clamp(1rem, 2.5vw, 1.2rem); }

  .header-logo-img { height: 160px; }

  .section {
    padding: clamp(3rem, 5vh, 4rem) 0;
  }
  
  .card:hover,
  .glass-card:hover,
  .partner-card:hover {
    transform: translateY(-5px);
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .modal-content {
    width: 95%;
}

.modal-header {
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 1.6rem;
}

  .container {
    max-width: 720px;
  }

  /* Ensure grids stack to single column */
  .grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .team-grid,
  .partners-grid,
  .about-stats,
  .impact-stats,
  .form-row { /* Form rows also stack */
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding: 2rem 1rem 9rem; /* Adjust padding for smaller screens */
  }
  
  .about-stats,
  .impact-stats {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
  
  .hero-description {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    gap: 0.8rem;
  }
  
  .hero-buttons .btn {
    width: 100%; /* Full width buttons on small screens */
    max-width: 300px; /* Max width for readability */
  }

  .soiree-img h1 { font-size: clamp(2rem, 6vw, 2.7rem); }
  .soiree-img p { font-size: clamp(0.9rem, 3vw, 1.1rem); }

  .header-logo-img { height: 140px; }

  .date-label { width: 120px; } /* If you have such a class */
  .date-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; } /* If you have such a class */

  .event-card { flex-direction: column; }
  .event-date {
    width: 100%;
    padding: 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--separator);
  }
  .event-day { font-size: 1.8rem; }
  .event-month { font-size: 0.9rem; }
  
  /* Hero animation timings */
  .hero-subtitle {
    animation-delay: 0.3s;
  }
  
  .hero-title {
    animation-delay: 0.4s;
  }
  
  .hero-description {
    animation-delay: 0.5s;
  }
  
  .hero-buttons {
    animation-delay: 0.6s;
  }
  
  /* Reduce staggered delays on mobile */
  .about-stats.animated .stat-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .about-stats.animated .stat-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .footer-content {
    grid-template-columns: 1fr; /* Stack footer columns */
    gap: 2.5rem;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  :root {
    /* Even faster animations on smallest screens */
    --ease-slow: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    --ease-med: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .modal {
    padding: 20px 0;
}

.modal-header {
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: 75vh;
}

.modal-title {
    font-size: 1.4rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
}

.application-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}


  .container {
    max-width: 540px;
    padding: 0 1rem; /* Standard padding for small screens */
  }

  /* Further reduce animation intensity */
  .card:hover,
  .glass-card:hover,
  .partner-card:hover {
    transform: translateY(-3px);
  }
  
  .section {
    padding: clamp(2.5rem, 4vh, 3.5rem) 0;
  }
  
  /* Minimal staggering on smallest screens */
  .about-stats.animated .stat-item:nth-child(2) {
    animation-delay: 0.15s;
  }
  
  .about-stats.animated .stat-item:nth-child(3) {
    animation-delay: 0.2s;
  }

  .soiree-img { min-height: 350px; padding: 2rem; }
  .soiree-date { font-size: 1rem; padding: 0.8rem 1.2rem; top: 1rem; right: 1rem;}

  .header-logo-img { height: 120px; }

  .mobile-nav { max-width: 280px; }

  .stat-number, .impact-number { font-size: clamp(2rem, 8vw, 2.5rem); }
  .stat-text, .impact-text { font-size: 0.8rem; }

  .member-img-container { width: 150px; height: 150px; }

  .social-icon { width: 40px; height: 40px; font-size: 1rem; } /* If you have this class */
  .social-link { width: 30px; height: 30px; font-size: 0.8rem; }

  .form-container { padding: 1.5rem; }
  
  /* Footer adjustments */
  footer { 
    padding: 3rem 0 1.5rem;
  }
  
  .footer-logo-img {
    height: 100px;
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.2rem;
  }
}

/* Tablet landscape adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: clamp(2.3rem, 6vw, 3.5rem);
  }
  
  .hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }
}

/* Larger desktop adjustments */
@media (min-width: 1400px) {
  body {
    font-size: 17px;
  }
  
  .container {
    max-width: 1320px;
  }
  
  .header-logo-img {
    height: 200px;
  }
  
  h1 { font-size: clamp(3rem, 8vw, 4.5rem); }
  h2 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
  h3 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
  
  .section {
    padding: clamp(4rem, 7vh, 6rem) 0;
  }
  
  .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
  
  .soiree-img {
    min-height: 600px;
  }
}

/* High resolution screens */
@media (min-width: 1800px) {
  body {
    font-size: 18px;
  }
  
  .container {
    max-width: 1600px;
  }
  
  .decorative-element.blue-glow {
    width: 350px;
    height: 350px;
  }
  
  .decorative-element.pink-glow {
    width: 300px;
    height: 300px;
  }
  
  .decorative-element.gold-glow {
    width: 250px;
    height: 250px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  header, footer, .mobile-toggle, .nav-cta, .hero-buttons, .back-to-top { 
    display: none !important;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  p, ul, ol, dl, table {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  .card, .glass-card, .partner-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .section {
    padding: 1cm 0;
    page-break-inside: avoid;
  }
}

/* Accessibility - reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .modal-content,
  .modal-title,
  .modal-close,
  .modal-body,
  #formStatusMessage {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }
  .decorative-element {
    animation: none !important;
  }
  .form-submit-container {
    margin-top: 2rem;
    text-align: center;
}
  .hero-video, .soiree-video {
    display: none !important;
    object-fit: cover; /* Ensure proper video fitting */
    filter: brightness(0.35); /* Darkened for better text visibility */
  }
  
  .hero-overlay, .soiree-img::before {
    opacity: 1 !important;
    background: var(--dark-bg) !important;
  }
  
  .scroll-dot {
    animation: none !important;
  }
  
  .text-gradient {
    animation: none !important;
  }
  
  .btn::before {
    transition: none !important;
  }
  
  .card:hover, 
  .glass-card:hover, 
  .partner-card:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --royal-blue: #0000ff;
    --royal-blue-light: #4444ff;
    --soft-pink: #ff6699;
    --soft-pink-light: #ff99cc;
    --gold: #cc9900;
    --gold-light: #ddaa00;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: #dddddd;
    --separator: rgba(255, 255, 255, 0.3);
  }
  
  .card, .glass-card {
    background-color: #000000;
    border: 1px solid white;
  }
  
  .text-gradient {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #ffffff;
  }
  
  .btn::before,
  .form-control,
  .footer-newsletter-input {
    background: #000000;
    border: 1px solid white;
  }
  
  .stat-number,
  .impact-number {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #ffffff;
  }
}
