/* ── SESSÃO BLOG GOYAÇO - ESTILOS VISUAIS PREMIUM ── */

:root {
  --blue: #0b2545;
  --blue-mid: #134074;
  --blue-light: #8da9c4;
  --off-white: #eef4f8;
  --white: #ffffff;
  --accent: #e8a020;
  --accent-light: #fbbf24;
  --gray: #64748b;
  --text: #1e293b;
}

/* ── HEADER DA PÁGINA BLOG ── */
.blog-hero {
  background: var(--blue);
  padding: 100px 48px 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
  z-index: -1;
}

.blog-hero-text {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.blog-hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.blog-hero-eyebrow::before,
.blog-hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.blog-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6.5vw, 84px);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.blog-hero h1 span {
  color: var(--accent);
}
.blog-hero p {
  font-size: 19px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── CONTROLES DO BLOG (FILTROS E BUSCA) ── */
.blog-controls-section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 48px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.06);
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.03);
  transition: background 0.3s;
}
.blog-controls-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Filtros por Categorias (Pills) */
.blog-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-category-btn {
  background: var(--off-white);
  border: 1px solid rgba(11, 37, 69, 0.05);
  color: var(--blue-mid);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-category-btn:hover {
  background: rgba(11, 37, 69, 0.06);
  border-color: rgba(11, 37, 69, 0.15);
  transform: translateY(-2px);
}
.blog-category-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #d4911a 100%);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 15px rgba(232, 160, 32, 0.3);
}

/* Input de Busca */
.blog-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.blog-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  background: var(--off-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-search-input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 160, 32, 0.15);
}
.blog-search-wrapper svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray);
  pointer-events: none;
  transition: color 0.3s;
}
.blog-search-input:focus + svg {
  color: var(--accent);
}

/* ── GRID E LISTAGEM DE POSTS ── */
.blog-main-section {
  padding: 64px 48px;
  background: var(--off-white);
  min-height: 550px;
}
.blog-main-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Post Destaque (Featured) */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.04);
  margin-bottom: 56px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  border: 1px solid rgba(11, 37, 69, 0.06);
}
.blog-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(11, 37, 69, 0.12);
  border-color: var(--accent);
}
.blog-featured-img {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  position: relative;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-featured-card:hover .blog-featured-img img {
  transform: scale(1.03);
}
.blog-featured-info {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}
.blog-post-badge {
  background: rgba(232, 160, 32, 0.08);
  color: var(--accent);
  border: 1px solid rgba(232, 160, 32, 0.2);
  padding: 4px 14px;
  border-radius: 30px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.blog-featured-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}
.blog-featured-info h2 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
.blog-featured-info h2 a:hover {
  color: var(--accent);
}
.blog-featured-info p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
}
.blog-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--blue-mid);
  font-weight: 600;
}
.blog-post-author svg {
  color: var(--accent);
}

/* Link para Ler Mais nos Cards */
.blog-read-more-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  transition: color 0.25s, gap 0.25s;
}
.blog-read-more-link:hover {
  color: var(--blue-mid);
  gap: 10px;
}

/* Grid Geral de Posts */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.blog-post-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.03);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
  border: 1px solid rgba(11, 37, 69, 0.06);
  display: flex;
  flex-direction: column;
}
.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 37, 69, 0.08);
  border-color: var(--accent);
}
.blog-post-img {
  height: 230px;
  overflow: hidden;
  position: relative;
}
.blog-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-post-card:hover .blog-post-img img {
  transform: scale(1.05);
}
.blog-post-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-post-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
  margin-top: 0;
}
.blog-post-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-post-info h3 a:hover {
  color: var(--accent);
}
.blog-post-info p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border-radius: 16px;
  border: 2px dashed #cbd5e1;
  max-width: 600px;
  margin: 40px auto;
}
.blog-empty-state h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 12px;
}
.blog-empty-state p {
  color: var(--gray);
  font-size: 16px;
}

/* ── LAYOUT DO POST INDIVIDUAL (DETALHE DO ARTIGO) ── */
.post-layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 48px;
}
.post-main-content {
  background: var(--white);
  border-radius: 16px;
  padding: 56px;
  box-shadow: 0 4px 30px rgba(11, 37, 69, 0.02);
  border: 1px solid rgba(11, 37, 69, 0.06);
}
.post-header {
  margin-bottom: 36px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 28px;
}
.post-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--blue);
  margin: 18px 0;
  letter-spacing: -0.01em;
}
.post-banner-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 12px 36px rgba(11, 37, 69, 0.06);
}

