/*  
 * Global Stylesheet for Waterbrooks Ministry International website
 * This file defines the overall look and feel of the site, closely
 * mirroring the reference design. All color values have been
 * adjusted to blues in place of the original black/red palette.
 */

/* CSS Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #0a2342; /* dark blue for primary text */
  background-color: #f9fbfc; /* very light background */
  padding-top: 0; /* keep 0; we offset hero instead */
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Color variables for easy tweaking */
:root {
  --dark: #054478;       /* replacing black */
  --primary: #306aa1;    /* replacing red highlights with blue */
  --secondary: #439cd3;  /* lighter blue accent */
  --light: #ffffff;
  --muted: #f0f4f7;
  --pill-bg: #e5eff7;

  /* Header heights */
  --header-h: 64px;
  --header-h-mobile: 72px;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: var(--pill-bg);
  color: var(--dark);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.small-pill {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

.btn-secondary {
  background: var(--light);
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-secondary:hover {
  background: var(--muted);
}

.btn.outline {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: var(--light);
}

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

.text-highlight {
  color: var(--primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  color: var(--light);
  z-index: 1000;
  padding: 0.5rem 0;
}

/* Keep dropdown positioned correctly */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   HEADER LOGO — FINAL FIX
   ========================= */

/* Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  /* Moves ONLY WBM left */
  margin-left: -28px; /* adjust if needed (-20px to -40px) */
}

/* Waterbrooks text */
.logo-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
}

/* Logo image (normal, not circular) */
.logo img {
  height: 30px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
}

/* NAV */
.nav {
  flex: 1;
  text-align: right;
  margin-left: auto;
  position: relative; /* anchor dropdown for desktop; overridden on mobile */
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--light);
  letter-spacing: 1px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active navigation state: underline the current page link */
.nav-link.active {
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.donate-link {
  background: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  color: var(--light);
}

.donate-link:hover {
  background: var(--secondary);
}

/* Hamburger button (hidden by default; shows on mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
}

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

/* =========================
   MOBILE ADJUSTMENT (logo)
   ========================= */
@media (max-width: 768px) {
  .logo {
    margin-left: -16px;
    gap: 8px;
  }

  .logo-text {
    font-size: 13px;
    letter-spacing: 0.16em;
  }

  .logo img {
    height: 26px;
  }
}

/* =========================================================
   HERO (DEFAULT)
   - No white gap: use padding-top, NOT margin-top
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;

  /* This pushes content below fixed header WITHOUT creating a white strip */
  padding-top: var(--header-h);
  box-sizing: border-box;

  /* Background */
  background-color: #000;
  background-image: url('../images/hero.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
}

/* Mobile header is slightly taller */
@media (max-width: 768px) {
  .hero {
    padding-top: var(--header-h-mobile);
  }
}

/* =========================================================
   HOMEPAGE HERO SMOOTH CROSSFADE (ONLY if .home-hero is used)
   ========================================================= */
.hero.home-hero {
  background: none;
  background-color: #000;
  overflow: hidden;
}

.hero.home-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
  z-index: 0;
}

.hero.home-hero .hero-bg-1 {
  opacity: 1;
}

/* Keep overlay + content above backgrounds */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 68, 120, 0.6);
  z-index: 1;

  /* Prevent first-load blue flash */
  opacity: 0;
  transition: opacity 250ms ease;
}

/* Overlay becomes visible only after the first hero image is ready */
body.hero-ready .hero-overlay {
  opacity: 1;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Override highlighted text color within the hero section to be white */
.hero-title .text-highlight {
  color: var(--light);
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =========================================================
   CELEBRATION HERO – fixed/static background ONLY on celebration
   ========================================================= */
.hero.celebration-hero {
  background-image: url('../images/celev.jpg') !important;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 85vh;
}

@media (max-width: 768px) {
  .hero.celebration-hero {
    background-attachment: scroll;
  }
}

/* Welcome section */
.welcome-section {
  padding: 5rem 0;
  background: var(--light);
  text-align: center;
  color: var(--dark);
}

.building-pill {
  background: var(--secondary);
  color: var(--light);
}

.welcome-title {
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

.welcome-text {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #4a5f82;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--muted);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
}

.card-content p {
  font-size: 0.9rem;
  color: #576e8a;
  margin-bottom: 0.75rem;
  flex: 1;
}

.link-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Campus callout section */
.campus-callout {
  padding: 4rem 0;
  background: var(--muted);
  text-align: center;
}

.campus-title {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--dark);
}

.campus-title .text-highlight {
  color: inherit;
}

/* Visit section */
.visit-section {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--light);
  text-align: center;
}

.visit-heading {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.visit-card {
  background: var(--light);
  color: var(--dark);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.visit-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background-color: transparent;
}

.visit-info {
  padding: 0.75rem 1rem;
}

.visit-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.visit-info p {
  font-size: 0.8rem;
  color: #5e7aa3;
}

/* Boast section */
.boast-section {
  position: relative;
  padding: 6rem 0;
  background: url('../images/boast_new.jpg') center/cover no-repeat;
  color: var(--light);
  text-align: center;
}

.boast-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 68, 120, 0.7);
  z-index: 1;
}

