#cap5 .darkp {
  padding-top: 10px;
}

#cap1,
#cap18,
#cap19,
#cap9,
#cap10,
#cap7,
#cap20,
#cap21,
#cap8 {
  margin-top: 0px;
  /*margin-bottom: 300px;*/
  position: relative;
  width: 100%; /* largura total */
  min-height: 300px; /* altura mínima */
  background-size: cover; /* cobre toda a área */
  background-position: center; /* centraliza */
  background-repeat: no-repeat; /* sem repetição */

  display: flex;
  align-items: center;
  justify-content: center;
}

#cap6 {
  margin-top: 0px;
  /*margin-bottom: 300px;*/
  position: relative;
  width: 100%; /* largura total */
  max-height: 1000px; /* altura máxima */
  background-size: cover; /* cobre toda a área */
  background-position: center; /* centraliza */
  background-repeat: no-repeat; /* sem repetição */

  display: flex;
  align-items: center;
  justify-content: center;
}

#cap6 {
  background-image: url("../img/borracha.jpg");
}
#cap18 {
  background-image: url("../img/Cap18Fundo.jpg");
}
#cap19 {
  background-image: url("../img/Cap19Fundo.jpg");
}


#cap18::after {
  content: "Nilmar Lage/Greenpeace: Canoa com sacos de Andiroba Comunidade do Roque";
  white-space: pre-wrap;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 4px;
  max-width: 250px;
  text-align: right;
  z-index: 10;
  font-family: "WorkSans", sans-serif;
}

#cap19::after {
  content: "Nilmar Lage/Greenpeace: Visão aérea Comunidade do Roque";
  white-space: pre-wrap;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  font-size: 10px;
  line-height: 1.3;
  border-radius: 4px;
  max-width: 250px;
  text-align: right;
  z-index: 10;
  font-family: "WorkSans", sans-serif;
}

#cap9,
#cap10 {
  align-items: right;
}
#cap1 {
  padding-top: 300px;
  margin-bottom: 300px;
}

#cap1 .dark,
#cap6 .dark,
#cap18 .dark,
#cap19 .dark,
#cap9 .dark,
#cap10 .dark,
#cap5 .dark {
  position: relative;
  margin-right: 20px;
  margin-top: 400px;
  width: 30%;
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding-top: 60px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}

#cap18 .dark {
  margin-left: auto;
  margin-right: 20px;
}

#cap7 .dark,
#cap21 .dark,
#cap20 .dark {
  position: relative;
  margin-top: 200px;
  width: 50%;
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding-top: 60px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}
#cap8 .dark {
  position: relative;
  margin-top: 200px;
  margin-bottom: 300px;
  width: 60%;
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding-top: 60px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}

#cap8 .caption,
#cap12 .caption,
#cap13 .caption,
#cap14 .caption,
#cap15 .caption,
#cap16 .caption,
#cap17 .caption {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 4px;
  max-width: 260px;
  text-align: right;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  font-family: "WorkSans", sans-serif;
}

#cap8 .caption.active,
#cap12 .caption,
#cap13 .caption,
#cap14 .caption,
#cap15 .caption,
#cap16 .caption.active,
#cap17 .caption.active {
  opacity: 1;
  pointer-events: auto;
}

#cap8 .caption .year {
  display: block;
  font-weight: bold;
  color: #ffd700;
  font-size: 11px;
  margin-top: 2px;
}

@media (max-width: 768px) {
  #cap8 .caption,
  #cap12 .caption,
  #cap13 .caption,
  #cap14 .caption,
  #cap15 .caption,
  #cap16 .caption,
  #cap17 .caption {
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 8px;
    font-size: 8px;
    line-height: 1.3;
    border-radius: 4px;
    max-width: 70%;
    text-align: right;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  #cap8 .caption.active,
  #cap12 .caption,
  #cap13 .caption,
  #cap14 .caption,
  #cap15 .caption,
  #cap16 .caption.active,
  #cap17 .caption.active {
    opacity: 1;
  }

  #cap8 .caption .year {
    display: block;
    font-weight: 600;
    color: #ffcc00;
    font-size: 8px;
    margin-top: 2px;
  }
}

#cap8 .carousel-fade {
  height: 600px;
}

#cap18 .dark,
#cap19 .dark {
  position: relative;
  margin-right: 20px;
  margin-top: 300px;
  margin-bottom: 300px;
  width: 30%;
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding-top: 60px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}

#cap6 .dark {
  position: relative;
  margin-right: 20px;
  width: 30%;
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding-top: 60px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}

