:root {
  --primary-blue: #0a2463;
  --secondary-blue: #1e40af;
  --accent-blue: #3b82f6;
  --light-blue: #dbeafe;
  --warm-gray: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--warm-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER ---- */
.header-ad {
  background: var(--primary-blue);
  padding: 0.4rem 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
.header-ad-content {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.header-ad-content a { color: var(--accent-blue); font-weight: 600; }

header {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: 1.2rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-content {
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.8rem;
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
}
.logo i { color: var(--accent-blue); }

.nav-menu { display: flex; gap: 1.2rem; align-items: center; }
.nav-link {
  color: rgba(255,255,255,0.85); font-weight: 500; padding: 0.4rem 0;
  position: relative; transition: var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent-blue); transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.4rem; cursor: pointer;
}

/* Destaque Publicacao Legal no header */
.legal-highlight {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  margin-left: auto;
}
.legal-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.legal-highlight i { font-size: 0.95rem; }
.header-content { gap: 1rem; }

/* ---- HERO / GRID ---- */
.hero { padding: 2rem 0; }
.hero-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 2rem; align-items: start;
}
/* CRITICO: sem min-width:0, itens do grid crescem com o conteudo
   (ex: carrossel do Glide com width:200%) e quebram o layout. */
.hero-grid > * { min-width: 0; }
.hero-main { min-width: 0; overflow: hidden; }

.main-article {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.main-article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.article-image-link { display: block; }
.article-image {
  height: 340px; width: 100%;
  background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
  position: relative; overflow: hidden;
}
.article-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #0b1c3a; }
.article-image.large { height: 400px; }

.image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
  color: rgba(255,255,255,0.6); font-size: 3rem;
}
.image-placeholder.small { height: 180px; font-size: 2rem; }

.article-body, .card-body, .featured-body { padding: 1.5rem; }

.category-badge {
  display: inline-block;
  background: var(--light-blue); color: var(--primary-blue);
  padding: 0.3rem 0.9rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; margin-bottom: 0.6rem;
}
.category-badge.small { font-size: 0.75rem; padding: 0.2rem 0.7rem; }

.article-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem; line-height: 1.3; margin-bottom: 0.8rem;
}
.article-title a { color: var(--text-dark); transition: var(--transition); }
.article-title a:hover { color: var(--accent-blue); }

.article-excerpt { color: var(--text-light); margin-bottom: 1.2rem; font-size: 1rem; }

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-blue); color: var(--white);
  padding: 0.7rem 1.4rem; border-radius: 30px;
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
.read-more:hover { background: var(--secondary-blue); gap: 12px; }

