/* Sunu Future Foundation - Mobile-First Responsive Styles */

/* CSS Variables */
:root {
  --primary: #005c99;
  --primary-dark: #003f6d;
  --accent: #00a88a;
  --bg-light: #f5f7fb;
  --text-main: #222;
  --text-secondary: #444;
  --text-muted: #555;
  --text-gray: #6b7280;
  --border-color: #e0e3ec;

  /* Fluid spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 2vw, 1rem);
  --space-md: clamp(1rem, 3vw, 1.5rem);
  --space-lg: clamp(1.5rem, 4vw, 2.5rem);
  --space-xl: clamp(2rem, 5vw, 3.5rem);
  --space-2xl: clamp(2.5rem, 6vw, 4rem);

  /* Container widths */
  --container-max: 1120px;
  --content-max: 800px;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  background: white;
  color: var(--text-main);
  line-height: 1.6;
  font-size: clamp(15px, 1.5vw, 17px);
  overflow-x: hidden;
}

/* Fluid Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: #06233f;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #06233f;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  margin: 0 0 0.625rem;
  color: #06233f;
  font-weight: 600;
}

p {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

/* Header - Mobile First */
header {
  background: white;
  padding: clamp(0.75rem, 2vw, 1.125rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1rem);
}

header img {
  height: clamp(60px, 10vw, 90px);
  width: auto;
  padding: 0.25rem 0;
}

/* Navigation Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  flex-wrap: wrap;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  transition: border-color 0.2s;
}

.nav-toggle:hover {
  border-color: var(--primary);
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hide checkbox */
#nav-check {
  display: none;
}

/* Navigation Links */
nav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2vw, 1.25rem);
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

nav a:hover {
  color: var(--primary-dark);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Donate Button */
.nav-btn {
  padding: clamp(0.625rem, 1.5vw, 0.75rem) clamp(1.125rem, 3.5vw, 1.5rem);
  background: var(--primary);
  color: white !important;
  border-radius: 999px;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(0, 92, 184, 0.3);
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 92, 184, 0.4);
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-btn::after {
  display: none;
}

.nav-btn-active {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 92, 184, 0.5);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1rem, 8vw, 2rem);
}

.section.light {
  background: var(--bg-light);
}

.hero {
  padding: clamp(2.5rem, 6vw, 3.75rem) clamp(1rem, 8vw, 2rem);
  background: radial-gradient(circle at top left, #e0f2ff 0%, #f9fbff 50%, white 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
  align-items: center;
}

/* Taglines and Labels */
.tagline,
.hero-tagline,
.tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  margin-bottom: 0.625rem;
  display: block;
}

.lead,
.section-intro {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: var(--content-max);
  margin: 0 auto 1.75rem;
}

.section-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section h2 {
  text-align: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: var(--space-md);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.625rem, 1.8vw, 0.875rem) clamp(1.25rem, 3.5vw, 1.75rem);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: white;
  color: #333;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
  min-height: 44px;
}

.btn-secondary:hover {
  background: #e0ebff;
}

/* Hero Images */
.hero-image,
.hero-img {
  border-radius: clamp(1.125rem, 3vw, 1.5rem);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-image img,
.hero-img img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.hero-image:hover,
.hero-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
  .hero-image img,
  .hero-img img {
    min-height: 380px;
  }
}

@media (min-width: 1024px) {
  .hero-image img,
  .hero-img img {
    min-height: 450px;
  }
}

/* Cards */
.card {
  background: white;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 240px;
  object-fit: cover;
  border-radius: clamp(0.75rem, 2vw, 1rem);
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.625rem;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
}

.card p {
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

.caption {
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Grids - Mobile First */
.grid-3,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: var(--space-lg);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.5rem);
}

/* Story/Timeline Grid */
.story-grid,
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: flex-start;
}

.story-grid h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.story-grid p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.story-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.875rem, 2vw, 1.25rem);
}

