/* ===== Fundo ===== */
body {
  background-image: url(fundoblog.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  margin: 0;
  padding: 0;
}

/* ===== Estrutura principal ===== */
.card {
  width: 90%;
  max-width: 1440px;
  border-radius: 60px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 30px;
}

/* ===== Títulos ===== */
h2 {
  font-family: KumarOne-Regular;
  color: black;
  font-weight: bold;
  font-size: 90px;
  text-align: center;

}

h3 {
  font-family: KumarOne-Regular;
  color: black;
  font-weight: bold;
  font-size: 40px;
  text-align: center;
}

h4 {
  font-family: KumarOne-Regular;
  color: black;
  font-weight: bold;
  font-size: 30px;
  text-align: center;
}

/* ===== Textos ===== */
.col-auto,
.letra span {
  font-family: KumarOne-Regular;
  color: black;
  font-weight: bold;
  font-size: 30px;
}

.letra {
  margin-top: 20px;
}

p {
  color: rgb(0, 0, 0);
  font-size: 20px;
  text-align: justify;
}

/* ===== Imagens ===== */
.ms-md-5 {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.icones img {
  margin: 10px;
}

/* ===== Rodapé ===== */
.COPYRIGHT {
  font-family: Montserrat-Medium;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-align: center;
  padding: 10px 0;
}

.linha-responsiva {
  width: 100%;
  height: 1px;
  border: none;
  background-color: #ccc;
  margin: 1em 0;
}


/* ================================================================
===== SEÇÃO DOS CARDS (CORRIGIDA) ===== 
================================================================
*/

.card1 {
  /* width: 100% -> O card vai ocupar 100% da coluna (seja col-md-6 ou col-lg-4)
    height: 100% -> O card vai usar 100% da altura da coluna (para alinhar com o h-100 do HTML)
  */
  width: 100%;
  height: 100%;

  /* Isso garante que o card continue com o seu efeito de sombra e transição
  */
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);

  /* REMOVEMOS: 
    - width: 400px;
    - height: 540px;
    - margin-left: 150px;
    - margin: 0 auto;
    - border-radius: 0%;
  */
}

.card1:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.1);
}

.card-img-top {
  /* width: 100% -> A imagem ocupa 100% do .card1
    height: 300px -> Mantemos uma altura fixa para as imagens ficarem uniformes
    object-fit: cover -> Impede que a imagem distorça
  */
  width: 100%;
  height: 300px; /* Você pode ajustar esse valor */
  object-fit: cover;

  /* REMOVEMOS: 
    - width: 400px;
    - border-radius: 0;
  */
}

/* Para o texto, é bom garantir que ele não quebre 
  e que o corpo do card cresça
*/
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Faz o corpo do card crescer para preencher o espaço */
  padding: 1.25rem; /* Padding padrão do Bootstrap */
}

.card-title {
  font-family: KumarOne-Regular;
  color: black;
  font-weight: bold;
  text-align: left;
  font-size: 25px;
}

.card-text {
  font-family: Montserrat-Regular;
  font-size: 20px;
  text-align: justify; /* Voltando para 'justify' como estava no seu <p> */
}

.date {
  font-family: KumarOne-Regular;
  color: black;
  font-weight: bold;
  text-align: left;
  font-size: 20px;
  margin-top: auto; /* Empurra a data para o final do card */
}


/* ================================================================
===== RESPONSIVIDADE (Simplificada) ===== 
================================================================
*/
/* As media queries originais não são mais necessárias 
   para o layout dos cards, pois o grid (col-md-6, col-lg-4) 
   já cuida disso.
   
   Mantive apenas as suas media queries que mudam 
   TAMANHO DE FONTE e outros elementos.
*/


/* ===== RESPONSIVIDADE CELULARES (até 800px) ===== */
@media (max-width: 800px) {
  .card {
    width: 95%;
    max-width: 95%;
    min-height: auto;
    border-radius: 30px;
    padding: 15px;
  }

  h2 {
    font-size: 50px;
    margin-top: 50px;
  }

  h4 {
    font-size: 24px;
  }

  .col-auto,
  .letra span {
    font-size: 24px;
  }

  p {
    font-size: 18px;
  }

  .COPYRIGHT {
    font-size: 15px;
  }

  /* Remove float e ajusta imagens (Mantido do seu original) */
  .materia1 img,
  .materia2 img,
  .materia3 img,
  .materia4 img {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 20px auto !important;
  }
}

/* ===== RESPONSIVIDADE TABLETS (801px - 1200px) ===== */
@media (min-width: 801px) and (max-width: 1200px) {
  .card {
    width: 90%;
    max-width: 90%;
    border-radius: 40px;
    padding: 30px;
  }

  h2 {
    font-size: 60px;
    margin-top: 70px;
  }

  h4 {
    font-size: 26px;
  }

  .col-auto,
  .letra span {
    font-size: 26px;
  }

  p {
    font-size: 19px;
  }

  .COPYRIGHT {
    font-size: 17px;
  }

  /* Ajusta imagens das matérias em tablets (Mantido do seu original) */
  .materia1 img,
  .materia2 img,
  .materia3 img,
  .materia4 img {
    width: 80% !important;
    max-width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 25px auto !important;
    float: none !important;
  }

  /* Remove float das colunas (Mantido do seu original) */
  .materia1 .col-md-6,
  .materia2 .col-md-6,
  .materia3 .col-md-6,
  .materia4 .col-md-6 {
    float: none !important;
    width: 100% !important;
  }
}

/* ===== RESPONSIVIDADE DESKTOP (acima de 1200px) ===== */
@media (min-width: 1201px) {
  .card {
    width: 90%;
    max-width: 1440px;
    border-radius: 60px;
    padding: 30px;
  }

  h2 {
    font-size: 70px;
    margin-top: 90px;
  }

  h4 {
    font-size: 30px;
  }

  .col-auto,
  .letra span {
    font-size: 30px;
  }

  p {
    font-size: 20px;
  }

  .COPYRIGHT {
    font-size: 20px;
  }

  /* Imagens padrão (Mantido do seu original) */
  .materia1 img,
  .materia2 img,
  .materia3 img,
  .materia4 img {
    width: auto !important;
    max-width: 100% !important;
    float: left;
    display: block;
    margin: 0 30px 30px 0;
    height: auto;
  }
}


/* REMOVIDO: 
  - Media queries de 1024px e 767px que só mudavam o .card1
*/