@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2c2c2c;
  --accent-color: #000000;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==================== GLOBAL BUTTON STYLES ==================== */
button:not(.nav-toggle):not(.tithely-give-button) {
  background: #000000;
  color: white;
  border: 2px solid #000000;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

button:not(.nav-toggle):not(.tithely-give-button):hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:not(.nav-toggle):not(.tithely-give-button):active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ==================== MODERN NAVIGATION ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-md);
}

/* Add padding to body to account for fixed navbar */
body {
  padding-top: 70px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-logo a:hover {
  color: var(--accent-color);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.35rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -70px; /* Compensate for body padding on home page */
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  animation: kenburns 5s ease-out forwards;
}

.hero-slide.exiting {
  opacity: 0;
  transform: scale(1.1);
  animation: none;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  background: var(--text-light);
  color: var(--primary-color);
  border: none;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
  background: #f0f0f0;
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  color: var(--text-light);
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ==================== CONTAINER ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

/* ==================== VISIT SECTION ==================== */
.visit-section {
  background: var(--bg-light);
  padding: 5rem 0;
}

.visit-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.visit-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.visit-benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
  display: inline-block;
}

.visit-benefits li {
  font-size: 1.1rem;
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
}

.visit-benefits li::before {
  content: '–';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--accent-color);
}

.visit-cta-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 2rem 0 1.5rem;
  color: var(--text-primary);
}

.btn-primary {
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.btn-primary::before {
  font-size: 1.2rem;
}

.btn-primary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ==================== WELCOME SECTION ==================== */
.welcome-section {
  background: var(--bg-gray);
  padding: 5rem 0;
}

.welcome-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ==================== VERSE SECTION ==================== */
.verse-section {
  background: var(--bg-light);
  padding: 5rem 0;
}

.verse-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.verse-content blockquote {
  font-size: 1.3rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-color);
  padding-left: 2rem;
  margin: 2rem 0;
  text-align: left;
}

.verse-content footer {
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
}

