/* ==========================
   BASE GERAL
========================== */
.body-bg {
  background-color: #ffffff;
  font-family: 'Arial', sans-serif;
  padding: 2rem;
}

.container {
  max-width: 1280px;
  padding: 1rem;
  margin: 0 auto;
}

/* ==========================
   CABEÇALHO
========================== */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.line {
  border-top: 1px solid #d1d5db;
  flex-grow: 1;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  color: #4b5563;
  white-space: nowrap;
}

.content {
  text-align: justify;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 64rem;
  margin: 0 auto;
}

/* Responsividade para cabeçalho */
@media (max-width: 640px) {
  .title {
    font-size: 1.5rem;
    text-align: center;
  }
  .content {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
}

/* ==========================
   BARRA DE PESQUISA
========================== */
.pesquisa {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  margin: 20px auto;
}

.detalhe {
  font-weight: bold;
  margin-right: 10px;
  font-family: Arial, sans-serif;
  color: #333;
}

.pesquisa input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.pesquisa input[type="text"]:focus {
  border-color: #007bff;
}

.pesquisa i {
  margin-left: 10px;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  transition: color 0.3s;
}

.pesquisa i:hover {
  color: #007bff;
}

@media (max-width: 480px) {
  .pesquisa {
    padding: 8px 12px;
  }
  .pesquisa i {
    font-size: 18px;
  }
}

/* ==========================
   NOTÍCIAS E CURIOSIDADES
========================== */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: bold;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  padding: 0.5rem 0;
  letter-spacing: 0.05em;
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 5) 7%,
    rgba(22, 130, 36, 1) 15%,
    rgba(25, 148, 36, 1) 29%,
    rgba(36, 216, 36, 1) 43%,
    rgba(255, 176, 0, 0.84) 74%
  );
}

/* Grid responsivo */
.articles .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: justify;
}

@media (min-width: 640px) {
  .articles .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Estilo dos artigos */
.article {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: justify; 
  transition: transform 0.3s, box-shadow 0.3s;
}

.consult {
  margin-top: 25px;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
}
.consult .aqui {
  position: relative;
  font-weight: 900;
  color: rgb(6, 6, 6);
    background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 5) 7%,
    rgba(22, 130, 36, 1) 15%,
    rgba(25, 148, 36, 1) 29%,
    rgba(36, 216, 36, 1) 43%,
    rgba(255, 176, 0, 0.84) 74%
  );
  -webkit-background-clip: text; /* Para Chrome, Safari */
  -webkit-text-fill-color: transparent; /* Para Chrome, Safari */
  background-clip: text; /* Padrão */
  color: transparent; /* Garante que só o gradiente aparece */
}

.article:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.article-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.article-title {
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.article-title:hover a {
  color: #efef42;
}

.article-text {
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ==========================
   QUADRO DA FAMA
========================== */
.fame-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .fame-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fame-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fame-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s;
}

.fame-card:hover {
  transform: translateY(-5px);
}

.fame-image {
  width: 200px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .fame-image {
    width: 150px;
    height: 180px;
  }
}

.fame-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.fame-birthday {
  font-size: 1rem;
  color: #4a5568;
}

/* ==========================
   MODAL
========================== */
#modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  z-index: 10;
  width: 500px;
  max-width: 90%;
  padding: 1.2rem;
  border-radius: 0.5rem;
}

@media (max-width: 480px) {
  #modal {
    width: 95%;
    padding: 1rem;
  }
}

#close-modal {
  padding: 0.6rem 1.2rem;
  color: #f0f0f0;
  background-color: hwb(149 0% 83%);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  opacity: 0.9;
  font-size: 1rem;
}

#close-modal:hover {
  opacity: 1;
}

#fade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 5;
}

#modal.hide,
#fade.hide {
  opacity: 0;
  pointer-events: none;
}

#modal.hide {
  top: 0;
}

.media {
  display: flex;
  align-items: center;
  background-color: hwb(149 0% 83%);
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 20px auto;
}

.info {
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px rgba(0, 0, 0, 0.1);
}

.info h3 {
  margin: 8px 0;
  font-weight: normal;
  color: #000;
  
}

.info h3::after {
  color: #aaa;
}

#subtitulo {
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 5) 7%,
    rgba(22, 130, 36, 1) 15%,
    rgba(25, 148, 36, 1) 29%,
    rgba(36, 216, 36, 1) 43%,
    rgba(255, 176, 0, 0.84) 74%
  );
  text-align: center;
}

@media (max-width: 480px) {
  .info h3::after {
    content: "____________";
  }
}
