*{
    font-family: 'Roboto', sans-serif;
}

#primeiro-bloco {
  display: flex;
  flex-wrap: wrap;
}

#imagem {
  width: 60%;
  overflow: hidden;
}
#imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#introducao {
  background: linear-gradient(135deg,#f5d000, #ff7e00);
  width: 40%;
  padding: 30px;
  box-sizing: border-box;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#introducao h1 {
  margin: 0;
  color: white;
}

.coluna p {
  line-height: 1.6;
  margin-top: 25px;
  font-size: 20px;
}

/* Button Container */
.linha {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.botao {
  border: 2px solid white;
  border-radius: 25px;
  padding: 10px 20px;
  background-color: transparent;
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.botao:hover {
  background-color: white;
  color: #e0ac00;
}

.botao-doacao {
  background-color: green;
  border-color: green;
  color: white;
  animation: pulse 1.3s infinite;
}

.botao-doacao:hover {
  background-color: white;
  color: green;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 76, 0.801); }
  70% { box-shadow: 0 0 0 15px rgba(255, 126, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 126, 0, 0); }
}

.popup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 20px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-conteudo {
  background: white;
  max-width: 80vw;       
  max-height: 90vh;      
  overflow: auto;        
  box-sizing: border-box;
  padding: 30px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: left;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

#popup-doacao h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
}

#popup-texto {
  display: flex;
  gap: 0px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.popup-coluna {
  flex: 1;
  min-width: 200px;
  margin: 0 0 0 30px;
}

.popup-coluna p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.popup-coluna ul {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.popup-coluna ul li {
  margin-bottom: 8px;
  font-size: 16px;
}

.pix-box {
  display: inline-block;
  background-color: #fff4dc;
  border: 1px solid #ffbf00;
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #222;
}

.text-small {
  font-size: 15px;
  color: #555;
}

.popup-img {
  text-align: center;
}

.popup-img img {
  width: 60%;
  margin-top: 10px;
}

.caption {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup.show .popup-conteudo {
  transform: scale(1);
}

.fechar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.fechar:hover,
.fechar:focus {
  color: #ff7e00;
  text-decoration: none;
}

  #patrocinadores {
    text-align: center;
    padding: 2rem;
    padding-bottom: 4rem;
    background-color: #111;
    color: white;
    position: relative;
    z-index: 1;
  }

  #patrocinadores::after{ 
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    height:50px; 
    width: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 1), rgba(17, 17, 17, 0));
    z-index: 2;
    pointer-events: none;
  }

  #patrocinadores h1 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 30px;
    font-weight: normal;
    margin-bottom:3rem;
  }
  
  #main-grid {
    display: flex;
    place-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  #second-grid { /*separa os logos dos institutos do resto*/
    display: flex;
    place-items: center;
    justify-content: center;
    gap: 2rem;
  }
  
  #main-grid img,
  #second-grid img {
    max-height: 150px;
    max-width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
  }
  
  #main-grid img:hover,
  #second-grid img:hover {
    transform: scale(1.05);
  }  

  #time{
    color:#ff7e00;
    font:bold 90px 'Oswald';
    text-shadow: 0px 0px 20px #ff7e00;
  }

  #tier-list-container{
    background-image: url("../images/public/high-compind.JPG");
    background-position: center left;
  }

  #tier-list-text{
    padding:80px 100px 40px;
    text-align: center;
    justify-items: center;
  }
  #tier-list-text h1{
    color:white;
    font: bold 70px 'Oswald'; 
    text-shadow: 0px 0px 20px black;
  }
  #tier-list-p{
    color:white;
    font:normal 18px 'Roboto';
    width:50%;
    margin-top:15px;
    line-height: 1.3;
  }

  #tier-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 5rem 3rem;  
  }
  
  .tiers {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    max-width: 400px;
    box-sizing: border-box;
    background-color: white;
    padding: 0 0 2.5vw;
    margin-left: -10px;
    box-shadow: 5px 0 10px -2px rgba(0, 0, 0, 0.3);
  }

  .tiers ul {
    width: 100%;
  }
  
  .tiers ul li {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0.8vw 0;
    height:45px;
  }
  
  .tiers ul li:nth-child(odd),
  #benefits ul li:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.06); 
  }
  
  #benefits{
    margin-left: 0;
    text-align: right;  
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }

  #benefits ul{
    color:black;
    font-size:18px;
  }

  .tiers ul{
    margin:8px 20px;
    font-size:18px;
    list-style-type: none;
    color: white;
  }
  
  h2 {
    color: white;
    font:bold 30px 'Roboto';
    width:100%;
    padding:0.6rem 0;
  }

  h3{
    color:white;
    font:bold 35px 'Roboto';
  }

  .tiers p{
    color:#ffffffcc;
    font-size: 12px;
  }
  
  #tier-list-contato{
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
    background-color: #ff7e00;
    border-radius: 20px;
    padding:10px;
    width:fit-content;
  }

