/* ============================================================
   KACM WEBSITE — COMPLETE STYLESHEET
   Kazo Archdeaconry Children's Ministry
   Church of Uganda | Namirembe Diocese
   ============================================================ */

/* --- CSS CUSTOM PROPERTIES (Design System) --- */
:root {
  --primary: #5B2D8E;
  --primary-dark: #45206B;
  --primary-light: #7B4DB8;
  --secondary: #C9A84C;
  --secondary-dark: #A88A35;
  --secondary-light: #DBC06E;
  --bg-light-purple: #EDE7F6;
  --bg-light-gold: #FFF8E1;
  --text-dark: #1A1A2E;
  --text-gray: #555555;
  --white: #FFFFFF;
  --whatsapp-green: #25D366;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

/* Custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-light-purple);
}
html::-webkit-scrollbar {
  width: 8px;
}
html::-webkit-scrollbar-track {
  background: var(--bg-light-purple);
}
html::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.3;
}

h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; color: var(--primary); }
h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; color: var(--text-dark); }
h3 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 600; color: var(--primary); }
h4 { font-size: 18px; font-weight: 600; color: var(--text-dark); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 50px 0;
}

.section-alt {
  background: var(--bg-light-purple);
  padding: 50px 0;
}

.section-gold {
  background: var(--secondary);
  padding: 40px 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-secondary {
  background: var(--secondary);
  color: var(--text-dark);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }

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

.btn-lg { padding: 18px 40px; font-size: 18px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* --- GLOBAL NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: transparent;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { background: var(--primary); box-shadow: var(--shadow-lg); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dark);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  padding: 8px 0;
  margin: 0 14px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links .nav-donate {
  background: var(--secondary) !important;
  color: var(--text-dark) !important;
  font-weight: 700;
  padding: 10px 20px !important;
  margin: 0 4px !important;
  border-radius: var(--radius-sm);
}
.nav-links .nav-donate::after { display: none !important; }
.nav-links .nav-donate:hover { background: var(--secondary-dark) !important; color: var(--text-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* --- GLOBAL FOOTER --- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--white);
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}
.footer-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark);
  font-size: 14px;
  flex-shrink: 0;
}
.footer-tagline {
  font-style: italic;
  color: var(--secondary-light);
  margin-bottom: 16px;
  font-size: 14px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--text-dark); }

.footer h4 {
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: var(--secondary); }

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-badges .badge {
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: all var(--transition);
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
}

/* --- HERO BANNERS --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: var(--primary-dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
}
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 0 40px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(30px);
  pointer-events: none;
}
.hero-content.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-content h1,
.hero-content .hero-subtitle,
.hero-content .hero-scripture,
.hero-content .hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-content.active h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.hero-content.active .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}
.hero-content.active .hero-scripture {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.hero-content.active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}
.hero-content > * {
  max-width: 720px;
}
.hero-content h1 {
  max-width: none;
}
.hero-content .hero-badge {
  max-width: 720px;
}
.hero-slide .hero-content h1 {
  color: var(--white);
  font-size: clamp(36px, 5.5vw, 56px);
  margin-bottom: 18px;
}
.hero-slide .hero-content .hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.92;
  max-width: 650px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-slide .hero-content .hero-scripture {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--secondary-light);
  border-left: 3px solid var(--secondary);
  padding-left: 18px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 580px;
  line-height: 1.5;
}
.hero-slide .hero-content .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(69,32,107,0.82), rgba(91,45,142,0.78));
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 16px;
}
.hero p.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scripture {
  display: inline-block;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--secondary-light);
  border-left: 3px solid var(--secondary);
  padding-left: 16px;
  margin: 20px auto 28px;
  text-align: left;
  max-width: 600px;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 40px) 0 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero .breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.page-hero .breadcrumb a { color: var(--secondary-light); }
.page-hero .breadcrumb a:hover { color: var(--secondary); }
.page-hero .hero-scripture {
  color: var(--secondary-light);
  margin: 16px auto 0;
  max-width: 650px;
}

/* --- IMPACT COUNTER SECTION --- */
.impact-counter {
  background: var(--primary);
  padding: 40px 0;
  text-align: center;
  color: var(--white);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.impact-item .count {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 4px;
}
.impact-item .label {
  font-size: 16px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-body { padding: 24px; }
.card-icon {
  width: 56px; height: 56px;
  background: var(--bg-light-purple);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-gray); font-size: 15px; }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-light-purple);
}

