/* ==========================================================================
   CLÍNICA MARIANA GENTA - ESTILOS EXCLUSIVOS DO BLOG & ARTIGOS
   Identidade Editorial Médica: Tons Terracota, Nude e Areia
   ========================================================================== */

/* ── 1. CABEÇALHO DA PÁGINA DE BLOG ────────────────────────────────────── */
.blog-hero {
  position: relative;
  background: var(--black-deep);
  color: var(--text-light);
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
}

.blog-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nude);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--terracotta-soft);
  margin-bottom: 24px;
}

.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--text-light);
}

.blog-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-light-muted);
}

/* ── 2. GRID DE ARTIGOS (LISTAGEM) ─────────────────────────────────────── */
.blog-content-area {
  background: var(--cream-bg);
  padding: 90px 0 120px;
  min-height: 60vh;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 36px;
}

.blog-card {
  background: var(--white-pure);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(42, 34, 31, 0.08);
}

.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-light);
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.blog-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(22, 18, 16, 0.82);
  backdrop-filter: blur(8px);
  color: var(--nude-soft);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-dark-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.blog-card-read-more {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.blog-card-read-more:hover {
  gap: 10px;
}

/* ── 3. PAGINAÇÃO DO BLOG ──────────────────────────────────────────────── */
.blog-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--white-pure);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--primary);
  color: var(--white-pure);
  border-color: var(--primary);
}

/* ── 4. ARTIGO INDIVIDUAL (SINGLE POST) ────────────────────────────────── */
.article-header {
  background: var(--black-deep);
  color: var(--text-light);
  padding: 160px 0 70px;
  border-bottom: 1px solid var(--border-dark);
}

.article-header-container {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.article-breadcrumbs {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light-muted);
  margin-bottom: 20px;
}

.article-breadcrumbs a {
  color: var(--nude);
  text-decoration: none;
}

.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.22;
  margin-bottom: 24px;
  color: var(--text-light);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: var(--nude-soft);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-pill);
  display: inline-flex;
}

.article-single-layout {
  background: var(--cream-bg);
  padding: 70px 0 110px;
}

.article-single-container {
  max-width: 860px;
  margin: 0 auto;
}

.article-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 50px;
  box-shadow: 0 18px 40px rgba(42, 34, 31, 0.08);
}

.article-body-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #38302C;
}

.article-body-content p {
  margin-bottom: 26px;
}

.article-body-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  line-height: 1.3;
  color: var(--text-dark);
  margin-top: 48px;
  margin-bottom: 20px;
}

.article-body-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--text-dark);
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-body-content ul,
.article-body-content ol {
  margin-left: 28px;
  margin-bottom: 28px;
}

.article-body-content li {
  margin-bottom: 10px;
}

.article-body-content blockquote {
  border-left: 3px solid var(--primary);
  background: var(--sand-light);
  padding: 24px 30px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 36px 0;
}

.article-author-card {
  margin-top: 60px;
  padding: 36px;
  background: var(--white-pure);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 28px;
}

.article-author-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.article-author-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.article-author-info span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.article-author-info p {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
  margin-bottom: 0;
}

.article-cta-box {
  margin-top: 50px;
  background: var(--black-deep);
  color: var(--text-light);
  padding: 48px;
  border-radius: var(--radius-md);
  text-align: center;
}

.article-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.article-cta-box p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-light-muted);
  max-width: 580px;
  margin: 0 auto 28px;
}

/* ── 5. SEÇÃO DE ÚLTIMOS ARTIGOS NA HOME ────────────────────────────────── */
.home-blog-section {
  background: var(--cream-bg);
  padding: 110px 0;
}

.home-blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.home-blog-header-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
}

.home-blog-header-left h2 span.thin {
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark-muted);
}
