.d-flex.tipo_servico {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.div_list_cervico {
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 16px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.div_list_cervico:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.servico-icon svg {
      color:var(--nr_blue);
    background: #eef4ff;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.div_list_cervico:hover .servico-icon svg {
     color:var(--nr_blue) !important;
    color: white;
    transform: scale(1.05);
}

.div_list_cervico h6 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 16px 0 12px;
    color: #1e2a3e;
    letter-spacing: 1px;
}

.div_imagem_servico {
    margin: 16px 0;
    border-radius: 16px;
    overflow: hidden;
}

.imagem_cervico {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.div_list_cervico:hover .imagem_cervico {
    transform: scale(1.03);
}

.text_div_list_cervico {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a5568;
}

.link_text {
    color:var(--nr_blue);
    cursor: pointer;
    font-weight: 500;
}

.link_text:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

  .carousel-item-background-size-contain {
    background-size:  cover !important;
   
  }
 .carousel-hero {
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
}
.carousel-hero .carousel-item {
  aspect-ratio: 5291 / 1512;
  background-size: cover;
  background-position: center;
  position: relative;
}
@media (max-width: 1024px) {
 .carousel-item-background-size-contain.active::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: 0.8;
  }
    .carousel-item-background-size-contain  {
    background-size: contain, cover !important;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: normal, multiply;
    background-color: rgba(0, 0, 0, 0.3);
  }
}
@media (max-width: 768px) {
  .carousel-item {
    height: 300px !important;
  }
}