* {
  box-sizing: border-box;
}

:root {
  --firebird: #BE5103;
  --firebird-dark: #8f3d02;
  --text: #333;
  --muted: #555;
  --line: #eee;
  --soft-bg: #fafafa;
  --footer: #BE5103;
  --green: #2f8f46;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

.page-section p {
  font-size: 1.1rem;
}

.staff-card p,
.modal p {
  font-size: inherit;
}

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

a {
  color: inherit;
}

main {
  background: #fff;
}

.page-section {
  width: 100%;
  padding: 50px 20px;
  background: #fff;
}

.subtle-section {
  background: var(--soft-bg);
}

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

.container.narrow {
  max-width: 850px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  color: #222;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 20px;
  color: var(--firebird);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.5rem;
}

.news-page h2 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
}

.section-intro,
.page-subtitle {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 34px;
}

.youtube-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 50px;
  padding: 5px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fafafa;
}

.stat-item {
  text-align: center;
  padding: 12px;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--firebird);
}

.stat-item span {
  display: block;
  margin-top: 4px;
  color: #555;
  font-size: 0.95rem;
}

.stats-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  margin-top: 0px;
}

.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.mobile-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.mobile-brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.mobile-brand span {
  display: block;
  font-size: 0.82rem;
  color: #666;
}

.mobile-menu-toggle {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.2rem;
  color: var(--firebird);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 18px 18px;
  gap: 6px;
}

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

.mobile-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  background: rgba(190, 81, 3, 0.06);
  border-color: rgba(190, 81, 3, 0.2);
  color: var(--firebird);
}

.mobile-nav .resources-link {
  color: #6f5a8a !important;
  border: 1px solid rgba(111, 90, 138, 0.45) !important;
  background: transparent;
}

.mobile-nav .resources-link:hover {
  color: #6f5a8a !important;
  border-color: rgba(111, 90, 138, 0.65) !important;
  background: rgba(111, 90, 138, 0.08) !important;
}

@media (max-width: 900px) {

  
  .site-header {
    display: none;
  }

  .mobile-header {
    display: block;
  }
}

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

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}


.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  transition: padding 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 64px;
  text-decoration: none;
}

.brand img {
  max-height: 100px;
  width: auto;
  transition: max-height 0.25s ease;
}

.brand div,
.header-info {
  transition:
    opacity 0.2s ease,
    max-width 0.25s ease,
    transform 0.25s ease;
}

.brand strong {
  font-size: 1.35rem;
  color: #222;
}

.brand span {
  display: block;
  color: #666;
  font-size: 0.95rem;
}

.header-info {
  text-align: right;
  color: var(--muted);
  font-size: 0.95rem;
}

.header-info a {
  color: var(--firebird);
  text-decoration: none;
}

.header-social-links {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.header-social-links a {
  color: var(--firebird);
  text-decoration: none;
  font-weight: 600;
}

.header-social-links a:hover {
  text-decoration: underline;
}

.header-social-links span {
  color: #999;
  margin: 0 6px;
}

/* Shrunk desktop header after scroll */
.site-header.is-scrolled .header-inner {
  padding: 6px 20px;
  min-height: 52px;
}

.site-header.is-scrolled .brand {
  gap: 0;
}

.site-header.is-scrolled .brand img {
  max-height: 40px;
}

.site-header.is-scrolled .brand div,
.site-header.is-scrolled .header-info {
  opacity: 0;
  width: 0;
  max-width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translateY(-4px);
  pointer-events: none;
}

.nav-row {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.nav-row a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.text-button {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  display: inline-block;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button-row {
  margin-top: 40px;
}

.nav-row a:hover {
  color: var(--firebird);
  border-color: rgba(190, 81, 3, 0.25);
  background: rgba(190, 81, 3, 0.06);
}

.text-button:hover {
  color: var(--firebird);
  border-color: rgba(190, 81, 3, 0.35);
  background: rgba(190, 81, 3, 0.06);
}

.resources-link {
  color: #6f5a8a !important;
  border-color: rgba(111, 90, 138, 0.45) !important;
}

.resources-link:hover {
  color: #6f5a8a !important;
  border-color: rgba(111, 90, 138, 0.65) !important;
  background: rgba(111, 90, 138, 0.08) !important;
}

.giving-link {
  color: var(--green) !important;
  border-color: rgba(47, 143, 70, 0.3) !important;
}

.giving-link:hover {
  color: var(--green) !important;
  border-color: #b9dfc4 !important;
  background: #f3fbf5 !important;
}

.carousel-section {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: #111;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100%;
  height: 540px;
  max-height: 70vh;
  position: relative;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translate(1px);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.86);
  color: #333;
  font-size: 2.4rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display:flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  padding: 0;
}

.carousel-btn:hover {
  background: var(--firebird);
  color: #fff;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

.mobile-hero-image {
  display: none;
}

@media (max-width: 700px) {
  .carousel-section {
    display: none;
  }

  .mobile-hero-image {
    display: block;
    background: #fff;
  }

  .mobile-hero-image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.info-grid,
.card-grid {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.info-grid,
.staff-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.045);
}

.image-card img {
  border-radius: 10px;
  margin-bottom: 18px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#partners .card img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 24px;
  border-radius: 14px;
  object-fit: cover;
}

.video-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
}

.video-preview {
  width: 480px;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}


.video-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

@media (max-width: 900px) {
  .video-layout {
    grid-template-columns: 1fr;
  }

  .video-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.alternate-video-label {
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--firebird);
}

.alternate-video {
  margin-top: 100px;
}

.support-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
}

.churches-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: center;
}