.boast-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.boast-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.boast-text {
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Community section */
.community-section {
  padding: 5rem 0;
  background: var(--light);
  text-align: center;
}

.community-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--dark);
}

.community-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #4a5f82;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.community-card {
  background: var(--muted);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.community-img {
  width: 100%;
  height: auto;
  display: block;
}

.community-content {
  padding: 1rem;
}

.community-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 600;
}

.community-content p {
  font-size: 0.9rem;
  color: #576e8a;
}

/* Pastor section */
.pastor-section {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--light);
}

.pastor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.pastor-image {
  flex: 1 1 350px;
  text-align: center;
}

.pastor-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pastor-content {
  flex: 1 1 400px;
}

.pastor-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.pastor-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #cdd8e4;
}

/* Ministries section */
.ministries-section {
  padding: 5rem 0;
  background: var(--light);
  text-align: center;
}

.ministries-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ministries-card {
  background: var(--muted);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.ministries-img {
  width: 100%;
  height: auto;
  display: block;
}

.ministries-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 1rem 0.25rem;
  color: var(--dark);
}

.ministries-card p {
  font-size: 0.8rem;
  margin: 0 1rem 1rem;
  color: #576e8a;
}

/* Ensure images display fully without cropping (except fixed-height ones) */
.card-img,
.community-img,
.ministries-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Giving section */
.giving-section {
  padding: 5rem 0;
  background: var(--light);
  color: var(--dark);
  text-align: center;
}

.giving-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--pill-bg);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  overflow: hidden;
}

.giving-graphic {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.giving-graphic svg {
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.giving-graphic path {
  stroke: var(--secondary);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.giving-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.giving-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.giving-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.giving-buttons .btn-secondary {
  border: none;
  background: #054478;
  color: #ffffff;
}

.giving-buttons .btn-secondary:hover {
  background: #306aa1;
  color: #ffffff;
}

/* Call to Action Section */
.call-to-action-section {
  padding: 5rem 0;
  background: var(--muted);
  text-align: center;
}

.cta-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.cta-container p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #576e8a;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mailing list section */
.mailing-section {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--light);
  text-align: center;
}

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

.mailing-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.mailing-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #cdd8e4;
}

.mailing-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mailing-form input {
  padding: 0.75rem 1rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.mailing-form button {
  border: none;
}

/* Sign Up Form Styles */
.signup-form-section {
  padding: 4rem 0;
  background: var(--light);
  color: var(--dark);
}

.signup-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--muted);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.signup-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.signup-form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.signup-form label {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.signup-form input,
.signup-form select {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
}

.signup-form .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.signup-form button[type="submit"] {
  margin-top: 1rem;
  width: 200px;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--light);
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--light);
  font-size: 0.9rem;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a span {
  font-size: 1.25rem;
}

.social-icons img {
  height: 20px;
  width: auto;
  display: inline-block;
}

/* =========================================================
   MOBILE NAV FIX (FULL DROPDOWN VISIBILITY)
   - Mobile only
   - Desktop/PC untouched
   ========================================================= */
@media (max-width: 768px) {
  /* Hide normal menu on phone */
  .nav-list {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    position: relative;
    z-index: 3001; /* keep button above dropdown */
  }

  /* IMPORTANT: let dropdown use the full screen width (not constrained by .nav) */
  .nav {
    position: static; /* overrides relative anchoring on mobile */
  }

  /* Dropdown menu (full width, full visibility, scroll if needed) */
  .nav-list.open {
    display: flex;
    position: fixed; /* fixes clipping + makes it full screen width */
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    width: 100vw;

    background: var(--dark);
    flex-direction: column;
    padding: 16px 0;
    gap: 8px;

    z-index: 3000;
    text-align: center;

    /* makes sure ALL pages show (scroll instead of cutting off) */
    max-height: calc(100vh - var(--header-h-mobile));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* small visual separation from header */
    border-top: 1px solid rgba(255, 255, 255, 0.12);

    /* iPhone safe area */
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .nav-list.open .nav-link {
    padding: 12px 16px;
    display: block;
    width: 100%;
  }

  /* keep donate looking neat on mobile dropdown */
  .nav-list.open .donate-link {
    display: inline-block;
    margin: 6px auto 0;
  }

  /* Fix hero heading on phone */
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
    padding: 0 12px;
  }
}

/* -------------------------------------------- */
/* About page redesign                          */

.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
  background: url('../images/about_hero.jpg') center center/cover no-repeat;
  color: var(--light);
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 68, 120, 0.7);
  z-index: 0;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  z-index: 1;
}

.about-hero h1 .highlight {
  color: var(--secondary);
}

.about-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.about-service {
  padding: 4rem 0;
  background: var(--light);
}

.about-service .service-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.about-service .service-heading {
  flex: 1 1 40%;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

.about-service .service-heading .highlight {
  color: var(--primary);
}

.about-service .service-text {
  flex: 1 1 55%;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5f82;
}

.about-service .service-text p {
  margin-bottom: 1rem;
}

/* Belief section */
.belief-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--light);
}

