/* ============================================================
   RR Crime International Detective Association
   Main Stylesheet - Premium NGO Design
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --deep-blue: #0a1628;
  --royal-blue: #1a3a6b;
  --mid-blue: #2856a3;
  --light-blue: #3b82f6;
  --gold: #c9a227;
  --gold-light: #e4b84a;
  --gold-dark: #a07818;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #e9ecef;
  --mid-gray: #6c757d;
  --dark-gray: #2d2d2d;
  --dark: #0d0d0d;
  --red: #c0392b;
  --red-light: #e74c3c;
  --green: #27ae60;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.18);
  --shadow-xl: 0 16px 60px rgba(10, 22, 40, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* ============================================================
   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(--dark-gray);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--deep-blue);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  width: 80px;
  animation: logoPulse 1.5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  animation: loadBar 2s ease forwards;
}
@keyframes loadBar {
  to { width: 100%; }
}

.loader-text {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.4s ease;
  padding: 0;
}
.navbar.scrolled {
  background: var(--deep-blue);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  padding: 0;
}

.nav-top-bar {
  background: var(--deep-blue);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
}
.navbar.scrolled .nav-top-bar {
  padding: 0;
  max-height: 0;
  overflow: hidden;
}

.nav-top-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-top-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-top-info a {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.nav-top-info a:hover { color: var(--gold); }
.nav-top-info .fa { color: var(--gold); font-size: 11px; }

.nav-top-social { display: flex; gap: 10px; }
.nav-top-social a {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  transition: var(--transition);
}
.nav-top-social a:hover { background: var(--gold); color: var(--deep-blue); }

.nav-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.nav-logo-text .title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-logo-text .sub {
  display: block;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

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

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link .fa-chevron-down { font-size: 9px; transition: transform 0.3s; }
.nav-item:hover .nav-link .fa-chevron-down { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--gold);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--dark-gray);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown a:hover { background: var(--off-white); color: var(--royal-blue); padding-left: 26px; }
.dropdown a .fa { color: var(--gold); width: 16px; text-align: center; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-nav-join {
  background: var(--gold);
  color: var(--deep-blue);
  padding: 9px 20px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.btn-nav-join:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.btn-nav-donate {
  background: var(--red);
  color: var(--white);
  padding: 9px 20px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.btn-nav-donate:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  background: var(--deep-blue);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.nav-mobile.open { max-height: 80vh; overflow-y: auto; }
.nav-mobile a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  font-family: var(--font-display);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--gold); padding-left: 8px; }
.nav-mobile-sub a { padding-left: 20px; font-size: 13px; color: rgba(255,255,255,0.65); }
.nav-mobile-cta {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.nav-mobile-cta a {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  border: none;
}
.nav-mobile-cta .btn-join-m { background: var(--gold); color: var(--deep-blue); }
.nav-mobile-cta .btn-donate-m { background: var(--red); color: var(--white); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--deep-blue);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(26,58,107,0.75) 50%, rgba(10,22,40,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title .highlight {
  color: var(--gold);
  position: relative;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-stat-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}
.hero-stat-card:hover {
  background: rgba(201,162,39,0.12);
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-4px);
}
.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s ease infinite;
}
.hero-scroll span {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-scroll .fa { color: var(--gold); }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 60px;
  right: 40px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep-blue);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,162,39,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-blue {
  background: linear-gradient(135deg, var(--royal-blue), var(--mid-blue));
  color: var(--white);
  border-color: var(--royal-blue);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26,58,107,0.4);
}

.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192,57,43,0.4);
}

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

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

.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  background: rgba(201,162,39,0.1);
  color: var(--gold-dark);
  padding: 4px 16px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(201,162,39,0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.white { color: var(--white); }

.section-subtitle {
  font-size: 1rem;
  color: var(--mid-gray);
  line-height: 1.8;
  max-width: 600px;
}
.section-subtitle.white { color: rgba(255,255,255,0.8); }

.section-header { margin-bottom: 50px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px 0;
}
.divider.center { margin: 16px auto; }

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

.card-body { padding: 28px; }
.card-header-img { position: relative; overflow: hidden; }
.card-header-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-header-img img { transform: scale(1.06); }

/* Icon Card */
.icon-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid transparent;
}
.icon-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.icon-card:hover::before { transform: scaleX(1); }
.icon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.icon-card .icon-wrap {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--royal-blue), var(--mid-blue));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.icon-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}
.icon-card .icon-wrap .fa {
  font-size: 28px;
  color: var(--white);
}
.icon-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
}
.icon-card p { color: var(--mid-gray); font-size: 14px; line-height: 1.7; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(201,162,39,0.06);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }

