/*
Theme Name: Astra Humanas (child)
Theme URI: https://centrocienciashumanas.com
Description: Tema filho do Astra com estilo retrô marrom-dourado e modelo "Página por Disciplinas".
Author: prof.luciano
Template: astra
Version: 1.0
Text Domain: astra-humanas
*/

/* Importa o estilo base do Astra */
@import url("../astra/style.css");

/* =========================================================
   🌸 ESTILO GERAL DO SITE – Astra Humanas
   ========================================================= */

body {
  background-color: #fdfaf5;
  color: #2b2b2b;
  font-family: "Merriweather", serif;
  line-height: 1.7;
}

/* -------- CABEÇALHO -------- */
.site-header {
  background: linear-gradient(90deg, #3c2a4d, #5e3a7b);
  border-bottom: 4px solid #d8b4f8;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.site-title a {
  color: #f6f0ff !important;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.site-description {
  color: #f8eaff;
  font-style: italic;
}

/* -------- MENU -------- */
.main-header-menu a {
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.main-header-menu a:hover {
  color: #ffe6f2 !important;
}

/* =========================================================
   🟣 BOTÕES "LEIA MAIS" GERAIS
   ========================================================= */

.read-more,
.more-link,
.wp-block-button__link {
  background: linear-gradient(135deg, #a06cd5, #7b4b94);
  color: #fff !important;
  border-radius: 30px;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 4px 10px rgba(123, 75, 148, 0.3);
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

.read-more:hover,
.more-link:hover,
.wp-block-button__link:hover {
  background: linear-gradient(135deg, #7b4b94, #a06cd5);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(123, 75, 148, 0.4);
  text-decoration: none;
}

/* =========================================================
   💠 CARDS DE ÁREAS DO CONHECIMENTO E MATERIAIS
   ========================================================= */

.grade-temas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.category-card {
  flex: 1 1 calc(25% - 25px);
  background: #fffafc;
  border: 1px solid #e5d4ed;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
  max-width: 280px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.category-card h3 {
  font-family: "Playfair Display", serif;
  color: #5a3c69;
  margin-bottom: 10px;
}

.category-card p {
  line-height: 1.5;
}

/* =========================================================
   🎨 CORES DOS CARDS POR TEMA
   ========================================================= */
.card-historia { border-left: 5px solid #a06cd5; }
.card-geografia { border-left: 5px solid #5fa8d3; }
.card-filosofia { border-left: 5px solid #e07a5f; }
.card-sociologia { border-left: 5px solid #81b29a; }
.card-plano { border-left: 5px solid #c77dff; }
.card-avaliacoes { border-left: 5px solid #ef476f; }
.card-atividades { border-left: 5px solid #ffd166; }
.card-ebook { border-left: 5px solid #06d6a0; }

/* =========================================================
   🟢 BOTÕES PERSONALIZADOS POR CATEGORIA
   ========================================================= */
.card-historia .read-more { background: linear-gradient(135deg, #a06cd5, #7b4b94); }
.card-geografia .read-more { background: linear-gradient(135deg, #5fa8d3, #2a82b2); }
.card-filosofia .read-more { background: linear-gradient(135deg, #e07a5f, #b25a3a); }
.card-sociologia .read-more { background: linear-gradient(135deg, #81b29a, #4a7a68); }
.card-plano .read-more { background: linear-gradient(135deg, #c77dff, #9e5bcc); }
.card-avaliacoes .read-more { background: linear-gradient(135deg, #ef476f, #c92d54); }
.card-atividades .read-more { background: linear-gradient(135deg, #ffd166, #dcae3b); }
.card-ebook .read-more { background: linear-gradient(135deg, #06d6a0, #049a74); }

.card-historia .read-more:hover,
.card-geografia .read-more:hover,
.card-filosofia .read-more:hover,
.card-sociologia .read-more:hover,
.card-plano .read-more:hover,
.card-avaliacoes .read-more:hover,
.card-atividades .read-more:hover,
.card-ebook .read-more:hover {
  filter: brightness(1.1);
  transform: translateY(-3px);
}

/* =========================================================
   📱 RESPONSIVIDADE E AJUSTE MOBILE
   ========================================================= */
@media (max-width: 1024px) {
  .category-card {
    flex: 1 1 calc(45% - 25px);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .grade-temas {
    justify-content: center;
  }
  .category-card {
    flex: 1 1 calc(45% - 15px);
    text-align: center;
  }
  .category-card h3 {
    margin-bottom: 8px;
  }
  .read-more {
    margin: 12px auto 0 auto;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .category-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .category-card h3 {
    font-size: 1.1rem;
  }
  .category-card p {
    font-size: 0.9rem;
  }
  .read-more {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}

/* =========================================================
   ⚫ RODAPÉ RETRÔ
   ========================================================= */
.site-footer {
  background: #3a2a4a;
  color: #f8f0ff;
  font-family: "Georgia", serif;
  font-size: 0.9rem;
  padding-top: 30px;
  border-top: 3px solid #a06cd5;
}
/* =========================================================
   💠 BLOCO DE CARDS – CIÊNCIAS HUMANAS
   ========================================================= */

.bloco-materiais {
  text-align: center;
  margin: 60px auto 80px auto;
  max-width: 1300px;
  padding: 0 20px;
}

.container-cards {
  display: flex;
  justify-content: center;
}

.grade-temas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

/* ===== ESTILO DOS CARDS ===== */
.category-card {
  background-color: #fdf9fc;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-left: 5px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
  font-family: "Playfair Display", serif;
  color: #4a285a;
  margin-bottom: 10px;
}

.category-card p {
  font-family: "Merriweather", serif;
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.category-card .read-more {
  background-color: #8147a2;
  color: #fff;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.category-card .read-more:hover {
  background-color: #5d2e76;
}

/* ===== CORES POR CATEGORIA ===== */
.card-historia { border-left: 5px solid #a06cd5; }
.card-geografia { border-left: 5px solid #5fa8d3; }
.card-filosofia { border-left: 5px solid #e07a5f; }
.card-sociologia { border-left: 5px solid #81b29a; }
.card-plano { border-left: 5px solid #c77dff; }
.card-avaliacoes { border-left: 5px solid #ef476f; }
.card-atividades { border-left: 5px solid #ffd166; }
.card-ebook { border-left: 5px solid #06d6a0; }

/* ===== TÍTULO E SUBTÍTULO ===== */
.titulo-materiais {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #4a285a;
  margin-bottom: 5px;
}

.subtitulo-materiais {
  font-family: "Merriweather", serif;
  color: #6e557e;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .category-card {
    flex: 1 1 calc(45% - 25px);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .grade-temas {
    flex-direction: column;
    align-items: center;
  }
  .category-card {
    width: 85%;
  }
}
/* Ajuste de alinhamento dos cards na seção de materiais */
.bloco-materiais .container-cards {
  display: flex;
  justify-content: center;
}

.bloco-materiais .grade-temas {
  margin: 0 auto;
  padding: 0 15px;
}

.bloco-materiais .category-card {
  box-sizing: border-box;
}
/* ===== Alinhamento final para os cards ===== */
.bloco-materiais .container-cards,
.bloco-materiais .grade-temas {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

.bloco-materiais .grade-temas .category-card {
  text-align: center !important;
}
/* ===== ANIMAÇÃO DE ENTRADA SUAVE ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== MENU PRINCIPAL RETRÔ E LEGÍVEL ===== */
.main-header-menu a {
  color: #f8f0ff !important; /* tom claro suave e visível */
  font-family: "Merriweather", serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 18px;
  transition: all 0.3s ease-in-out;
}

.main-header-menu a:hover {
  color: #ffe6f2 !important; /* realce rosado-dourado no hover */
  text-shadow: 0 0 8px rgba(255, 230, 242, 0.8);
}

/* ===== FUNDO DO CABEÇALHO ===== */
.site-header {
  background: linear-gradient(90deg, #3c2a4d, #5e3a7b);
  border-bottom: 4px solid #d8b4f8;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.site-title a {
  color: #fff8f8 !important; /* nome do site mais forte */
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.site-description {
  color: #ead7ff;
  font-style: italic;
  font-size: 0.95rem;
}

/* ===== OPÇÃO: MENU FIXO NO TOPO ===== */
.main-header-bar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #3c2a4d, #5e3a7b);
}
/* ===== FAIXA DE BOAS-VINDAS ===== */
.faixa-boasvindas {
  background: linear-gradient(90deg, #5e3a7b, #3c2a4d);
  color: #fff8f8;
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faixa-boasvindas h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.faixa-boasvindas p {
  font-family: "Merriweather", serif;
  font-size: 1rem;
  color: #f3e7ff;
}
/* ===== Oculta o título da página inicial ===== */
.page-id-254 .entry-title,
.home .entry-title {
  display: none !important;
}
