@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins;
}

:root {
  --primary-color: #4a6fa5;
  --primary-dark: #3a5a80;
  --secondary-color: #d4a59a;
  --accent-color: #ec3507;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #6c757d;
  --white: #ffffff;
  --black: #000000;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Playfair Display", serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 50px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  margin-bottom: 4rem;
}
.heroContainer {
  text-align: center;

  display: flex;
  flex-direction: column;
}

.hero-section h1 {
  flex: 1;
  margin-top: 70px;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-description {
  flex: 1;
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.divider-line {
  flex: 1;
  width: 100px;
  height: 2px;
  background-color: var(--black);
  margin: 0 auto 2rem;
}

.hero-subdescription {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* History Section */
.history-section {
  margin-bottom: 5rem;
}

.history-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.history-text {
  flex: 1;
}

.history-text h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.history-text p {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.history-image {
  flex: 1;
}

.history-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, var(--secondary-color), #1e40af);
  color: var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 5rem;
  text-align: center;
}

.cta-section h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.cta-button {
  background-color: var(--white);
  color: var(--secondary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: inline-block;
  text-decoration: none;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: #f0f0f0;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .history-container {
    flex-direction: row;
  }

  .hero-section h1 {
    font-size: 3rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Leadership Grid Section */
.leadership-section {
  margin-bottom: 64px;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 48px;
  text-align: center;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .leadership-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pastor-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pastor-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.pastor-card img {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.pastor-card-content {
  padding: 24px;
}

.pastor-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 8px;
}

.pastor-title {
  color: #6b7280;
  margin-bottom: 16px;
}

.read-more-link {
  color: #10b981;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more-link:hover {
  text-decoration: underline;
}

.arrow-icon {
  width: 16px;
  height: 16px;
}

/* Leader Modal */
.leader-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.leader-modal.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-container {
  position: relative;
  max-width: 900px;
  margin: 3% auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideDown 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    transform: translateY(-100px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10001;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg) scale(1.1);
}

.modal-content-wrapper {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .modal-content-wrapper {
    flex-direction: row;
    gap: 3rem;
  }
}

.modal-image {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .modal-image {
    width: 300px;
  }
}

.modal-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-text {
  flex: 1;
}

.modal-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.modal-description {
  color: var(--text-color);
  line-height: 1.8;
}

.modal-description p {
  margin-bottom: 1rem;
  color: #374151;
}

.modal-description em {
  font-style: italic;
  color: var(--primary-dark);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-container {
    margin: 5% 2%;
    max-height: 85vh;
  }

  .modal-content-wrapper {
    padding: 2rem 1.5rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Reveal on Scroll effect */
.section {
  transition: transform 1s, opacity 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}