.stat-icon {
  width: 60px; height: 60px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.stat-icon .fa { color: var(--gold); font-size: 24px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.about-badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--deep-blue);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge-float .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge-float .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}
.about-feature .fa { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.about-feature p { font-size: 13px; color: var(--dark-gray); font-weight: 500; }

/* ============================================================
   MISSION VISION CARDS
   ============================================================ */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.mv-card {
  border-radius: var(--radius-md);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.mv-card.mission {
  background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
  color: var(--white);
}
.mv-card.vision {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--deep-blue);
}
.mv-card-icon {
  font-size: 48px;
  opacity: 0.15;
  position: absolute;
  top: 20px; right: 24px;
}
.mv-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
  position: relative;
}
.mv-card p { font-size: 14.5px; line-height: 1.8; opacity: 0.9; position: relative; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   DONATION CTA SECTION
   ============================================================ */
.donate-cta {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--royal-blue) 60%, var(--deep-blue) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.donate-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(201,162,39,0.07);
  border-radius: 50%;
}
.donate-cta::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 400px; height: 400px;
  background: rgba(201,162,39,0.05);
  border-radius: 50%;
}

.donate-cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.donate-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.donate-amount-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.donate-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,162,39,0.35);
  color: var(--gold);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.donate-pill:hover {
  background: var(--gold);
  color: var(--deep-blue);
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  background: var(--white);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.news-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--deep-blue);
  position: relative;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--deep-blue);
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.news-card-body { padding: 24px; }
.news-card-date {
  font-size: 12px;
  color: var(--mid-gray);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-date .fa { color: var(--gold); }
.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--deep-blue);
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-card-excerpt { font-size: 13px; color: var(--mid-gray); line-height: 1.7; margin-bottom: 16px; }
.news-card-link {
  font-size: 13px;
  color: var(--royal-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-card-link:hover { color: var(--gold); }

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.7), rgba(26,58,107,0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .fa { color: var(--white); font-size: 28px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--red); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--off-white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 24px;
  font-family: var(--font-heading);
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
  opacity: 0.3;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.testimonial-text {
  color: var(--mid-gray);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  padding-top: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.testimonial-avatar-placeholder {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--mid-blue));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  border: 2px solid var(--gold);
}
.testimonial-name { font-weight: 700; color: var(--deep-blue); font-size: 15px; }
.testimonial-role { font-size: 12px; color: var(--mid-gray); }
.star-rating { color: var(--gold); font-size: 13px; margin-top: 4px; }

/* ============================================================
   PARTNER LOGOS
   ============================================================ */
.partners-section { padding: 60px 0; background: var(--white); }
.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo {
  height: 50px;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
}
.partner-logo:hover { filter: none; transform: scale(1.05); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.75);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-brand .footer-logo img {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.footer-brand .footer-logo-text .title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.footer-brand .footer-logo-text .abbr {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 600;
}
.footer-about {
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: var(--gold); color: var(--deep-blue); border-color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a .fa { color: var(--gold); font-size: 10px; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.footer-contact-item .icon {
  width: 32px; height: 32px;
  background: rgba(201,162,39,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-contact-item .icon .fa { color: var(--gold); font-size: 13px; }
.footer-contact-item .info a { color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-contact-item .info a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--gold); }

/* ============================================================
   FORMS
   ============================================================ */
.form-section { padding: 80px 0; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 50px;
  box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--dark-gray);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-group label .req { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.form-control.error { border-color: var(--red); }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
  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='%236c757d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-file {
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.form-file:hover { border-color: var(--royal-blue); }
.form-file input[type="file"] { display: none; }
.form-file .upload-icon { font-size: 32px; color: var(--mid-gray); margin-bottom: 8px; }
.form-file p { font-size: 13px; color: var(--mid-gray); }

.form-section-divider {
  border: none;
  border-top: 2px solid var(--light-gray);
  margin: 32px 0;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--royal-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--light-gray);
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  position: fixed;
  top: 100px;
  right: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 500;
  z-index: 999999;
  max-width: 420px;
  width: calc(100vw - 48px);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.12), 0 1px 3px rgba(10, 22, 40, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: opacity 0.4s ease, transform 0.4s ease, top 0.4s ease;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(50px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.alert i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success { background: rgba(212, 237, 218, 0.9); color: #155724; border-left: 5px solid var(--green); }
.alert-error { background: rgba(248, 215, 218, 0.9); color: #721c24; border-left: 5px solid var(--red); }
.alert-warning { background: rgba(255, 243, 205, 0.9); color: #856404; border-left: 5px solid #ffc107; }
.alert-info { background: rgba(204, 229, 255, 0.9); color: #004085; border-left: 5px solid var(--light-blue); }

.alert-inline {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  z-index: 100 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-bottom: 24px !important;
  box-shadow: none !important;
  animation: none !important;
}

.alert-close {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.5;
  color: inherit;
  transition: opacity 0.2s;
  padding: 2px;
  margin-left: auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-close:hover { opacity: 1; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #cce5ff; color: #004085; }
.badge-secondary { background: var(--light-gray); color: var(--mid-gray); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--light-gray);
  color: var(--dark-gray);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--royal-blue); color: var(--royal-blue); }
.page-btn.active { background: var(--royal-blue); border-color: var(--royal-blue); color: var(--white); }

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--royal-blue) 100%);
  padding: 120px 0 70px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: rgba(201,162,39,0.06);
  border-radius: 50%;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -30px;
  width: 250px; height: 250px;
  background: rgba(201,162,39,0.05);
  border-radius: 50%;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 14px;
}
.page-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 550px;
  margin: 0 auto 20px;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.35); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scrollTop {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--royal-blue), var(--mid-blue));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  border: 2px solid rgba(255,255,255,0.15);
}
#scrollTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scrollTop:hover {
  background: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   DONATION PAGE
   ============================================================ */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.payment-card {
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.payment-card:hover { border-color: var(--royal-blue); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.payment-card.selected { border-color: var(--gold); background: rgba(201,162,39,0.05); }
.payment-card .fa { font-size: 36px; color: var(--royal-blue); margin-bottom: 12px; }
.payment-card h4 { font-size: 14px; color: var(--deep-blue); font-weight: 700; margin-bottom: 4px; }
.payment-card p { font-size: 12px; color: var(--mid-gray); }

.payment-details-box {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  display: none;
}
.payment-details-box.show { display: block; }

.payment-details-box h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--deep-blue);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
}
.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 14px;
}
.bank-detail-row:last-of-type { border-bottom: none; }
.bank-detail-row .label { color: var(--mid-gray); font-weight: 500; }
.bank-detail-row .value { color: var(--dark-gray); font-weight: 700; }

.qr-code-box {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}
.qr-code-box img { width: 180px; height: 180px; object-fit: contain; }

/* ============================================================
   MEMBER CARD DESIGN
   ============================================================ */
.id-card {
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
}
.id-card-header {
  background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
  padding: 20px 24px 16px;
  text-align: center;
  position: relative;
}
.id-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 20px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.id-card-header .org-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.3;
}
.id-card-header .abbr {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 4px 0;
}
.id-card-body {
  padding: 24px 28px 20px;
  text-align: center;
}
.id-card-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}
.id-card-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--deep-blue);
  font-weight: 700;
  margin-bottom: 4px;
}
.id-card-type {
  background: var(--gold);
  color: var(--deep-blue);
  padding: 2px 14px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
.id-card-details {
  text-align: left;
  font-size: 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.id-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--light-gray);
}
.id-detail-row:last-child { border-bottom: none; }
.id-detail-row .lbl { color: var(--mid-gray); font-weight: 600; }
.id-detail-row .val { color: var(--dark-gray); font-weight: 700; text-align: right; }
.id-card-footer {
  background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
  padding: 12px 24px;
  text-align: center;
}
.id-card-footer p {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}
.id-card-footer .mid {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations - require IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--royal-blue));
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}
.timeline-item:nth-child(even) .timeline-content { order: 3; }
.timeline-item:nth-child(even) .timeline-empty { order: 1; }
.timeline-dot {
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
  margin-top: 6px;
}
.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--gold);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline-content h3 { color: var(--deep-blue); margin-bottom: 8px; font-size: 1.05rem; }
.timeline-content p { color: var(--mid-gray); font-size: 13.5px; line-height: 1.7; }

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.team-photo {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--royal-blue), var(--deep-blue));
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.team-photo-placeholder .fa { font-size: 80px; color: rgba(255,255,255,0.2); }
.team-info { padding: 24px 20px; }
.team-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--deep-blue); margin-bottom: 6px; }
.team-role { font-size: 13px; color: var(--gold-dark); font-weight: 600; margin-bottom: 12px; }
.team-bio { font-size: 12.5px; color: var(--mid-gray); line-height: 1.7; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info { padding: 40px; background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue)); border-radius: var(--radius-lg); color: var(--white); }
.contact-info h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 12px; }
.contact-info p { color: rgba(255,255,255,0.75); margin-bottom: 30px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon .fa { color: var(--gold); }
.contact-item-text .label { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; }
.contact-item-text .value { color: var(--white); font-size: 14px; font-weight: 500; }
.contact-item-text a { color: var(--white); }
.contact-item-text a:hover { color: var(--gold); }

.contact-form-box { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form-box h2 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--deep-blue); margin-bottom: 8px; }
.contact-form-box p { color: var(--mid-gray); margin-bottom: 28px; font-size: 14px; }

