/* Hridoya Bangladesh Custom Theme - Bangladeshi Flag Colors */
 
/* Hridoya Bangladesh Custom Theme - Bangladeshi Flag Colors */
:root {
  --primary-red: #E11837;        /* Bangladesh flag red */
  --primary-green: #006A4E;      /* Bangladesh flag green */
  --primary-beige: #F8F5F0;      /* Soft beige background */
  --accent-red: #C41E3A;         /* Darker red for accents */
  --accent-green: #004D3A;       /* Darker green for accents */
  --accent-yellow: #ffc107;
  --primary-pink: #FF4B8B;
  --card-radius: 50px;
  --card-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  --card-shadow-hover: 0 38px 70px rgba(0, 0, 0, 0.22);
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-beige);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  /* Remove any top padding if it exists */
  padding-top: 0 !important;
}

main {
    /* Remove any top margin/padding */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.card,
.student-card,
.recipient-card,
.impact-card,
.impact-scholarship-card,
.category-card,
.team-card,
.donor-logo-tile,
.accordion-item,
.alert,
.floating-card-item,
.floating-card-item .recipient-card {
  border-radius: var(--card-radius) !important;
  overflow: hidden;
  box-shadow: var(--card-shadow) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .card-body,
.card img,
.student-card img,
.recipient-card img {
  border-radius: var(--card-radius) !important;
}

.card:hover,
.student-card:hover,
.recipient-card:hover,
.impact-card:hover,
.impact-scholarship-card:hover,
.category-card:hover,
.team-card:hover,
.donor-logo-tile:hover,
.accordion-item:hover,
.alert:hover,
.floating-card-item:hover,
.floating-card-item .recipient-card:hover {
  box-shadow: var(--card-shadow-hover) !important;
  transform: translateY(-4px);
}

.contact-location {
  margin-left: 2.25rem;
}

/* Fluid Typography - scales with viewport */
h1, .display-4, .display-5 {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2, .display-6 {
  font-size: clamp(1.3rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 600;
}

.lead {
  font-size: clamp(0.95rem, 2vw, 1.5rem);
  line-height: 1.6;
}

.hero-tagline {
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  color: var(--primary-pink);
}

/* Navigation */
.navbar {
  background-color: var(--primary-green) !important;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar {
  height: 70px !important;
}

.navbar .row {
  width: 100%;
  height: 100%;
}

.navbar .col-auto {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .col-auto:first-child {
  background: white !important;
  position: relative;
  padding-right: 2rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
}

.nav-link:hover {
  color: var(--primary-red) !important;
}

.logo-visual {
  position: relative;
  width: 35px !important;
  height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.logo-visual .logo-fallback,
.logo-visual .logo-3d-canvas {
  position: absolute;
  inset: 0;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: hidden !important;
}

.logo-visual .logo-fallback {
  width: 35px !important;
  height: 35px !important;
  max-width: 35px !important;
  max-height: 35px !important;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logo-visual .logo-fallback.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.logo-visual .logo-3d-canvas {
  display: none;
}

.logo-visual .logo-3d-canvas.is-ready {
  display: block;
}

/* Logo styling for Tailwind navbar */
.logo-visual .logo-fallback,
.logo-visual .logo-3d-canvas {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.logo-visual .logo-3d-canvas canvas {
  max-width: 35px !important;
  max-height: 35px !important;
  width: 35px !important;
  height: 35px !important;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--white);
  width: 100% !important;
}

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

.card-header {
  background-color: var(--primary-green);
  color: var(--white);
  border-radius: 15px 15px 0 0 !important;
  border: none;
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-pink);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-primary {
  color: var(--primary-pink);
  border-color: var(--primary-pink);
}

.btn-outline-primary:hover {
  background-color: var(--primary-pink);
  border-color: var(--primary-pink);
  color: var(--white);
}

.btn-green {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-navy:hover {
  background-color: #004080;
  color: var(--white);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.65) 0%, rgba(0, 77, 58, 0.65) 100%),
              url('https://images.unsplash.com/photo-1509062522246-3755977927d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  color: var(--white);
  /* Ensure hero starts at very top of viewport */
  padding-top: 8rem; /* Space for the floating navbar + breathing room */
  margin-top: 0;
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
  background-attachment: scroll;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 106, 78, 0.18) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  color: #ffd86b !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Glass buttons for CTAs */
.glass-btn {
  background: linear-gradient(135deg, rgba(255, 75, 139, 0.95), rgba(255, 75, 139, 0.95));
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 1.5rem 3.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: 0 0.5rem;
  box-shadow: 0 10px 30px rgba(255, 75, 139, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  white-space: nowrap;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 75, 139, 0.4);
}

/* Impact Cards */
.impact-card {
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
  transition: all 0.4s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
}

.impact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(225, 24, 55, 0.25);
  border-color: var(--primary-red);
}

.impact-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}

.impact-label {
  color: var(--primary-green);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Team Cards */
.team-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.committee-card {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 20px 50px rgba(0, 106, 78, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 106, 78, 0.08);
  position: relative;
}

.committee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-pink));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.committee-card:hover::before {
  opacity: 1;
}

.committee-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 70px rgba(0, 106, 78, 0.14), 0 12px 24px rgba(255, 75, 139, 0.08);
  border-color: rgba(255, 75, 139, 0.2);
}

.committee-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.08), rgba(255, 75, 139, 0.08));
}

.committee-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.committee-card:hover .committee-photo::after {
  opacity: 1;
}

.committee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.committee-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-green));
}

.committee-card-body {
  padding: 1.75rem 2rem 2rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(250, 251, 252, 0.95));
  backdrop-filter: blur(10px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.committee-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.committee-card:hover .committee-name {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.committee-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  display: inline-block;
  align-self: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 75, 139, 0.15), rgba(255, 75, 139, 0.08));
  color: var(--primary-pink);
  transition: all 0.3s ease;
}

.committee-card:hover .committee-role {
  background: linear-gradient(135deg, var(--primary-pink), rgba(255, 75, 139, 0.9));
  color: white;
  transform: scale(1.05);
}

.committee-affiliation {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #6c757d;
  margin: 0 auto;
  max-width: 95%;
  text-align: center;
  font-weight: 400;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(225, 24, 55, 0.25), rgba(0, 106, 78, 0.25));
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
  border: 2px solid rgba(255, 75, 139, 0.6);
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  background-clip: padding-box;
}

.team-photo img {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  border-radius: 50%;
  background-color: #fff;
}

@media (max-width: 992px) {
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .team-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
}

.team-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.team-role {
  color: var(--accent-coral);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Form Styling */
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-floating label {
  padding: 1rem;
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 10px;
  background-color: #e9ecef;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent-coral), #e55a2b);
  border-radius: 10px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Utilities */
.text-navy {
  color: var(--primary-navy);
}

.text-coral {
  color: var(--accent-coral);
}

.bg-navy {
  background-color: var(--primary-navy);
}

.bg-beige {
  background-color: var(--primary-beige);
}

.shadow-custom {
  box-shadow: var(--shadow);
}

.shadow-lg-custom {
  box-shadow: var(--shadow-lg);
}

/* Logo Styling */
.navbar-brand img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

/* Enhanced Logo Styling */
.logo-enhanced {
  height: 70px !important;
  width: 70px !important;
  object-fit: contain;
  transition: transform 0.3s ease !important;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15)) !important;
}

