.marked {
  display: inline-block;
  line-height: 0em;
  padding-bottom: 0.5em;
  background-color: var(--first-accent-color);
}

/* ==============
    Hero Section
   ============== */
.hero {
  background: linear-gradient(rgba(8, 20, 27, 0.8), rgba(8, 20, 27, 0.5)),
    url("../img//backgrounds/echipa_speranta_background.webp") center/cover
      no-repeat;
}

/* ========
    Pastor
   ======== */

#pastor-container {
  display: flex;
  align-items: flex-end;
  flex: 0.7;
}
#pastor-img img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

#pastor-img {
  width: 100%;
}
#pastor-text {
  flex: 1.3;
}
.pastor .pastor-title .title {
  color: var(--first-accent-color);
  margin-top: 0.2em;
  font-size: var(--fs-h4);
  line-height: var(--lh-heading-small);
  text-transform: uppercase;
}
.pastor-contact-items {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.email-pastor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.email-pastor:hover {
  background-color: var(--first-accent-color);
  border-color: var(--first-accent-color);
}
.email-pastor svg {
  opacity: 0.7;
  fill: var(--small-text-color-light);
  transition: fill 0.3s ease;
}
.email-pastor:hover svg {
  fill: var(--white-text-color);
  opacity: 1;
}

/* ===========
    Spiritual
   =========== */
.team-title .title {
  font-size: var(--fs-h3);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.spiritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(0, 1fr);
  gap: 2rem;
  justify-content: center;
  max-width: 88%;
  margin: 0 auto;
}

.team-card {
  color: var(--background-color-dark);
  background-color: var(--background-color-light);
  border: 2px solid var(--background-color-light);

  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  text-align: center;
  padding-bottom: 1em;
  transition: 0.2s;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 11 / 10;
  transition: 0.3s ease-in-out;
}
.team-card:hover img {
  transform: scale(1.03);
}

.team-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0em 1em;
  background-color: var(--background-color-light);
  position: relative;
  z-index: 10;
}

.team-card-text h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: var(--fs-h5);
}
.team-card-text p {
  color: var(--first-accent-color-hover);
  font-size: var(--fs-body);
  font-weight: 500;
}

/* Contact Styling */
.contact-items {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact:hover {
  background-color: var(--first-accent-color);
  border-color: var(--first-accent-color);
}

.contact svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  fill: var(--small-text-color-light);
  transition: fill 0.3s ease;
}
.contact:hover svg {
  fill: var(--white-text-color);
  opacity: 1;
}

/* Dark Mode Card Styling */
.dark-mode-card .team-card-text {
  background-color: var(--background-color-dark);
}

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

.dark-mode-card p {
  color: var(--first-accent-color);
}

.dark-contact {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-contact:hover {
  background-color: var(--first-accent-color);
  border-color: var(--first-accent-color);
}

.dark-contact svg {
  opacity: 0.7;
  fill: var(--small-text-color-dark);
  transition: fill 0.3s ease;
}
.dark-contact:hover svg {
  fill: var(--white-text-color);
  opacity: 1;
}

@media (max-width: 1025px) {
  .spiritual-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  .spiritual-grid-small {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  .spiritual-grid-big {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  #pastor-img img {
    width: 50%;
  }
  .team-card-text h3 {
    font-size: var(--fs-h4);
  }
}

@media (max-width: 600px) {
  .team-card-text h3 {
    font-size: var(--fs-h3);
  }
  .spiritual-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .spiritual-grid-small {
    grid-template-columns: repeat(1, 1fr);
  }
  .spiritual-grid-big {
    grid-template-columns: repeat(1, 1fr);
  }
  #pastor-img img {
    width: 100%;
  }
  .email-pastor svg {
    width: 42px;
    height: 42px;
  }
}
