:root {
  --primary-900: #0f172a;
  --primary-800: #1e293b;
  --primary-700: #334155;
  --brand-red: #e11d48;
  --brand-red-hover: #be123c;
  --brand-gold: #d97706;
  
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-900);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Section Tag / Badge */
.section-tag,
.ways-text .section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9f1239;
  -webkit-text-fill-color: #9f1239;
  background-color: #ffe4e6;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 650px;
  margin-top: 8px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 82px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-brand {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--brand-red);
  font-weight: 700;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--brand-red);
}

/* Buttons */
.btn-primary,
a.btn-primary,
header nav a.btn-primary,
.nav-links a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-red, #e11d48);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm, 6px);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast, all 0.2s ease);
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.2);
}

.btn-primary:hover,
a.btn-primary:hover,
header nav a.btn-primary:hover,
.nav-links a.btn-primary:hover {
  background-color: var(--brand-red-hover, #be123c);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-primary-lg,
a.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-red, #e11d48);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-md, 8px);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast, all 0.2s ease);
  box-shadow: var(--shadow-md);
}

.btn-primary-lg:hover,
a.btn-primary-lg:hover {
  background-color: var(--brand-red-hover, #be123c);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero Banner */
.hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(190, 24, 93, 0.75) 100%), url('images/Chruch.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
}

/* Section Layouts */
.content-section {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 96px 5%;
}

/* About Section Grid */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-track-container {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease-in-out; 
}

.project-card {
  min-width: calc(33.333% - 14px);
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Control Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #333;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 720px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.mission-item {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--brand-red);
  color: var(--text-muted);
}

/* Director Leadership Card */
.director-card {
  margin-top: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Our Impact & Projects */
.section-header {
  margin-bottom: 40px;
  text-align: center;
  max-width: 650px;
  margin: 0 auto 32px auto;
  padding: 0 20px;
}

.section-header .section-tag {
  display: inline-block;
  background-color: #fde8ed;
  color: #e60039;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.section-header .section-desc {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.projects-grid {
  display: flex;
  flex-direction: row;
  gap: 0px;
  width: 100%;
  align-items: stretch;
  transition: transform 0.4s ease-in-out;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 100%;
  width: 100%;
  background-color: var(--bg-surface, #ffffff);
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border-color, #e5e7eb);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
}

.project-card .project-img {
  width: 100%;
  max-width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.project-card .project-body {
  display: flex;
  flex-direction: column;
  padding: 32px;
  flex-grow: 1;
}

.project-card .project-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red, #e60039);
  margin-bottom: 10px;
}

.project-card .project-body h3 {
  font-size: 1.5rem;
  margin: 0 0 12px 0;
}

.project-card .project-body p {
  font-size: 1rem;
  color: var(--text-muted, #6b7280);
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.project-card .btn-primary,
.project-card button {
  width: 100%;
  margin-top: auto;
  padding: 14px 20px;
  background-color: var(--brand-red, #e60039);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Ways To Give Section */
.ways-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background-color: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  border: 1px solid #e2e8f0;
}

.ways-text h2 {
  color: #0f172a; 
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-lead {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.impact-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 32px;
  border-radius: var(--radius-md);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b45309; 
  margin-bottom: 12px;
}

.impact-card h3 {
  color: #0f172a;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.impact-card p {
  color: #334155;
  font-size: 0.95rem;
}

.highlight-text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #cbd5e1;
}

/* Footer */
.site-footer {
  background-color: #090d16;
  color: #64748b;
  padding: 48px 24px;
  border-top: 1px solid var(--primary-800);
}

.footer-container {
  width: 100%;
  max-width: 100%;
  padding: 0 5%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.copyright {
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: #94a3b8;
}

.footer-legal a {
  font-size: 0.8rem;
  color: #64748b;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: #ffffff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: opacity(0.6) invert(1);
  transition: var(--transition-fast);
}

.social-icons a:hover img {
  filter: opacity(1) invert(1);
}

.footer-right {
  text-align: center;
  font-size: 0.85rem;
}

.message-us-title {
  display: block;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  text-align: center;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  .scroll-reveal {
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    transform: none;
    transition: opacity 0.3s ease-out;
  }
}

/* MOBILE & TABLET RESPONSIVE STYLES */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-btn .bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-900);
  border-radius: 3px;
  transition: var(--transition-fast);
}

/* --- TABLET BREAKPOINT (Max-Width: 1024px) --- */
@media screen and (max-width: 1024px) {
  .about-grid,
  .ways-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper img {
    height: 400px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-left { order: 1; }
  .footer-center { order: 2; }
  .footer-right { order: 3; }
}

/* --- MOBILE BREAKPOINT (Max-Width: 768px) --- */
@media screen and (max-width: 768px) {
  .nav-container {
    padding: 12px 20px;
  }

  .logo-img {
    height: 52px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bg-muted);
  }

  .nav-links a.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 240px;
    margin-top: 20px;
    padding: 12px 20px;
    text-align: center;
    border-bottom: none;
  }

  .hero-section {
    height: auto;
    min-height: 480px;
    padding: 80px 20px 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content-section {
    padding: 56px 16px;
  }

  .ways-container {
    padding: 32px 20px;
  }

  .ways-text h2 {
    font-size: 1.75rem;
  }

  .carousel-container {
    padding: 0 0 60px 0;
  }

  .project-card .project-img {
    height: 260px;
  }

  .project-card .project-body {
    padding: 20px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* --- SMALL MOBILE BREAKPOINT (Max-Width: 480px) --- */
@media screen and (max-width: 480px) {
  .logo-img {
    height: 44px;
  }

  .logo-brand {
    font-size: 1.1rem;
  }

  .logo-sub {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .carousel-container {
    padding: 0;
  }

  .carousel-btn {
    display: none;
  }

  .carousel-track-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .project-card {
    scroll-snap-align: center;
  }
}