.carrossel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  /*font-family: 'Fira Sans', sans-serif;*/
  background: #241e42;

}

.blog-card {
  position: absolute;
  height: 350px;
  width: 95%;
  max-width: 890px;
  margin: auto;
  border-radius: 25px;
  border: solid;
  border-color: #241e42;
  background: #fff;
  /*box-shadow: 0px 10px 50px rgba(252,56,56,.3);*/
}

.inner-part {
  position: absolute;
  display: flex;
  height: 360px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
}

#imgTap:checked~.inner-part {
  padding: 0;
  transition: .1s ease-in;
}

.inner-part .img {
  height: 260px;
  width: 260px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 20px;
  /*box-shadow: 2px 3px 15px rgba(252,56,56,.1);*/
}

#imgTap:checked~.inner-part .img {
  height: 370px;
  width: 850px;
  z-index: 99;
  margin-top: 10px;
  transition: .3s .2s ease-in;
}

.img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0;
  transition: .6s;
}

#tap-1:checked~.inner-part .img-1,
#tap-2:checked~.inner-part .img-2,
#tap-3:checked~.inner-part .img-3 {
  opacity: 1;
  transition-delay: .2s;
}

.conteudo {
  padding: 0 20px 0 35px;
  width: 530px;
  margin-left: 50px;
  opacity: 0;
  transition: .6s;
}

#imgTap:checked~.inner-part .conteudo {
  display: none;
}

#tap-1:checked~.inner-part .content-1,
#tap-2:checked~.inner-part .content-2,
#tap-3:checked~.inner-part .content-3 {
  opacity: 1;
  margin-left: 0px;
  z-index: 100;
  transition-delay: .3s;
}

.conteudo span {
  display: block;
  color: #7b7992;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 500
}

.conteudo .title {
  font-size: 30px;
  font-weight: 700;
  color: #0d0925;
  margin-bottom: 20px;
}

.conteudo .text {
  color: #4e4a67;
  font-size: 19px;
  margin-bottom: 30px;
  line-height: 1.5em;
  text-align: justify;
}


.sliders {
  position: absolute;
  bottom: 25px;
  left: 65%;
  transform: translateX(-50%);
  z-index: 200;
}

#imgTap:checked~.sliders {
  display: none;
}

.sliders .tap {
  position: relative;
  height: 10px;
  width: 50px;
  background: #d9d9d9;
  border-radius: 5px;
  display: inline-flex;
  margin: 0 3px;
  cursor: pointer;
  
}

.sliders .tap:hover {
  background: #cccccc;
}

.sliders .tap:before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  height: 100%;
  width: -100%;
  /*background: linear-gradient(147deg,#f6b323 0%, #f23b26 74%);*/
  background: #241e42;
  border-radius: 10px;
  transform: scaleX(0);
  transition: transform .6s;
  transform-origin: left;
}

input[type="radio"],
input[type="checkbox"] {
  display: none;
}

#tap-1:checked~.sliders .tap-1:before,
#tap-2:checked~.sliders .tap-2:before,
#tap-3:checked~.sliders .tap-3:before {
  transform: scaleX(1);
  width: 100%;
}


/* -- ANIMAÇÃO -- */

/* 1) Define the fadeInUp keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2) Set up a helper class that you’ll add when the element enters view */
.fade-in-up {
  opacity: 0;
  /* start invisible */
  animation-name: fadeInUp;
  /* reference the keyframes */
  animation-duration: 0.9s;
  /* adjust to taste */
  animation-fill-mode: both;
  /* keep the end state */
}

@media (max-width: 768px) {
  /* Ajusta o container principal do carrossel */
  .carrossel {
    height: auto;                 /* Remove altura fixa para se adaptar ao conteúdo */
    padding-bottom: 100px;        /* Reduz o padding para caber em telas menores */
    background: transparent;
  }

  /* Ajusta o blog-card */
  .blog-card {
    width: 90%;                   /* Reduz a largura para evitar overflow */
    height: auto;                 /* Altura automática para se ajustar ao conteúdo */
    max-width: none;              /* Remove limite fixo */
    margin: 0 auto;               /* Centraliza */
  }

  /* Empilha imagem e conteúdo verticalmente */
  .carrossel .inner-part {
    display: flex;
    flex-direction: column;       /* Disposição vertical */
    align-items: center;          /* Centraliza horizontalmente */
    width: 100%;                  /* Ocupa toda a largura */
    padding: 10px;                /* Padding reduzido */
    height: auto;                 /* Altura ajustável */
    box-sizing: border-box;
  }

  /* Ajusta a imagem */
  .carrossel .inner-part .img {
    width: 100%;                  /* Largura total */
    height: auto;                 /* Altura proporcional */
    max-height: 300px;            /* Limita altura máxima */
    margin: 10px 0;               /* Espaçamento vertical */
  }

  .carrossel .inner-part .img img {
    width: 100%;                  /* Imagem ocupa toda a largura */
    height: auto;                 /* Mantém proporção */
  }

  /* Ajusta o conteúdo */
  .carrossel .inner-part .conteudo {
    width: 100%;                  /* Largura total */
    margin: 10px 0;               /* Espaçamento vertical */
    padding: 0 15px;              /* Padding interno */
    font-size: 1rem;              /* Tamanho de fonte legível */
    line-height: 1.5;             /* Melhor espaçamento entre linhas */
  }

  .conteudo .title {
    font-size: 1.5rem;            /* Título reduzido */
    margin-bottom: 15px;
  }

  .conteudo .text {
    font-size: 0.95rem;           /* Texto ajustado */
  }

  /* Centraliza as bolinhas de navegação */
  .carrossel .sliders {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 15px !important;
    width: 100%;                  /* Ocupa toda a largura */
    display: flex;
    justify-content: center;      /* Centraliza as bolinhas */
  }

  .sliders .tap {
    width: 40px;                  /* Tamanho ajustado */
    height: 8px;                  /* Altura reduzida */
    margin: 0 5px;                /* Espaçamento entre bolinhas */
  }
}