/* Team Member Template Styles */

/* Team Title Section */
.team-title-section {
  background-color: var(--color-primary);
  color: white;
  padding: 140px 20px 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-title-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-title-section__title {
  font-family: var(--font-body);
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
}

.team-title-section__position {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  color: var(--color-secondary);
  font-weight: 400;
}

.team-title-section__role-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-accent);
  color: white;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Team Content Layout */
.team-content {
  background-color: var(--color-gray-100);
  padding: 60px 20px;
}

.team-content__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

.team-content__main {
  min-width: 0;
}

.team-content__sidebar {
  min-width: 0;
}

/* Team Sections */
.team-section {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

/* Profile Section */
.team-profile {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
}

.team-profile__image-wrapper {
  position: relative;
}

.team-profile__image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-profile__image img {
  width: 100%;
  height: auto;
  display: block;
}

.team-profile__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-profile__bio,
.team-profile__description {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-900);
}

.team-profile__bio {
  margin-bottom: 20px;
}

.team-profile__bio p,
.team-profile__description p {
  margin: 0 0 15px 0;
}

.team-profile__bio p:last-child,
.team-profile__description p:last-child {
  margin-bottom: 0;
}

/* Events Grid */
.team-events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.team-event-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.team-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-event-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.team-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.team-event-card:hover .team-event-card__image img {
  transform: scale(1.05);
}

.team-event-card__content {
  padding: 20px;
}

.team-event-card__title {
  margin: 0 0 10px 0;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
}

.team-event-card__title a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.team-event-card__title a:hover {
  color: var(--color-secondary);
}

.team-event-card__date {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-gray-900);
  margin: 0;
}

.team-event-card__time {
  margin-left: 8px;
  color: var(--color-accent);
}

/* Sidebar Boxes */
.team-sidebar-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-sidebar-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.team-sidebar-box h4 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 10px 0;
}

.team-sidebar-box p {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-gray-900);
  margin: 0 0 15px 0;
}

.team-sidebar-box p:last-child {
  margin-bottom: 0;
}

.team-sidebar-box a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.team-sidebar-box a:hover {
  color: var(--color-secondary);
}

/* Contact Box */
.team-contact p {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.team-contact p:last-of-type {
  border-bottom: none;
}

.team-contact strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 3px;
}

/* Social Links */
.team-social {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-200);
}

.team-social strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.team-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-social__link {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white !important;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.team-social__link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.team-social__link--facebook {
  background-color: #1877f2;
}

.team-social__link--instagram {
  background: linear-gradient(
    45deg,
    var(--color-secondary) 0%,
    var(--color-secondary) 25%,
    var(--color-accent) 50%,
    var(--color-accent) 75%,
    var(--color-primary) 100%
  );
}

.team-social__link--twitter {
  background-color: #1da1f2;
}

.team-social__link--linkedin {
  background-color: #0077b5;
}

/* Ministry Box */
.team-ministry__image {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.team-ministry__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.team-ministry__image:hover img {
  transform: scale(1.05);
}

.team-ministry h4 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.team-ministry h4 a:hover {
  color: var(--color-secondary);
}

.team-ministry__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-accent) !important;
  font-weight: 600;
  transition: color 0.2s;
}

.team-ministry__link:hover {
  color: var(--color-secondary) !important;
}

/* Responsive Design */
@media (max-width: 968px) {
  .team-content__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-content__sidebar {
    order: -1;
  }

  .team-profile {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-profile__image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .team-title-section {
    padding: 120px 20px 40px;
  }

  .team-title-section__title {
    font-size: 2.5rem;
  }

  .team-title-section__position {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  .team-title-section__title {
    font-size: 2rem;
  }

  .team-title-section__position {
    font-size: 1rem;
  }

  .team-section {
    padding: 25px;
  }

  .team-section h2 {
    font-size: 1.5rem;
  }

  .team-sidebar-box {
    padding: 20px;
  }

  .team-events__grid {
    grid-template-columns: 1fr;
  }
}
