/* ==========================================================================
   ALLTOUR BLOG STYLESHEET
   ========================================================================== */

/* Cores do Projeto (extraídas e harmonizadas do site da Alltour) */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #198754;
  --dark-color: #1a202c;
  --light-color: #f8fafc;
  --border-color: #e2e8f0;
  --text-muted: #64748b;
  --text-dark: #334155;
  --gold: #ffc107;
  --whatsapp-green: #25d366;
}

/* Layout Geral do Blog */
.blog-layout {
  padding-top: 120px; /* Compensa o menu fixo */
  background-color: var(--light-color);
  min-height: 100vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
}

/* --- BLOG INDEX (HOME DO BLOG) --- */

.blog-title-section {
  text-align: center;
  margin-bottom: 40px;
}

.blog-title-section h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.blog-title-section p {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Post em Destaque */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 48px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper {
  position: relative;
  min-height: 350px;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.featured-post-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-tag {
  align-self: flex-start;
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.featured-post-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 16px;
  line-height: 1.3;
}

.featured-post-content p {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.post-meta-info {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
}

/* Categorias e Busca */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.filter-pill:hover, .filter-pill.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.blog-search-box {
  display: flex;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px 6px 4px 16px;
  align-items: center;
  max-width: 320px;
  width: 100%;
}

.blog-search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  padding: 6px 0;
  font-family: 'Inter', sans-serif;
}

.blog-search-box button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: background-color 0.2s;
}

.blog-search-box button:hover {
  background-color: #0b5ed7;
}

/* Grid de Posts Secundários */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.post-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.post-card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

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

.post-card-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: var(--dark-color);
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-card-body p {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- POST DETAIL (PÁGINA INTERNA) --- */

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  line-height: 1.25;
  color: var(--dark-color);
  margin-top: 10px;
  margin-bottom: 20px;
}

.article-banner-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.article-banner-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

/* Estrutura 2 Colunas */
.article-two-columns {
  display: grid;
  grid-template-columns: 8fr 3.5fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

/* Corpo do Artigo */
.article-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Table of Contents (ToC) */
.table-of-contents {
  background-color: var(--light-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.table-of-contents h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.table-of-contents a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Inter', sans-serif;
}

.table-of-contents a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Imagens do Artigo */
.article-image-wrapper {
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Tabelas Responsivas */
.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
}

.comparison-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: var(--dark-color);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background-color: rgba(241, 245, 249, 0.5);
}

/* --- BLOCOS DE CONVERSÃO INLINE (CTAS) --- */
.inline-cta-box {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid rgba(13, 110, 253, 0.15);
  border-radius: 16px;
  padding: 30px;
  margin: 35px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.05);
}

.cta-prod-img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-prod-info {
  display: flex;
  flex-direction: column;
}

.cta-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  background-color: #0d6efd;
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  align-self: flex-start;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.cta-prod-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-weight: 700;
}

.cta-prod-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cta-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-price-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark-color);
}

.cta-price-tag span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cta-button-whatsapp {
  background-color: var(--whatsapp-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.cta-button-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* --- SIDEBAR LATERAL --- */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-widget h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--dark-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  position: relative;
}

.sidebar-widget h4::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Widget de Tour Recomendado */
.sidebar-tour-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-tour-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.sidebar-tour-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-color);
  line-height: 1.3;
}

.sidebar-tour-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 700;
}

.sidebar-btn-wa {
  background-color: var(--whatsapp-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s;
  margin-top: 6px;
}

.sidebar-btn-wa:hover {
  background-color: #20ba5a;
}

/* Widget Contatos Rápidos */
.quick-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-item-row svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-item-row:hover {
  color: var(--primary-color);
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 992px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  
  .featured-image-wrapper {
    min-height: 250px;
  }
  
  .article-two-columns {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .blog-layout {
    padding-top: 100px;
  }
  
  .blog-title-section h1 {
    font-size: 2rem;
  }
  
  .featured-post-content {
    padding: 24px;
  }
  
  .featured-post-content h2 {
    font-size: 1.5rem;
  }
  
  .blog-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .blog-search-box {
    max-width: 100%;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .inline-cta-box {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }
  
  .cta-prod-img {
    width: 100%;
    height: 180px;
  }
}

/* ==========================================================================
   BLOG LAYOUT CORRECTIONS (NAVBAR COLLISION & BREADCRUMBS)
   ========================================================================== */

/* Quando no blog, força o navbar a se comportar como fluxo relativo (empurra conteúdo) e ter fundo escuro */
.blog-layout-header-override #site-header {
  position: relative !important;
  background-color: var(--primary-dark) !important; /* Verde escuro institucional */
  padding: 15px 0 !important;
  top: auto !important;
  left: auto !important;
}

/* Garante que o menu hambúrguer seja visível no mobile */
.blog-layout-header-override .menu-toggle span {
  background-color: var(--text-light) !important;
}

/* Reduz o padding-top já que o header agora é relativo e não absolute */
.blog-layout-header-override .blog-layout {
  padding-top: 30px !important;
}

/* Ajustes finos nos breadcrumbs */
.breadcrumbs {
  margin-top: 5px;
  margin-bottom: 25px;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   NAVEGAÇÃO ENTRE POSTS (LEIA TAMBÉM)
   ========================================================================== */
.read-more-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.read-more-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.read-more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.read-more-card {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  background-color: var(--light-color);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
  align-items: center;
}

.read-more-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
}

.read-more-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.read-more-info {
  display: flex;
  flex-direction: column;
}

.read-more-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 750;
  margin-bottom: 4px;
}

.read-more-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--dark-color);
  margin: 0;
  font-weight: 700;
}

@media (max-width: 768px) {
  .read-more-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Previne colisão do seletor tag global 'header' do style.min.css com o cabeçalho do artigo */
.article-header {
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  z-index: auto !important;
  background: transparent !important;
  margin-bottom: 30px !important;
}