.logo-enhanced:hover {
  transform: scale(1.05) !important;
}

/* Color utility classes */
.text-red {
  color: var(--primary-red) !important;
}

.text-green {
  color: var(--primary-green) !important;
}

.bg-red {
  background-color: var(--primary-red) !important;
}

.bg-green {
  background-color: var(--primary-green) !important;
}

/* Font Awesome Icon Fixes - Ensure proper loading and display */
.fas, .fab, .far, .fa {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'FontAwesome', sans-serif !important;
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto;
  line-height: 1 !important;
  vertical-align: middle;
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
}

/* Force Font Awesome pseudo-elements */
.fas::before, .fab::before, .far::before, .fa::before {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'FontAwesome', sans-serif !important;
  font-weight: 900 !important;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Specific icon overrides for homepage */
.fa-user-graduate::before, 
.fa-heart::before, 
.fa-users::before,
.fa-handshake::before,
.fa-hands-helping::before,
.fa-dollar-sign::before,
.fa-chart-line::before,
.fa-globe::before,
.fa-envelope::before {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Premium Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

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

/* Enhanced Card Hover Effects */
.card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-green);
}

/* Enhanced Button Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Glass Morphism Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gradient Text Effects */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Accordion Styling */
.accordion-item {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.accordion-item:hover {
  box-shadow: 0 8px 24px rgba(0, 106, 78, 0.12);
  border-color: rgba(0, 106, 78, 0.15);
  transform: translateY(-2px);
}

.accordion-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.02) 0%, rgba(225, 24, 55, 0.02) 100%);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.5rem 1.75rem;
  border: none;
  position: relative;
}

.accordion-button::after {
  content: '+';
  background-image: none !important;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: var(--accent-yellow);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  position: absolute;
  right: 1.5rem;
  box-shadow: 0 8px 18px rgba(255, 193, 7, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  content: '–';
  transform: rotate(180deg);
  background-color: rgba(255, 193, 7, 0.9);
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

.accordion-button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-green), var(--primary-red));
  transition: width 0.3s ease;
}

.accordion-button:hover {
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.08) 0%, rgba(225, 24, 55, 0.08) 100%);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.25);
}

.accordion-button:not(.collapsed)::before {
  width: 6px;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.35rem rgba(0, 106, 78, 0.15);
  outline: none;
}

.accordion-button:not(.collapsed):focus {
  box-shadow: 0 0 0 0.35rem rgba(0, 106, 78, 0.25), 0 6px 20px rgba(0, 106, 78, 0.25);
}

/* Premium Loading Animation */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Enhanced Form Styling */
.form-control {
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.25);
  transform: translateY(-2px);
}

/* Premium Navigation Effects */
.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Enhanced Impact Cards */
.impact-card {
  position: relative;
  overflow: hidden;
}

.impact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.impact-card:hover::after {
  left: 100%;
}

/* Responsive Design - Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll !important;
    padding: 5rem 1.5rem 4rem !important;
    min-height: auto !important;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content .lead {
    font-size: 1.1rem !important;
    max-width: 100% !important;
    color: #ffd86b !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }

  .glass-btn {
    display: block;
    margin: 0.5rem 0;
    text-align: center;
    width: 100%;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px;
  }
  
  /* Mobile logo sizing */
  .logo-visual {
    width: 32px !important;
    height: 32px !important;
  }
  
  .logo-visual .logo-fallback {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }
  
  .logo-visual .logo-3d-canvas canvas {
    max-width: 32px !important;
    max-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* Sticky Donate Button */
.donate-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 50px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
}

.donate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

/* Accordion Styling */
.accordion-button {
  background-color: var(--primary-beige);
  color: var(--primary-navy);
  font-weight: 600;
  border: none;
  border-radius: 10px !important;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.25);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.35rem rgba(0, 106, 78, 0.25);
  border: none;
}

.accordion-body {
  background-color: var(--white);
  border-radius: 0 0 10px 10px;
  padding: 2rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 1rem;
}

/* Student Profile Cards */
.student-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 2rem;
}

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

.student-photo {
  width: 100%;
  height: 250px;
  background: var(--primary-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-light);
  border-bottom: 3px solid var(--accent-coral);
}

.student-info {
  padding: 2rem;
}

.student-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.student-details {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.student-story {
  background: var(--primary-beige);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-coral);
}

.recipient-gender {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.recipient-card {
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(0, 106, 78, 0.08);
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.06), 0 2px 8px rgba(0, 51, 102, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: #fff;
  position: relative;
}

.recipient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-red));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.recipient-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 106, 78, 0.15), 0 8px 16px rgba(225, 24, 55, 0.08);
  border-color: rgba(0, 106, 78, 0.2);
}

.recipient-card:hover::before {
  opacity: 1;
}

.recipient-avatar-wrapper {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin-bottom: 0;
}

.recipient-avatar-wrapper .recipient-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.recipient-card:hover .recipient-avatar-wrapper .recipient-photo {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.recipient-avatar-wrapper .recipient-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

.recipient-avatar-wrapper.fallback-only .recipient-avatar-fallback,
.recipient-avatar-wrapper .recipient-avatar-fallback.active {
  opacity: 1;
}

.recipient-avatar-wrapper .recipient-avatar-fallback::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

.recipient-avatar-wrapper .recipient-avatar-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.recipient-card:hover .recipient-avatar-wrapper .recipient-avatar-fallback img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.recipient-body {
  padding: 2rem;
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

.recipient-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.recipient-card:hover .recipient-name {
  color: var(--primary-red);
}

.recipient-education {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.recipient-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.1), rgba(0, 106, 78, 0.05));
  color: var(--primary-green);
  border-radius: 999px;
  border: 1.5px solid rgba(0, 106, 78, 0.15);
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 500;
}

.recipient-card:hover .recipient-tag {
  background: linear-gradient(135deg, rgba(225, 24, 55, 0.1), rgba(225, 24, 55, 0.05));
  color: var(--primary-red);
  border-color: rgba(225, 24, 55, 0.2);
  transform: translateY(-2px);
}

/* ========================================
   3D Card Gallery Effect
   ======================================== */

