/* =========================
   TEAM GRID / CARDS
========================= */
.team-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
}

@media (max-width: 980px){
  .team-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
  .team-grid{ grid-template-columns: 1fr; }
}

.team-card{
  width: 400px;
  overflow: hidden;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 4px 17.1px 0 rgba(0, 0, 0, 0.03);
}

.team-cta{
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 30px;
  padding-bottom: 110px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.team-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

.team-avatar{
  width: 320px;
  height: 320px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  display: grid;
  place-items: center;
  margin: 0 0 20px;
}

.team-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-meta{
  display: grid;
  gap: 2px;
}

.team-name{
  color: var(--main, #395A69);
  text-align: center;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 120% */
}

.team-role{
  color: var(--cream, #E2CEB3);
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
}
.team-email{
  color: var(--main, #395A69);
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
  margin: 10px 0 0;
}

.team-more{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 30px;
}

.team-more__text{
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1350px) {
  .team-card {
    width: 280px
  }
  .team-cta {
    padding-bottom: 90px
  }
  .team-avatar{
    width: 200px;
    height: 200px;
  }
  .team-name {
    font-size: 16px
  }
  .team-role {
    font-size: 14px;
    line-height: normal;
  }
  .team-email {
    font-size: 12px
  }
  .team-more .btn-layout {
    font-size: 12px;
  }
}

/* =========================
   MODAL (mesmo CSS base)
   Classes: .modal .modal-content .modal-body .close-modal .active
========================= */
body.modal-active{
  overflow: hidden;
}

.modal{
  position: fixed;
  inset: 0;
  padding: 22px;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
  z-index: 9999;
}

.modal.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content{
  width: 100%;
  max-width: 980px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.close-modal{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.close-modal:hover{
  background: #fff;
}

.modal-body{
  padding: 26px;
}

/* =========================
   MODAL CONTENT (TEAM)
========================= */
.team-modal{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 860px){
  .team-modal{
    grid-template-columns: 1fr;
  }
}

.team-modal__media{
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}

.team-modal__img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px){
  .team-modal__img{ height: 260px; }
}

.team-modal__content{
  padding-right: 6px;
}

.team-modal__name{
  margin: 0 0 6px 0;
  color: var(--dark-blue, #131F35);
  font-family: "Playfair Display";
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 80% */
}

.team-modal__role{
  margin: 0 0 14px 0;
  opacity: .75;
  color: var(--cream, #E2CEB3);
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 120% */
}

.team-modal__bio{
  margin: 0 0 18px 0;
  white-space: pre-line; /* respeita quebras de linha do PHP */
}

.team-modal__links{
  display: grid;
  gap: 10px;
}

.team-modal__link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--main, #395A69);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
}

.team-modal__linktext{
  font-size: 14px;
}

.team-hoster {
  margin: 50px 0 0;
}
.team-hoster img {
  border-radius: 10px;
}