
/* ===================== CAROUSEL ===================== */

#image-carousel {
  position: relative;
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  
  display: block; 
}

.carousel-container {
  display: flex;
  width: 100%;
  position: relative;
  transition: transform 0.6s ease;
  touch-action: pan-y;
  align-items: flex-start;
}

.carousel-slide {
  min-width: 100%;

  position: relative;
  line-height: 0; 
  height: 550px;
}

.carousel-image {
  width: 100%;
  height: 100%; 
  display: block;
  object-fit: contain; 
}


.carousel-text {
  position: absolute;
  top: 50%; 
  left: 8%;
  transform: translateY(-50%);
  color: #00427a;
  max-width: 500px;
  line-height: normal; 
}


.carousel-text p{

  color: #ffffff;
    text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;

}

.carousel-text h4 {

  color: #ffffff;
  font-size: 4.25rem;
  margin-bottom: 10px;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;

}

.carousel-text p {

  font-size: 1.1rem;
  margin-bottom: 15px;
  opacity: 0.9;

}

.carousel-text .btn {

  display: inline-block;
  padding: 10px 18px;

  background: #00427a;
  color: white;

  text-decoration: none;
  border-radius: 6px;

  transition: 0.3s;

}

.carousel-text .btn:hover {

  background: #0060b3;

}

.carousel-button {

  position: absolute;
  top: 50%;

  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.2);

  color: rgb(255, 255, 255);

  font-size: 1.5rem;

  cursor: pointer;

  z-index: 10;

  backdrop-filter: blur(5px);

  transition: 0.3s;

}

.carousel-button:hover {

  background: #00427a;

}

.prev {

  left: 20px;

}

.next {

  right: 20px;

}

/* ===================== PARCERIAS ===================== */

#parcerias {
  padding: 30px 8% 10px 8%;
  display: flex;
  justify-content: center;
  text-align: center;
}

#parcerias h2 {
  font-size: 2.2rem;
}

#logo-carousel {

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 80px 0;
   padding-bottom: 30px;

}

#logo-carousel .viewport {
  width: 100%; /* Ocupa a largura total para centralizar melhor */
  max-width: 800px; /* Ou o tamanho que desejar */
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent); /* Opcional: efeito de desfoque nas bordas */
}

#logo-carousel .strip {
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  min-height: 220px; /* Aumentado para caber o scale sem cortar */
  padding: 0 50%; /* Ajuda no cálculo de centralização */
}

#logo-carousel .card {
  flex-shrink: 0;
  width: 160px; /* LARGURA FIXA PARA TODOS */
  height: 140px;
  margin: 0 10px;
  border-radius: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1.5px solid #ddd;
  opacity: 0.5;
  transform: scale(0.85); /* Side cards ficam menores visualmente */
}

#logo-carousel .card.center {
  opacity: 1;
  transform: scale(1.2); /* Center card cresce sem mudar o layout físico */
  border: 2px solid #00427a;
  z-index: 2;
}

#logo-carousel .card img {
  width: 70%;
  height: auto;
  object-fit: contain;
}