/* Gallery wrapper - full width container */
.floating-cards-gallery {
  position: relative;
  width: 100%;
  padding: 1rem 0;
  /* Global scale for the entire 3D stage: 0.5 = 50% */
  --gallery-scale: 0.45;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Vertical Column Layout */
.multi-row-carousel {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

.multi-row-carousel .floating-cards-gallery {
  flex: 1;
  max-width: 500px;
}

.gallery-scroll-container.vertical-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  height: auto;
  min-height: 500px;
  transform: scale(1);
}

.gallery-scroll-container.vertical-column .floating-card-item {
  position: relative;
  transform: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Optional wrapper for stacking multiple gallery rows */
.gallery-stack {
  display: grid;
  row-gap: 2rem;
}

/* Individual card wrapper for 3D positioning */
.floating-card-item {
  position: absolute;
  width: 350px;
  height: auto;
  /* Center the cards in the container */
  left: 50%;
  top: 50%;
  margin-left: -175px; /* Half of width */
  margin-top: -200px; /* Approximate half of height */
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  pointer-events: all;
  backface-visibility: hidden;
}

/* Default shadow for all cards without specific position shadows */
.floating-card-item:not([data-position]) .recipient-card,
.floating-card-item[data-position="5"] .recipient-card,
.floating-card-item[data-position="-5"] .recipient-card {
  box-shadow:
    0 8px 16px rgba(0, 106, 78, 0.12),
    0 4px 8px rgba(225, 24, 55, 0.06),
    0 0 6px rgba(255, 255, 255, 0.03),
    0 0 12px rgba(225, 24, 55, 0.04); /* Default red glow */
}

/* Center card - prominent and forward */
.floating-card-item[data-position="0"] {
  transform: translateZ(200px) scale(1.15); /* Enhanced depth and scale */
  z-index: 100;
  opacity: 1;
  filter: none; /* Sharp focus for center card */
}

.floating-card-item[data-position="0"] .recipient-card {
  box-shadow:
    0 25px 50px rgba(0, 106, 78, 0.25),
    0 10px 25px rgba(225, 24, 55, 0.15),
    0 0 15px rgba(255, 255, 255, 0.08),
    0 0 25px rgba(225, 24, 55, 0.12); /* Red glow for center card */
}

/* Adjacent cards - slightly receded */
.floating-card-item[data-position="1"] {
    transform: translateX(440px) translateZ(150px) scale(1.08) rotateY(-3deg); /* Enhanced depth */
    z-index: 98;
    opacity: 1;
    filter: blur(0.5px); /* Slight blur for depth of field */
  }

.floating-card-item[data-position="1"] .recipient-card {
  box-shadow:
    0 20px 40px rgba(0, 106, 78, 0.2),
    0 8px 20px rgba(225, 24, 55, 0.12),
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(225, 24, 55, 0.08); /* Red glow for adjacent cards */
}

.floating-card-item[data-position="-1"] {
    transform: translateX(-440px) translateZ(150px) scale(1.08) rotateY(3deg); /* Enhanced depth */
    z-index: 98;
    opacity: 1;
    filter: blur(0.5px); /* Slight blur for depth of field */
  }

.floating-card-item[data-position="-1"] .recipient-card {
  box-shadow:
    0 20px 40px rgba(0, 106, 78, 0.2),
    0 8px 20px rgba(225, 24, 55, 0.12),
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(225, 24, 55, 0.08); /* Red glow for adjacent cards */
}

  /* Outer cards - still highlighted */
.floating-card-item[data-position="2"] {
    transform: translateX(880px) translateZ(80px) scale(1.02) rotateY(-4deg); /* Enhanced depth */
    z-index: 96;
    opacity: 1;
    filter: blur(1px); /* More blur for depth of field */
  }

.floating-card-item[data-position="-2"] {
    transform: translateX(-880px) translateZ(80px) scale(1.02) rotateY(4deg); /* Enhanced depth */
    z-index: 96;
    opacity: 1;
    filter: blur(1px); /* More blur for depth of field */
  }

  /* Far outer cards - visible shell for 9-card layout */
  .floating-card-item[data-position="3"] {
    transform: translateX(1320px) translateZ(20px) scale(0.95) rotateY(-6deg); /* Enhanced depth */
    z-index: 92;
    opacity: 0.9;
    filter: blur(1.5px); /* More blur for depth of field */
    pointer-events: none;
  }

  .floating-card-item[data-position="-3"] {
    transform: translateX(-1320px) translateZ(20px) scale(0.95) rotateY(6deg); /* Enhanced depth */
    z-index: 92;
    opacity: 0.9;
    filter: blur(1.5px); /* More blur for depth of field */
    pointer-events: none;
  }

  .floating-card-item[data-position="4"] {
    transform: translateX(1760px) translateZ(-20px) scale(0.88) rotateY(-8deg); /* Enhanced depth */
    z-index: 90;
    opacity: 0.8;
    filter: blur(2px); /* Strong blur for depth of field */
    pointer-events: none;
  }

  .floating-card-item[data-position="-4"] {
    transform: translateX(-1760px) translateZ(-20px) scale(0.88) rotateY(8deg); /* Enhanced depth */
    z-index: 90;
    opacity: 0.8;
    filter: blur(2px); /* Strong blur for depth of field */
    pointer-events: none;
  }

  /* Cards beyond visible range */
  .floating-card-item[data-position="5"],
  .floating-card-item[data-position="-5"] {
    opacity: 0;
    pointer-events: none;
    z-index: 60;
  }

/* Hide cards until JavaScript sets position */
.floating-card-item:not([data-position]) {
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transform: translateZ(0) scale(1);
}

  /* Debug border removed */

/* Enhanced hover effect for 3D cards */
.floating-card-item.is-hovered {
  z-index: 180 !important;
  filter: none !important; /* Remove blur on hover */
}

.floating-card-item .recipient-card {
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.floating-card-item.is-hovered .recipient-card {
  transform: scale(1.08);
  box-shadow:
    0 40px 80px rgba(0, 106, 78, 0.3),
    0 20px 40px rgba(225, 24, 55, 0.2),
    0 0 20px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(225, 24, 55, 0.25); /* Enhanced red glow on hover */
}

/* Navigation Controls */
.gallery-nav {
    position: absolute;
    right: 1rem; /* Closer to edge but visible */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* No scale for main navigation */
    bottom: auto; /* Remove bottom positioning */
    left: auto; /* Remove left/right full width */
    z-index: 300;
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 0.5rem; /* Normal gap */
    align-items: center;
    justify-content: center;
    margin-top: 0;
    pointer-events: auto;
    /* macOS Tahoe-style frosted glass effect */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.8rem; /* Normal padding */
    border-radius: 8px; /* Normal radius */
    box-shadow: 0 8px 32px rgba(0, 106, 78, 0.1); /* Enhanced glass shadow */
}

.gallery-nav-btn {
  width: 48px; /* Larger size for better visibility */
  height: 48px;
  border-radius: 50%;
  /* Frosted glass background */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 106, 78, 0.3);
  color: var(--primary-green);
  font-size: 1.2rem; /* Larger readable size */
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1); /* macOS-style easing */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.15);
}

.gallery-nav-btn:hover {
  /* Enhanced glass hover state */
  background: rgba(0, 106, 78, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-color: rgba(0, 106, 78, 0.5);
  color: white;
  transform: scale(1.1); /* Subtle scale for glass buttons */
  box-shadow:
    0 6px 16px rgba(0, 106, 78, 0.25),
    0 0 20px rgba(0, 106, 78, 0.1);
}

.gallery-nav-btn:active {
  transform: scale(1.05); /* Minimal active scale for glass effect */
  transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1); /* Quick response */
  box-shadow:
    0 2px 8px rgba(0, 106, 78, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* macOS-Style Vertical Slider Navigation */
.gallery-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 15px; /* Wider for better visibility */
  height: 180px; /* Taller for better visibility */
  position: relative;
  pointer-events: auto;
  /* Smooth spring animation for all transforms */
  transition: height 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slider-track {
  width: 10px; /* Larger width for better visibility */
  height: 100%;
  /* macOS glass effect with backdrop blur */
  background: rgba(0, 106, 78, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px; /* Rounded pill shape */
  position: relative;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1), /* Inner shadow for depth */
    0 1px 2px rgba(255, 255, 255, 0.2); /* Subtle highlight */
}

.slider-thumb {
  width: 18px; /* Larger size for better visibility */
  height: 18px;
  border-radius: 50%;
  /* macOS liquid glass gradient background */
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.9), rgba(0, 106, 78, 1));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Layered glass borders */
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
  transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1); /* macOS-style easing */
  /* Layered glass shadow with outer glow */
  box-shadow:
    0 4px 12px rgba(0, 106, 78, 0.3), /* Main shadow */
    0 0 0 1px rgba(255, 255, 255, 0.1), /* Inner glass highlight */
    0 0 20px rgba(0, 106, 78, 0.15); /* Outer glow */
}

