/* ============================================================
   CONSUMIDOR RS – Estilos do Site
   ============================================================ */

/* --- Variaveis -------------------------------------------- */
:root {
  --azul:       #1a3c5e;
  --azul-med:   #2563b0;
  --azul-h:     #0f2340;
  --azul-light: #e8f2fb;
  --vermelho:   #cc1100;   /* usado APENAS: play, TV, ticker */
  --cinza-bg:   #f2f3f5;
  --cinza-card: #ffffff;
  --cinza-bord: #e2e4e8;
  --texto:      #222222;
  --texto-sec:  #666666;
  --branco:     #ffffff;
  --sombra:     0 2px 12px rgba(0,0,0,.08);
  --radius:     8px;
  --trans:      .2s ease;
}

/* --- Reset / Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  color: var(--texto);
  background: var(--cinza-bg);
  margin: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--azul-med); }
img { max-width: 100%; display: block; }

/* --- Barra superior --------------------------------------- */
.top-bar {
  background: var(--azul-h);
  color: #adc4db;
  font-size: 12px;
  padding: 5px 0;
}
.top-bar a { color: #adc4db; }
.top-bar a:hover { color: #fff; }
.top-bar .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
  margin-left: 3px;
  transition: background var(--trans);
}
.top-bar .social-icons a:hover { background: var(--azul-med); color: #fff; }

/* --- Widget de Tempo -------------------------------------- */
.weather-widget { display: inline-block; vertical-align: middle; }
.wlink { text-decoration: none !important; color: #adc4db; display: inline-flex; align-items: center; gap: 0; }
.wlink:hover { color: #fff; }
.slink { display: none; }
.fondo { border-collapse: collapse; background: transparent; }
.fondo td, .fondo .td, .fondo .tdAll {
  padding: 1px 6px;
  text-align: center;
  vertical-align: middle;
  border-left: 1px solid rgba(255,255,255,.15);
}
.fondo .td { border-left: none; }
.nomDay { display: block; font-size: 10px; color: rgba(255,255,255,.7); line-height: 1.2; }
.spanIcon { display: block; }
.spanIcon img { width: 22px; height: 22px; margin: 1px auto; }
.temps { display: flex; gap: 3px; justify-content: center; font-size: 10px; font-weight: 700; }
.temMax { color: #ffd97a; }
.tempMin { color: #9ecfff; }

/* --- Header / Logo ---------------------------------------- */
.site-header {
  background: var(--azul);
  padding: 10px 0;
  border-bottom: 3px solid var(--azul-med);
}
.site-logo-img { height: 48px; width: auto; }
.site-slogan { font-size: 11px; color: rgba(255,255,255,.6); letter-spacing: .5px; margin-top: 3px; }

/* --- Navbar ----------------------------------------------- */
.main-nav {
  background: var(--azul) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.main-nav .navbar-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 12px 11px !important;
  border-bottom: 3px solid transparent;
  transition: all var(--trans);
}
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active {
  color: #fff !important;
  border-bottom-color: #fff;
  background: rgba(255,255,255,.1);
}
.main-nav .navbar-toggler { border-color: rgba(255,255,255,.3); }
.main-nav .navbar-toggler-icon { filter: invert(1); }

/* --- Ticker de Ultimas Noticias --------------------------- */
.ticker-bar {
  background: var(--vermelho);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  overflow: hidden;
}
.ticker-label {
  background: var(--azul-h);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-content { animation: ticker 50s linear infinite; white-space: nowrap; }
.ticker-content a { color: #fff; margin-right: 50px; }
.ticker-content a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* --- Secoes ----------------------------------------------- */
.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--branco);
  background: var(--azul);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title a { color: rgba(255,255,255,.8); font-size: 11px; font-weight: 600; }
.section-title a:hover { color: #fff; }

/* --- Bloco de Video Destaque (homepage) ------------------- */
.featured-block {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  margin-bottom: 24px;
}
.featured-video-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.featured-video-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity var(--trans);
}
.featured-video-wrap:hover img { opacity: .7; }
.featured-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(204,17,0,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  transition: transform var(--trans), background var(--trans);
  pointer-events: none;
}
.featured-video-wrap:hover .featured-play-btn { background: var(--vermelho); transform: translate(-50%,-50%) scale(1.1); }
.featured-caption {
  padding: 10px 14px 14px;
  border-top: 3px solid var(--azul);
}
.featured-caption h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.4;
  margin: 0 0 8px;
}
.featured-caption h3 a:hover { color: var(--azul-med); }
.featured-links { list-style: none; padding: 0; margin: 0; }
.featured-links li {
  font-size: 13px;
  padding: 5px 0;
  border-top: 1px solid var(--cinza-bord);
}
.featured-links li:first-child { border-top: none; }
.featured-links li a:hover { color: var(--azul-med); }
.featured-links li::before { content: '\25BA'; color: var(--azul-med); margin-right: 6px; font-size: 9px; }

/* --- Sidebar de Videos ------------------------------------ */
.video-sidebar-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--cinza-bord);
  background: #fff;
  transition: background var(--trans);
}
.video-sidebar-item:last-child { border-bottom: none; }
.video-sidebar-item:hover { background: var(--azul-light); }
.video-sidebar-thumb {
  position: relative;
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.video-sidebar-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-sidebar-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 24px; height: 24px;
  background: rgba(204,17,0,.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px;
}
.video-sidebar-info { flex: 1; overflow: hidden; }
.video-sidebar-info a {
  font-size: 12px;
  font-weight: 700;
  color: var(--azul);
  line-height: 1.4;
  display: block;
}
.video-sidebar-info a:hover { color: var(--azul-med); }
.video-sidebar-date { font-size: 10px; color: #aaa; margin-top: 3px; }

/* --- Cards Noticia --------------------------------------- */
.card-noticia {
  background: var(--cinza-card);
  border: 1px solid var(--cinza-bord);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform var(--trans), box-shadow var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-noticia:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.card-noticia .img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cinza-bord);
}
.card-noticia .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card-noticia:hover .img-wrap img { transform: scale(1.05); }
.card-noticia .sem-imagem {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: #ccc;
}
.card-noticia .card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-noticia .badge-cat {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.card-noticia .badge-cat.vermelho { background: var(--vermelho); }
.card-noticia h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--texto);
}
.card-noticia h3 a:hover { color: var(--azul-med); }
.card-noticia .card-exc {
  font-size: 13px;
  color: var(--texto-sec);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}
.card-noticia .card-meta { font-size: 11px; color: #aaa; margin-top: auto; }

/* --- Cards Video (grade) --------------------------------- */
.card-video {
  background: var(--cinza-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform var(--trans), box-shadow var(--trans);
  height: 100%;
}
.card-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.card-video .thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.card-video .thumb-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: opacity var(--trans), transform .35s ease;
}
.card-video:hover .thumb-wrap img { opacity: .7; transform: scale(1.05); }
.card-video .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  background: rgba(204,17,0,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  transition: transform var(--trans), background var(--trans);
}
.card-video:hover .play-btn { background: var(--vermelho); transform: translate(-50%,-50%) scale(1.12); }
.card-video .card-body { padding: 12px 14px; }
.card-video h3 { font-size: 14px; font-weight: 700; color: var(--texto); margin: 0 0 4px; line-height: 1.4; }
.card-video h3 a:hover { color: var(--azul-med); }
.card-video .card-meta { font-size: 11px; color: #aaa; }

/* --- Hero (destaque noticia) ------------------------------ */
.hero-section { margin-bottom: 24px; }
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  min-height: 340px;
  box-shadow: var(--sombra);
}
.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
  position: absolute;
  top: 0; left: 0;
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85) 70%);
  padding: 60px 28px 24px;
  color: #fff;
}
.hero-overlay .badge-cat {
  background: var(--azul-med);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  display: inline-block;
}
.hero-overlay h2 { font-size: clamp(17px, 3vw, 24px); font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.hero-overlay h2 a:hover { color: #cdf; }
.hero-overlay .hero-meta { font-size: 12px; color: rgba(255,255,255,.7); }

/* --- Player de video -------------------------------------- */
.video-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--sombra);
}
.video-player iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* --- Artigo completo -------------------------------------- */
.artigo-imagem { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.artigo-conteudo { font-size: 16px; line-height: 1.8; color: var(--texto); }
.artigo-conteudo p { margin-bottom: 14px; }
.artigo-meta { font-size: 13px; color: var(--texto-sec); padding: 12px 0; border-top: 1px solid var(--cinza-bord); border-bottom: 1px solid var(--cinza-bord); margin-bottom: 20px; }

/* --- Paginacao ------------------------------------------- */
.pagination .page-link { color: var(--azul); border-color: var(--cinza-bord); border-radius: 4px !important; margin: 0 2px; font-size: 13px; padding: 6px 12px; }
.pagination .page-item.active .page-link { background: var(--azul-med); border-color: var(--azul-med); color: #fff; }
.pagination .page-link:hover { background: var(--azul-light); color: var(--azul); }

/* --- Busca ------------------------------------------------ */
.search-box { position: relative; }
.search-box input { border-radius: 24px !important; padding-right: 40px; border: 1px solid rgba(255,255,255,.3); font-size: 13px; background: rgba(255,255,255,.12); color: #fff; }
.search-box input::placeholder { color: rgba(255,255,255,.5); }
.search-box input:focus { background: rgba(255,255,255,.2); outline: none; box-shadow: none; border-color: rgba(255,255,255,.6); color: #fff; }
.search-box button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; }
.search-box button:hover { color: #fff; }

/* --- "Em breve" / placeholder ----------------------------- */
.em-breve { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--texto-sec); padding: 40px 20px; }
.em-breve i { font-size: 64px; color: var(--cinza-bord); margin-bottom: 16px; }
.em-breve h2 { color: var(--azul); font-weight: 800; margin-bottom: 10px; }

/* --- Rodape ---------------------------------------------- */
.site-footer { background: var(--azul-h); color: rgba(255,255,255,.8); padding: 48px 0 0; margin-top: 60px; font-size: 14px; }
.site-footer h5 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; border-bottom: 2px solid var(--azul-med); padding-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: 50%; margin-right: 6px; color: #fff; transition: background var(--trans); }
.site-footer .footer-social a:hover { background: var(--azul-med); }
.footer-bottom { background: rgba(0,0,0,.3); padding: 14px 0; margin-top: 32px; font-size: 12px; text-align: center; color: rgba(255,255,255,.5); }

/* --- Bloco noticias com wrapper de fundo ------------------ */
.row.g-3[style*="background"] { margin-left: 0 !important; margin-right: 0 !important; }
.row.g-3[style*="background"] > [class*="col-"] { padding-left: 8px; padding-right: 8px; }

/* --- Responsivo ------------------------------------------ */
@media (max-width: 767px) {
  .site-logo-img { height: 36px; }
  .hero-card { min-height: 180px; }
  .main-nav .navbar-nav .nav-link { padding: 10px 16px !important; border-bottom: none; }
  .ticker-bar { display: none; }
  /* Bloco TV Consumidor: empilha em mobile */
  .bloco-tv-corpo { flex-direction: column !important; }
  .bloco-tv-esq   { max-width: 100% !important; flex: 0 0 100% !important; border-right: none !important; border-bottom: 1px solid var(--cinza-bord); }
  .bloco-tv-dir   { max-width: 100% !important; flex: 0 0 100% !important; }
  /* Weather widget: esconder em telas muito pequenas */
  .weather-widget { display: none; }
}

/* --- Utilitarios ----------------------------------------- */
.text-vermelho { color: var(--vermelho) !important; }
.bg-vermelho   { background: var(--vermelho) !important; }
.text-azul     { color: var(--azul) !important; }
.bg-azul       { background: var(--azul) !important; }
.text-azul-med { color: var(--azul-med) !important; }
.bg-azul-med   { background: var(--azul-med) !important; }
.fw-800        { font-weight: 800 !important; }
.line-clamp-2  { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3  { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