#cap6 .dark,
#cap19 .dark,
#cap10 .dark {
  margin-right: auto; /* empurra para o lado direito */
  margin-left: 20px;
}
#cap9 .dark {
  margin-right: auto; /* empurra para o lado direito */
  margin-left: auto;
  width: 60%;
}

#cap10 .dark {
  margin-bottom: 300px;
}
/* Container para os ícones */
#cap1 .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

/* Estilo dos ícones (usando Font Awesome como exemplo) */
#cap1 .social-icons a {
  color: white;
  font-size: 1.5em;
  transition: color 0.3s;
}

#cap1 .social-icons a:hover {
  color: #ccc;
}
#cap1,
#cap2,
#cap3,
#cap5,
#cap4 h2,
#cap7 h2,
#cap20 h2,
#cap21 h2,
#cap9 h2,
#cap6 h2,
#cap18 h2,
#cap19 h2,
#cap10 h2,
#cap8 h2 {
  text-align: center;
}
#cap1 h3,
#cap5 h3,
#cap6 h3,
#cap18 h3,
#cap19 h3,
#cap7 h3,
#cap20 h3,
#cap21 h3,
#cap8 h3,
#cap10 h3,
#cap9 h3 {
  margin-top: 0;
  text-align: left;
  font-size: 28px;
}

#cap1 .dark p,
#cap6 .dark p,
#cap18 .dark p,
#cap19 .dark p,
#cap7 .dark p,
#cap20 .dark p,
#cap21 .dark p,
#cap9 .dark p,
#cap10 .dark p,
#cap8 .dark p {
  text-align: left;
}

#cap8 .dark p {
  padding-top: 10px;
}
@media (max-width: 768px) {
  #cap1,
  #cap5,
  #cap6,
  #cap18,
  #cap19,
  #cap7,
  #cap20,
  #cap21,
  #cap9,
  #cap10,
  #cap8 {
    padding-top: 15vh;
  }
  #cap6 {
    background-position: 70% center;
  }
  #cap18 {
    background-position: 30% center;
  }
  #cap19 {
    background-position: 50% center;
  }
  #cap1 .dark,
  #cap6 .dark,
  #cap18 .dark,
  #cap19 .dark,
  #cap7 .dark,
  #cap20 .dark,
  #cap21 .dark,
  #cap9 .dark,
  #cap10 .dark,
  #cap8 .dark {
    position: relative;
    width: 90%;
    background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
  }
  #cap18 .dark {
    margin-top: 400px;
    margin-bottom: 30px;
  }
  #cap1 h2,
  #cap5 h2,
  #cap6 h2,
  #cap7 h2,
  #cap20 h2,
  #cap21 h2,
  #cap8 h2,
  #cap9 h2,
  #cap10 h2 {
    font-size: 1.5em;
    line-height: 1.2;
    margin-bottom: 0.4em;
  }

  #cap8 .carousel-fade {
    height: 300px;
  }
  #cap1 p,
  #cap5 p,
  #cap6 p,
  #cap18 p,
  #cap19 p,
  #cap7 p,
  #cap20 p,
  #cap9 p,
  #cap10 p,
  #cap8 p {
    font-size: 1em;
    line-height: 1.4;
  }

  #cap1 .text-box,
  #cap5 .text-box,
  #cap6 .text-box,
  #cap18 .text-box,
  #cap19 .text-box,
  #cap7 .text-box,
  #cap20 .text-box,
  #cap21 .text-box,
  #cap9 .text-box,
  #cap10 .text-box,
  #cap8 .text-box {
    max-width: 90%;
    padding: 1em;
  }
  /* Ajuste para ícones em mobile */
  #cap1 .social-icons {
    gap: 10px;
  }

  #cap1 .social-icons a {
    font-size: 1.3em;
  }
}

#cap4 {
  margin-top: 300px;
  margin-bottom: 300px;
  min-height: 200px; /* altura mínima */
  justify-content: center;
}

#cap4 .dark {
  position: relative;
  margin-right: 10px;
  margin-top: 20px;
  width: 100%;
  margin-left: auto; /* empurra para o lado direito */
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}

#cap4 h3 {
  font-size: 1.5em;
  margin-top: 0;
  text-align: center;
}

#cap4 .dark p {
  text-align: justify;
  font-size: 1.5em;
}

@media (max-width: 768px) {
  #cap4 {
    padding-top: 15vh;
  }

  #cap4 .dark {
    width: 90%;
    background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
  }

  #cap4 h3 {
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 0.4em;
  }

  #cap4 p {
    font-size: 0.5em;
    line-height: 1.4;
  }

  #cap4 .text-box {
    max-width: 90%;
    padding: 1em;
  }
}

#cap2,
#cap3 {
  margin-top: 300px;
  margin-bottom: 300px;
  min-height: 300px; /* altura mínima */
  justify-content: center;
}

