/* ============================================
   PLANT A MILLION CORALS — MASTER STYLESHEET
   ============================================ */

/* --- Google Fonts imported via HTML --- */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand Colors */
  --blue-deep:    #003F6B;
  --blue-primary: #0077B6;
  --blue-light:   #00B4D8;
  --blue-pale:    #E0F4FF;
  --orange:       #FF6B35;
  --orange-dark:  #E05A25;
  --orange-pale:  #FFF1EB;
  --purple:       #6B4FA0;
  --purple-dark:  #4A3575;
  --purple-pale:  #F0EBF8;

  /* Neutrals */
  --white:        #FFFFFF;
  --gray-light:   #F5F7FA;
  --gray-mid:     #E0E5EC;
  --gray-dark:    #6B7280;
  --text-dark:    #1A1F2E;
  --text-mid:     #374151;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,63,107,0.08);
  --shadow-md:  0 4px 20px rgba(0,63,107,0.12);
  --shadow-lg:  0 8px 40px rgba(0,63,107,0.18);
  --shadow-xl:  0 16px 60px rgba(0,63,107,0.22);

  /* Borders */
  --radius:    0;
  --radius-lg: 0;
  --radius-xl: 0;

  /* Transitions */
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py: 100px;
  --container:  1240px;
  --nav-height: 86px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--blue-deep);
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-mid);
  max-width: 70ch;
  line-height: 1.75;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-mid);
}

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-orange { color: var(--orange) !important; }
.text-blue   { color: var(--blue-primary) !important; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-sm { padding: 60px 0; }
.section-lg { padding: 130px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  margin: 0 auto;
  max-width: 600px;
  font-size: 1.1rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

.bg-light   { background: var(--gray-light); }
.bg-blue    { background: var(--blue-deep); }
.bg-gradient {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--purple) 100%);
}

/* ============================================
   DIVIDERS & ACCENTS
   ============================================ */
.divider {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  margin: 16px 0 24px;
}
.divider-orange { background: var(--orange); }
.divider-blue   { background: var(--blue-primary); }
.divider-center { margin: 16px auto 24px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  box-shadow: 0 8px 25px rgba(255,107,53,0.4);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}
.btn-secondary:hover {
  background: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0,119,182,0.3);
}

.btn-white {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 17px 40px;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: #001220;
  transition: var(--transition);
  padding: 0 24px;
}

.navbar.scrolled {
  background: #001220;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.nav-logo img {
  height: 74px;
  width: auto;
  display: block;
}

/* Fallback logo (icon + text) shown if image is missing */
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue-light), var(--orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.nav-logo-text {
  line-height: 1.2;
}

.nav-logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
}

.nav-logo-text span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* Desktop Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 185px;
  background: rgba(0,28,55,0.97);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1001;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-link:hover,
.dropdown-link:focus {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
}

.dropdown-link.active {
  color: var(--white);
  font-weight: 600;
}

/* Mobile Nav Items with Dropdowns */
.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  border-bottom: none;
}

.mobile-dropdown {
  display: none;
  flex-direction: column;
  padding: 4px 0 12px 16px;
}

.mobile-dropdown.open {
  display: flex;
}

.mobile-dropdown-link {
  display: block;
  padding: 8px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  border-bottom: none;
}

.mobile-dropdown-link:hover {
  color: var(--orange);
}

/* Nav Right: search + donate + hamburger */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-search-btn:hover {
  background: rgba(255,255,255,0.2);
}

.nav-donate {
  background: var(--orange);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-donate:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,20,45,0.96);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.search-overlay-close:hover { color: var(--white); }

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
}

.search-overlay-inner h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.search-input-wrap i {
  padding: 0 16px;
  color: var(--gray-dark);
  font-size: 1.1rem;
}

#site-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  padding: 18px 0;
  color: var(--text-dark);
  font-family: var(--font-body);
  background: transparent;
}

.search-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.search-result-item:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
  transform: translateX(4px);
}

.search-result-item i {
  color: var(--orange);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
}

.search-result-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-top: 2px;
}

.search-no-results {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 24px 0;
  font-size: 0.95rem;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #001220;
  transform: translateX(100%);
  transition: var(--transition-slow);
  overflow-y: auto;
  z-index: 999;
  padding: 24px;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-link:hover { color: var(--orange); }

.mobile-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Coral reef photo — replace URL with your own image if desired */
  background-image: url('https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,63,107,0.80) 0%, rgba(0,90,142,0.72) 40%, rgba(74,53,117,0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,180,216,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107,79,160,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(255,107,53,0.1) 0%, transparent 50%);
}

/* Animated wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px 140px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--orange);
  font-size: 0.9rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 750px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero h1 .highlight {
  color: var(--blue-light);
  position: relative;
}

.hero .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 580px;
}

/* Page Hero (non-homepage) */
.page-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,63,107,0.78), rgba(0,119,182,0.72));
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero .lead {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs i { font-size: 0.6rem; }
.breadcrumbs .current { color: rgba(255,255,255,0.9); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue-pale), var(--gray-mid));
}

