/* ==============================================================================
   AS BALLOON - BLOG SYSTEM STYLESHEET
   Harmonizado com o Design System Oficial da AS Balloon
   ============================================================================== */

/* HERO SECTION DO BLOG */
.blog-hero {
  background: linear-gradient(135deg, #031336 0%, #072C75 50%, #0B3E9E 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 133, 51, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 133, 51, 0.15);
  color: #FF8533;
  border: 1px solid rgba(255, 133, 51, 0.35);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.blog-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 14px;
}

.blog-hero-subtitle {
  font-size: 16px;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* BARRA DE PESQUISA DO BLOG */
.blog-search-box {
  background: #ffffff;
  border-radius: 50px;
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-width: 580px;
  margin: 0 auto 24px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.blog-search-box:focus-within {
  border-color: #FF8533;
  box-shadow: 0 12px 35px rgba(255, 133, 51, 0.3);
}

.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: #1E293B;
  background: transparent;
}

.blog-search-btn {
  background: linear-gradient(135deg, #FF8533 0%, #E66E1C 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.blog-search-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 133, 51, 0.4);
}

/* CATEGORIAS PILLS */
.blog-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.cat-pill:hover, .cat-pill.active {
  background: #FF8533;
  border-color: #FF8533;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 133, 51, 0.35);
}

/* ==============================================================================
   BLOG CONTAINER & LAYOUT
   ============================================================================== */
.blog-main-section {
  padding: 60px 0 80px;
  background-color: #F8FAFC;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

/* ARTIGO EM DESTAQUE (FEATURED POST CARD) */
.featured-post-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 44, 117, 0.08);
  border: 1px solid #E8EDF5;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(7, 44, 117, 0.14);
}

.featured-post-thumb {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.featured-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.featured-post-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FF8533;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748B;
  margin-bottom: 12px;
}

.featured-post-title {
  font-size: 24px;
  font-weight: 800;
  color: #072C75;
  line-height: 1.3;
  margin-bottom: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.featured-post-title:hover {
  color: #FF8533;
}

.featured-post-excerpt {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* GRID DE CARDS NORMAIS */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E8EDF5;
  box-shadow: 0 6px 20px rgba(7, 44, 117, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(7, 44, 117, 0.12);
  border-color: rgba(255, 133, 51, 0.3);
}

.blog-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.blog-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #ffffff;
  color: #072C75;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #072C75;
  line-height: 1.35;
  margin-bottom: 10px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.blog-card-title:hover {
  color: #FF8533;
}

.blog-card-desc {
  font-size: 13.5px;
  color: #556885;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-read-more-btn {
  font-size: 13px;
  font-weight: 700;
  color: #FF8533;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.blog-read-more-btn:hover {
  gap: 10px;
  color: #E66E1C;
}

/* ==============================================================================
   SIDEBAR WIDGETS
   ============================================================================== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #E8EDF5;
  box-shadow: 0 4px 15px rgba(7, 44, 117, 0.04);
}

.widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #072C75;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: #FF8533;
  border-radius: 3px;
}

/* WIDGET CATEGORIAS */
.widget-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
}

.widget-cat-item a:hover {
  background: #FFF5EE;
  color: #FF8533;
  transform: translateX(4px);
}

.widget-cat-count {
  background: #F1F5F9;
  color: #64748B;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
}

/* WIDGET ARTIGOS RECENTES */
.widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.widget-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.widget-post-title {
  font-size: 13px;
  font-weight: 700;
  color: #072C75;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.widget-post-item:hover .widget-post-title {
  color: #FF8533;
}

.widget-post-date {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 4px;
}

/* WIDGET CTA WHATSAPP */
.widget-cta-box {
  background: linear-gradient(135deg, #072C75 0%, #031336 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.widget-cta-box::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 133, 51, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.widget-cta-btn {
  background: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.widget-cta-btn:hover {
  transform: translateY(-2px);
  background: #20BA5A;
}

/* ==============================================================================
   PÁGINA DE ARTIGO INDIVIDUAL (POST.HTML)
   ============================================================================== */
.post-header-section {
  background: #F8FAFC;
  padding: 40px 0 24px;
  border-bottom: 1px solid #E8EDF5;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748B;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.post-breadcrumb a {
  color: #072C75;
  text-decoration: none;
  font-weight: 600;
}

.post-breadcrumb a:hover {
  color: #FF8533;
}

.post-title-h1 {
  font-size: 36px;
  font-weight: 800;
  color: #072C75;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.post-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #E2E8F0;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FF8533;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.article-body-wrapper {
  padding: 40px 0 60px;
}

.post-featured-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(7, 44, 117, 0.1);
  margin-bottom: 36px;
}

.article-content {
  font-size: 16.5px;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #072C75;
  margin: 36px 0 16px;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0B3E9E;
  margin: 28px 0 12px;
}

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

.article-content ul, .article-content ol {
  margin: 16px 0 24px 28px;
}

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

.article-content blockquote {
  border-left: 4px solid #FF8533;
  background: #FFF5EE;
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  font-size: 17.5px;
  color: #7C2D12;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* COMPARTILHAMENTO SOCIAL */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  margin: 32px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.copy { background: #475569; }

/* POSTS RELACIONADOS */
.related-posts-section {
  padding: 60px 0;
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}

/* RESPONSIVIDADE */
@media (max-width: 991px) {
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-thumb {
    min-height: 240px;
  }
  .blog-hero-title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  .post-title-h1 {
    font-size: 26px;
  }
  .blog-hero-title {
    font-size: 24px;
  }
  .blog-search-box {
    padding: 4px 6px 4px 14px;
  }
  .blog-search-btn span {
    display: none;
  }
}