#cap2 .dark,
#cap5 .dark,
#cap3 .dark {
  position: relative;
  margin-right: 10px;
  margin-top: 300px;
  margin-bottom: 300px;
  width: 100%;
  margin-left: auto; /* empurra para o lado direito */
  background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
  color: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}


#cap2 h3,
#cap3 h3 {
  margin-top: 0;
  text-align: center;
}

#cap2 .dark p,
#cap5 .dark p,
#cap3 .dark p {
  text-align: left;
}

@media (max-width: 768px) {
  #cap2,
  #cap3,
  #cap20,
  #cap21,
  #cap7 {
    padding-top: 15vh;
  }

  #cap2 .dark,
  #cap3 .dark {
    width: 90%;
    background: rgba(0, 0, 0, 0.6); /* caixa escura para dar contraste */
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
  }

  #cap2 h3,
  #cap3 h3 {
    font-size: 1.5em;
    line-height: 1.2;
    margin-bottom: 0.4em;
  }

  #cap2 p,
  #cap3 p {
    font-size: 1em;
    line-height: 1.4;
  }

  #cap2 .text-box,
  #cap3 .text-box {
    max-width: 90%;
    padding: 1em;
  }
}

/* Label lateral para #cap2 */
#cap2 > .side-label-amazonia {
  position: absolute;
  left: -100%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3em;
  font-weight: bold;
  color: #006400;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.2em 0.7em;
  border-radius: 0 12px 12px 0;
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;
}

/* === Capítulos 11 a 17 (mesma formatação do #cap10) === */
#cap11,
#cap12,
#cap13,
#cap14,
#cap15,
#cap16,
#cap22,
#cap17 {
  margin-top: 0px;
  position: relative;
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  align-items: right;
}

#cap11 .dark,
#cap12 .dark,
#cap13 .dark,
#cap14 .dark,
#cap15 .dark,
#cap16 .dark,
#cap22 .dark,
#cap17 .dark {
  position: relative;
  margin-right: auto;
  margin-left: 20px;
  margin-bottom: 300px;
  width: 40%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding-top: 60px;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
}
#cap11 .dark {
  margin-right: auto;
  margin-left: auto;
  width: 35%;
}
#cap22 .dark {
  margin-right: auto;
  margin-left: auto;
  width: 50%;
}

#cap11 h2,
#cap12 h2,
#cap13 h2,
#cap14 h2,
#cap15 h2,
#cap16 h2,
#cap22 h2,
#cap17 h2 {
  text-align: center;
}

#cap11 h3,
#cap12 h3,
#cap13 h3,
#cap14 h3,
#cap15 h3,
#cap16 h3,
#cap22 h3,
#cap17 h3 {
  margin-top: 0;
  text-align: left;
  font-size: 28px;
}

#cap11 .dark p,
#cap12 .dark p,
#cap13 .dark p,
#cap14 .dark p,
#cap15 .dark p,
#cap16 .dark p,
#cap22 .dark p,
#cap17 .dark p {
  text-align: left;
}

/* Versão mobile para #cap11–#cap17 */
@media (max-width: 768px) {
  #cap11,
  #cap12,
  #cap13,
  #cap14,
  #cap15,
  #cap16,
  #cap22,
  #cap17 {
    padding-top: 15vh;
  }

  #cap11 .dark,
  #cap12 .dark,
  #cap13 .dark,
  #cap14 .dark,
  #cap15 .dark,
  #cap16 .dark,
  #cap17 .dark {
    position: relative;
    width: 90%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding-bottom: 0px;
    box-sizing: border-box;
    border-radius: 8px;
  }
  #cap22 .dark {
    margin-right: auto;
    margin-left: auto;
    width: 90%;
  }
  #cap12 h2,
  #cap13 h2,
  #cap14 h2,
  #cap15 h2,
  #cap16 h2,
  #cap17 h2,
  #cap18 h2,
  #cap19 h2 {
    font-size: 1em;
    line-height: 1.2;
    margin-bottom: 0.4em;
  }

  #cap12 p,
  #cap13 p,
  #cap14 p,
  #cap15 p,
  #cap16 p,
  #cap17 p {
    font-size: 0.8em;
    line-height: 1;
  }
  #cap11 p {
    font-size: 1em;
    line-height: 1.4;
  }
  #cap22 p {
    font-size: 1em;
    line-height: 1;
  }

  #cap11 .text-box,
  #cap12 .text-box,
  #cap13 .text-box,
  #cap14 .text-box,
  #cap15 .text-box,
  #cap16 .text-box,
  #cap22 .text-box,
  #cap17 .text-box {
    max-width: 90%;
    padding: 1em;
  }
}
