/* Estiliza o fundo escurecido */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fundo escurecido */
  display: none; /* Oculto inicialmente */
  align-items: center; /* Centraliza o pop-up verticalmente */
  justify-content: center; /* Centraliza o pop-up horizontalmente */
  z-index: 1000;
}

/* Estiliza o pop-up */
#popup {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 300px;
}

/* Estiliza os botões */
#popup button {
  margin: 10px;
  padding: 10px 20px;
  background-color: #0E426C;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#popup button:hover {
  background-color: #0056b3;
}

/* Banner */
.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0;
}

.banner img {
  width: 100%;
  height: auto;
}

/* Carrossel */
.swiper-container {
  width: 100%; 
  overflow: hidden;
  position: relative;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
}

.swiper-wrapper {
  display: flex;
}

/* Botões de navegação */
.nav-button-prev, .nav-button-next {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  border-radius: 50%;
  background: #27679b;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
  transition: all 0.3s ease;
  z-index: 2;
  font-size: 20px;
  cursor: pointer;
  opacity: .5;
}

.nav-button-prev:hover, .nav-button-next:hover {
  opacity: 1;
}

.nav-button-prev {
  left: 10px;
}

.nav-button-next {
  right: 10px;
}

.nav-button-prev.hidden, .nav-button-next.hidden {
  display: none;
}

/* Cartão */
.card {
  flex: 1 0 calc(33.33%);
  min-width: 240px;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: height 0.3s ease;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.card.expanded {
  height: auto;
}

.card-img-circle {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
}

.card-title {
  font-size: 18px;
  color: #0E426C;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-text.preview {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-text {
  font-size: 16px;
  margin-bottom: 0px;
  margin-top: auto;
  font-style: italic;
}

.full-content {
  display: none;
}

.see-more-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 14px;
}

.text-right {
  text-align: right;
}

.see-more-btn .arrow {
  font-size: 16px;
  transition: transform 0.5s ease;
}

/* Telas pequenas*/
@media screen and (max-width: 540px) {
  .swiper-slide {
    flex: 1 0 calc(50% - 1.9px);
  }

  .card {
    flex: 1 0 calc(50%);
    height: 200px;
    min-width: 160px;
  }

  .card-img-circle {
    width: 60px;
    height: 60px;
  }
}

/* Ajuste para telas muito pequenas (ex: celulares pequenos) */
@media screen and (max-width: 480px) {
  .swiper-slide {
    flex: 1 0 calc(100%);
  }

  .card {
    flex: 1 0 calc(100%);
    height: 180px;
    min-width: 120px;
  }

  .card-img-circle {
    width: 50px;
    height: 50px;
  }

  .nav-button-prev, .nav-button-next {
    width: 40px;
    height: 40px;
  }
}