/* 3-card grid */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 2-column card grid */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* 4-card grid */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- SECTION HEADERS --- */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}
.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-header p {
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* --- CTA STRIP --- */
.cta-strip {
  background: var(--secondary);
  text-align: center;
  padding: 40px 0;
}
.cta-strip h2 { color: var(--text-dark); margin-bottom: 8px; }
.cta-strip p { color: rgba(26,26,46,0.8); max-width: 600px; margin: 0 auto 24px; font-size: 17px; }

/* --- SCRIPTURE BLOCK --- */
.scripture-block {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding: 12px 20px;
  margin: 24px 0;
  max-width: 650px;
}

/* --- FORMS --- */
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .error-msg {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #d32f2f; }
.form-group.error .error-msg { display: block; }

.form-success {
  display: none;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* --- TABLES --- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table thead { background: var(--primary); color: var(--white); }
table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
table tbody tr:nth-child(even) { background: var(--bg-light-purple); }
table tbody tr:hover { background: var(--bg-light-gold); }

/* --- TABS --- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid #eee;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 12px 20px;
  border: none;
  background: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* --- TESTIMONIAL CAROUSEL --- */
.testimonial-carousel {
  position: relative;
  max-width: 550px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-slide {
  display: none;
  animation: fadeSlideIn 0.5s ease;
}
.testimonial-slide.active { display: block; }

/* Testimonial card */
.t-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.t-quote-icon {
  font-size: 22px;
  color: var(--secondary);
  opacity: 0.4;
  margin-bottom: 8px;
}
.t-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
}
.t-quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 10px;
}
.t-author strong {
  display: block;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 1px;
}
.t-author span {
  font-size: 11px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* --- TESTIMONIES PAGE CARDS --- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card-lg {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.t-card-lg:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.t-card-lg-top {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.t-card-lg-top img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.6);
  position: absolute;
  bottom: -40px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.t-card-lg:hover .t-card-lg-top img {
  transform: scale(1.08);
  border-color: #fff;
}
.t-card-lg-body {
  padding: 48px 24px 24px;
  position: relative;
}
.t-quote-mark {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: var(--secondary);
  opacity: 0.15;
}
.t-card-lg-body p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 14px;
}
.t-card-lg-author strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 2px;
}
.t-card-lg-author span {
  font-size: 11px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background var(--transition);
}
.carousel-dots button.active { background: var(--primary); }

/* --- SCROLL ANIMATIONS --- */
.fade-in {
  opacity: 1;
  transform: none;
}
.fade-in.visible {
  animation: fadeSlideIn 0.6s ease forwards;
}

/* --- TEAM MEMBER CARDS --- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card .team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 24px auto 12px;
  object-fit: cover;
  background: var(--bg-light-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--primary);
}
.team-card .team-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.team-card .team-role {
  color: var(--secondary-dark);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 8px;
}
.team-card .team-bio {
  padding: 0 20px 24px;
  font-size: 14px;
  color: var(--text-gray);
}

.team-card-featured {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
}
.team-card-featured .team-photo {
  width: 180px;
  height: 180px;
  font-size: 56px;
}

/* --- MEDIA CARDS --- */
.media-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-card .media-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-light-purple);
}
.media-card .media-body { padding: 16px; }
.media-card .media-date {
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.media-card h4 { margin-bottom: 6px; font-size: 16px; }
.media-card p { font-size: 14px; color: var(--text-gray); }

/* --- GALLERY GRID --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-light-purple);
}
.gallery-grid img:hover { transform: scale(1.03); opacity: 0.9; }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.4s ease;
  background: var(--bg-light-purple);
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(91,45,142,0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* --- STEPS / PROCESS --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.step-item {
  padding: 24px;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 12px;
}
.step-item h4 { margin-bottom: 4px; font-size: 15px; }
.step-item p { font-size: 13px; color: var(--text-gray); }

/* --- DONATION TABLE SPECIAL --- */
.donation-table td:first-child {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-size: 16px;
}

/* --- AFFILIATION --- */
.affiliation-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.affiliation-badge {
  text-align: center;
  padding: 24px 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 200px;
}
.affiliation-badge .badge-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.affiliation-badge .badge-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

/* --- PAYMENT METHODS --- */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.payment-col {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.payment-col h3 { margin-bottom: 16px; }
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.payment-method {
  background: var(--bg-light-purple);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* --- TRUST BADGES --- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
}
.trust-badge {
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 160px;
}
.trust-badge .badge-icon { font-size: 28px; margin-bottom: 6px; }

/* --- SEAL SECTION --- */
.seal-section {
  text-align: center;
  padding: 40px 0;
}
.seal-icon {
  font-size: 64px;
  margin-bottom: 8px;
  display: inline-block;
}

/* --- HIGHLIGHT BOX --- */
.highlight-box {
  background: var(--bg-light-gold);
  border-left: 4px solid var(--secondary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.highlight-box p { margin: 0; }

/* --- ABOUT / VISION-MISSION CARDS --- */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}
.vm-card.gold-border { border-top-color: var(--secondary); }
.vm-card h3 { margin-bottom: 12px; }

/* --- BELIEF CARDS --- */
.belief-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}
.belief-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.belief-card .belief-icon { font-size: 40px; margin-bottom: 12px; }
.belief-card h4 { font-size: 16px; margin-bottom: 6px; }

/* --- ACTIVITY CARD (What We Do) --- */
.activity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}
.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.activity-card .activity-icon {
  font-size: 36px;
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--bg-light-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-card .activity-content h3 { margin-bottom: 8px; }

/* --- PROGRAM SECTION --- */
.program-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 60px;
}
.program-section:last-child { margin-bottom: 0; }
.program-section .program-image {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  background: var(--bg-light-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
}
.program-section .program-details h2 { margin-bottom: 16px; }
.program-section .program-details ul {
  margin-top: 16px;
  padding-left: 0;
}
.program-section .program-details ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-dark);
  font-size: 15px;
}
.program-section .program-details ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}

