/* ================================
   Página de Conteúdos Exclusivos
================================ */

/* Mantém aparência do main-slider */

.image-conteudo img {
  position: relative;
  z-index: 1;
  bottom: -3rem;
}

#conteudos-exclusivos .slide {
  min-height: 65vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 20px;
  padding-bottom: 60px;
}

/* Garante que o conteúdo fique acima do background */
#conteudos-exclusivos .inner-column {
  position: relative;
  z-index: 2;
}

/* Ajustes de texto */
#conteudos-exclusivos h1 {
  color: #fff;
}

#conteudos-exclusivos .text {
  color: #fff;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Mobile – slider */
@media (max-width: 768px) {
  #conteudos-exclusivos .slide {
    min-height: 75vh;
    padding-top: 140px;
  }

  #conteudos-exclusivos h1 {
    font-size: 2rem;
  }

  #conteudos-exclusivos .text {
    font-size: 1rem;
  }
}

/* ================================
   Cards de E-books
================================ */

.ebook-card .inner-box {
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 45px;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.ebook-card .inner-box:hover {
  border-color: #1b3252;
  box-shadow: 0 10px 25px rgba(27, 50, 82, 0.25);
  transform: translateY(-4px);
}

/* Imagem do card */
.ebook-card .image {
  position: relative;        /* base do overlay */
  overflow: hidden;
  border-radius: 30px;
}

/* Overlay azul (atrás da imagem) */
.ebook-card .image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(27, 50, 82, 0.3); /* #1b3252 – 50% */
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;               /* fica atrás da imagem */
}

/* Imagem */
.ebook-card .image img {
  position: relative;
  z-index: 1;               /* imagem acima do overlay */
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

/* Hover */
.ebook-card:hover .image::before {
  opacity: 1;
}

.ebook-card:hover .image img {
  transform: scale(1.5) rotate(-2deg);
}


/* ================================
   E-book Avulso (destaque)
================================ */

.news-block-two .image {
  overflow: hidden;
  border-radius: 20px;
}

.news-block-two .image img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.news-block-two:hover .image img {
  transform: scale(1.04) rotate(-5deg);
}

/* ================================
   Carrossel – E-book Avulso
================================ */

.ebook-avulso-carousel {
  position: relative;
}

/* Navegação */
.ebook-avulso-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  z-index: 10;
}

/* Botões base */
.ebook-avulso-carousel .owl-nav .owl-prev, .ebook-avulso-carousel .owl-nav .owl-next {
  background: #1b3252 !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #ffffff !important;
  font-size: 28px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.ebook-avulso-carousel .owl-nav .owl-prev:hover,  .ebook-avulso-carousel .owl-nav .owl-next:hover {
  background: #D9B471 !important;
  transform: scale(1.08);
}

/* Cards escondidos */
.ebook-card.hidden-card {
  display: none;
}

/* Estado inicial da animação */
.ebook-card.animate-in {
  opacity: 0;
  transform: translateY(30px);
}

/* Estado final */
.ebook-card.animate-in.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}



/* Desktop – setas levemente para fora */
@media (min-width: 769px) {
  .ebook-avulso-carousel .owl-prev {
    margin-left: -55px;
  }

  .ebook-avulso-carousel .owl-next {
    margin-right: -55px;
  }
}

/* Mobile – setas DENTRO do carrossel */
@media (max-width: 768px) {
  .ebook-avulso-carousel .owl-nav {
    padding: 0 10px;
  }

  .ebook-avulso-carousel .owl-prev,
  .ebook-avulso-carousel .owl-next {
    margin: 0;
  }

  .ebook-avulso-carousel .owl-nav button {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}

/* ================================
   FIM – Conteúdos Exclusivos
================================ */

/* Modal para Tutoriais */
#tutorialModal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: none;
}

#tutorialModal.tutorial-active {
  display: block;
}

#tutorialModal .modal-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.9);
}

#tutorialModal .modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  border-radius: 15px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

#tutorialModal.tutorial-active .modal-content {
  opacity: 1;
  visibility: visible;
  animation: modalFadeIn 0.3s ease-out;
}

/* Previne scroll quando modal está aberto */
body.tutorial-open {
  overflow: hidden;
}

/* Estilos para Tutoriais Cards */
.tutorial-card {
  background: #fff;
  border-radius: 45px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  height: 100%;
  border: 2px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
  border-color: #1B3252;
}

.tutorial-icon {
  text-align: center;
  margin-bottom: 20px;
}

.tutorial-icon div {
  background: #1b3252;
  color: #fff;
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  margin: 0 auto;
  font-size: 30px;
}

/* Conteúdo do modal tutorial */
.tutorial-header {
  padding: 0 20px 20px;
}

.tutorial-content {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0;
  height: 65vh;
  overflow: hidden;
}

.tutorial-footer {
  padding: 20px 20px 0;
}

.tutorial-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  #tutorialModal .modal-content {
    width: 98%;
    padding: 20px;
    max-height: 95vh;
  }
  
  .tutorial-content {
    height: 55vh;
  }
  
  .tutorial-card {
    margin-bottom: 30px;
  }
  
  .tutorial-navigation {
    flex-direction: column;
    align-items: center;
  }
  
  .tutorial-navigation button {
    width: 100%;
    max-width: 200px;
  }
}


/* Ajuste para tutoriais */
.tutorial-active {
    display: block !important;
}