.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, #c5e8f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 2.5rem;
  opacity: 0.6;
}

.card-body {
  padding: 28px;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.card-body h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.card-body p {
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.card-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--gray-mid);
}

/* Feature Card */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-mid);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-pale);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }

.icon-blue   { background: var(--blue-pale);   color: var(--blue-primary); }
.icon-orange { background: var(--orange-pale);  color: var(--orange); }
.icon-purple { background: var(--purple-pale);  color: var(--purple); }

/* ============================================
   STATS SECTION
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--gray-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-item {
  background: var(--white);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover { background: var(--blue-pale); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.stat-number .suffix {
  font-size: 1.8rem;
  color: var(--orange);
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Dark stats variant */
.stats-dark .stat-item { background: rgba(255,255,255,0.08); }
.stats-dark .stat-item:hover { background: rgba(255,255,255,0.15); }
.stats-dark .stat-number { color: var(--blue-light); }
.stats-dark .stat-label { color: rgba(255,255,255,0.7); }

/* ============================================
   VIDEO EMBED
   ============================================ */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--purple-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  transition: var(--transition);
}

.video-placeholder:hover { background: linear-gradient(135deg, #004f87, #5a3d8a); }

.video-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.video-placeholder:hover .video-play-btn {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.1);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-label .required { color: var(--orange); margin-left: 3px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #EF4444;
}

.form-input.valid,
.form-select.valid,
.form-textarea.valid {
  border-color: #10B981;
}

.form-error {
  font-size: 0.8rem;
  color: #EF4444;
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-mid);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue-primary);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-top: 5px;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.newsletter-form .form-input {
  flex: 1;
}

/* Donation Amounts */
.donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.donation-amount {
  padding: 12px 24px;
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  color: var(--text-dark);
}

.donation-amount:hover,
.donation-amount.active {
  border-color: var(--blue-primary);
  background: var(--blue-pale);
  color: var(--blue-primary);
}

.donation-toggle {
  display: flex;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.toggle-btn {
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: var(--gray-dark);
}

.toggle-btn.active {
  background: var(--white);
  color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   RECAPTCHA
   ============================================ */
.recaptcha-wrapper {
  margin-bottom: 20px;
}

.recaptcha-error {
  display: none;
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 6px;
}

.form-submit-error {
  display: none;
  background: #fee2e2;
  border: 1px solid #EF4444;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #b91c1c;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ============================================
   IMAGES & GALLERY
   ============================================ */
.img-placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-pale) 0%, #b3ddf7 50%, #e8f4fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  opacity: 0.7;
  font-size: 3rem;
}

.coral-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img,
.gallery-item .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:hover .img-placeholder {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,63,107,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   QUOTE / TESTIMONIALS
   ============================================ */
.quote-block {
  position: relative;
  padding: 40px 40px 40px 60px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--blue-primary);
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--blue-light);
  line-height: 1;
}

.quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.quote-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.quote-role { font-size: 0.82rem; color: var(--gray-dark); }

/* ============================================
   ACCORDION / FAQ
   ============================================ */
.accordion-item {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: var(--transition);
}

.accordion-item:hover { border-color: var(--blue-primary); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-dark);
}

.accordion-header:hover { background: var(--blue-pale); color: var(--blue-primary); }

.accordion-header i {
  transition: var(--transition);
  flex-shrink: 0;
  color: var(--blue-primary);
}

.accordion-item.open .accordion-header i { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: var(--white);
}

.accordion-item.open .accordion-body { max-height: 500px; }

.accordion-body-inner {
  padding: 0 24px 24px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-primary), var(--purple));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-primary);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-pale);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.timeline-item h4 { margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; }

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-mid);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-pale), var(--purple-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--blue-primary);
  margin: 0 auto 20px;
  border: 3px solid var(--blue-pale);
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  border-color: var(--blue-primary);
  transform: scale(1.05);
}

.team-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.team-role {
  font-size: 0.85rem;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.6;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.team-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--blue-pale);
  color: var(--blue-primary);
}

/* ============================================
   JOB LISTINGS
   ============================================ */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.job-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.job-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--blue-pale);
  color: var(--blue-primary);
}