/* --- CONTACT DETAILS --- */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.contact-detail {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-detail .cd-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--bg-light-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail h4 { font-size: 14px; margin-bottom: 2px; }
.contact-detail p { font-size: 14px; color: var(--text-gray); }

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-light-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.map-container .map-icon { font-size: 48px; }
.map-container p { font-size: 14px; color: var(--text-gray); }

/* --- TESTIMONIAL PAGE --- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.testimonial-card .testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.testimonial-card .testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-light-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.testimonial-card .testimonial-name {
  font-weight: 700;
  font-size: 16px;
}
.testimonial-card .testimonial-origin {
  font-size: 13px;
  color: var(--text-gray);
}
.testimonial-card .testimonial-text {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--text-dark);
  font-size: 15px;
}

/* --- LIBRARY / RESOURCE ITEMS --- */
.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}
.resource-item .resource-info h4 { font-size: 15px; margin-bottom: 2px; }
.resource-item .resource-info p { font-size: 13px; color: var(--text-gray); }

/* --- EVENT ITEM --- */
.event-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  margin-bottom: 16px;
}
.event-date {
  background: var(--primary);
  color: var(--white);
  padding: 20px;
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-date .day { font-size: 28px; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 13px; text-transform: uppercase; }
.event-body { padding: 20px; flex: 1; }
.event-body h4 { margin-bottom: 4px; }
.event-body p { font-size: 14px; color: var(--text-gray); }

/* --- VIDEO PLACEHOLDER --- */
.video-placeholder {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--text-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--white);
  cursor: pointer;
}
.video-placeholder .play-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* --- VIDEO GRID --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.v-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.v-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.v-thumb {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-play {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}
.v-card:hover .v-play {
  transform: scale(1.1);
  background: rgba(255,255,255,0.35);
}
.v-info {
  padding: 14px 16px;
}
.v-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.v-info p {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

/* --- PRIVACY NOTE --- */
.privacy-note {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 8px;
  text-align: center;
}

/* --- NOTES / ACTION BOX --- */
.note-box {
  background: var(--bg-light-gold);
  border: 1px solid var(--secondary-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-dark);
  margin: 16px 0;
}
.note-box strong { color: var(--primary); }

/* --- SECTION DIVIDER --- */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 0 auto 32px;
  border-radius: 2px;
}

/* --- PAGE INTRO --- */
.page-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 17px;
  color: var(--text-gray);
}