.belief-section .belief-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
}

.belief-section .belief-content {
  flex: 1 1 50%;
  background: var(--light);
  color: var(--dark);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.belief-section .belief-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.belief-section .belief-content h2 .black-text {
  color: var(--dark);
}

.belief-section .belief-content h2 .emphasis {
  color: var(--secondary);
}

.belief-section .belief-content .belief-list {
  margin-left: 1rem;
  list-style: disc;
}

.belief-section .belief-content .belief-list li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #4a5f82;
}

.belief-section .belief-image {
  flex: 1 1 45%;
  position: relative;
}

.belief-section .belief-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Static intro section below hero */
.about-intro-static {
  padding: 4rem 0;
  background: var(--light);
}

.about-intro-static .intro-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.about-intro-static .intro-heading {
  flex: 1 1 40%;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.about-intro-static .intro-heading .text-highlight {
  color: var(--primary);
}

.about-intro-static .intro-text {
  flex: 1 1 55%;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5f82;
}

.about-intro-static .intro-text p {
  margin-bottom: 1rem;
}

/* Redesigned beliefs section */
.belief-gradient {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.belief-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  z-index: 0;
}

.belief-gradient .belief-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.belief-gradient .belief-image {
  flex: 1 1 45%;
}

.belief-gradient .belief-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.belief-gradient .belief-content {
  flex: 1 1 50%;
  background: var(--light);
  color: var(--dark);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.belief-gradient .belief-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.belief-gradient .belief-content h2 .emphasis {
  color: var(--primary);
}

.belief-gradient .belief-list {
  margin-left: 1rem;
}

.belief-gradient .belief-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #4a5f82;
  list-style: disc;
}

/* Leadership Section */
.leadership-section {
  padding: 4rem 0;
  background: var(--primary);
  color: var(--light);
}

.leadership-section .leadership-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.leadership-section .leadership-image {
  flex: 1 1 45%;
}

.leadership-section .leadership-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.leadership-section .leadership-content {
  flex: 1 1 50%;
}

.leadership-section .small-pill {
  background: var(--secondary);
  color: var(--light);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.leadership-section .section-title {
  color: var(--light);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.leadership-section .section-text {
  color: var(--light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Member stories slider styles */
.experience-section {
  padding: 4rem 0;
  background: var(--light);
}

.experience-slider .slide {
  display: none;
}

.experience-slider .slide.active {
  display: block;
}

.experience-slider .slide h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.experience-slider .slide p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5f82;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s;
}

.slider-dots .dot.active {
  opacity: 1;
}

/* Fullscreen overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 9999;
}

/* Modal card */
.modal-content {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #000;
  color: #fff;
  padding: 3rem;
}

/* Title */
.modal-title {
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

/* Two-column text layout */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.modal-col p {
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Show state */
.modal-overlay.is-open {
  display: flex;
}

/* Mobile modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.75rem;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Give Modal Popup ===== */
.give-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.give-modal.is-open { display: flex; }
/* Open modal without JS */
.give-modal:target { display: flex; }


.give-modal__card {
  width: min(820px, 100%);
  background: #fff;
  border-radius: 14px;
  position: relative;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.give-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #ffffff;

  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: #0a2342;

  cursor: pointer;
  text-decoration: none;
}


.give-modal__box {
  background: #f7efe7;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.06);
}

.give-label {
  margin: 0;
  font-size: 12px;
  color: #7a7a7a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.give-value {
  margin: 6px 0 14px 0;
  font-size: 16px;
  color: #111;
  font-weight: 600;
}

.give-modal__acct {
  margin-top: 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.give-acct {
  margin: 6px 0 0 0;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.02em;
}

.give-copy-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #111;
}

.give-copied {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #1a7f37;
  min-height: 18px;
}
/* GIVE PAGE: always keep the hero overlay visible so it stays blueish */
.hero[style*="hero4"] .hero-overlay,
.hero[style*="hero4.png"] .hero-overlay {
  opacity: 1 !important;
}
/* =========================================================
   FORCE ACTIVE UNDERLINE ON GIVE PAGE
   ========================================================= */
body.give-page .nav-link[href="give.html"]::after {
  width: 100%;
}
.hero-overlay {
  pointer-events: none;
}
/* ===== FIX: Ensure Give content/button sits above the decorative SVG layer ===== */
.giving-container { position: relative; }

.giving-content {
  position: relative;
  z-index: 2;
}

.giving-graphic {
  z-index: 1;
  pointer-events: none;
}

#giveNowBtn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

/* =========================
   GIVE MODAL – MOBILE FIX
   ========================= */
@media (max-width: 768px) {
  .give-modal {
    padding: 12px;
  }

  .give-modal__card {
    padding: 16px;
    border-radius: 12px;
  }

  .give-modal__box {
    padding: 14px;
  }

  .give-acct {
    font-size: 22px;
    word-break: break-all;
  }

  .give-modal__acct {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .give-copy-btn {
    align-self: flex-end;
  }
}