.job-badge.orange { background: var(--orange-pale); color: var(--orange-dark); }
.job-badge.purple { background: var(--purple-pale); color: var(--purple-dark); }

/* ============================================
   EVENT CARDS
   ============================================ */
.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  gap: 0;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.event-date-block {
  background: var(--blue-primary);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  flex-shrink: 0;
}

.event-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.event-day {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.event-body {
  padding: 20px 24px;
  flex: 1;
}

.event-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin-bottom: 8px;
}

/* ============================================
   NEWS / BLOG CARDS
   ============================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-mid);
}

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

.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-pale), var(--purple-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 2rem;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.news-body { padding: 24px; }
.news-date { font-size: 0.78rem; color: var(--gray-dark); margin-bottom: 8px; }
.news-body h4 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.35; }
.news-body h4 a:hover { color: var(--blue-primary); }

/* ============================================
   PARTNER LOGOS — 3-UP CONTINUOUS LOOP
   ============================================ */
.p3-outer {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}
.p3-track {
  display: flex;
  /* animation injected via inline JS on load/resize */
}
@keyframes p3-loop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--p3-tx, -1800px)); }
}
.p3-logo {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: var(--p3-logo-w, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  background: transparent;
  height: 120px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.3s;
}
.p3-logo:hover {
  opacity: 1;
}
.p3-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Legacy grid support */
/* Legacy grid support */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* ============================================
   INSTAGRAM FEED / PROFILE WIDGET
   ============================================ */
.ig-widget {
  max-width: 660px;
  margin: 0 auto;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.ig-widget-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #efefef;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.ig-widget-header:hover { background: #fafafa; }
.ig-profile-pic {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
  padding: 4px;
}
.ig-profile-info { flex: 1; min-width: 0; }
.ig-username { font-weight: 700; font-size: 0.95rem; color: #111; display: block; }
.ig-bio { font-size: 0.8rem; color: #737373; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-logo-mark { color: #e1306c; font-size: 1.5rem; flex-shrink: 0; }

.ig-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #efefef;
}
.ig-post {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
  display: block;
}
.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.ig-post:hover img { transform: scale(1.05); }
.ig-post-badge {
  position: absolute;
  top: 8px; right: 8px;
  color: white;
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.ig-post-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
}
.ig-post:hover .ig-post-overlay { opacity: 1; }
.ig-widget-footer {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #efefef;
  justify-content: center;
}
.ig-btn-load {
  padding: 9px 22px;
  border-radius: 6px;
  background: #3897f0;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ig-btn-load:hover { background: #2278d0; }
.ig-btn-follow {
  padding: 9px 22px;
  border-radius: 6px;
  background: white;
  color: #3897f0;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1.5px solid #3897f0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ig-btn-follow:hover { background: #3897f0; color: white; }

/* Legacy grid */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.instagram-post {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--blue-pale), var(--purple-pale));
  cursor: pointer;
  transition: var(--transition);
}
.instagram-post:hover { transform: scale(0.98); opacity: 0.85; }
.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,63,107,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 0.9rem;
}
.instagram-post:hover .instagram-overlay { opacity: 1; }

/* ============================================
   TALKS / MEDIA SECTION
   ============================================ */
.talk-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.talk-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.talk-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--blue-deep), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.talk-play {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: var(--transition);
}

.talk-card:hover .talk-play {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.1);
}

.talk-body { padding: 20px; }
.talk-source {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
  padding: var(--section-py) 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 50%, var(--purple) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,180,216,0.15) 0%, transparent 70%);
}

.cta-section .container { position: relative; }

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin: 0 auto 40px;
  max-width: 580px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

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

.footer-brand .nav-logo {
  margin-bottom: 10px !important;
}

.footer-brand .nav-logo img {
  height: auto !important;
  max-width: 200px;
  width: 100%;
}

.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--blue-light);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.65);
}

.footer-contact-item a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  max-width: none;
}

.footer-501 {
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */
/* ============================================
   FLOATING DONATE BUTTON
   ============================================ */
.donate-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--orange);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(224,90,37,0.45);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.donate-float:hover {
  background: var(--orange-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(224,90,37,0.55);
  color: #fff;
}

.donate-float i {
  font-size: 1rem;
  animation: float-heartbeat 1.6s ease-in-out infinite;
}

@keyframes float-heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.25); }
}

@media (max-width: 480px) {
  .donate-float {
    padding: 12px 16px;
    font-size: 0.82rem;
    bottom: 20px;
    right: 16px;
  }
  .donate-float-text { display: none; }
  .donate-float { padding: 14px; border-radius: 50%; }
}