/* --- SPONSORSHIP TABLE --- */
.sponsor-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}
.sponsor-table td:nth-child(2) {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* --- SPONSOR SECTION (Projects Page) --- */
.sponsor-banner {
  background: linear-gradient(135deg, rgba(91,45,142,0.92), rgba(26,26,46,0.88)), url('assets/sports/a group of students celebrating with a trophy.jpeg') center/cover;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  margin-bottom: 32px;
}
.sponsor-banner h2 {
  font-size: clamp(28px, 4vw, 38px);
}
.sponsor-overview {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.sponsor-problem-box {
  background: var(--bg-light-gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border-left: 4px solid var(--secondary);
}
.sponsor-problem-box h4 {
  margin-bottom: 8px;
}
.sponsor-problem-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
}
.sponsor-stats-box {
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.sponsor-stats-box > div {
  text-align: center;
}
.ss-number {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}
.ss-label {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sponsor-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.ss-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ss-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ss-step-num {
  font-family: 'Lora', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 8px;
  line-height: 1;
}
.ss-step h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.ss-step p {
  font-size: 13px;
  color: var(--text-gray);
  margin: 0;
}

/* --- STYLISH PROGRAM CARDS (overlay design) --- */
.program-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.program-card-badge {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.program-card-content {
  position: relative;
  z-index: 1;
}
.program-card-content h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.program-card-content p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.program-card-content .program-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease;
}
.program-card-content .program-learn-more:hover {
  gap: 10px;
}

/* --- CONTACT INFO GRID --- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.ci-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ci-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.ci-card h4 {
  font-size: 13px;
  margin-bottom: 2px;
}
.ci-card p {
  font-size: 12px;
  color: var(--text-gray);
  margin: 0;
}
.ci-card p a {
  color: var(--primary);
  font-weight: 600;
}
.ci-card p a:hover {
  text-decoration: underline;
}

/* --- CONTACT CARD (form/map) --- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.contact-card-top {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px 3px 0 0;
  margin: -20px -20px 16px;
}

/* --- MEDIA & UPDATES REDESIGN --- */
/* Tab pills with icons */
.tabs-nav .tab-btn i {
  margin-right: 5px;
  font-size: 12px;
}

/* Press list */
.press-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.press-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all var(--transition);
}
.press-item:hover { box-shadow: var(--shadow-md); }
.press-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-dark);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 90px;
}
.press-content { flex: 1; }
.press-content h4 { font-size: 15px; margin-bottom: 2px; }
.press-content p { font-size: 13px; color: var(--text-gray); margin: 0; }

/* Media overlay cards (Articles + Stories) */
.media-overlay {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.media-overlay:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.media-overlay-content { position: relative; z-index: 1; }
.media-overlay-content .media-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary);
  background: rgba(0,0,0,0.4);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.media-overlay-content h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.media-overlay-content p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.media-overlay-content a {
  color: var(--secondary-light);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.3s;
}
.media-overlay-content a:hover { gap: 8px; }

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  transition: all var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.event-card-date {
  background: var(--primary);
  color: #fff;
  padding: 16px;
  text-align: center;
  min-width: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-card-date span { font-size: 26px; font-weight: 700; line-height: 1; }
.event-card-date small { font-size: 11px; text-transform: uppercase; opacity: 0.8; }
.event-card-body { padding: 16px; }
.event-card-body h4 { font-size: 14px; margin-bottom: 4px; }
.event-card-body p { font-size: 12px; color: var(--text-gray); }

/* Library grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.library-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.library-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.library-icon {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}
.library-card h4 { font-size: 15px; margin-bottom: 6px; }
.library-card p { font-size: 13px; color: var(--text-gray); margin-bottom: 12px; }

/* --- CONTINUOUS SCROLLING CARD MARQUEE --- */
.scroll-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.scroll-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  animation: scrollMarquee 25s linear infinite;
}
.scroll-strip:hover {
  animation-play-state: paused;
}
.wwd-card {
  flex: 0 0 240px;
  min-height: 200px;
  position: relative;
  border-radius: var(--radius-md);
  padding: 52px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.wwd-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.wwd-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.wwd-card h4 {
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.wwd-card p {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  line-height: 1.4;
}

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

/* --- IMPACT CARDS (Donate page) --- */
.impact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.impact-card {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.impact-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.impact-card.selected {
  border-color: var(--primary);
  background: var(--bg-light-purple);
  box-shadow: 0 0 0 2px var(--primary);
}
.impact-card .ic-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Lora', Georgia, serif;
}
.impact-card .ic-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.impact-card .ic-desc {
  font-size: 12px;
  color: var(--text-gray);
}
.impact-card .ic-check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  align-items: center;
  justify-content: center;
}
.impact-card.selected .ic-check {
  display: flex;
}
.impact-project {
  border-color: var(--secondary);
  background: var(--bg-light-gold);
}
.impact-project:hover {
  border-color: var(--secondary-dark);
}
.impact-project.selected {
  border-color: var(--secondary-dark);
  background: var(--secondary-light);
  box-shadow: 0 0 0 2px var(--secondary-dark);
}
.impact-project .ic-amount i {
  color: var(--primary);
}

/* --- GALLERY MODAL --- */
.gallery-modal-box {
  background: #111;
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.gallery-modal-header {
  text-align: center;
  margin-bottom: 20px;
}
.gallery-modal-header h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 4px;
}
.gallery-modal-header p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gm-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 3 / 2;
}
.gm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gm-item:hover img {
  transform: scale(1.1);
}
.gm-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gm-item:hover .gm-label {
  opacity: 1;
  transform: translateY(0);
}
.gallery-modal-box::-webkit-scrollbar {
  width: 4px;
}
.gallery-modal-box::-webkit-scrollbar-track {
  background: #222;
}
.gallery-modal-box::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

/* --- GALLERY MODAL PREVIEW --- */
.gm-preview {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.gm-preview img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.gm-preview-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.gm-preview-close:hover { opacity: 1; }
.gm-preview-label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
}

/* --- PAYMENT LOGOS --- */
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  min-width: 120px;
  min-height: 100px;
  justify-content: center;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 130px;
}
.pm-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}
.pm-card.selected {
  border-color: var(--primary);
  background: var(--bg-light-purple);
  box-shadow: 0 0 0 2px var(--primary);
}
.pm-card span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

