/* Page Header */
.page-header {
  padding: 5rem 0;
  background-image: url('../images/thanks.webp'); /* A relevant background image */
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
  color: var(--white);
}
.page-header-overlay {
  content: '';
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: rgba(0, 0, 0, 0.6); /* UPDATED: Neutral dark overlay */
  z-index: 1;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}
.page-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  opacity: 0.9;
}

/* Mission & Vision Section */
.mission-vision {
  padding: 4rem 0;
}
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.mission-box, .vision-box {
  text-align: center;
  padding: 2rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
}
.mission-vision i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.mission-vision h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.mission-vision blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 0 auto;
  max-width: 500px;
}
@media (min-width: 768px) {
  .mission-vision-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* History Section */
.history-section {
  padding: 4rem 0;
}
.history-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}
.history-content {
  flex: 1 1 500px;
}
.history-content h2 {
  margin-bottom: 1.5rem;
}
.history-content p {
  margin-bottom: 1rem;
  line-height: 1.7; /* Slightly increased line-height for readability */
}
.history-image {
  flex: 1 1 350px;
}
.history-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Staff Section */
.staff-section {
  padding: 4rem 0;
}
.text-center { text-align: center; }
.section-subtitle { text-align: center; max-width: 600px; margin: -0.5rem auto 2.5rem auto; color: #666; }
.staff-grid {
  display: grid;
  gap: 2rem;
  /* This flexible grid handles any number of items gracefully */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.staff-card {
  text-align: center;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.staff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.staff-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 4px solid var(--white);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.staff-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}
.staff-title {
  color: #777;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.staff-email {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
}
.staff-email:hover {
  text-decoration: underline;
}
.staff-email i {
  margin-right: 0.4rem;
}

/* Pastor Bio Section */
.pastor-bio-section {
  padding: 4rem 0;
  background: var(--white); /* Or use var(--light-gray) if you want to alternate */
}
.pastor-bio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start; /* Aligns items to the top */
}
.pastor-bio-image {
  flex: 1 1 300px; /* Flex-grow, flex-shrink, basis */
  max-width: 350px;
  margin: 0 auto; /* Center on mobile */
}
.pastor-bio-image img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.pastor-bio-content {
  flex: 2 1 500px;
}
.pastor-bio-content h2 {
  margin-top: 0;
}
.pastor-bio-content h3 {
  color: var(--primary-color);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
}
.pastor-contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.pastor-contact-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.pastor-contact-list i {
  color: var(--accent-color);
  margin-right: 1rem;
  width: 20px; /* Ensures icons align neatly */
  text-align: center;
}
.pastor-bio-content h5 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}
.hobbies-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}
.hobbies-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.hobbies-list li::before {
  content: '\f00c'; /* Font Awesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 0.8rem;
}
.pastor-bio-content blockquote {
  font-style: italic;
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #555;
}

/* Responsive adjustment for hobbies list on smaller screens */
@media (max-width: 500px) {
  .hobbies-list {
    columns: 1;
  }
}

/* Beliefs Section (Copied from home.css for modularity) */
.beliefs { padding: 4rem 0; }
.beliefs-container { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.beliefs-image { flex: 1 1 400px; }
.beliefs-image img { border-radius: 0.5rem; }
.beliefs-content { flex: 1 1 400px; }
.beliefs-content .btn-primary { margin-top: 1.5rem; }
.beliefs ul { list-style: none; margin-top: 1.5rem; }
.beliefs li { margin-bottom: 1rem; padding-left: 2rem; position: relative; }
.beliefs li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--accent-color); position: absolute; left: 0; top: 4px; }


/* Ensure Font Awesome icons in place of missing images match the <img> style */
.staff-card i.fa-user,
.pastor-bio-image i.fa-user {
  display: block;
  width: 140px;
  height: 140px;
  line-height: 140px;
  font-size: 3rem;
  color: var(--accent-color);; /* fallback icon color */
  background: var(--light-gray);
  border-radius: 50%;
  text-align: center;
  margin: 0 auto 1.5rem auto;
  border: 4px solid var(--white);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* If you used fa-5x for the main pastor icon */
.pastor-bio-image i.fa-user.fa-5x {
  width: 100%;
  max-width: 350px;
  height: auto;
  line-height: normal;
  font-size: clamp(4rem, 8vw, 8rem);
  background: var(--light-gray);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Make sure the icon inherits any responsive layout rules */
@media (min-width: 768px) {
  .staff-card i.fa-user {
    font-size: 3.5rem;
    width: 140px;
    height: 140px;
    line-height: 140px;
  }
}

@media (max-width: 500px) {
  .staff-card i.fa-user {
    width: 120px;
    height: 120px;
    line-height: 120px;
    font-size: 2.5rem;
  }
}

/* Responsive Adjustments */

@media (max-width: 768px) {
  .pastor-bio-container {
    text-align: center; /* Center content when it stacks */
  }
  .pastor-bio-content h2,
  .pastor-bio-content h3 {
    text-align: center;
  }
  .pastor-contact-list {
    display: inline-flex; /* Center align the contact list items */
    flex-direction: column;
    align-items: flex-start; /* Keep text aligned left within the centered block */
    text-align: left;
  }
  .pastor-bio-content h5 {
    text-align: left;
  }
  .hobbies-list {
    text-align: left;
  }
  .pastor-bio-content blockquote {
    text-align: left;
  }
}








