.team-member {
    animation: fadeIn 0.6s ease;
}


.medicos-carousel {
    width: 100vw;
    background-color: #e2e8f0;
    padding: 120px 0 80px;
}

.medicos-carousel-div {
    margin: 60px auto;
    overflow: hidden;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    gap: 20px;
}
  
.carousel-container {
    overflow: hidden;
    flex: 1;
}
  
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
  
.carousel-item {
    display: flex;
    min-width: 100%;
    height: 440px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}
  
.carousel-item img {
    width: 40%;
    object-fit: cover;
}
  
.carousel-item .info {
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
  
.carousel-item h3 {
    font-size: 1.6rem;
    color: #0D2450;
}

.carousel-item h4 {
    margin-bottom: 15px;
}

.carousel-item h5 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.carousel-item li {
    margin-bottom: 10px;
}
  
.carousel-item .crm {
    color: #BF2025;
    font-weight: 500;
    margin-bottom: 20px;
}

.carousel-item .crm1 {
    color: #BF2025;
    font-weight: 500;
}
  
.carousel-item .bio {
    color: #0D2450;
    line-height: 1.1;
    padding-left: 10px;
}
  
/* Botões */
.carousel-btn {
    background: #BF2025;
    color: #fff;
    font-size: 2rem;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}
  
.carousel-btn:hover {
    background: #BF2058;
}

.carousel-btn-mob{
    background: #BF2025;
    color: #fff;
    font-size: 2rem;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.carousel-buttons-mobile {
    display: none; /* Escondido no desktop */
}
  
/* Responsivo */
@media (max-width: 768px) {
    .carousel-item {
      flex-direction: column;
      height: auto;
    }
  
    .carousel-item img {
      width: 100%;
      height: 250px;
    }
  
    .carousel-item .info {
      width: 100%;
      padding: 35px;
    }

    .carousel-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Container principal vira coluna no mobile */
    .medicos-carousel-div {
      flex-direction: column;
      gap: 15px; /* espaço entre carrossel e botões */
    }
  
    /* Botões vão para baixo */
    .carousel-btn {
      position: fixed;
    }
  
    /* Agrupando botões lado a lado embaixo */
    .carousel-buttons-wrapper {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 15px;
      width: 100%;
    }

    .carousel-buttons-mobile {
        display: block; /* Escondido no desktop */
    }
}
  