.slider-thumb:active {
  cursor: grabbing;
  transform: translateX(-50%) scale(1.25); /* More dramatic scale for active state */
  transition: all 0.1s cubic-bezier(0.4, 0.0, 0.2, 1); /* Quick response on drag */
  box-shadow:
    0 6px 16px rgba(0, 106, 78, 0.4), /* Enhanced active shadow */
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(0, 106, 78, 0.25); /* Stronger glow */
}

.slider-thumb:hover {
  transform: translateX(-50%) scale(1.15); /* Subtle hover scale */
  box-shadow:
    0 5px 14px rgba(0, 106, 78, 0.35), /* Enhanced hover shadow */
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 25px rgba(0, 106, 78, 0.2); /* Increased glow */
}

/* Responsive 3D Gallery */
@media (max-width: 1200px) {
  .gallery-scroll-container {
    perspective: 1000px;
    --gallery-height-base: 550px;
    height: calc(var(--gallery-height-base) * var(--gallery-scale, 0.25));
  }

  .floating-card-item {
      width: 320px;
      margin-left: -160px; /* Half of 320px */
    }
  
  .floating-card-item[data-position="1"] {
      transform: translateX(320px) translateZ(70px) scale(1.08) rotateY(-4deg);
    }
  
  .floating-card-item[data-position="-1"] {
      transform: translateX(-320px) translateZ(70px) scale(1.08) rotateY(4deg);
    }
  
  .floating-card-item[data-position="2"] {
      transform: translateX(640px) translateZ(50px) scale(1.04) rotateY(-6deg);
    }
  
  .floating-card-item[data-position="-2"] {
      transform: translateX(-640px) translateZ(50px) scale(1.04) rotateY(6deg);
    }
  .floating-card-item[data-position="3"] {
      transform: translateX(960px) translateZ(30px) scale(0.98) rotateY(-8deg);
      opacity: 1;
      pointer-events: none;
    }
  
  .floating-card-item[data-position="-3"] {
      transform: translateX(-960px) translateZ(30px) scale(0.98) rotateY(8deg);
      opacity: 1;
      pointer-events: none;
    }
  
  .floating-card-item[data-position="4"] {
      transform: translateX(1240px) translateZ(0) scale(0.9) rotateY(-10deg);
      opacity: 1;
      pointer-events: none;
    }
  
  .floating-card-item[data-position="-4"] {
      transform: translateX(-1240px) translateZ(0) scale(0.9) rotateY(10deg);
      opacity: 1;
      pointer-events: none;
    }
  }