/* Secondary cards */
.secondary-articles {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem; margin-top: 1.5rem;
}
.secondary-card {
  background: var(--white); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.secondary-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.secondary-card .card-image { display: block; height: 160px; overflow: hidden; background: #f1f5f9; }
.secondary-card .card-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.secondary-card .card-body h3 { font-family: 'Poppins', sans-serif; font-size: 0.95rem; margin-bottom: 0.4rem; }
.secondary-card .card-body h3 a { color: var(--text-dark); }
.secondary-card .card-body h3 a:hover { color: var(--accent-blue); }
.meta-date { font-size: 0.8rem; color: var(--text-light); }

/* ---- SIDEBAR ---- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-block {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}

.section-title {
  font-family: 'Poppins', sans-serif; font-size: 1.2rem;
  color: var(--primary-blue); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--light-blue);
}

.news-item {
  display: flex; gap: 0.8rem; padding: 0.8rem 0;
  border-bottom: 1px solid #f1f5f9; transition: var(--transition);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 4px; }

.news-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--light-blue); border-radius: 8px;
  min-width: 52px; height: 52px; padding: 0.3rem;
}
.date-day { font-weight: 700; font-size: 1.1rem; color: var(--primary-blue); }
.date-month { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; }

.news-content h3 {
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  margin-bottom: 0.3rem; color: var(--text-dark); line-height: 1.3;
}
.news-content p { color: var(--text-light); font-size: 0.8rem; }
.news-link {
  color: var(--accent-blue); font-weight: 600; font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 4px; margin-top: 0.3rem;
}

/* ---- ADS ---- */
.ad-card {
  text-align: center; padding: 0.5rem;
}
.ad-label {
  display: inline-block; background: var(--light-blue); color: var(--primary-blue);
  padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600;
  margin-bottom: 0.8rem;
}
.ad-content {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: var(--radius-sm); padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 180px; margin-bottom: 0.8rem;
}
.ad-content i { font-size: 2.5rem; color: var(--accent-blue); margin-bottom: 0.8rem; }
.ad-content h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; margin-bottom: 0.3rem; }
.ad-content p { font-size: 0.85rem; color: var(--text-light); }
.ad-content img { width: 100%; border-radius: var(--radius-sm); }
.ad-button {
  display: inline-block; background: var(--accent-blue); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: 30px; font-weight: 600;
  font-size: 0.85rem; transition: var(--transition);
}
.ad-button:hover { background: var(--secondary-blue); }

/* ---- FEATURED ---- */
.featured-section { padding: 2.5rem 0; background: var(--white); }
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.featured-card {
  background: var(--warm-gray); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.featured-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.featured-image { display: block; height: 200px; overflow: hidden; background: #f1f5f9; }
.featured-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.featured-body h3 { font-family: 'Poppins', sans-serif; font-size: 1rem; margin-bottom: 0.4rem; }
.featured-body h3 a { color: var(--text-dark); }
.featured-body h3 a:hover { color: var(--accent-blue); }
.featured-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ---- ARTICLE PAGE ---- */
.article-page { padding: 2rem 0; }
.article-full {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.article-header { padding: 1.5rem 2rem 0; }
.article-categories { margin-bottom: 0.8rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  color: var(--text-light); font-size: 0.9rem; margin-top: 0.8rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-content-body {
  padding: 1.5rem 2rem 2rem;
  font-size: 1.05rem; line-height: 1.8;
}
.article-content-body img { border-radius: var(--radius-sm); margin: 1rem 0; }
.article-content-body p { margin-bottom: 1rem; }
.article-content-body h2, .article-content-body h3 {
  font-family: 'Poppins', sans-serif; margin: 1.5rem 0 0.8rem;
}
.article-content-body ul, .article-content-body ol { margin: 0 0 1rem 1.4rem; }
.article-content-body li { margin-bottom: 0.4rem; }
.article-content-body a { color: var(--accent-blue); text-decoration: underline; }
.article-content-body a:hover { color: var(--secondary-blue); }
.article-content-body iframe {
  max-width: 100%; width: 100%; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: var(--radius-sm); margin: 1rem 0;
}
.article-content-body .ql-align-center { text-align: center; }
.article-content-body .ql-align-right { text-align: right; }
.article-content-body .ql-align-justify { text-align: justify; }
.article-content-body .ql-indent-1 { padding-left: 3em; }
.article-content-body .ql-indent-2 { padding-left: 6em; }
.article-content-body .ql-indent-3 { padding-left: 9em; }
.article-content-body .ql-indent-4 { padding-left: 12em; }
.article-content-body blockquote {
  border-left: 4px solid var(--accent-blue); padding: 1rem 1.5rem;
  background: var(--light-blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0; font-style: italic;
}
.article-tags {
  padding: 0 2rem 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.tag {
  background: var(--warm-gray); color: var(--text-light);
  padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem;
}
.article-nav { padding: 0 2rem 2rem; }
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-light); font-weight: 500; padding: 0.6rem 1rem;
  border-radius: 8px; transition: var(--transition);
}
.btn-back:hover { color: var(--accent-blue); background: var(--light-blue); }

/* ---- CATEGORY / SEARCH PAGE ---- */
.category-page, .search-page { padding: 2rem 0; }
.page-header-public {
  margin-bottom: 2rem;
}
.page-header-public h1 {
  font-family: 'Poppins', sans-serif; font-size: 1.8rem; color: var(--primary-blue);
}
.category-description { color: var(--text-light); margin-top: 0.3rem; }

.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.article-card {
  background: var(--white); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card .card-image { display: block; height: 200px; overflow: hidden; background: #f1f5f9; }
.article-card .card-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.article-card .card-body { padding: 1rem; }
.article-card .card-body h3 { font-family: 'Poppins', sans-serif; font-size: 0.95rem; margin: 0.4rem 0; }
.article-card .card-body h3 a { color: var(--text-dark); }
.article-card .card-body h3 a:hover { color: var(--accent-blue); }
.article-card .card-body p { color: var(--text-light); font-size: 0.85rem; }

.content-main { min-width: 0; }

/* Search */
.search-form {
  display: flex; gap: 0; margin-top: 1rem; max-width: 500px;
}
.search-input {
  flex: 1; padding: 0.8rem 1rem; border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 1rem; font-family: 'Inter', sans-serif;
}
.search-input:focus { outline: none; border-color: var(--accent-blue); }
.search-btn {
  padding: 0.8rem 1.2rem; background: var(--primary-blue); color: var(--white);
  border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer; font-size: 1rem;
}
.search-results-info { margin-bottom: 1.5rem; color: var(--text-light); }
.no-results { color: var(--text-light); padding: 2rem 0; text-align: center; }

/* ---- PAGINATION ---- */
.pagination {
  display: flex; justify-content: center; gap: 0.3rem;
  margin-top: 2rem; flex-wrap: wrap;
}
.page-link {
  padding: 0.5rem 0.9rem; border-radius: 6px; font-size: 0.9rem;
  color: var(--text-dark); background: var(--white); box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.page-link:hover { background: var(--light-blue); color: var(--primary-blue); }
.page-link.active { background: var(--primary-blue); color: var(--white); }
.page-link.dots, .page-link.ellipsis { box-shadow: none; background: none; cursor: default; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }
.pagination-info {
  text-align: center; margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-light, #666);
}

/* ---- ERROR PAGE ---- */
.error-page {
  min-height: 50vh; display: flex; align-items: center; justify-content: center;
}
.error-content { text-align: center; }
.error-content h1 { font-size: 6rem; color: var(--accent-blue); font-family: 'Poppins', sans-serif; }
.error-content h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.error-content p { color: var(--text-light); margin-bottom: 1.5rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--primary-blue); color: var(--white);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-content {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}
.footer-section h3 {
  font-family: 'Poppins', sans-serif; font-size: 1.1rem;
  margin-bottom: 1rem; color: var(--light-blue);
}
.footer-section p { color: #cbd5e1; font-size: 0.9rem; }
.footer-brand a { color: var(--white); text-decoration: none; }
.footer-logo { max-height: 48px; margin-bottom: 0.75rem; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.75rem; }
.footer-social a {
  color: #cbd5e1; font-size: 1.2rem; transition: var(--transition);
}
.footer-social a:hover { color: var(--white); transform: scale(1.15); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #cbd5e1; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.copyright {
  text-align: center; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8; font-size: 0.85rem;
}

/* ---- LOGO IMAGE ---- */
.logo-img { max-height: 48px; width: auto; }

/* ---- SHARE BUTTONS ---- */
.share-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding-top: 1rem; flex-wrap: wrap;
}
.share-label { font-weight: 500; color: var(--text-light); font-size: 0.9rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.45rem 0.9rem; border-radius: 25px;
  font-size: 0.85rem; font-weight: 500; border: none;
  cursor: pointer; text-decoration: none; transition: var(--transition);
  color: var(--white);
}
.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { background: #1da851; color: var(--white); }
.share-facebook { background: #1877F2; }
.share-facebook:hover { background: #0d65d9; color: var(--white); }
.share-twitter { background: #000; }
.share-twitter:hover { background: #333; color: var(--white); }
.share-copy { background: #6b7280; color: var(--white); }
.share-copy:hover { background: #4b5563; }

.share-btn-large {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0.8rem 1.6rem; border-radius: 30px;
  font-size: 1rem; font-weight: 600; border: none;
  cursor: pointer; text-decoration: none; transition: var(--transition);
  color: var(--white); background: #25D366;
}
.share-btn-large:hover { background: #1da851; color: var(--white); }

.article-bottom-share {
  padding: 1rem 2rem 1.5rem;
  display: flex; justify-content: center;
  border-top: 1px solid #f1f5f9;
}

.share-btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 0.85rem; text-decoration: none; transition: var(--transition);
  color: var(--white); background: #25D366;
}
.share-btn-mini:hover { background: #1da851; color: var(--white); transform: scale(1.1); }

.article-share-inline {
  margin-top: 0.6rem; display: flex; gap: 0.4rem;
}

/* ---- GRID SECTIONS ---- */
.featured-category-inline { margin-top: 1.5rem; }
.featured-category-inline .section-header { margin-bottom: 0.8rem; }
.featured-category-hero .article-image { height: 300px; }
.featured-category-hero .article-title { font-size: 1.4rem; }

.grid-section { padding: 2.5rem 0; }
.grid-section-alt { background: var(--white); }
.latest-section { padding: 2.5rem 0; }

.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.2rem;
}
.section-link {
  color: var(--accent-blue); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.section-link:hover { gap: 8px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.grid-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.grid-section-alt .grid-card { background: var(--warm-gray); }
.grid-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.grid-card-image { display: block; height: 200px; overflow: hidden; background: #f1f5f9; }
.grid-card-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.grid-card-body { padding: 1rem; }
.grid-card-body h3 {
  font-family: 'Poppins', sans-serif; font-size: 0.95rem;
  margin: 0.4rem 0 0.3rem; line-height: 1.35;
}
.grid-card-body h3 a { color: var(--text-dark); }
.grid-card-body h3 a:hover { color: var(--accent-blue); }
.grid-card-excerpt { color: var(--text-light); font-size: 0.85rem; margin-bottom: 0.5rem; }
.grid-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.5rem;
}

/* ---- COLUNISTAS / COTACOES / CLASSIFICADOS ---- */
.columnists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.columnist-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.columnist-avatar-wrap { display: inline-block; margin-bottom: 0.75rem; }
.columnist-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent-blue);
}
.columnist-avatar.placeholder {
  width: 96px; height: 96px; border-radius: 50%;
  background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #94a3b8;
}
.columnist-bio { color: var(--text-light); font-size: 0.9rem; text-align: left; }
.columnist-header { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.columnist-header-avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
}
.columnist-header-avatar.placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #94a3b8;
}

.quotes-table-wrap { overflow-x: auto; }
.quotes-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quotes-table th, .quotes-table td {
  padding: 0.85rem 1rem; text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.quotes-table th { background: var(--primary-blue); color: var(--white); font-weight: 600; }
.quote-symbol { font-size: 0.8rem; color: var(--text-light); }

.classified-contact {
  padding: 1rem 2rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.classified-contact p { margin: 0.4rem 0; }

.covers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.cover-card { text-align: center; }
.cover-image-link img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.cover-image-link img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.cover-info { padding: 0.5rem 0; }
.cover-info h3 { font-size: 0.95rem; margin: 0.3rem 0; }
.cover-info a { color: var(--text-dark); }
.cover-info a:hover { color: var(--primary-blue); }

.no-results {
  padding: 2rem; text-align: center; color: var(--text-light);
  background: #f8fafc; border-radius: var(--radius); font-size: 1rem;
}

/* ---- SKELETON LOADING ---- */
@keyframes skeletonPulse {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
.skeleton-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: white; box-shadow: var(--shadow-sm);
}
.skeleton-card-image {
  width: 100%; height: 180px;
}
.skeleton-card-body { padding: 1rem; }
.skeleton-card-badge { width: 60px; height: 16px; margin-bottom: 0.6rem; }
.skeleton-card-title { width: 100%; height: 18px; margin-bottom: 0.5rem; }
.skeleton-card-title-short { width: 70%; height: 18px; margin-bottom: 0.6rem; }
.skeleton-card-text { width: 85%; height: 14px; margin-bottom: 0.4rem; }
.skeleton-card-footer {
  display: flex; justify-content: space-between;
  margin-top: 0.6rem;
}
.skeleton-card-date { width: 70px; height: 14px; }
.skeleton-card-share { width: 28px; height: 28px; border-radius: 50%; }
.skeleton-section-title { width: 180px; height: 24px; margin-bottom: 1.2rem; }
.skeleton-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skeleton-fade-in {
  animation: skeletonFadeIn 0.3s ease-out;
}
@keyframes skeletonFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0;
    width: 100%; background: var(--primary-blue);
    flex-direction: column; padding: 1.5rem; box-shadow: var(--shadow-md);
  }
  .nav-menu.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .legal-highlight {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    margin-left: 0;
  }
  .header-content { gap: 0.6rem; flex-wrap: nowrap; }
  .article-image { height: 240px; }
  .article-title { font-size: 1.4rem; }
  .secondary-articles { grid-template-columns: 1fr; }
  .article-header, .article-content-body, .article-tags, .article-nav { padding-left: 1.2rem; padding-right: 1.2rem; }
  .article-bottom-share { padding-left: 1.2rem; padding-right: 1.2rem; }
  .share-bar { padding-left: 0; }
  .logo-img { max-height: 36px; }
}
@media (max-width: 576px) {
  .featured-grid, .articles-grid, .grid-cards { grid-template-columns: 1fr; }
  .hero, .featured-section, .grid-section, .latest-section { padding: 1.5rem 0; }
  .legal-highlight { padding: 0.4rem 0.7rem; font-size: 0.72rem; }
  .legal-highlight .legal-highlight-text { display: none; }
  .legal-highlight::after { content: 'Legal'; font-weight: 700; }
  .logo { font-size: 1.3rem; }
}

/* ---- FEATURED CAROUSEL ---- */
.featured-carousel { position: relative; overflow: hidden; border-radius: var(--radius-md, 12px); }
.featured-carousel .glide__slides { margin: 0; padding: 0; list-style: none; }
.featured-carousel .carousel-slide { height: 100%; }

/* Esconde controles ate o Glide inicializar (ele adiciona .glide--slider/.glide--carousel ao montar).
   Isso evita o "flash" de setinhas/bullets sem estilo ativo. */
.featured-carousel:not(.glide--slider):not(.glide--carousel) .glide__arrows,
.featured-carousel:not(.glide--slider):not(.glide--carousel) .glide__bullets { display: none; }
.featured-carousel .glide__arrows {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; justify-content: space-between; align-items: center; padding: 0 12px;
}
.featured-carousel .glide__arrow {
  pointer-events: auto; background: rgba(0,0,0,0.45); color: #fff;
  border: 0; width: 42px; height: 42px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.featured-carousel .glide__arrow:hover { background: rgba(0,0,0,0.7); }
.featured-carousel .glide__bullets {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; gap: 8px; justify-content: center; z-index: 2;
}
.featured-carousel .glide__bullet {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.55); border: 0; cursor: pointer; padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.featured-carousel .glide__bullet:hover { background: rgba(255,255,255,0.85); }
.featured-carousel .glide__bullet--active {
  background: #fff; transform: scale(1.15);
}
@media (max-width: 576px) {
  .featured-carousel .glide__arrow { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ---- AREA DE ASSINANTES ---- */
.nav-user-greeting {
  color: var(--text-light, #64748b);
  font-size: 0.9rem;
  padding: 0 0.5rem;
  white-space: nowrap;
}
.nav-user-greeting strong { color: var(--primary-blue, #0a2463); }
.nav-subscriber-link {
  background: var(--primary-blue, #0a2463);
  color: #fff !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 999px;
}
.nav-subscriber-link:hover { background: var(--secondary-blue, #1e40af); }

.subscriber-login-section {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 3rem 1rem;
}
.subscriber-login-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(10,36,99,0.08);
  width: 100%; max-width: 420px; padding: 2.2rem 2rem;
}
.subscriber-login-header {
  text-align: center; margin-bottom: 1.5rem;
}
.subscriber-login-header i {
  font-size: 2.5rem; color: var(--primary-blue, #0a2463); margin-bottom: 0.6rem;
}
.subscriber-login-header h1 {
  font-family: 'Poppins', sans-serif; font-size: 1.45rem; margin-bottom: 0.35rem;
  color: var(--primary-blue, #0a2463);
}
.subscriber-login-header p {
  color: var(--text-light, #64748b); font-size: 0.9rem;
}
.subscriber-login-form label {
  display: block; margin-bottom: 0.9rem;
}
.subscriber-login-form label span {
  display: block; font-size: 0.85rem; color: var(--text-dark, #1e293b);
  margin-bottom: 0.3rem; font-weight: 500;
}
.subscriber-login-form input {
  width: 100%; padding: 0.65rem 0.9rem; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: 0.95rem; font-family: inherit;
  background: #f8fafc;
}
.subscriber-login-form input:focus {
  outline: none; border-color: var(--accent-blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15); background: #fff;
}
.btn-block {
  display: block; width: 100%; text-align: center;
  margin-top: 0.6rem; padding: 0.7rem;
}
.subscriber-login-error {
  background: #fef2f2; color: #991b1b;
  border: 1px solid #fecaca; border-radius: 8px;
  padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-size: 0.9rem;
}
.subscriber-login-note {
  text-align: center; font-size: 0.8rem; color: var(--text-light, #64748b);
  margin-top: 1.25rem;
}

.subscriber-area { padding: 2.5rem 0 4rem; }
.subscriber-area-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.subscriber-area-header h1 {
  font-family: 'Poppins', sans-serif; font-size: 1.7rem;
  color: var(--primary-blue, #0a2463); margin-bottom: 0.25rem;
}
.subscriber-welcome { color: var(--text-light, #64748b); font-size: 0.95rem; }
.subscriber-categories {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 0.7rem 1rem; margin-bottom: 1.5rem;
}
.subscriber-categories strong {
  font-size: 0.85rem; color: var(--text-light, #64748b); margin-right: 0.3rem;
}
.subscriber-empty {
  text-align: center; padding: 3rem 1rem;
  background: #f8fafc; border-radius: 12px; color: var(--text-light, #64748b);
}
.subscriber-empty i { font-size: 2.5rem; margin-bottom: 0.7rem; color: #cbd5e1; }

.btn-secondary {
  background: #e2e8f0; color: var(--text-dark, #1e293b);
  padding: 0.55rem 1rem; border-radius: 8px;
  border: 0; font-weight: 500; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem;
}
.btn-secondary:hover { background: #cbd5e1; }
