*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #1a7a42;
  --green-dark: #0f5a2e;
  --green-light: #e8f5ed;
  --gold: #c8961a;
  --gold-light: #fdf6e3;
  --white: #ffffff;
  --off-white: #f8f9f4;
  --text: #1c1c1c;
  --text-muted: #555;
  --border: #d4e8db;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 100px;
}

.nav-col-logo {
  flex: 0 0 auto;
}

.nav-col-give {
  flex: 0 0 auto;
}

.nav-col-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}


.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  clip-path: inset(0 12% 0 12%);
  /* Aggressive crop to remove persistent black lines */
  transform: scale(1.15);
  /* Scaled back up to maintain visibility after crop */
}

#about-intro .container {
  max-width: 900px;
}

.intro-image-wrapper {
  margin: 3rem 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  transition: transform 0.4s ease;
}

.intro-image-wrapper:hover {
  transform: scale(1.02);
}

.intro-image-wrapper img {
  width: 100%;
  display: block;
}

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

.btn-sm {
  padding: 12px 28px;
  font-size: 13px;
}

/* nav-links is now handled by .nav-col-menu */

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-links a.active {
  color: var(--green);
}

.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  color: white !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

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

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url('../images/church.jpg') no-repeat center center / cover;
  text-align: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 12v8M12 16h8' stroke='rgba(200, 150, 26, 0.15)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 1;
  pointer-events: none;
}

/* Subpage Hero Modifier */
.hero-subpage {
  min-height: 50vh !important;
  padding-top: 160px !important;
}

/* Gold Hero Modifier (Matching High-Fidelity Reference) */
.hero-gold {
  background: linear-gradient(rgba(200, 150, 26, 0.95), rgba(130, 95, 15, 0.9)), url('../images/church.jpg') no-repeat center center / cover !important;
}

.hero-gold::after {
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 12v8M12 16h8' stroke='rgba(255, 255, 255, 0.1)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 12v8M12 16h8' stroke='rgba(200, 150, 26, 0.12)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(200, 150, 26, 0.4);
  color: #f4c842;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 em {
  color: #f4c842;
  font-style: italic;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

.hero-verse {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 14px 32px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background: #a87812;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.hero-services {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 4rem;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.8rem 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  z-index: 5;
  position: relative;
}

.hero-service {
  text-align: center;
  transition: transform 0.3s ease;
}

.hero-service:hover {
  transform: translateY(-5px);
}

.hero-service i {
  display: block;
  color: #f4c842;
  margin: 0 auto 12px;
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-service strong {
  display: block;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.hero-service span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 300;
}

/* SECTIONS */
section {
  padding: 100px 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em {
  color: var(--green);
  font-style: italic;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 580px;
  font-weight: 300;
}

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

.about-text .section-sub {
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 2rem;
}

.stat-box {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border-left: 3px solid var(--green);
}

.stat-box strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green-dark);
}

.stat-box span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.about-visual {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 20px;
  padding: 48px 36px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '✝';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 140px;
  opacity: 0.07;
  line-height: 1;
}

.about-visual h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-visual p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
  font-weight: 300;
}

.about-visual .mission {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about-visual .mission-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

/* HISTORY */
.history-section {
  background: var(--off-white);
}

.history-content {
  max-width: 760px;
}

.history-content .section-sub {
  margin-bottom: 1.5rem;
}

.history-timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 28px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

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

.timeline-item h4 {
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* MINISTRIES */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}

.ministry-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 24px;
  border: 1px solid #edf5f0;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ministry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 122, 66, 0.08);
}

.ministry-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eef7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--green);
}

.ministry-icon i,
.ministry-icon svg {
  width: 28px;
  height: 28px;
}

.ministry-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 12px;
}

.ministry-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* EVENTS */
.events-section {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.events-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 18v4M18 20h4' stroke='rgba(26, 122, 66, 0.03)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.event-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 122, 66, 0.08);
}

.event-header {
  background: var(--green);
  padding: 20px 24px;
  color: white;
}

