/* ================================
   BLOG DOMINE ASSESSORIA
   ================================ */

/* Hero principal */
.blog-hero {
  position: relative;
  background: url('imagens/blog-cover.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 20px 20px 20px;
  padding-top: 240px ;
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.blog-hero .content {
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.blog-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--white);
}

/* Conteúdo geral */
.blog-container {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid de artigos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}

.blog-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.blog-card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(29, 42, 68, 0.15);
}

.blog-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-content h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.blog-content p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Artigo individual */
.blog-article {
  max-width: 850px;
  margin: 0 auto;
  background: var(--white);
  padding: 60px 50px;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.blog-article img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.blog-article h1 {
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.blog-article p.data {
  color: #777;
  margin-bottom: 30px;
  font-style: italic;
}

.blog-article .conteudo p {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
  text-align: justify;
}

.blog-article .conteudo h2 {
  margin: 30px 0 10px;
  color: var(--gold);
  font-size: 1.5rem;
}

/* === SEÇÃO LEIA TAMBÉM === */
.related {
  margin-top: 60px;
  border-top: 2px solid var(--gold);
  padding-top: 30px;
}

.related h3 {
  color: var(--navy);
  margin-bottom: 25px;
  font-size: 1.6rem;
}

/* Container horizontal de miniaturas */
.related-wrapper {
  position: relative;
  overflow: hidden;
}

.related-grid {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.related-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  flex: 0 0 25%; /* cerca de 25% do container */
  max-width: 25%;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.related-card h4 {
  padding: 10px;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

/* Navegação (setas) */
.related-nav {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.related-nav button {
  background: var(--gold);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.related-nav button:hover {
  background: #b68a29;
}

/* Responsividade */
@media (max-width: 768px) {
  .related-card {
    flex: 0 0 70%;
    max-width: 70%;
  }
}
