.carrossel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 90%;
  max-width: 1000px;
  margin: 48px auto;
  background: #ffffff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.imagem {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagem img {
  width: 70%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.texto {
  flex: 1;
  padding-left: 8px;
  border: 1px solid #e0e0e0;  /* Adicionando borda ao container de texto */
  border-radius: 8px;  /* Borda arredondada */
  padding: 16px;  /* Ajuste do padding para dar mais espaço */
    width: 100%; /* A largura agora pode ser ajustada */
  min-width: 200px; /* Define a largura mínima */
  max-width: 450px; /* Define a largura máxima */
}

.texto #text-carousel {
  margin: 0;
  font-size: 25px;
  text-align: justify;
  color: #374151;
  line-height: 1.5;
}

/* Botões */
.botao {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.55);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: background-color .15s, transform .08s;
}

.botao:hover {
  background-color: rgba(0,0,0,0.7);
  transform: translateY(-50%) scale(1.05);
}

.botao-esquerda { left: 8px; }
.botao-direita { 
  right: 0;  /* Ajusta o botão para não sobrepor o texto */
  left: auto;  /* Remove qualquer valor à esquerda */
}

/* Responsividade */
@media (max-width: 840px) {
  .carrossel-container {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .imagem {
    flex: 0 0 auto;
    width: 100%;
  }
  .texto {
    width: 100%;
    padding-left: 0;
    text-align: left;
  }
  .botao-esquerda,
  .botao-direita {
    top: calc(100% - 28px);
    transform: none;
    bottom: 12px;
  }
  .botao-esquerda { left: 12px; }
  .botao-direita { right: 12px; }
}