.churches-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
  .churches-layout {
    grid-template-columns: 1fr;
  }

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

.support-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

@media (max-width: 700px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

.media-grid {
  text-align: center;
  padding: 20px 0 30px;
}

.media-item {
  display: inline-block;
  max-width: 760px;
}

.media-item img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

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

.staff-photo {
  width: 300px;
  height: 300px;
  max-width: 100%;
  margin: 0 auto 18px;
  border-radius: 10px;
  object-fit: cover;
}

.staff-title,
.ministry-meta {
  font-weight: 700;
  color: var(--firebird);
  margin-bottom: 10px;
}

.group-heading {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #333;
}

.volunteer-grid {
  min-height: 520px;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.volunteer-grid.is-fading {
  opacity: 0;
}

.partner-grid {
  min-height: 520px;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.partner-grid.is-fading {
  opacity: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.65);
  padding: 20px;
}

.modal.is-open {
  display: block;
}

.modal-content {
  background: #fff;
  max-width: 650px;
  margin: 80px auto;
  padding: 34px;
  border-radius: 14px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}

.ministries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 30px;
}

.ministry-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.045);
}

.ministry-content h3 {
  margin-bottom: 6px;
}

footer {
  background: var(--footer);
  color: #eee;
  padding: 64px 20px;
}

footer h2 {
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
}

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

.footer-links {
  margin-top: 24px;
  font-size: 0.92rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

footer img {
  border-radius: 12px;
  width: 100%;
}

#topBtn {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #eee;
  color: #333;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

#topBtn:hover {
  background: var(--firebird);
  color: #fff;
}

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

  .nav-row {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 190px;
  }

  .page-section {
    padding: 70px 18px;
  }

  .header-inner {
    align-items: flex-start;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    max-height: 66px;
  }

  .slide {
    height: 420px;
    max-height: none;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

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

  .staff-photo {
    width: 260px;
    height: 260px;
  }

  .modal-content {
    margin: 50px auto;
  }
}

@media (max-width: 460px) {
  .slide {
    height: 380px;
  }

  .nav-row a {
    font-size: 0.92rem;
  }

  .staff-photo {
    width: 220px;
    height: 220px;
  }
}

/* Mission Partner Page */

.partner-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 196, 87, 0.35), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(190, 81, 3, 0.22), transparent 30%),
    linear-gradient(135deg, #fff8ef 0%, #fff 42%, #fff3df 100%);
  border-bottom: 1px solid rgba(190, 81, 3, 0.12);
}

.partner-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 360px;
  gap: 56px;
  align-items: center;
}

.partner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--firebird);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.partner-kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--firebird), #f5b942);
}

.partner-highlight-card {
  background: #fff;
  border: 1px solid rgba(190, 81, 3, 0.18);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 44px rgba(95, 45, 10, 0.11);
  text-align: center;
}

.partner-highlight-card img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 22px;
  border-radius: 18px;
}

.partner-highlight-card h2 {
  font-size: 1.5rem;
}

.partner-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.partner-benefit-card,
.partner-model-card,
.faq-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.045);
}

.partner-benefit-card {
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(190, 81, 3, 0.09);
}

.partner-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.partner-benefit-card h3 {
  color: var(--firebird);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
}

.partner-model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

/* Mid-page Mission Partner CTA stays orange */
.partner-mid-cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 198, 90, 0.25), transparent 28%),
    linear-gradient(135deg, var(--firebird) 0%, #923902 100%);
  color: #fff;
}

.partner-mid-cta h2,
.partner-mid-cta p {
  color: #fff;
}

.partner-mid-cta .text-button {
  background: #fff;
  color: var(--firebird);
  border-color: rgba(255,255,255,0.65);
  font-weight: 800;
}

.partner-mid-cta .text-button:hover {
  background: #fff7ed;
  color: var(--firebird-dark);
  border-color: #fff;
}

/* Final CTA uses the standard soft gray so it does not blend into the orange footer */
.final-partner-cta {
  background: var(--soft-bg);
  border-top: 1px solid var(--line);
}

.final-partner-cta h2 {
  color: var(--firebird);
}

.final-partner-cta p {
  color: var(--muted);
}

.final-partner-cta .text-button {
  background: var(--firebird);
  color: #fff;
  border-color: var(--firebird);
  font-weight: 800;
}

.final-partner-cta .text-button:hover {
  background: var(--firebird-dark);
  border-color: var(--firebird-dark);
  color: #fff;
}

.partner-collaborator-intro {
  border-top: 1px solid rgba(190, 81, 3, 0.12);
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.faq-list h3 {
  color: var(--firebird);
}

.faq-list p {
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .partner-hero-layout,
  .partner-benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .partner-hero-layout,
  .partner-benefit-grid,
  .partner-model-grid {
    grid-template-columns: 1fr;
  }

  .partner-highlight-card {
    padding: 24px;
  }
}