.story-images img {
  width: 100%;
  height: auto;
  min-height: 220px;
  border-radius: clamp(1rem, 2vw, 1.25rem);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-images img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Lists */
ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Box/Info Container */
.box {
  background: white;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border-radius: clamp(1rem, 2vw, 1.125rem);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  max-width: var(--content-max);
  margin: 1rem auto;
}

/* CTA Strip */
.cta,
.cta-strip {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
  background: radial-gradient(circle at top, #005c99 0%, #002849 70%);
  color: white;
}

.cta h2,
.cta-strip h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.cta p,
.cta-strip p {
  color: #e2edff;
  max-width: 620px;
  margin: 0 auto 1.25rem;
}

.cta .btn-primary,
.cta-strip .btn-primary {
  background: white;
  color: #003459;
}

.cta .btn-primary:hover,
.cta-strip .btn-primary:hover {
  background: #f4f7ff;
  color: #003459;
}

/* Hand Animation */
.hand-emoji {
  display: inline-block;
  animation: tap 1.15s infinite ease-in-out;
  transform-origin: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

@keyframes tap {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  40% { transform: translateY(3px) scale(0.95); opacity: 0.85; }
  70% { transform: translateY(0) scale(1.05); opacity: 1; }
}

/* Footer */
footer {
  background: #001425;
  color: #a8c0d9;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  margin-top: auto;
}

footer a {
  color: #d9e6ff;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

footer a:hover {
  text-decoration: underline;
}

/* 404 Page */
.not-found {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.not-found h1 {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  margin-bottom: 1rem;
}

.not-found p {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

/* Tablet Breakpoint (600px+) */
@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-images {
    grid-template-columns: 1.3fr 1fr;
    grid-auto-rows: minmax(200px, 1fr);
  }

  .story-images .tall {
    grid-row: span 2;
    height: 100%;
  }

  .story-images img:not(.tall) {
    height: 100%;
    min-height: 200px;
  }
}

/* Large Tablet Breakpoint (768px+) */
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

/* Desktop Breakpoint (1024px+) */
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.3fr 1fr;
  }

  .story-grid,
  .timeline {
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .story-images {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
  }

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

/* Mobile Navigation (Below 768px) */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  #nav-check:checked ~ header .nav-container nav {
    display: flex;
  }

  #nav-check:checked ~ header .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  #nav-check:checked ~ header .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  #nav-check:checked ~ header .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  nav a {
    width: 100%;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Animations & Scroll Effects */

/* Fade in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in (no movement) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scale in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Heartbeat pulse */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

/* Pulse (subtle) */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Hero float animation */
.hero-image img,
.hero-img img {
  animation: float 6s ease-in-out infinite;
}

/* Donate button pulse */
.nav-btn {
  animation: pulse 3s ease-in-out infinite;
}

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

.btn-primary:hover {
  animation: none;
  transform: translateY(-3px) scale(1.02);
}

/* Heart emoji heartbeat */
.nav-btn::before {
  animation: heartbeat 2s ease-in-out infinite;
}

/* Card entrance animation on scroll */
.card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Section fade in */
.section {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* Hero content animation */
.hero > div:first-child {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero > div:last-child {
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* Quick Donation Buttons */
.quick-give {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.quick-give h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.quick-give p {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1rem);
  justify-content: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.quick-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: clamp(0.875rem, 2vw, 1.125rem) clamp(1.25rem, 3vw, 1.75rem);
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-btn:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(0, 92, 184, 0.15);
  background: #fafbff;
}

.quick-btn-emoji {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}

.quick-btn-label {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  color: #475569;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.quick-btn-amount {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--primary);
  font-weight: 700;
}

/* Footer quick give */
.footer-quick-give {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
}

.footer-quick-give p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.footer-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-quick-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Trust Badges */
.trust-section {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.trust-section h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  justify-content: center;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.trust-badge {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 220px;
  background: white;
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.trust-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.trust-badge-icon {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.trust-badge-title {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.trust-badge-text {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.trust-badge-501c3 {
  border-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.trust-badge-501c3 .trust-badge-icon {
  color: #16a34a;
}

/* Footer trust info */
.footer-trust {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* Impact Calculator */
.impact-calculator {
  background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 700px;
  margin: clamp(2rem, 4vw, 3rem) auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.impact-calculator h3 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.impact-calculator > p {
  text-align: center;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  margin-bottom: 2rem;
}

.calculator-amount {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.slider-container {
  margin-bottom: 1.5rem;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(to right, #3b82f6 0%, #3b82f6 20%, #e2e8f0 20%, #e2e8f0 100%);
  outline: none;
  transition: background 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 92, 184, 0.4);
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 92, 184, 0.5);
}

.slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 92, 184, 0.4);
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 92, 184, 0.5);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  color: #64748b;
  font-weight: 500;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preset-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.preset-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.impact-display {
  background: white;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.impact-display h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: 0 0 1rem;
  color: #0f172a;
}

.impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #334155;
  line-height: 1.5;
}

.impact-list li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.calculator-cta {
  text-align: center;
}

.calculator-cta .btn-primary {
  margin-top: 0;
}

/* FAQ Accordion */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.faq-section > p {
  text-align: center;
  color: #64748b;
  margin-bottom: 2.5rem;
}

.faq-item {
  background: white;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-checkbox {
  display: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
  cursor: pointer;
  user-select: none;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 600;
  color: #0f172a;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-checkbox:checked + .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 clamp(1.125rem, 2.5vw, 1.5rem);
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 clamp(1.125rem, 2.5vw, 1.5rem) clamp(1.125rem, 2.5vw, 1.5rem);
}

.faq-answer p {
  margin: 0 0 0.75rem;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  line-height: 1.7;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Social Share */
.share-section {
  text-align: center;
  padding: clamp(2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
}

.share-section h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.share-section p {
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn-facebook {
  color: #1877f2;
  border-color: #1877f2;
}

.share-btn-facebook:hover {
  background: #1877f2;
  color: white;
}

.share-btn-twitter {
  color: #1da1f2;
  border-color: #1da1f2;
}

.share-btn-twitter:hover {
  background: #1da1f2;
  color: white;
}

.share-btn-linkedin {
  color: #0a66c2;
  border-color: #0a66c2;
}

.share-btn-linkedin:hover {
  background: #0a66c2;
  color: white;
}

.share-btn-email {
  color: #6b7280;
  border-color: #6b7280;
}

.share-btn-email:hover {
  background: #6b7280;
  color: white;
}

.share-btn-copy {
  color: #16a34a;
  border-color: #16a34a;
}

.share-btn-copy:hover {
  background: #16a34a;
  color: white;
}

.share-btn-icon {
  font-size: 1.125rem;
}

/* Floating share bar */
.floating-share {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-share.visible {
  opacity: 1;
  pointer-events: all;
}

.floating-share .share-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-share .share-btn-icon {
  margin: 0;
}

.floating-share .share-btn span:not(.share-btn-icon) {
  display: none;
}

/* Hide floating share on mobile */
@media (max-width: 768px) {
  .floating-share {
    display: none;
  }
}

/* Copy success message */
.copy-success {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #16a34a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
  font-weight: 600;
}

.copy-success.show {
  opacity: 1;
  transform: translateY(0);
}

/* Students Page - Support Lists */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 900px;
  margin: 2rem auto 0;
}

.support-item {
  background: white;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: clamp(1rem, 2vw, 1.25rem);
  align-items: flex-start;
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent);
}

.support-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.support-icon {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  flex-shrink: 0;
}

.support-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.support-content p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  line-height: 1.6;
}

/* Two column layout on larger screens */
@media (min-width: 768px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Alternative: Icon-based list for single column sections */
.icon-list-enhanced {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 700px;
}

.icon-list-enhanced li {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.875rem, 2vw, 1.25rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1rem;
  background: white;
  border-radius: clamp(0.75rem, 1.5vw, 1rem);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.icon-list-enhanced li:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-list-enhanced li::before {
  content: "✓";
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.icon-list-enhanced li p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.0625rem);
  color: #334155;
  line-height: 1.6;
}

/* Logo Animation Video */
.brand-showcase {
  text-align: center;
  margin: clamp(2rem, 4vw, 3rem) auto;
  max-width: 600px;
}

.logo-animation {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: block;
  margin: 0 auto;
  background: white;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.logo-animation:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

/* Fallback for browsers without video support */
.logo-animation-fallback {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .logo-animation {
    display: none;
  }
  .logo-animation-fallback {
    display: block;
  }
}

/* Volunteer Page Enhancements */

/* Icon cards for volunteer roles */
.volunteer-card {
  position: relative;
  padding-top: 3rem;
}

.volunteer-card-icon {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(0, 92, 184, 0.25);
  transition: all 0.3s ease;
}

.volunteer-card:hover .volunteer-card-icon {
  transform: translateX(-50%) scale(1.1) rotate(5deg);
  box-shadow: 0 12px 28px rgba(0, 92, 184, 0.35);
}

.volunteer-card h3 {
  text-align: center;
  margin-top: 1rem;
}

/* Volunteer profiles grid */
.volunteer-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1000px;
  margin: 2rem auto;
}

.volunteer-profile {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.volunteer-profile::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 168, 138, 0.05) 0%, transparent 70%);
  transition: all 0.5s ease;
  transform: scale(0);
}

.volunteer-profile:hover::before {
  transform: scale(1);
}

.volunteer-profile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-left-width: 6px;
}

.profile-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.profile-title {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.profile-description {
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Step-by-step process */
.process-steps {
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 999px;
}

.process-step {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 92, 184, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(0, 92, 184, 0.4);
}

.step-content {
  flex: 1;
  background: white;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.step-content:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: 0 0 0.75rem;
  color: var(--primary-dark);
}

.step-content p {
  margin: 0;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  line-height: 1.6;
}

/* CTA section enhancement */
.volunteer-cta {
  text-align: center;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2rem);
  border-radius: clamp(1.25rem, 2.5vw, 2rem);
  margin: clamp(2rem, 4vw, 3rem) auto;
  max-width: 900px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.volunteer-cta h2 {
  margin-bottom: 1rem;
}

.volunteer-cta p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Allocation Cards on Donate Page */
.allocation-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.allocation-card {
  position: relative;
  padding-top: 3rem;
  transition: all 0.3s ease;
}

.allocation-card-icon {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 20px rgba(0, 92, 184, 0.25);
  transition: all 0.3s ease;
}

.allocation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.allocation-card:hover .allocation-card-icon {
  transform: translateX(-50%) scale(1.15) rotate(8deg);
  box-shadow: 0 12px 28px rgba(0, 92, 184, 0.4);
}

.allocation-card h3 {
  text-align: center;
  margin-top: 1rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--primary-dark);
}

.allocation-card p {
  text-align: center;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
  color: #475569;
  line-height: 1.6;
}

/* Grid-4 for allocation cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

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

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Hide line on mobile */
@media (max-width: 768px) {
  .process-steps::before {
    display: none;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-number {
    margin-bottom: 1rem;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  header {
    position: static;
  }

  .nav-toggle,
  .nav-btn {
    display: none;
  }
}