/* ==================== ANNOUNCEMENTS ==================== */
.announcements-section {
  background: var(--bg-gray);
  padding: 5rem 0;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.announcement-item {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
  display: flex;
  flex-direction: column;
}

.announcement-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.announcement-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.announcement-item p {
  margin: 0;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.announcement-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.announcement-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-end;
  background: var(--bg-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.announcement-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CALENDAR ==================== */
.calendar-section {
  background: var(--bg-light);
  padding: 5rem 0;
}

.calendar-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.calendar-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* ==================== FOOTER ====================   background: var(--primary-color);*/
.site-footer,
#site-footer {
  background: #000000;
  color: var(--text-light);
  padding: 3rem 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-section {
  min-width: 0;
}

.footer-section strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.footer-section p {
  margin: 0.5rem 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-section a {
  color: #6eb5ff;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==================== CAROUSEL STYLES ==================== */
.carousel-container {
  min-width: 720px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #000;
}

.carousel-slide.active {
  display: block;
  animation: zoomIn 5s ease-in-out forwards;
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 0;
}

.carousel-slide.active {
  z-index: 1;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.carousel-slide.zooming {
  animation: zoomIn 5s ease-in-out forwards;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 100;
  transition: background 0.3s;
  opacity: 0.7;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

@media (max-width: 768px) {
  .banner h1 {
    font-size: 1.8em;
    padding: 0 10px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
  }

  .navbar li {
    margin: 10px 0;
  }

  .welcome-message {
    padding: 30px 15px;
  }

  .welcome-message h2 {
    font-size: 1.5em;
  }

  .welcome-message p {
    font-size: 1em;
  }

  .calendar iframe {
    width: 100%;
    height: 400px;
  }
}

.announcement-container {
  max-width: 800px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  font-family: "Segoe UI", sans-serif;
}

.announcement-title {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.announcement-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.announcement-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.announcement-date {
  font-size: 14px;
  color: #888;
}

.leaders-page .staffcontent {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  padding: 0 1.25rem;
}

.leaders-page .staffcontent h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.leaders-page .staffcontent p {
  color: var(--text-secondary);
}

.leaders-page .staff-filter-dropdown {
  margin: 1.5rem 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.leaders-page #staff-role-select {
  min-width: 210px;
  padding: 0.6rem 0.8rem;
  font-size: 0.98rem;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  background: var(--bg-light);
}

.leaders-list-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.leaders-page .staff-member {
  position: relative;
  height: 420px;
  perspective: 1000px;
  opacity: 1;
  transform: none;
}

.leaders-page .staff-flip-card {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
  border: 1px solid #ececec;
}

.leaders-page .staff-flip-card:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.28);
  outline-offset: 2px;
}

.leaders-page .staff-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.leaders-page .staff-member.is-flipped .staff-flip-inner {
  transform: rotateY(180deg);
}

.leaders-page .staff-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.leaders-page .staff-face-front {
  background: #eef1f4;
}

.leaders-page .staff-face-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leaders-page .staff-front-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.95rem 0.95rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.leaders-page .staff-flip-hint {
  margin-top: 0.35rem;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.leaders-page .staff-face-back {
  transform: rotateY(180deg);
  background: var(--bg-light);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.leaders-page .staff-member-role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.leaders-page .staff-face-back .staff-member-role {
  color: var(--text-secondary);
}

.leaders-page .staff-member-name {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: #fff;
}

.leaders-page .staff-face-back .staff-member-name {
  color: var(--text-primary);
}

.leaders-page .leader-bio {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  font-size: 0.96rem;
}

.leaders-page .leaders-empty-state {
  color: var(--text-secondary);
  text-align: center;
  padding: 1.2rem;
  grid-column: 1 / -1;
}

@media (max-width: 780px) {
  .leaders-list-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .leaders-page .staff-member {
    height: 360px;
  }
}

.filter-button {
  margin: 0 8px;
  padding: 10px 20px;
  border: 2px solid #000000;
  background-color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  color: #000000;
  transition: all 0.3s ease;
}

.filter-button.active,
.filter-button:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bible-verse {
  max-width: 600px;
  margin: 20px auto;
  background: #f7f7f7;
  padding: 24px;
  border-left: 4px solid #4a90e2;
  border-radius: 8px;
  font-style: italic;
}

.bible-verse footer {
  margin-top: 12px;
  font-weight: bold;
  text-align: right;
}

.banner-image {
  width: 100%;
  height: 300px;
  background-image: url("../images/Bible.jpg"); /* adjust path if needed */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  color: white;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.about-intro {
  padding: 2rem 1.25rem 1rem;
}

.about-page {
  scroll-snap-type: y proximity;
  scroll-padding-top: 84px;
}

.about-intro-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-intro-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.35rem;
}

.about-intro-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-story {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.about-panel {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin: 0 0 2.5rem;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.about-panel-media {
  min-height: 100%;
}

.about-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-panel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  background: var(--bg-light);
}

.about-panel-content h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
}

.about-panel-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-panel-content p:last-child {
  margin-bottom: 0;
}

.about-panel-reverse .about-panel-media {
  order: 2;
}

.about-panel-reverse .about-panel-content {
  order: 1;
}

.about-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-values {
  padding: 1rem 1.25rem 3rem;
}

.about-values-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem;
  background: var(--bg-gray);
  border-radius: var(--border-radius);
}

.about-values-content h2 {
  margin-bottom: 1rem;
}

.about-values-content ul {
  padding-left: 1.25rem;
}

.about-values-content li {
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .about-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .about-panel-media {
    min-height: 320px;
  }

  .about-panel-reverse .about-panel-media,
  .about-panel-reverse .about-panel-content {
    order: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-panel {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.men_womens-ministry {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

.men_womens-ministry h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #aa3d72;
}

.men_womens-ministry h3 {
  font-size: 1.3em;
  color: #555;
  margin-top: 1.5em;
}

.agenda-item {
  background-color: #f9f4f8;
  border-left: 4px solid #aa3d72;
  margin: 0.8em 0;
  padding: 0.8em 1em;
  border-radius: 4px;
  cursor: pointer;
}

.agenda-details {
  display: none;
  font-size: 0.95em;
  padding-left: 1em;
  color: #555;
}

.men_womens-ministry {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

.men_womens-ministry h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #aa3d72;
}

.men_womens-ministry h3 {
  font-size: 1.3em;
  color: #555;
  margin-top: 1.5em;
}

.agenda-item {
  background-color: #f9f4f8;
  border-left: 4px solid #aa3d72;
  margin: 0.8em 0;
  padding: 0.8em 1em;
  border-radius: 4px;
  cursor: pointer;
}

.agenda-details {
  display: none;
  font-size: 0.95em;
  padding-left: 1em;
  color: #555;
}

.leaders-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.leader-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #f9f4f8;
}

.leader-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #aa3d72;
}

.leader-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.leader-name {
  font-weight: bold;
  font-size: 1.2em;
  color: #aa3d72;
}

.leader-role {
  font-size: 1em;
  color: #555;
  margin-top: 0.3em;
}

.leader-contact {
  font-size: 0.95em;
  color: #666;
  margin-top: 0.5em;
}

.youth-ministry {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  font-family: "Segoe UI", sans-serif;
}

.youth-ministry h2 {
  text-align: center;
  font-size: 2em;
  color: #2563eb;
  margin-bottom: 1.5rem;
}

.section {
  margin-bottom: 2rem;
}

.mission-text {
  font-style: italic;
  color: #374151;
  font-size: 1.1em;
}

.goal-list,
.event-list {
  list-style: disc inside;
  padding-left: 1rem;
}

.event-list ul {
  list-style: circle;
  margin-left: 1rem;
}

.childrens-ministry {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fefefe;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

/* On smaller screens, let it grow naturally */
@media (max-width: 768px) {
  .men_womens-ministry {
    height: auto;
  }
}

/* Additional style polish */
.question-box {
  margin-bottom: 20px;
}

#answer {
  margin-top: 10px;
  display: none;
  font-weight: bold;
  min-height: 40px;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.controls button,
#toggle-answer {
  background: #000000;
  color: white;
  border: 2px solid #000000;
  padding: 12px 24px;
  margin: 5px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.controls button:hover,
#toggle-answer:hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-container input[type="range"] {
  width: 200px;
  margin-left: 10px;
}

.bible-popup {
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

#bible-tooltip {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.part-selector {
  margin-top: 10px;
  margin-bottom: 10px;
}

.part-selector select {
  padding: 4px 8px;
  font-size: 1rem;
}

.contact-page .contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.contact-page .contact-header {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.contact-page .contact-header h1 {
  font-size: clamp(2rem, 4.1vw, 3rem);
  margin-bottom: 0.45rem;
}

.contact-page .contact-header p {
  color: var(--text-secondary);
}

.contact-page .contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.contact-page .contact-card {
  background: var(--bg-light);
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
}

.contact-page .contact-card h2 {
  margin-bottom: 0.85rem;
  font-size: 1.4rem;
}

.contact-page .contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-page .contact-form label {
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-page .contact-form input[type="text"],
.contact-page .contact-form textarea,
.contact-page .contact-form input[type="file"] {
  width: 100%;
  border: 1px solid #dadada;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
}

.contact-page .contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-page .contact-form-note {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.contact-page .contact-map-card {
  display: flex;
  flex-direction: column;
}

.contact-page .contact-map-text {
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}

.contact-page .contact-map-frame {
  border-radius: 10px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .contact-page .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-map-frame {
    min-height: 320px;
  }
}

.ministries-page .ministries-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.ministries-page .ministries-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.ministries-page .ministries-intro h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 0.6rem;
}

.ministries-page .ministries-intro p {
  color: var(--text-secondary);
}

.ministries-page .ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.ministries-page .ministry-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  border: 1px solid #ededed;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ministries-page .ministry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ministries-page .ministry-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.ministries-page .ministry-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ministries-page .ministry-image-link:hover .ministry-image {
  transform: scale(1.04);
}

.ministries-page .ministry-card-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.ministries-page .ministry-card h3 {
  font-size: 1.2rem;
}

.ministries-page .ministry-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  flex: 1;
}

.ministries-page .ministry-cta {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 640px) {
  .ministries-page .ministries-section {
    padding: 1.5rem 1rem 2.5rem;
  }
}

.button {
  background: #000000;
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #000000;
}

.button::before {
  font-size: 1.1rem;
}

.button:hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.member-resources h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.resource-item {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1.5rem;
  background-color: #f9f9f9;
}

.resource-item h3 {
  margin-top: 0;
}

.resources-page .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.resources-page .member-resources {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.resources-page .resources-intro {
  max-width: 860px;
}

.resources-page .resources-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.resources-page .resources-intro p {
  color: var(--text-secondary);
}

.resources-page .resources-giving {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  background: var(--bg-gray);
}

.resources-page .resources-giving h2 {
  margin-bottom: 0.35rem;
  font-size: 1.3rem;
}

.resources-page .resources-giving p {
  color: var(--text-secondary);
}

.resources-page .tithely-give-button {
  background-color: #00db72;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.resources-page .resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

.resources-page .resource-item {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.15rem;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.resources-page .resource-item h3 {
  margin-bottom: 0.55rem;
}

.resources-page .resource-item p {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  flex: 1;
}

.resources-page .resource-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.resources-page .resource-item .button {
  align-self: flex-start;
}

.prayer-page .prayer-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.prayer-page .prayer-intro {
  max-width: 760px;
}

.prayer-page .prayer-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.55rem;
}

.prayer-page .prayer-intro p {
  color: var(--text-secondary);
}

.prayer-page .prayer-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1rem;
  background: var(--bg-light);
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.prayer-page .prayer-card-media {
  min-height: 100%;
}

.prayer-page .prayer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prayer-page .prayer-card-content {
  padding: 1rem 1rem 1.1rem 0;
}

.prayer-page .prayer-card-content h2,
.prayer-page .prayer-join h2 {
  margin-bottom: 0.6rem;
}

.prayer-page .prayer-card-content p,
.prayer-page .prayer-join p {
  color: var(--text-secondary);
  margin-bottom: 0.7rem;
}

.prayer-page .prayer-join {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.ministry-detail-page .ministry-detail-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.ministry-detail-page .ministry-detail-intro {
  max-width: 760px;
  margin-bottom: 1rem;
}

.ministry-detail-page .ministry-detail-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.55rem;
}

.ministry-detail-page .ministry-detail-intro p {
  color: var(--text-secondary);
}

.ministry-detail-page .ministry-detail-card {
  background: var(--bg-light);
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 1.1rem;
}

.ministry-detail-page .ministry-detail-card h2 {
  margin-bottom: 0.6rem;
}

.ministry-detail-page .ministry-detail-subtext {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.ministry-detail-page .ministry-detail-spaced {
  margin-top: 1rem;
}

.ministry-detail-page .agenda-item {
  background: #f9f4f8;
  border-left: 4px solid #aa3d72;
  margin: 0.8em 0;
  padding: 0.85em 1em;
  border-radius: 6px;
  cursor: pointer;
}

.ministry-detail-page .agenda-details {
  display: none;
  font-size: 0.95em;
  padding-left: 0;
  margin-top: 0.5rem;
  color: #555;
}

.ministry-detail-page .leaders-list {
  margin-top: 0.9rem;
}

.childrens-detail-page .ministry-detail-card {
  max-width: 900px;
}

.childrens-detail-page .childrens-ministry h2 {
  margin-bottom: 0.75rem;
}

.childrens-detail-page .question-box,
.childrens-detail-page .controls {
  max-width: 100%;
}

.childrens-detail-page .controls {
  display: grid;
  gap: 0.75rem;
}

.childrens-detail-page .slider-container,
.childrens-detail-page .part-selector {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ministry-detail-page .youth-ministry .goal-list,
.ministry-detail-page .youth-ministry .event-list {
  padding-left: 1.2rem;
}

@media (max-width: 860px) {
  .ministry-detail-page .ministry-detail-section {
    padding: 1.5rem 1rem 2.5rem;
  }
}

@media (max-width: 860px) {
  .prayer-page .prayer-card {
    grid-template-columns: 1fr;
  }

  .prayer-page .prayer-card-media {
    min-height: 260px;
  }

  .prayer-page .prayer-card-content {
    padding: 0 1rem 1rem;
  }
}

@media (max-width: 768px) {
  .resources-page .resources-giving {
    flex-direction: column;
    align-items: flex-start;
  }

  .resources-page .content-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    height: 80vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .visit-section,
  .welcome-section,
  .verse-section,
  .announcements-section,
  .calendar-section {
    padding: 3rem 0;
  }

  .announcement-grid {
    grid-template-columns: 1fr;
  }

  .calendar-wrapper iframe {
    height: 400px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }

  .hero-cta,
  .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .visit-benefits {
    padding-left: 1rem;
  }
}

/* ==================== SMOOTH SCROLL ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}