@media (max-width: 1024px) {
  #primeiro-bloco {
    flex-direction: column;
  }

  #imagem,
  #introducao {
    width: 100%;
  }

  #introducao {
    padding: 20px;
    text-align: center;
  }

  .coluna p {
    font-size: 18px;
  }

  .popup-conteudo {
    width: 90%;
    max-width: 600px;
    padding: 20px;
  }

  #tier-list-text {
    padding: 40px 50px;
  }

  #tier-list-text h1 {
    font-size: 50px;
  }

  #tier-list-p {
    width: 80%;
    font-size: 16px;
  }

  #tier-list{
    padding: 0 2rem 3rem;
  }

  .tiers h2 {
    font-size: 28px;
  }

  .tiers h3 {
    font-size: 28px;
  }

  /* #tier-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
    padding: 0 2rem 2rem;
  } */
/* 
  .tiers {
    width: 100%;
  } */
}


@media (max-width: 768px) {

  #introducao {
    padding: 15px;
  }

  #introducao h1 {
    font-size: 28px;
  }

  .coluna p {
    font-size: 16px;
    margin: 15px 20px 0;
  }

  .linha {
    gap: 10px;
    margin-bottom: 20px;
  }

  .botao {
    font-size: 16px;
    padding: 8px 15px;
  }

  .popup-conteudo {
    width: 95%;
    max-width: 500px;
    padding: 15px 30px;
    max-height: 90vh; /* so it never overflows vertically */
    overflow-y: auto; /* allow scrolling if content is tall */
  }

  #popup-texto {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .popup-coluna {
    margin: 0;
    min-width: auto;
  }

  .popup-img img {
    width: 80%;
    max-width: 200px;
  }

  #tier-list-text {
    padding: 20px;
  }
  
  #tier-list-text h1 {
    font-size: 36px;
    margin-top: 20px;
  }
 
  #tier-list-p {
    font-size: 14px;
  }
  
  #time{
    font-size: 42px;
  }

  #benefits {
    display: none;
  }

  /* Centraliza os blocos restantes */
  #tier-list {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza horizontalmente */
    gap: 5px;
    padding: 0 1rem 2rem;
  }

  .tiers {
    margin: 0 10px;
    border-radius: 20px;
    width:100%;
  }

  .tiers ul li {
    color: transparent;  /* Esconde o ✓ */
    position: relative;
    text-align: center;
  }
  
  .tiers ul li::before {
    content: attr(data);     
    color: white;
    display: block;
  }

  .tiers ul li[data=""] {
    display: none;
  }

  .tiers ul li {
    padding: 12px 0;
  }

  .tiers h2 {
    font-size: 25px;
  }

  .tiers h3 {
    font-size: 25px;
  }

  .tiers p{
    font-size: 10px;
  }

}

/* Very small screens (max 480px) */
@media (max-width: 480px) {

  #introducao h1 {
    font-size: 24px;
  }

  .coluna p {
    font-size: 14px;
  }

  .botao {
    font-size: 14px;
    padding: 6px 12px;
  }

  .popup-conteudo {
    width:85%;
    padding: 20px;
    font-size: 14px;
  }

  #popup-doacao h1 {
    font-size: 20px;
  }

  .popup-img img{
    width:70%;
    margin:0;
  }

  .popup-coluna p,
  .popup-coluna ul li {
    font-size: 14px;
  }

  #main-grid img,
  #second-grid img {
    max-width: 120px;
    max-height: 70px;
  }

  #patrocinadores h1 {
    font-size: 22px;
  }

  #main-grid,
  #second-grid {
    gap: 1rem;
  }

  #time{
    font-size: 32px;
  }

  #tier-list-text h1 {
    margin-top: 20px;
    font-size: 28px;
  }

  #tier-list-contato{
    font-size: 12px;
  }

  #tier-list{
    gap: 10px;
    padding: 0 1rem 2rem;
  }

  .tiers ul{
    font-size: 14px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 26px;
  }
} 