.event-date {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.event-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

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

.event-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.event-tag {
  font-size: 11px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 5px 14px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* SCHOOL */
.school-tabs {
  display: flex;
  gap: 4px;
  background: var(--green-light);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 2.5rem;
}

.school-tab {
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  color: var(--green-dark);
}

.school-tab.active {
  background: var(--green);
  color: white;
}

.school-panel {
  display: none;
}

.school-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.school-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.school-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.school-features {
  list-style: none;
  margin: 1.5rem 0;
}

.school-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.school-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

.admissions-box {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
  margin-top: 1.5rem;
}

.admissions-box h4 {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admissions-box p {
  font-size: 0.88rem;
  color: #7a5a10;
  line-height: 1.6;
}

.school-visual {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.school-visual-header {
  background: var(--green);
  padding: 20px 24px;
  color: white;
}

.school-visual-header h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.school-visual-header p {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 4px;
}

.calendar-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cal-item {
  background: var(--off-white);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.cal-item .month {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cal-item .event {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* SERMONS */
.sermons-section {
  background: var(--off-white);
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.sermon-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sermon-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}

.sermon-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sermon-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sermon-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.sermon-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
}

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

.btn-green:hover {
  background: var(--green-dark);
}

.btn-ghost {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-ghost:hover {
  background: var(--border);
}

/* DONATIONS */
.donations-section {
  background: linear-gradient(135deg, #0d3d20 0%, #1a7a42 100%);
  color: white;
}

.donations-section .section-label {
  color: #f4c842;
}

.donations-section .section-title {
  color: white;
}

.donations-section .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.campaign-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.campaign-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.campaign-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--gold), #f4c842);
  height: 100%;
  border-radius: 50px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.progress-info strong {
  color: #f4c842;
}

.donate-methods {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.method-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px;
}

.method-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.method-card h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.method-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.83rem;
  line-height: 1.5;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 61, 32, 0.9) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay p {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-caption {
  color: #ffffff;
  margin-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 800px;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  line-height: 1;
  z-index: 10010;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10010;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

@media (max-width: 640px) {
  .lightbox-prev { left: 0.5rem; width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-next { right: 0.5rem; width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; font-size: 1.5rem; }
  .lightbox-content img { max-height: 65vh; }
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-direction: column;
  gap: 8px;
}

.gallery-placeholder span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
}

.gp1 {
  background: linear-gradient(135deg, #1a7a42, #0d3d20);
}

.gp2 {
  background: linear-gradient(135deg, #c8961a, #7a5a10);
}

.gp3 {
  background: linear-gradient(135deg, #1a4a7a, #0d2040);
}

.gp4 {
  background: linear-gradient(135deg, #7a1a4a, #400d22);
}

.gp5 {
  background: linear-gradient(135deg, #1a7a7a, #0d4040);
}

.gp6 {
  background: linear-gradient(135deg, #4a1a7a, #220d40);
}

/* CONTACT */
.contact-section {
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item h4 {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-decoration: none;
}

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

.map-placeholder {
  background: linear-gradient(135deg, var(--green-light), var(--border));
  border-radius: var(--radius);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 32px;
  margin-top: 1.5rem;
  color: var(--green);
  border: 1px solid var(--border);
}

.map-placeholder p {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.contact-form {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: white;
}

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

.btn-full {
  width: 100%;
  justify-content: center;
  display: flex;
}

/* NEWSLETTER */
.newsletter-section {
  background: var(--gold-light);
  border-top: 1px solid #e8d88a;
  border-bottom: 1px solid #e8d88a;
  padding: 50px 2rem;
  text-align: center;
}

.newsletter-section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--green);
}

/* FOOTER */
footer {
  background: #0d1f14;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 2rem 30px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
  /* Ensure all columns start at the same top level */
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: white;
  margin: 0 0 0.75rem 0;
  /* Reset top margin to ensure alignment */
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  color: white;
  font-family: var(--font-body);
}

.social-btn:hover {
  background: var(--green);
}

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  /* Reset top margin to ensure alignment */
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
}

/* NAVIGATION CTA */
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.3);
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .school-panel.active,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .hero-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    margin-top: 3rem;
  }

  nav .nav-inner {
    padding: 0 1.2rem;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-col-menu {
    display: none;
  }

  .nav-col-give {
    flex: 0 0 auto;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 11px;
  }

  section {
    padding: 60px 1.2rem;
  }

  .school-panel.active {
    gap: 28px;
  }
}

@media (max-width: 600px) {

  .hero::after,
  .hero::before,
  .events-section::before {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .campaigns-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE NAV OPEN */
.nav-mobile {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 999;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 1.2rem;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.nav-mobile a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-mobile a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: white;
  width: 90%;
  max-width: 480px;
  padding: 40px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #1c1c1c;
  margin-bottom: 8px;
}

.modal p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.amount-btn {
  background: #f8fbf9;
  border: 1px solid #e0e9e2;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #1c1c1c;
  cursor: pointer;
  transition: all 0.2s;
}

.amount-btn.selected {
  background: #eef7f2;
  border-color: var(--green);
  color: var(--green);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.pay-btn {
  background: white;
  border: 1px solid #eee;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-btn.selected {
  background: #eef7f2;
  border-color: var(--green);
  color: var(--green);
}

.btn-large-gold {
  background: #c8961a;
  color: white;
  padding: 18px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(200, 150, 26, 0.3);
  transition: transform 0.2s;
  font-family: var(--font-body);
}

.btn-large-gold:hover {
  transform: translateY(-2px);
}

/* LEADERSHIP */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.leader-card {
  text-align: center;
}

.leader-image {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.leader-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.leader-card span {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* UTILITY */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 3rem;
}

.highlight {
  color: var(--green);
}

/* SMOOTH REVEAL - just via CSS since no JS animation lib */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* DONATION PAGE LAYOUT */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  max-width: 1100px;
  margin: -100px auto 100px;
  position: relative;
  z-index: 10;
}

.donate-main {
  background: white;
  padding: 3.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.donate-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.impact-list {
  list-style: none;
}

.impact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.impact-item i {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.trust-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--off-white);
  padding: 4px 10px;
  border-radius: 4px;
}

/* FAQ SECTION */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.faq-item h4 {
  font-family: var(--font-heading);
  margin-bottom: 10px;
  color: var(--green-dark);
}

.faq-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 992px) {
  .donate-grid {
    grid-template-columns: 1fr;
    margin-top: -50px;
    padding: 0 1.2rem;
  }

  .donate-main {
    padding: 2.5rem 1.5rem;
  }
}