/* :root {
  --primary-color: #279ca9;
  --second-color: #1d8b98 ;
  --threeth-color: #147a87 ;
  --fourth-color: #0a6875 ;
  --fifth-color: #005764 ;
  --sixth-color: #0a697575;
} */

:root {
  --primary-color: #20448C;
  --second-color: #086CB4;
  --threeth-color: #008CDB;
  --fourth-color: #0286EA;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* CODIGO DO BODY */
body {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.ch-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

.title-details {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 0.5rem;
  position: relative;
  /* width: 230px; */
  text-align: center;
}

.title-details i {
  font-size: 2.9rem;
  color: var(--threeth-color);
  font-weight: bold;
}

.title-details h1 {
  margin: 0;
  font-size: 1.9rem;
  color: var(--threeth-color);
  text-transform: uppercase;
}

.button_voltar {
  /* background-color:var(--threeth-color); */
  position: absolute;
  top: 103px;
  
  /* Fica 50px do topo da página */
  left: 20px;
  /* Fica 50px da esquerda */
  border-radius: 10px;
}

.button_voltar i{
  font-size: 2.9rem;
  color: var(--threeth-color);
  font-weight: bold;
 
}


.container {
  width: 80%;
  /* padding: 2rem; */
  /* background-color: cornflowerblue; */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  width: 30rem;
  background-color: var(--threeth-color);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.image-btn {
  cursor: pointer;
}

.image-container {
  /* cursor: pointer; */
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1.3rem;
  color: white;
  /* background-color: #2b364a71; */
  background-color: #008bdb57;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;

}

.card-title span {
  text-shadow: 0.2rem 0.2rem 0.4rem black;
}

/* .btn-smais {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
} */

.btn-smais {
  display: flex;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  max-height: 100px;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.1s ease, max-height 0.5s ease;
}

.btn-smais span {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
  background-color: var(--threeth-color);
  border-radius: 1rem;
  border: solid 2px white;
  text-transform: uppercase;
}

.expand-icon {
  font-size: 2.4rem;
  text-shadow: 0 0 0.4rem black;
  transition: transform 0.3s ease;
}

.card.expanded .btn-smais {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  /* Recolhe o espaço do botão */
  transition: opacity 0.5s ease, visibility 0s 0.5s ease, max-height 0.5s ease;
}

.card-content {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  color: #fff;
  font-size: 1.2rem;
  padding: 0 0.8rem;
  text-align: justify;
  transition: opacity 0.5s ease, visibility 0s 0.5s ease, max-height 0.5s ease;
  overflow: hidden;
}

.card.expanded .card-content {
  background-color: white;
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  padding: 0.8rem;
  transition: opacity 0.5s ease, visibility 0s 0.1s ease, max-height 0.5s ease;
}


.tab-buttons {
  display: flex;
  gap: 6px;
}

.tab-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: none;
  color: var(--primary-color);
  background-color: var(--threeth-color);
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.tab-btn.active {
  background-color: var(--second-color);
  color: #fff;
}


.content {
  display: none;
}

.content.show {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background-color: var(--second-color);
  border-radius: 0 0 8px 8px;
  padding: 1rem;
}

.infos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.content-title {
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem;
  margin: 0;
}

.content-description {
  text-align: center;
  font-size: 15px;
  line-height: 2rem;
  margin: 0;
  animation: show-me 1s ease-in-out;
}

@keyframes show-me {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.card-btn,
.btn-rota {
  text-align: center;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  /* Recolhe o espaço do botão */
  margin: 0;
  transition: opacity 0.3s ease, visibility 0s 0.5s ease, max-height 0.4s ease, margin 0.5s ease;
}


.card.expanded .card-btn {
  opacity: 1;
  visibility: visible;
  max-height: 100px;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.2s ease, max-height 0.4s ease;
}

.card.expanded .btn-rota {
  opacity: 1;
  visibility: visible;
  max-height: 100px;
  overflow: hidden;
  margin: 0.5rem 0;
  transition: opacity 0.4s ease, visibility 0s 0.2s ease, max-height 0.4s ease;
}


.card-btn a {
  color: var(--fourth-color);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #6cf3d5;
  border-radius: 1rem;
  border: solid 2px white;
  display: inline-block;
}

.card-btn a:hover {
  background-color: #5ae0c2;
  transition: background-color 0.3s ease;
}

.btn-rota a {
  font-size: 1rem;
  font-weight: bold;
  padding: 0.8rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  background-color: var(--threeth-color);
  border-radius: 1rem;
  border: solid 2px white;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-rota i {
  font-size: 2rem;
  color: #fff;
}

/* Para o contêiner de paginação */
.pagination {
  text-align: center;
  margin: 3rem 0;
}

.pagination ul {
  display: inline-block;
  list-style: none;
  padding: 0;
}

.pagination ul li {
  display: inline;
  margin: 0 5px;
}

.pagination ul li a {
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #007bff;
}

.pagination ul li.active a {
  background-color: #007bff;
  color: #fff;
}

.pagination ul li a:hover {
  background-color: #0056b3;
  color: white;
}


/* / Mobile / */
@media(max-width: 480px) {
  .container {
    width: 100%;
  }
}


/* Desktops */
@media(min-width: 1024px) {
  .title-details i {
    font-size: 2.9rem;
  }

  .title-details h1 {
    font-size: 3.6rem;
  }
}


/* / Desktops / */
/* @media (min-width: 1219px) {
  .container {
    width: 100%;
  }

  .card {
    width: 40rem;
  }

  .card-title {
    font-size: 1.8rem;
    justify-content: center;
  }

  .card-title span {
    text-shadow: 0.2rem 0.2rem 1rem black;
  }

  .content.show {
    height: 15rem;
  }

  .expand-icon {
    display: none;
  }

  .infos {
    
    gap: 0;
  }


  .btn-smais {
    display: none;
  }

  .btn-rota {
    opacity: 1;
    visibility: visible;
    max-height: 100px;
    overflow: hidden;
    margin: 0.5rem 0;
    transition: opacity 0.4s ease, visibility 0s 0.2s ease, max-height 0.4s ease;
  }

  .card-content {
    background-color: white;
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    padding: 0.8rem;
    transition: opacity 0.5s ease, visibility 0s 0.1s ease, max-height 0.5s ease;
  }

} */