@media (max-width: 768px) {
  /* Scale down the entire gallery uniformly for tablets */
  .floating-cards-gallery {
    --gallery-scale: 0.35; /* Reduce from 0.45 to 0.35 for tablets */
  }

  .gallery-scroll-container {
    perspective: 800px;
    --gallery-height-base: 500px;
    height: calc(var(--gallery-height-base) * var(--gallery-scale, 0.35));
    max-width: 100%;
  }

  .floating-card-item {
    width: 280px;
    margin-left: -140px; /* Half of 280px */
  }

  /* Update main navigation slider for mobile */
  .gallery-slider {
    width: 10px; /* Larger for touch on tablet */
    height: 120px; /* Shorter for tablet */
  }

  .slider-track {
    width: 6px; /* Visible on tablet */
  }

  .slider-thumb {
    width: 14px; /* Touch-friendly on tablet */
    height: 14px;
  }

  .floating-card-item[data-position="0"] {
      transform: translateZ(80px) scale(1.1);
    }

  .floating-card-item[data-position="0"] .recipient-card {
    box-shadow:
      0 20px 40px rgba(0, 106, 78, 0.2),
      0 8px 20px rgba(225, 24, 55, 0.12),
      0 0 12px rgba(255, 255, 255, 0.06),
      0 0 20px rgba(225, 24, 55, 0.1); /* Red glow for tablet center */
  }

  .floating-card-item[data-position="1"] {
      transform: translateX(320px) translateZ(60px) scale(1.06) rotateY(-6deg);
      opacity: 1;
    }

  .floating-card-item[data-position="1"] .recipient-card {
    box-shadow:
      0 15px 30px rgba(0, 106, 78, 0.15),
      0 6px 15px rgba(225, 24, 55, 0.08),
      0 0 8px rgba(255, 255, 255, 0.04),
      0 0 15px rgba(225, 24, 55, 0.06); /* Red glow for tablet adjacent */
  }

  .floating-card-item[data-position="-1"] {
      transform: translateX(-320px) translateZ(60px) scale(1.06) rotateY(6deg);
      opacity: 1;
    }

  .floating-card-item[data-position="-1"] .recipient-card {
    box-shadow:
      0 15px 30px rgba(0, 106, 78, 0.15),
      0 6px 15px rgba(225, 24, 55, 0.08),
      0 0 8px rgba(255, 255, 255, 0.04),
      0 0 15px rgba(225, 24, 55, 0.06); /* Red glow for tablet adjacent */
  }

  .floating-card-item[data-position="2"] {
      transform: translateX(640px) translateZ(40px) scale(1.02) rotateY(-8deg);
      opacity: 1;
    }

  .floating-card-item[data-position="2"] .recipient-card {
    box-shadow:
      0 12px 25px rgba(0, 106, 78, 0.12),
      0 4px 12px rgba(225, 24, 55, 0.06),
      0 0 6px rgba(255, 255, 255, 0.03),
      0 0 12px rgba(225, 24, 55, 0.04); /* Light red glow for tablet outer */
  }

  .floating-card-item[data-position="-2"] {
      transform: translateX(-640px) translateZ(40px) scale(1.02) rotateY(8deg);
      opacity: 1;
    }

  .floating-card-item[data-position="-2"] .recipient-card {
    box-shadow:
      0 12px 25px rgba(0, 106, 78, 0.12),
      0 4px 12px rgba(225, 24, 55, 0.06),
      0 0 6px rgba(255, 255, 255, 0.03),
      0 0 12px rgba(225, 24, 55, 0.04); /* Light red glow for tablet outer */
  }

  .floating-card-item[data-position="3"] {
      transform: translateX(960px) translateZ(20px) scale(0.96) rotateY(-10deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="3"] .recipient-card {
    box-shadow:
      0 8px 18px rgba(0, 106, 78, 0.08),
      0 3px 8px rgba(225, 24, 55, 0.04),
      0 0 8px rgba(225, 24, 55, 0.03); /* Subtle red glow for tablet far */
  }

  .floating-card-item[data-position="-3"] {
      transform: translateX(-960px) translateZ(20px) scale(0.96) rotateY(10deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="-3"] .recipient-card {
    box-shadow:
      0 8px 18px rgba(0, 106, 78, 0.08),
      0 3px 8px rgba(225, 24, 55, 0.04),
      0 0 8px rgba(225, 24, 55, 0.03); /* Subtle red glow for tablet far */
  }

  .floating-card-item[data-position="4"] {
      transform: translateX(1160px) translateZ(0) scale(0.9) rotateY(-12deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="4"] .recipient-card {
    box-shadow:
      0 5px 12px rgba(0, 106, 78, 0.06),
      0 2px 6px rgba(225, 24, 55, 0.02),
      0 0 6px rgba(225, 24, 55, 0.02); /* Minimal red glow for tablet distant */
  }

  .floating-card-item[data-position="-4"] {
      transform: translateX(-1160px) translateZ(0) scale(0.9) rotateY(12deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="-4"] .recipient-card {
    box-shadow:
      0 5px 12px rgba(0, 106, 78, 0.06),
      0 2px 6px rgba(225, 24, 55, 0.02),
      0 0 6px rgba(225, 24, 55, 0.02); /* Minimal red glow for tablet distant */
  }

  .gallery-nav-btn {
    width: 40px; /* Visible size for mobile navigation */
    height: 40px;
    font-size: 1rem; /* Readable size for mobile */
  }

    /* Update main navigation slider for tablets */
    .gallery-slider {
        width: 7px; /* Slightly smaller than desktop for tablets */
        height: 160px; /* Good height for tablets */
    }

    .slider-track {
        width: 4px; /* Proportionally visible with glass effect */
        background: rgba(0, 106, 78, 0.18);
        backdrop-filter: blur(8px); /* Slightly reduced blur for performance */
        -webkit-backdrop-filter: blur(8px);
    }

    .slider-thumb {
        width: 16px; /* Visible thumb for tablets */
        height: 16px;
        background: linear-gradient(135deg, rgba(0, 106, 78, 0.85), rgba(0, 106, 78, 0.95));
        backdrop-filter: blur(6px); /* Reduced blur for performance */
        -webkit-backdrop-filter: blur(6px);
    }
}

@media (max-width: 480px) {
  /* Scale down the entire gallery even more for mobile phones */
  .floating-cards-gallery {
    --gallery-scale: 0.32; /* Increase from 0.28 to make cards larger */
    padding: 2.5rem 0; /* Increase padding to prevent clipping */
    gap: 0.5rem; /* Reduce gap between gallery elements */
  }
  
  /* Reduce gap between rows on mobile */
  .gallery-stack {
    row-gap: 0.5rem;
  }
  
  /* Bring multi-row carousel rows closer together */
  .multi-row-carousel .floating-cards-gallery {
    margin-bottom: -5rem !important; /* More negative margin to bring rows closer */
  }
  
  .multi-row-carousel {
    padding: 0.5rem 0; /* Reduce padding on mobile */
  }
  
  /* Disable hover effects on mobile to prevent stuck highlighted state */
  .recipient-card:hover {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.06), 0 2px 8px rgba(0, 51, 102, 0.04) !important;
    border-color: rgba(0, 106, 78, 0.08) !important;
  }
  
  .recipient-card:hover::before {
    opacity: 0 !important;
  }
  
  .floating-card-item.is-hovered .recipient-card {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.06), 0 2px 8px rgba(0, 51, 102, 0.04) !important;
    border-color: rgba(0, 106, 78, 0.08) !important;
  }

  .gallery-scroll-container {
    --gallery-height-base: 650px; /* Increase height significantly */
    height: calc(var(--gallery-height-base) * var(--gallery-scale, 0.32));
    perspective: 600px;
    max-width: 100%;
    overflow: visible; /* Ensure no clipping */
    padding: 3rem 0; /* Increase padding inside container */
  }

  .floating-card-item {
    width: 240px; /* Smaller cards for mobile */
    margin-left: -120px; /* Half of 240px */
    margin-top: -120px; /* Further reduce negative margin to prevent clipping */
    top: 55%; /* Move the anchor point down slightly */
  }

  /* Adjust navigation for mobile */
  .gallery-nav {
    padding: 0.5rem;
    gap: 0.3rem;
  }

  .gallery-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Compact slider for mobile */
  .gallery-slider {
    width: 8px;
    height: 100px;
  }

  .slider-track {
    width: 4px;
  }

  .slider-thumb {
    width: 12px;
    height: 12px;
  }

  .floating-card-item[data-position="0"] .recipient-card {
    box-shadow:
      0 18px 35px rgba(0, 106, 78, 0.18),
      0 6px 18px rgba(225, 24, 55, 0.1),
      0 0 10px rgba(255, 255, 255, 0.05),
      0 0 18px rgba(225, 24, 55, 0.08); /* Red glow for mobile center */
  }

  .floating-card-item[data-position="1"] {
      transform: translateX(110px) translateZ(40px) scale(1.02) rotateY(-6deg);
    }

  .floating-card-item[data-position="1"] .recipient-card {
    box-shadow:
      0 12px 25px rgba(0, 106, 78, 0.12),
      0 5px 12px rgba(225, 24, 55, 0.06),
      0 0 6px rgba(255, 255, 255, 0.03),
      0 0 12px rgba(225, 24, 55, 0.05); /* Red glow for mobile adjacent */
  }

  .floating-card-item[data-position="-1"] {
      transform: translateX(-110px) translateZ(40px) scale(1.02) rotateY(6deg);
    }

  .floating-card-item[data-position="-1"] .recipient-card {
    box-shadow:
      0 12px 25px rgba(0, 106, 78, 0.12),
      0 5px 12px rgba(225, 24, 55, 0.06),
      0 0 6px rgba(255, 255, 255, 0.03),
      0 0 12px rgba(225, 24, 55, 0.05); /* Red glow for mobile adjacent */
  }

  .floating-card-item[data-position="2"] {
      transform: translateX(170px) translateZ(20px) scale(0.98) rotateY(-8deg);
    }

  .floating-card-item[data-position="2"] .recipient-card {
    box-shadow:
      0 10px 20px rgba(0, 106, 78, 0.1),
      0 3px 10px rgba(225, 24, 55, 0.05),
      0 0 5px rgba(255, 255, 255, 0.02),
      0 0 10px rgba(225, 24, 55, 0.03); /* Light red glow for mobile outer */
  }

  .floating-card-item[data-position="-2"] {
      transform: translateX(-170px) translateZ(20px) scale(0.98) rotateY(8deg);
    }

  .floating-card-item[data-position="-2"] .recipient-card {
    box-shadow:
      0 10px 20px rgba(0, 106, 78, 0.1),
      0 3px 10px rgba(225, 24, 55, 0.05),
      0 0 5px rgba(255, 255, 255, 0.02),
      0 0 10px rgba(225, 24, 55, 0.03); /* Light red glow for mobile outer */
  }

 }

.floating-card-item[data-position="3"] {
      transform: translateX(400px) translateZ(10px) scale(0.96) rotateY(-12deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="3"] .recipient-card {
    box-shadow:
      0 6px 15px rgba(0, 106, 78, 0.06),
      0 2px 6px rgba(225, 24, 55, 0.03),
      0 0 6px rgba(225, 24, 55, 0.02); /* Subtle red glow for mobile far */
  }

  .floating-card-item[data-position="-3"] {
      transform: translateX(-400px) translateZ(10px) scale(0.96) rotateY(12deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="-3"] .recipient-card {
    box-shadow:
      0 6px 15px rgba(0, 106, 78, 0.06),
      0 2px 6px rgba(225, 24, 55, 0.03),
      0 0 6px rgba(225, 24, 55, 0.02); /* Subtle red glow for mobile far */
  }

  .floating-card-item[data-position="4"] {
      transform: translateX(460px) translateZ(0px) scale(0.9) rotateY(-14deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="4"] .recipient-card {
    box-shadow:
      0 4px 10px rgba(0, 106, 78, 0.04),
      0 1px 4px rgba(225, 24, 55, 0.02),
      0 0 4px rgba(225, 24, 55, 0.015); /* Minimal red glow for mobile distant */
  }

  .floating-card-item[data-position="-4"] {
      transform: translateX(-460px) translateZ(0px) scale(0.9) rotateY(14deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="-4"] .recipient-card {
    box-shadow:
      0 4px 10px rgba(0, 106, 78, 0.04),
      0 1px 4px rgba(225, 24, 55, 0.02),
      0 0 6px rgba(225, 24, 55, 0.02); /* Subtle red glow for mobile far */
  }

  .floating-card-item[data-position="4"] {
      transform: translateX(460px) translateZ(0px) scale(0.9) rotateY(-14deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="4"] .recipient-card {
    box-shadow:
      0 4px 10px rgba(0, 106, 78, 0.04),
      0 1px 4px rgba(225, 24, 55, 0.02),
      0 0 4px rgba(225, 24, 55, 0.015); /* Minimal red glow for mobile distant */
  }

  .floating-card-item[data-position="-4"] {
      transform: translateX(-460px) translateZ(0px) scale(0.9) rotateY(14deg);
      opacity: 1;
      pointer-events: none;
    }

  .floating-card-item[data-position="-4"] .recipient-card {
    box-shadow:
      0 4px 10px rgba(0, 106, 78, 0.04),
      0 1px 4px rgba(225, 24, 55, 0.02),
      0 0 4px rgba(225, 24, 55, 0.015); /* Minimal red glow for mobile distant */
  }

    /* Update main navigation slider for mobile */
    .gallery-slider {
        width: 6px; /* Still visible on mobile with glass effect */
        height: 140px; /* Compact but usable for mobile */
    }

    .slider-track {
        width: 3.5px; /* Visible on mobile with glass effect */
        background: rgba(0, 106, 78, 0.2);
        backdrop-filter: blur(5px); /* Reduced blur for mobile performance */
        -webkit-backdrop-filter: blur(5px);
    }

    .slider-thumb {
        width: 14px; /* Usable thumb for mobile */
        height: 14px;
        background: linear-gradient(135deg, rgba(0, 106, 78, 0.8), rgba(0, 106, 78, 0.9));
        backdrop-filter: blur(4px); /* Minimal blur for mobile performance */
        -webkit-backdrop-filter: blur(4px);
    }

}

/* Extra small phones - 360px and below */
@media (max-width: 360px) {
  .floating-cards-gallery {
    --gallery-scale: 0.22; /* Even smaller for tiny phones */
    padding: 0.25rem 0;
  }

  .gallery-scroll-container {
    --gallery-height-base: 400px;
    height: calc(var(--gallery-height-base) * var(--gallery-scale, 0.22));
    perspective: 500px;
  }

  .floating-card-item {
    width: 220px;
    margin-left: -110px;
  }

  .gallery-nav {
    padding: 0.4rem;
    gap: 0.2rem;
  }

  .gallery-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .gallery-slider {
    width: 6px;
    height: 80px;
  }

  .slider-track {
    width: 3px;
  }

  .slider-thumb {
    width: 10px;
    height: 10px;
  }
}

/* Tablet - Scale card content proportionally */
@media (max-width: 768px) {
  .recipient-avatar-wrapper {
    height: 220px; /* Scale from 260px */
  }

  .recipient-body {
    padding: 1.5rem; /* Scale from 2rem */
  }

  .recipient-name {
    font-size: 1.1rem; /* Scale from 1.25rem */
    margin-bottom: 0.6rem;
  }

  .recipient-education {
    font-size: 0.85rem; /* Scale from 0.95rem */
    margin-bottom: 0.8rem;
  }

  .recipient-tag {
    padding: 0.4rem 0.85rem; /* Scale from 0.5rem 1rem */
    font-size: 0.75rem; /* Scale from 0.85rem */
  }
}

/* Mobile phones - Scale card content even more */
@media (max-width: 480px) {
  .recipient-avatar-wrapper {
    height: 190px; /* Scale further for mobile */
    border-radius: 14px 14px 0 0; /* Scale from 18px */
  }

  .recipient-card {
    border-radius: 18px; /* Scale from 24px */
  }

  .recipient-body {
    padding: 1.2rem; /* Scale from 2rem */
  }

  .recipient-name {
    font-size: 0.95rem; /* Scale from 1.25rem */
    margin-bottom: 0.5rem;
  }

  .recipient-education {
    font-size: 0.75rem; /* Scale from 0.95rem */
    margin-bottom: 0.65rem;
  }

  .recipient-tag {
    padding: 0.35rem 0.7rem; /* Scale from 0.5rem 1rem */
    font-size: 0.68rem; /* Scale from 0.85rem */
  }
}

/* Extra small phones - Minimal card content */
@media (max-width: 360px) {
  .recipient-avatar-wrapper {
    height: 170px; /* Scale for tiny phones */
    border-radius: 12px 12px 0 0;
  }

  .recipient-card {
    border-radius: 16px; /* Scale from 24px */
  }

  .recipient-body {
    padding: 1rem; /* Scale from 2rem */
  }

  .recipient-name {
    font-size: 0.85rem; /* Scale from 1.25rem */
    margin-bottom: 0.4rem;
  }

  .recipient-education {
    font-size: 0.7rem; /* Scale from 0.95rem */
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .recipient-tag {
    padding: 0.3rem 0.6rem; /* Scale from 0.5rem 1rem */
    font-size: 0.62rem; /* Scale from 0.85rem */
  }
}

/* Prevent horizontal overflow on all mobile devices */
@media (max-width: 768px) {
  #student-stories {
    overflow-x: hidden;
    overflow-y: visible; /* Allow vertical overflow so cards aren't clipped */
    padding-top: 2rem; /* Extra padding to prevent top clipping */
    padding-bottom: 2rem; /* Extra padding to prevent bottom clipping */
  }

  .floating-cards-gallery {
    overflow-x: hidden;
    overflow-y: visible; /* Allow vertical overflow */
  }

  body {
    overflow-x: hidden;
  }
}

.impact-stat__value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: -0.02em;
}

.impact-stat__label {
  letter-spacing: 0.08em;
}

.impact-scholarship-card {
  border: 1px solid rgba(0, 106, 78, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-scholarship-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(0, 106, 78, 0.12);
}

.recipient-meta {
  margin-top: 1.5rem;
}

.recipient-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.recipient-meta__label {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.recipient-meta__value {
  color: #4a5568;
}

/* Ensure hero section text is visible */
section .lead {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #6c757d !important;
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
}

section > div > div > div > p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #6c757d !important;
}

section p {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ========================================
   OLD 3-COLUMN GRID - DISABLED
   Using 5-row 3D carousel instead
   ======================================== */
/*
#student-stories .row.g-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(33.333% - 1rem), 1fr));
  gap: 2rem;
}

@media (max-width: 1199px) {
  #student-stories .row.g-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  #student-stories .row.g-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  #student-stories .row.g-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  #student-stories .row.g-4 {
    grid-template-columns: 1fr;
  }
}

#student-stories .col-12.col-sm-6.col-md-4 {
  max-width: 100% !important;
  flex: none !important;
}
*/

/* ========================================
   MULTI-ROW 3D CAROUSEL (2 ROWS)
   ======================================== */

/* Outer container for all 2 rows */
.multi-row-carousel {
    position: relative;
    width: 100%;
    padding: 1rem 0; /* Reduced from 2rem to match home page proportions */
}

/* Each row gets ultra-compact spacing */
.multi-row-carousel .floating-cards-gallery {
    margin-bottom: 1px; /* Minimal 1px space between rows */
}

/* Last row has minimal bottom margin */
.multi-row-carousel .floating-cards-gallery:last-of-type {
    margin-bottom: 1px;
}

/* Override gallery-nav positioning for multi-row */
.multi-row-carousel .gallery-nav {
    position: fixed; /* Changed to fixed for right-side positioning */
    right: 1rem; /* Visible position */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* No scale for multi-row navigation */
    bottom: auto; /* Remove bottom positioning */
    left: auto; /* Remove left/right full width */
    margin-top: 0; /* Remove top margin */
    padding: 0.8rem; /* Normal padding */
    /* macOS Tahoe-style frosted glass effect for multi-row */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px; /* Normal radius */
    box-shadow: 0 8px 32px rgba(0, 106, 78, 0.1); /* Enhanced glass shadow */
    z-index: 1000; /* Higher z-index for fixed positioning */
}

/* Loading spinner styling */
#gallery-loading .spinner-border {
    border-color: var(--primary-green);
    border-right-color: transparent;
}

/* Error message styling */
#gallery-error .alert {
    max-width: 600px;
}

#gallery-error code {
    background: rgba(225, 24, 55, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Ensure each row's container has proper height */
.multi-row-carousel .gallery-scroll-container {
    min-height: calc(var(--gallery-height-base, 600px) * 0.4); /* Increased height for impactful 2-row system */
}

/* Responsive adjustments for 2-row system - compact spacing */
@media (max-width: 1200px) {
    .multi-row-carousel .floating-cards-gallery {
        margin-bottom: 1px; /* Consistent 1px spacing on all screen sizes */
    }
}

@media (max-width: 768px) {
    .multi-row-carousel .floating-cards-gallery {
        margin-bottom: 1px; /* Consistent 1px spacing on tablets */
    }

    .multi-row-carousel .gallery-nav {
        right: 0.4rem; /* Much closer for tiny navigation on tablets */
        padding: 0.15rem; /* Minimal padding for tiny layout */
        background: rgba(255, 255, 255, 0.98); /* Slightly more opaque */
    }

    .multi-row-carousel .gallery-slider {
        width: 7px; /* Visible on tablets with glass effect */
        height: 160px; /* Good height for tablets */
    }

    .multi-row-carousel .slider-track {
        width: 4px; /* Proportionally visible with glass effect */
        background: rgba(0, 106, 78, 0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .multi-row-carousel .slider-thumb {
        width: 16px; /* Visible thumb for tablets */
        height: 16px;
        background: linear-gradient(135deg, rgba(0, 106, 78, 0.85), rgba(0, 106, 78, 0.95));
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .multi-row-carousel .gallery-nav-btn {
        width: 40px; /* Normal size for tablet navigation */
        height: 40px;
        font-size: 1rem; /* Normal font for tablets */
    }
}

@media (max-width: 576px) {
    .multi-row-carousel .floating-cards-gallery {
        margin-bottom: 1px; /* Consistent 1px spacing on mobile */
    }

    .multi-row-carousel .gallery-nav {
        right: 0.3rem; /* Very close for tiny navigation on mobile */
        padding: 0.1rem; /* Minimal padding for tiny layout */
        background: rgba(255, 255, 255, 0.98); /* More opaque for mobile */
        border-radius: 4px; /* Very small radius */
    }

    .multi-row-carousel .gallery-nav-btn {
        width: 32px; /* Visible buttons for mobile navigation */
        height: 32px;
        font-size: 0.8rem; /* Readable font for mobile */
    }

    .multi-row-carousel .gallery-slider {
        width: 6px; /* Still visible on mobile with glass effect */
        height: 140px; /* Compact but usable for mobile */
    }

    .multi-row-carousel .slider-track {
        width: 3.5px; /* Visible on mobile with glass effect */
        background: rgba(0, 106, 78, 0.2);
        backdrop-filter: blur(5px); /* Reduced blur for mobile performance */
        -webkit-backdrop-filter: blur(5px);
    }

    .multi-row-carousel .slider-thumb {
        width: 14px; /* Usable thumb for mobile */
        height: 14px;
        background: linear-gradient(135deg, rgba(0, 106, 78, 0.8), rgba(0, 106, 78, 0.9));
        backdrop-filter: blur(4px); /* Minimal blur for mobile performance */
        -webkit-backdrop-filter: blur(4px);
    }
}

/* ===== NEW: 576px Breakpoint (Small Phones) ===== */
@media (max-width: 576px) {
  .hero-section {
    background-attachment: scroll !important;
    padding: 3rem 1rem 2rem !important;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .hero-content .lead {
    font-size: 0.95rem !important;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #ffd86b !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  }

  .glass-btn {
    display: block !important;
    width: 90% !important;
    margin: 0.5rem auto !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem !important;
    min-height: 44px;
  }

  .impact-card {
    padding: 1.5rem 1rem;
  }

  .impact-number {
    font-size: 2.5rem !important;
  }

  .impact-label {
    font-size: 0.9rem;
  }

  .badge {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
  }

  .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link {
    padding: 0.6rem 1rem !important;
    min-height: 44px;
  }

  /* Enhanced navbar for small phones */
  .navbar-brand {
    height: 60px !important;
  }
  
  .logo-visual {
    width: 55px !important;
    height: 55px !important;
  }

  .navbar-brand span {
    font-size: 0.9rem !important;
  }

  .navbar-toggler {
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

/* ===== NEW: 375px Breakpoint (Tiny Phones) ===== */
@media (max-width: 375px) {
  .hero-section {
    padding: 2.5rem 0.75rem 1.5rem !important;
  }

  .hero-title {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }

  .hero-content .lead {
    font-size: 0.9rem !important;
    padding: 0 0.5rem;
  }

  .glass-btn {
    width: 95% !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
    margin: 0.4rem auto !important;
  }

  .badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
  }

  h1, h2, h3 {
    word-break: break-word;
  }

  .position-fixed {
    right: 0.75rem !important;
    bottom: 1rem !important;
    max-width: 85vw !important;
  }
}

/* Scholarship Categories Styling */
.category-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.category-card-body {
  position: relative;
}

.category-icon {
  text-align: center;
}

.category-title {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.category-stats {
  background: var(--primary-beige);
  border-radius: 8px;
  padding: 0.75rem;
}

.student-avatars {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(225, 24, 55, 0.2);
}

.avatar-circle.more-count {
  background: var(--text-light);
  font-size: 0.8rem;
}

.view-category-btn {
  transition: all 0.3s ease;
}

.view-category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 24, 55, 0.3);
}

/* Responsive adjustments for category cards */
@media (max-width: 768px) {
  .category-card-body {
    padding: 1.5rem !important;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  .avatar-circle {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

/* Impact navigation */
.impact-nav {
  gap: 0.75rem;
}

.impact-nav-link {
  border: 1px solid rgba(0, 106, 78, 0.2);
  border-radius: 999px;
  padding: 0.35rem 1.25rem;
  font-weight: 600;
  color: var(--primary-green);
  background-color: var(--white);
  transition: all 0.2s ease;
}

.impact-nav-link:hover,
.impact-nav-link.active {
  background-color: var(--primary-green);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 106, 78, 0.2);
}

.btn-cta-pink {
  background-color: var(--primary-pink);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 20px rgba(255, 75, 139, 0.35);
}

.btn-cta-pink:hover {
  background-color: #e0447d;
  color: var(--white);
}

.btn-cta-pink:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 75, 139, 0.6);
}

/* CTA buttons */
.cta-equal {
  min-width: 220px;
  flex: 1 1 220px;
  text-align: center;
}

.impact-cta {
  min-width: 220px;
  flex: 1 1 240px;
}

@media (max-width: 576px) {
  .cta-equal,
  .impact-cta {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  
  /* All buttons full width on mobile */
  .btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    white-space: normal !important;
    text-align: center !important;
  }
  
  /* Button groups stack vertically */
  .d-flex.gap-3,
  .d-flex.gap-2 {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .d-flex > .btn,
  .d-flex > a.btn,
  .d-flex > button.btn {
    width: 100% !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Last button no bottom margin */
  .d-flex > .btn:last-child,
  .d-flex > a.btn:last-child,
  .d-flex > button.btn:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Force column layout for flex containers with buttons */
  .flex-wrap.d-flex,
  .d-flex.flex-wrap {
    flex-direction: column !important;
  }
  
  /* Ensure proper spacing for button containers */
  .justify-content-center.d-flex {
    align-items: stretch !important;
  }
}

/* Donation pills */
.donation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}

.donation-pill.bkash {
  background: linear-gradient(135deg, #f00073, #b5004d);
}

.donation-pill.nagad {
  background: linear-gradient(135deg, #ff8c00, #ff5a00);
}

.donation-pill.paypal {
  background: linear-gradient(135deg, #003087, #009cde);
}

/* Donor logos */
.donor-logo-tile {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  --tile-color: var(--primary-green);
}

.donor-logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.donor-logo-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--tile-color, var(--primary-green));
}

.donor-logo-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.donor-logo-tile p {
  color: rgba(0, 0, 0, 0.65);
}

/* Accordion styling */
.accordion-button {
  background-color: rgba(0, 106, 78, 0.05);
  font-weight: 600;
  color: var(--primary-green);
}

.accordion-button::after {
  content: '+';
  background-image: none !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin-left: 1rem;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.25);
}

.accordion-button:not(.collapsed) strong,
.accordion-button:not(.collapsed) span {
  color: inherit;
}

.accordion-button:not(.collapsed)::after {
  content: '–';
  transform: rotate(180deg);
  background-color: rgba(255, 193, 7, 0.9);
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

/* Student gallery tweaks */
.student-card-program {
  font-weight: 600;
  color: var(--primary-green);
}

.hero-section .glass-btn {
  min-width: 220px;
}

.hero-section .glass-btn i {
  font-size: 1.1rem;
}

@media (max-width: 576px) {
  .hero-section .glass-btn {
    width: 100% !important;
    min-width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem;
  }
  
  .hero-section .glass-btn:last-child {
    margin-bottom: 0;
  }
}

/* Modal close button */
.btn-modal-dismiss {
  border: 1px solid var(--primary-green);
  background-color: transparent;
  color: var(--primary-green);
  border-radius: 999px;
  padding: 0.5rem 2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-modal-dismiss:hover {
  background-color: var(--primary-green);
  color: white;
}

.core-goal-card {
  position: relative;
  border-radius: 30px;
  background: var(--goal-bg, #fff);
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.core-goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--goal-gradient, var(--primary-green));
}

.core-goal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.core-goal-chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4)), var(--goal-gradient, var(--primary-green));
  color: var(--goal-chip, var(--primary-green));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.core-goal-title {
  color: var(--primary-green);
}

.core-goal-text {
  line-height: 1.7;
  margin-top: 0;
}

/* Scholarship Categories Styling */
.category-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-red);
}

.category-card-body {
  position: relative;
}

.category-icon {
  text-align: center;
}

.category-title {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.category-stats {
  background: var(--primary-beige);
  border-radius: 8px;
  padding: 0.75rem;
}

.student-avatars {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(225, 24, 55, 0.2);
}

.avatar-circle.more-count {
  background: var(--text-light);
  font-size: 0.8rem;
}

.view-category-btn {
  transition: all 0.3s ease;
}

.view-category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 24, 55, 0.3);
}

/* Responsive adjustments for category cards */
@media (max-width: 768px) {
  .category-card-body {
    padding: 1.5rem !important;
  }
  
  .category-title {
    font-size: 1.1rem;
  }
  
  .avatar-circle {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}
.contact-location {
  margin-left: 2.25rem;
}

@media (max-width: 576px) {
  .contact-location {
    margin-left: 1.5rem;
  }
}

.impact-section {
  display: none;
}

.impact-section.active {
  display: block;
}

.organization-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(0, 106, 78, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.organization-logo svg {
  width: 48px;
  height: 48px;
}

.alumni-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.alumni-avatar {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid rgba(0, 106, 78, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 106, 78, 0.1);
  margin: 0 auto;
  transition: all 0.3s ease;
  position: relative;
}

.alumni-avatar::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-pink));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.alumni-card:hover .alumni-avatar {
  transform: scale(1.08);
  border-color: transparent;
}

.alumni-card:hover .alumni-avatar::before {
  opacity: 1;
}

.alumni-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.alumni-card:hover .alumni-avatar img {
  transform: scale(1.05);
}

.alumni-badge {
  background-color: rgba(0, 106, 78, 0.1);
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.85rem;
}

.alumni-quote {
  font-style: italic;
  font-size: 0.95rem;
}

.success-portrait {
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(0, 106, 78, 0.08), rgba(255, 255, 255, 0.9));
  padding: 1rem;
}

.success-portrait img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.success-story-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.quote-mark {
  font-size: 2rem;
  line-height: 0;
  vertical-align: middle;
  color: var(--primary-green);
  font-weight: 700;
  margin-right: 0.25rem;
}

.impact-carousel-control {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f5f8f7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
  opacity: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-carousel-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.impact-carousel-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.impact-carousel-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-carousel-control:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.2);
}

.impact-carousel-control:hover .impact-carousel-icon {
  background: var(--accent-green);
}

.impact-carousel-control.carousel-control-prev {
  left: -70px;
}

.impact-carousel-control.carousel-control-next {
  right: -70px;
}

@media (max-width: 992px) {
  .impact-carousel-control.carousel-control-prev {
    left: 15px;
  }

  .impact-carousel-control.carousel-control-next {
    right: 15px;
  }
}