.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
  border: none;
  font-size: 1rem;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   BLOG / ARTICLE PAGES
   ============================================ */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--gray-dark);
}

.article-feature-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 40px;
}

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body p { margin-bottom: 22px; }

.article-body h2 {
  font-size: 1.5rem;
  margin: 44px 0 16px;
  color: var(--heading);
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--heading);
}

.article-body img {
  width: 100%;
  display: block;
  border-radius: 0;
  margin: 32px 0;
}

.article-body blockquote {
  border-left: 4px solid var(--blue-primary);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--blue-pale);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 22px;
}

.article-body li { margin-bottom: 8px; }

.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--text-mid);
  text-decoration: none;
  transition: var(--transition);
}

.article-share a:hover { background: var(--blue-primary); color: #fff; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.related-card-thumb {
  height: 160px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 2rem;
  border-radius: 0;
}

.related-card-body {
  padding: 18px;
}

.related-card-body h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.4;
  color: var(--heading);
}

.related-card-body p {
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-feature-img { height: 260px; }
}

/* ============================================
   PARALLAX BANNER
   ============================================ */
.parallax-banner {
  position: relative;
  min-height: 340px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 32, 0.6);
}

.parallax-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px;
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
}

.parallax-banner-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  margin-bottom: 16px;
}

.parallax-banner-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .parallax-banner { background-attachment: scroll; min-height: 280px; }
}

/* ============================================
   YOUTUBE SHORTS GRID
   ============================================ */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shorts-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.shorts-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  border: none;
}

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

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

/* ============================================
   SPECIES / CORAL CARDS
   ============================================ */
.species-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.species-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.species-img {
  height: 200px;
  background: linear-gradient(135deg, #0077B6 0%, #00B4D8 50%, #48CAE4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.species-body { padding: 24px; }
.species-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.species-latin { font-style: italic; font-size: 0.82rem; color: var(--gray-dark); margin-bottom: 12px; }

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
  background: var(--blue-pale);
  border: 1px solid rgba(0,119,182,0.2);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p { max-width: none; font-size: 0.95rem; }

.info-box-orange {
  background: var(--orange-pale);
  border-color: rgba(255,107,53,0.2);
  border-left-color: var(--orange);
}

/* ============================================
   MAP PLACEHOLDER
   ============================================ */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--blue-pale), var(--gray-mid));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--blue-primary);
  font-size: 2.5rem;
  border: 2px dashed var(--blue-light);
}

.map-placeholder span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================
   IMPACT CALCULATOR
   ============================================ */
.impact-calc {
  background: linear-gradient(135deg, var(--blue-pale), var(--purple-pale));
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.impact-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin: 16px 0 8px;
}

/* ============================================
   STICKY CTA BAR (mobile donate)
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--orange);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  font-weight: 700;
  z-index: 800;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

/* ============================================
   RESPONSIVE — TABLET (992px)
   ============================================ */
@media (max-width: 992px) {
  :root {
    --section-py: 70px;
    --nav-height: 62px;
  }

  .nav-menu { display: none; }
  .nav-donate { display: none; }
  .nav-search-btn { display: none; }
  .hamburger { display: flex; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE — MOBILE (768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-py: 56px;
  }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

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

  .newsletter-form {
    flex-direction: column;
  }

  .event-card { flex-direction: column; }
  .event-date-block { flex-direction: row; gap: 12px; padding: 14px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .hero-content { padding: 60px 24px 100px; }
  .btn-group { flex-direction: column; align-items: center; }

  .sticky-cta { display: flex; }
  body { padding-bottom: 56px; }

  .section-header { margin-bottom: 40px; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  :root { --section-py: 44px; }

  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .gallery-grid,
  .instagram-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .donation-amounts { gap: 8px; }
  .donation-amount { padding: 10px 16px; font-size: 1rem; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar, .footer, .scroll-top, .sticky-cta,
  .mobile-menu, .hamburger { display: none !important; }
  body { padding-top: 0; }
  a[href]::after { content: " (" attr(href) ")"; }
  .hero { min-height: auto; padding: 24px 0; }
}

/* ============================================
   BLUE/DARK BACKGROUND — PLACEHOLDER TEXT
   ============================================ */
.bg-blue .form-input::placeholder,
.bg-blue .form-textarea::placeholder,
.bg-gradient .form-input::placeholder,
.bg-gradient .form-textarea::placeholder {
  color: rgba(255,255,255,0.65);
}

/* ============================================
   RESPONSIVE — TABLET (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .btn-group { justify-content: center; }
}

/* ============================================
   NO ROUNDED CORNERS — GLOBAL
   ============================================ */
*, *::before, *::after {
  border-radius: 0 !important;
}
