.btn {
  background: #73d8ce;
  color: #FFFFFF;
  border-radius: 12px;
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  border: none;
}

.centraliza-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.main-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  padding: 0 20px;
}

.main-content img {
  width: 750px;
  height: 350px;
  display: block;
  margin: 0 auto;
}

.main-content h1 {
  color: #73d8ce;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 2.2rem
}

.main-content h2 {
  color: #73d8ce;
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 2rem;
}

.main-content h3 {
  color: #73d8ce;
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 1.4rem;
}

.main-content p {
  margin-bottom: 25px;
  margin-top: 25px;
  font-size: 1.2rem;
}

/* Área de textos (section) */
.main-content section {
  flex: 1.1;
  /* diminua esse valor para deixar a área de texto mais estreita */
  max-width: 900px;
  /* limite a largura máxima do texto */
  min-width: 0;
  text-align: left;
}

.main-content aside {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  border-radius: 12px;
  padding: 24px 16px;
  margin-top: 0;
  position: sticky;
  top: 32px;
  /* Distância do topo ao rolar */
  align-self: flex-start;
  /* Garante o sticky */
  height: fit-content;
  /* Altura só do conteúdo */
  z-index: 10;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: inline-block;
  margin-left: 50px;
  width: 600px;
  /* mantém largura original */
  height: 520px;
  /* mantém altura original */
}

/* Para efeito slide, use um track container */
.carousel__track-pair {
  display: flex;
  transition: transform 0.5s cubic-bezier(.77, 0, .18, 1);
  height: 100%;
  will-change: transform;
}

.carousel-pair {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 50px;
  /* espaço entre as imagens */
  align-items: center;
}

.carousel-pair img {
  border-radius: 12px;
  width: 250px;
  /* tamanho de cada imagem */
  height: 500px;
  object-fit: contain;
  background: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #4C545F;
  background: none;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
  transition: background 0.2s;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.toc {
  background: #181818;
  padding: 12px 18px;
  border-radius: 8px;
  color: #FFFFFF;
  max-height: 500px;
  /* Defina a altura máxima que deseja! */
  overflow-y: auto;
  /* Oculta a scrollbar no Chrome, Edge, Safari */
  scrollbar-width: none;
  /* Para Firefox */
  -ms-overflow-style: none;
  /* Para IE e Edge antigos */
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 4px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.toc a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover {
  color: #5bc0be;
}

/* Destaque o link ativo do sumário */
.toc a.toc-ativo {
  color: #73d8ce !important;
  font-weight: bold;
}

.toc::-webkit-scrollbar {
  width: 6px;
  display: none;
}

.toc::-webkit-scrollbar-thumb {
  background: #222e41;
  border-radius: 3px;
}

.toc::-webkit-scrollbar-track {
  background: transparent;
}

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: #73d8ce;
  z-index: 9999;
  transition: width 0.2s;
}

@media (max-width: 768px) {
  .btn {
    font-size: 14px;
    padding: 12px 24px;
  }

  .centraliza-btn {
    margin-bottom: 15px;
  }

  .main-content {
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
    padding: 0 10px;
  }

  .main-content img {
    width: 100%;
    height: auto;
  }

  .main-content h1 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
  }

  .main-content h2 {
    margin-bottom: 15px;
    margin-top: 15px;
    font-size: 1.6rem;
  }

  .main-content h3 {
    margin-bottom: 15px;
    margin-top: 15px;
    font-size: 1.2rem;
  }

  .main-content p {
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 1rem;
  }

  .main-content section {
    flex: 1;
    max-width: 100%;
  }

  .main-content aside {
    min-width: 100%;
    max-width: 100%;
    padding: 16px 12px;
    margin-top: 20px;
    position: static;
    top: auto;
    align-self: stretch;
    height: auto;
  }

  .carousel {
    display: block;
    margin-left: 0;
    width: 100%;
    height: auto;
  }

  .carousel-pair {
    gap: 20px;
  }

  .carousel-pair img {
    width: 45%;
    height: auto;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn.prev {
    left: 4px;
  }

  .carousel-btn.next {
    right: 4px;
  }

  .toc {
    padding: 10px 14px;
    max-height: 300px;
  }

  .toc li {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  #sumario-blog {
    display: none !important;
  }
}