/* --- PROGRAM IMAGES (real photos) --- */
.program-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-light-purple);
}

/* --- TESTIMONIAL AVATAR IMAGES (testimonies page) --- */
.testimonial-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

/* --- FLUTTERWAVE DONATION MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-dialog {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-gray);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-dark); }

.modal-dialog h2 {
  font-family: 'Lora', Georgia, serif;
  color: var(--primary);
  margin-bottom: 8px;
}
.modal-dialog .modal-subtitle {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 24px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.amount-btn {
  padding: 14px 10px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition);
  text-align: center;
}
.amount-btn:hover { border-color: var(--primary); background: var(--bg-light-purple); }
.amount-btn.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }

.payment-method-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.pm-btn {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pm-btn:hover { border-color: var(--secondary); background: var(--bg-light-gold); }
.pm-btn.selected { border-color: var(--secondary); background: var(--secondary); color: var(--text-dark); }

.modal-donate-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
}

.flw-progress {
  display: none;
  text-align: center;
  padding: 24px 0;
}
.flw-progress.active { display: block; }
.flw-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--bg-light-purple);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.flw-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}
.flw-success.active { display: block; }
.flw-success .success-icon {
  width: 64px; height: 64px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 30px;
  color: #2e7d32;
}
.flw-error {
  display: none;
  text-align: center;
  padding: 16px 0;
  color: #d32f2f;
}
.flw-error.active { display: block; }

.modal-secure-badge {
  text-align: center;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 12px;
}
.modal-secure-badge i { color: var(--secondary); margin-right: 4px; }

/* ============================================================
   RESPONSIVE — TABLET (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --nav-height: 64px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 0; margin: 0 16px; width: auto; text-align: left; }
  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .program-section { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .payment-grid { grid-template-columns: 1fr; }
  .contact-details-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-cards { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (320px - 767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --nav-height: 60px; }

  .nav-logo { font-size: 13px; }
  .footer-logo { font-size: 14px; }

  .section { padding: 50px 0; }
  .section-alt { padding: 50px 0; }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .hero {
    min-height: 70vh;
    text-align: center;
  }
  .hero h1 { font-size: 28px; }
  .hero .hero-buttons { flex-direction: column; align-items: center; }
  .hero .hero-buttons .btn { width: 100%; max-width: 280px; }

  .page-hero { padding: calc(var(--nav-height) + 10px) 0 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-badges { justify-content: center; }

  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .impact-item .count { font-size: 28px; }

  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 24px; }

  .program-section { grid-template-columns: 1fr; gap: 20px; }
  .program-section .program-image { height: 200px; font-size: 48px; }

  .activity-card { flex-direction: column; gap: 12px; }
  .activity-card .activity-icon { width: 48px; height: 48px; font-size: 24px; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px; }
  .contact-details-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }

  .impact-cards { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .sponsor-steps { grid-template-columns: repeat(2, 1fr); }
  .sponsor-overview { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr !important; }
  .pm-grid { grid-template-columns: 1fr !important; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 140px; }
  .events-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .media-overlay { min-height: 200px; padding: 18px; }
  .press-item { flex-direction: column; align-items: flex-start; gap: 8px; }

  .tabs-nav { gap: 2px; }
  .tab-btn { padding: 10px 12px; font-size: 12px; }

  .event-item { flex-direction: column; }
  .event-date { flex-direction: row; gap: 6px; padding: 12px 20px; min-width: auto; }
  .event-date .day { font-size: 20px; }
  .event-date .month { font-size: 12px; }

  .team-card-featured { max-width: 100%; }
  .team-card-featured .team-photo { width: 120px; height: 120px; font-size: 40px; }
  .team-card .team-photo { width: 100px; height: 100px; font-size: 32px; }

  .table-wrapper { margin: 0 -10px; }
  table { font-size: 13px; }
  table th, table td { padding: 10px 12px; }
}

/* --- PROJECT CARDS --- */
.project-card-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s ease;
}
.project-card-alt:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.project-card-alt.reverse .project-card-img {
  order: 2;
}
.project-card-img {
  min-height: 320px;
  background-size: cover !important;
  background-position: center !important;
}
.project-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light-purple);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.project-card-body h2 {
  margin-bottom: 4px;
}
.project-tagline {
  color: var(--secondary-dark);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 15px;
}
.project-card-body p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 12px;
}
.project-card-body ul {
  padding-left: 0;
  margin: 0;
}
.project-card-body ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 14px;
  color: var(--text-dark);
}
.project-card-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}
@media (max-width: 767px) {
  .project-card-alt {
    grid-template-columns: 1fr;
  }
  .project-card-alt.reverse .project-card-img {
    order: 0;
  }
  .project-card-img {
    min-height: 200px;
  }
  .project-card-body {
    padding: 24px;
  }
}