.map-section { padding: 0; height: 400px; }
.map-section iframe { width: 100%; height: 100%; border: none; display: block; }

.whatsapp-float {
  position: fixed;
  bottom: 90px; right: 30px;
  width: 50px; height: 50px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.15); }

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.project-img { height: 200px; overflow: hidden; background: var(--deep-blue); position: relative; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img img { transform: scale(1.06); }
.project-status {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-ongoing { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-upcoming { background: #fff3cd; color: #856404; }
.project-body { padding: 24px; }
.project-cat { font-size: 11px; color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.project-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--deep-blue); margin-bottom: 10px; }
.project-desc { font-size: 13px; color: var(--mid-gray); line-height: 1.7; margin-bottom: 16px; }
.progress-bar-wrap { margin-bottom: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--mid-gray); margin-bottom: 6px; }
.progress-bar {
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--royal-blue), var(--gold));
  border-radius: 3px;
  transition: width 1s ease;
}
.project-meta { display: flex; gap: 16px; font-size: 12px; color: var(--mid-gray); align-items: center; }
.project-meta .fa { color: var(--gold); }

/* ============================================================
   MEMBERS PUBLIC PAGE
   ============================================================ */
.members-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member-pub-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 3px solid transparent;
}
.member-pub-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-top-color: var(--gold);
}
.member-pub-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 14px;
  display: block;
}
.member-pub-avatar-ph {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--mid-blue));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid var(--gold);
}
.member-pub-avatar-ph .fa { font-size: 36px; color: rgba(255,255,255,0.5); }
.member-pub-name { font-family: var(--font-heading); font-size: 1rem; color: var(--deep-blue); font-weight: 700; margin-bottom: 4px; }
.member-pub-id { font-size: 11px; color: var(--gold-dark); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.member-pub-location { font-size: 12px; color: var(--mid-gray); margin-bottom: 10px; }
.member-pub-type { display: inline-block; padding: 2px 10px; border-radius: var(--radius-xl); font-size: 11px; font-weight: 700; background: rgba(201,162,39,0.1); color: var(--gold-dark); border: 1px solid rgba(201,162,39,0.3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: block; }
  .nav-top-bar .nav-top-info span.hide-tablet { display: none; }
  
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 500px; margin: 0 auto; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .members-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .donate-cta-content { grid-template-columns: 1fr; }
  .donate-cta-actions { align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-top-bar { display: none; }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: auto 1fr; }
  .timeline-item:nth-child(even) .timeline-content { order: unset; }
  .timeline-item:nth-child(even) .timeline-empty { display: none; }
  .timeline-empty { display: none; }
  .about-features { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   PREMIUM POPUP MODAL FOR FLASH & ERRORS
   ============================================================ */
.flash-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.flash-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.flash-modal-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.3);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-sizing: border-box;
}
.flash-modal-overlay.active .flash-modal-card {
  transform: scale(1);
}
.flash-modal-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 38px;
  animation: scaleUpIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.flash-modal-title {
  font-family: var(--font-heading), "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-blue);
  margin: 0 0 12px;
}
.flash-modal-message {
  font-family: var(--font-body), "Inter", sans-serif;
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.6;
  margin: 0 0 28px;
}
.flash-modal-btn {
  font-family: var(--font-body), "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 40px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}
.flash-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}
.flash-modal-btn:active {
  transform: translateY(0);
}
@keyframes scaleUpIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

