/* ==========================================================================
   Design System - Portal de Notícias (Informativo Cidade - Rio das Ostras)
   Totalmente Otimizado, Responsivo e com Campos Ampliados
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --primary-color: #c8102e;
  --primary-hover: #a00c23;
  --secondary-color: #0f172a;
  --accent-color: #f59e0b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* ==========================================================================
   1. Top Bar com Ícones de Redes Sociais
   ========================================================================== */
.top-bar {
  background-color: var(--secondary-color);
  color: #cbd5e1;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.top-bar-left i {
  color: var(--primary-color);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 14px;
}

.top-bar-social a {
  color: #cbd5e1;
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar-social a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.top-bar-social a.social-fb:hover { color: #1877f2; }
.top-bar-social a.social-ig:hover { color: #e4405f; }
.top-bar-social a.social-yt:hover { color: #ff0000; }
.top-bar-social a.social-wa:hover { color: #25d366; }

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-right a {
  cursor: pointer;
}

.top-bar-right a:hover {
  color: #ffffff;
}

.btn-admin-access {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.btn-admin-access:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   2. Main Header & Banners
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  max-height: 125px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.site-info h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.site-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.weather-widget {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.weather-city {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.weather-temp {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.weather-desc {
  font-size: 11px;
  color: #cbd5e1;
  text-transform: capitalize;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 6px 10px 6px 16px;
  width: 260px;
  max-width: 100%;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
}

.search-btn {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

.banner-container-header {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.banner-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
}

.banner-1110x150 {
  width: 100%;
  max-width: 1110px;
  min-height: 100px;
  margin: 0 auto;
  background: #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
}

.banner-1110x150 img {
  width: 100%;
  max-height: 150px;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   3. Sticky Navigation Menu
   ========================================================================== */
.main-nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.2);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-item a {
  display: block;
  padding: 14px 18px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
}

.nav-item a:hover,
.nav-item.active a {
  background-color: rgba(0, 0, 0, 0.15);
  border-bottom-color: #ffffff;
}

/* ==========================================================================
   4. Breaking News Ticker
   ========================================================================== */
.ticker-container {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.ticker-title {
  background-color: var(--secondary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ticker-title i {
  color: var(--primary-color);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-items {
  display: inline-flex;
  gap: 24px;
  animation: marquee 25s linear infinite;
}

.ticker-items:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.ticker-category {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   5. Hero News Grid
   ========================================================================== */
.hero-section {
  padding: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
  background-color: var(--secondary-color);
}

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

.hero-main:hover img {
  transform: scale(1.03);
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.95) 90%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.badge-cat {
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-main-excerpt {
  font-size: 13px;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
  display: flex;
  gap: 16px;
}

.hero-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-secondary {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-secondary-img {
  width: 110px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-secondary-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-secondary-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-secondary-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary-color);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ==========================================================================
   6. Seção de Vídeos do YouTube (TV Cidade)
   ========================================================================== */
.videos-section {
  background: var(--secondary-color);
  color: #ffffff;
  padding: 36px 0;
  margin: 30px 0;
  border-radius: 12px;
}

.videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.videos-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.videos-title i {
  color: #ff0000;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.video-card {
  background: #1e293b;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #334155;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.video-info {
  padding: 14px;
}

.video-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

/* ==========================================================================
   7. Main Content Area & Sidebar
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 28px;
  padding-bottom: 40px;
}

.section-header {
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.news-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-news-horizontal {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-news-horizontal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-news-img {
  width: 100%;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
}

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

.card-news-horizontal:hover .card-news-img img {
  transform: scale(1.05);
}

.card-news-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-news-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary-color);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-news-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-news-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-container-content {
  margin: 24px 0;
  text-align: center;
  width: 100%;
}

.banner-730x200 {
  width: 100%;
  max-width: 730px;
  min-height: 120px;
  margin: 0 auto;
  background: #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
}

.banner-730x200 img {
  width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget-mais-lidas {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.mais-lidas-list {
  display: flex;
  flex-direction: column;
}

.mais-lidas-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.mais-lidas-item:last-child {
  border-bottom: none;
}

.mais-lidas-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  min-width: 24px;
}

.mais-lidas-info h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mais-lidas-info h4:hover {
  color: var(--primary-color);
}

.mais-lidas-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.banner-container-sidebar {
  text-align: center;
  width: 100%;
}

.banner-348x348 {
  width: 100%;
  max-width: 348px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  background: #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
}

.banner-348x348 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   8. CORREÇÃO E AMPLIAÇÃO DOS CAMPOS DE FORMULÁRIO (PADRÃO CONFORTÁVEL)
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="url"].form-control,
input[type="password"].form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

textarea.form-control {
  min-height: 120px;
  line-height: 1.6;
  resize: vertical;
}

/* ==========================================================================
   9. Footer com Redes Sociais
   ========================================================================== */
.main-footer {
  background-color: var(--secondary-color);
  color: #cbd5e1;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-img {
  max-height: 150px !important;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
  display: block;
  transition: transform 0.2s ease;
}

.footer-logo-img:hover {
  transform: scale(1.03);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.footer-social-icons a:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 14px;
  border-left: 3px solid var(--primary-color);
  padding-left: 8px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  cursor: pointer;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e293b;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.footer-social-icons a:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   10. Modais
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-main);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.reader-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.reader-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.25;
  margin: 10px 0;
}

.reader-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reader-body {
  padding: 24px;
}

.reader-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.reader-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
}

.reader-content p {
  margin-bottom: 16px;
}

/* ==========================================================================
   11. Layout da Página de Notícia Dedicada (noticia.html / noticia.php)
   ========================================================================== */
.article-page-layout {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb i {
  font-size: 10px;
  color: #94a3b8;
}

.article-header-box {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.article-headline {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.25;
  margin: 12px 0 16px;
}

.article-subtitle {
  font-size: 17px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 400;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.meta-author-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-author-info strong {
  color: var(--secondary-color);
}

.social-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  color: #ffffff;
}

.share-btn-wa { background-color: #25d366; }
.share-btn-fb { background-color: #1877f2; }
.share-btn-tw { background-color: #000000; }
.share-btn-tg { background-color: #0088cc; }
.share-btn-copy { background-color: #64748b; }

.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.article-full-body {
  font-size: 17px;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 30px;
}

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

.article-full-body h2, .article-full-body h3 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  margin: 28px 0 14px;
}

.article-intermediate-banner {
  margin: 32px 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  text-align: center;
}

.sidebar-sticky-card {
  position: sticky;
  top: 90px;
}

/* Media Queries Responsivos */
@media (max-width: 992px) {
  .article-page-layout { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar .container { flex-direction: column; text-align: center; justify-content: center; }
  .top-bar-right { justify-content: center; }
  .header-grid { flex-direction: column; text-align: center; justify-content: center; }
  .site-branding { flex-direction: column; text-align: center; }
  .site-logo { max-height: 95px; }
  .site-info h1 { font-size: 24px; }
  .search-form { width: 100%; }
  .card-news-horizontal { grid-template-columns: 1fr; }
  .card-news-img { height: 180px; }
  .hero-main { min-height: 320px; }
  .hero-main-title { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Componente de Paginação */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-color);
}

.pagination-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(200, 16, 46, 0.25);
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

/* Logomarca no Rodapé */
.footer-logo-img {
  max-height: 150px !important;
  width: auto;
  margin-bottom: 14px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-logo-img:hover {
  transform: scale(1.03);
}

/* Blocos de Categoria Agrupados na Página Inicial */
.cat-block {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 12px;
  margin-bottom: 20px;
}

.cat-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color);

}

.cat-link-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cat-link-all:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Layout 1: Cidades (Destaque Grande + Lista Lateral) */
.cat-cities-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.cat-city-featured {
  position: relative;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

.cat-city-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-city-featured:hover img {
  transform: scale(1.04);
}

.cat-city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #ffffff;
}

.cat-city-overlay h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0;

}

.cat-city-overlay p {
  font-size: 12px;
  color: #cbd5e1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

}

.cat-city-overlay .meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.cat-city-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-city-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.cat-city-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cat-city-thumb {
  width: 90px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.cat-city-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-city-info h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.3;
  margin-bottom: 4px;
}

.cat-city-info h5:hover {
  color: var(--primary-color);
}

.cat-city-info .meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Layout 2: Grid 3 Colunas (Economia & Brasil) */
.cat-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-card-vertical {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-card-vertical:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.cat-card-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.cat-card-body h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.3;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

}

.cat-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  margin-bottom: 8px;
}

.cat-card-body .meta {
  font-size: 11px;
  color: #94a3b8;
}

/* Layout 3: Lista Compacta com Badge */
.cat-compact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-compact-item {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.cat-compact-item:hover {
  background: #f1f5f9;
}

.cat-compact-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.3;
}

.cat-compact-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 768px) {
  .cat-cities-grid { grid-template-columns: 1fr; }
  .cat-grid-3 { grid-template-columns: 1fr; }
  .cat-compact-item { grid-template-columns: 1fr; gap: 4px; }
  .cat-compact-meta { text-align: left; }
}