/* Conteúdo do Artigo */
.post-body {
  font-family: 'Barlow', sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
}
.post-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  color: var(--blue);
  margin-top: 48px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}
.post-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  color: var(--blue-mid);
  margin-top: 36px;
  margin-bottom: 14px;
}
.post-body p {
  margin-bottom: 28px;
}
.post-body ul, .post-body ol {
  margin-bottom: 28px;
  padding-left: 24px;
}
.post-body li {
  margin-bottom: 10px;
}
.post-body blockquote {
  background: var(--off-white);
  border-left: 4px solid var(--blue-mid);
  padding: 24px 32px;
  border-radius: 0 12px 12px 0;
  margin: 40px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--blue-mid);
  line-height: 1.6;
}

/* Caixa do Autor do Post */
.post-author-box {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--off-white);
  border-radius: 12px;
  padding: 32px;
  margin-top: 60px;
  border: 1px solid rgba(11, 37, 69, 0.08);
}
.post-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  font-family: 'Bebas Neue', sans-serif;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.15);
  border: 2px solid var(--accent);
}
.post-author-info h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 6px;
  margin-top: 0;
}
.post-author-info p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

/* Sidebar do Post (Widgets) */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.post-widget {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 30px rgba(11, 37, 69, 0.02);
  border: 1px solid rgba(11, 37, 69, 0.06);
}
.post-widget h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-top: 0;
}
.widget-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.widget-recent-item {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s;
}
.widget-recent-item:hover {
  transform: translateX(4px);
}
.widget-recent-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.05);
}
.widget-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-recent-info h5 {
  font-family: 'Barlow', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--blue-mid);
  margin: 0 0 6px;
  transition: color 0.2s;
}
.widget-recent-item:hover .widget-recent-info h5 {
  color: var(--accent);
}
.widget-recent-info span {
  font-size: 12px;
  color: var(--gray);
}

/* Reading Scroll Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Custom Scrollbar for Blog */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-light);
  border-radius: 6px;
  border: 2px solid var(--off-white);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-mid);
}

/* Premium Table Styling inside Blog Posts */
.post-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 36px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.04);
  border: 1px solid rgba(11, 37, 69, 0.08);
}
.post-body th {
  background: var(--blue);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  padding: 16px 20px;
  border-bottom: 2px solid var(--accent);
  text-align: left;
}
.post-body td {
  padding: 16px 20px;
  font-size: 15px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.05);
  color: var(--text);
  background: var(--white);
  transition: background 0.2s;
}
.post-body tr:last-child td {
  border-bottom: none;
}
.post-body tr:nth-child(even) td {
  background: rgba(238, 244, 248, 0.5);
}
.post-body tr:hover td {
  background: rgba(232, 160, 32, 0.04);
}

/* Sidebar Categories Widget */
.widget-categories-goyaco {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 30px rgba(11, 37, 69, 0.02);
  border: 1px solid rgba(11, 37, 69, 0.06);
}
.widget-categories-goyaco h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-top: 0;
}
.widget-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-categories-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--off-white);
  color: var(--blue-mid);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(11, 37, 69, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.widget-categories-list li a::after {
  content: '→';
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.25s;
}
.widget-categories-list li a:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.1);
}
.widget-categories-list li a:hover::after {
  transform: translateX(4px);
  color: var(--accent-light);
}

/* ── RESPONSIVIDADE DO BLOG ── */
@media (max-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-featured-img {
    min-height: 280px;
  }
  .post-layout-container {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 70px 20px 50px;
  }
  .blog-controls-section {
    padding: 16px 20px;
    position: static;
  }
  .blog-controls-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .blog-search-wrapper {
    max-width: 100%;
  }
  .blog-main-section {
    padding: 40px 20px;
  }
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-featured-info {
    padding: 32px 24px;
  }
  .blog-featured-info h2 {
    font-size: 30px;
  }
  .post-layout-container {
    padding: 32px 16px;
  }
  .post-main-content {
    padding: 32px 20px;
  }
  .post-author-box {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}
