html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: #ffffff !important;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  color: #313131;
}

.overflow-hidden {
  overflow: hidden;
}

img {
  border-style: none;
}

button,
[type='button'],
[type='submit'],
[type='reset'] {
  -webkit-appearance: button;
}

input {
  font-size: 1em;
}

textarea {
  overflow: auto;
  font-size: 1.1em;
}

[hidden] {
  display: none;
}

button,
textarea,
select,
input {
  outline: 0;
}

@media (min-width: 1399px) {
  .containerWidth {
    max-width: 1399px;
    padding: 0 !important;
  }
}

.containerWidth {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

:root {
  /* Header */
  --bg-top-header: #0066b2; /* Alterado de vermelho para azul */
  --color-top-header: #ffffff;

  --bg-middle-header: #ffffff;
  --color-search-input: #cccccc;
  --color-search-input-placeholder: #cccccc;
  --color-search-button: #0066b2; /* Alterado para azul */
  --color-close-button: #0066b2; /* Alterado para azul */
  --color-search-icon: #0066b2; /* Alterado para azul */
  --color-search-icon-responsive: #0066b2; /* Alterado para azul */

  --bg-bottom-header: #272727;
  --color-bottom-link: #ffffff;
  --color-bottom-link-hover: #0066b2; /* Alterado para azul */
  --bg-bottom-submenu: white;
  --color-bottom-sublink: #313131;
  --color-bottom-sublink-hover: #0066b2; /* Alterado para azul */

  --bg-infos-header: #e6e6e6;
  --color-infos-header: #888888;

  --bg-responsive: #ffffff;
  --color-responsive-button: #000000;
  --bg-responsive-content: gray;
  --color-text-responsive-content: white;

  /* Tópicos */
  --bg-topics: #3c3c3c;
  --bg-topics-card: white;
  --color-topics-icon: #0066b2; /* Alterado para azul */
  --color-topics-text: #202221;
  --color-topics-description: #858585;

  /* Categorias */
  --bg-categories: white;
  --color-categories: white;
  --shadow-categories-text: 2px 2px 4px rgba(0, 0, 0, 0.5);
  --bg-categories-hover: rgba(0, 0, 0, 0.6);

  /* Destaques */
  --bg-highlights: white;
  --color-highlights-title: black;
  --color-highlight-name: #666666;
  --color-highlight-description: #858585;
  --color-old-price: rgb(204, 66, 66);
  --color-price: #313131;

  /* Blog */
  --bg-blog: white;
  --color-blog-title: black;
  --color-blog-item-name: #004e91;
  --color-blog-item-description: #858585;
  
  /* Logos */
  --bg-logos: #3c3c3c;
  --color-logos-title: white;
  --color-logos-nav-button: #ffffff;
  --color-logos-nav-button-hover: white;

  /* Banners */
  --bg-banners: white;
  --color-banners-title: black;

  /* Seção de localização */
  --bg-location: #efefef;
  --bg-card-map: white;
  --color-title-location: black;
  --color-address-text-location: #313131;

  /* Footer */
  --bg-footer-top: #0066b2; /* Alterado para azul */
  --bg-footer-top-text: white;
  --bg-footer-top-link: black;
  --color-footer-top-link: white;
  --bg-footer-down: #272727;
  --color-titles-footer: #ffffff;
  --color-texts-footer: #ffffff;
  --color-socials-footer: #ffffff;
  --color-hover-links-footer: #ffffff;
  --color-text-copyright: #ffffff;

  /* Gerais */
  --color-whatsapp: rgb(30, 145, 30);
  --border-primary: #d9e0eb;
  --shadow-default: 0px 6px 15px 0px #79797961;
  --bg-overlay: rgba(0, 0, 0, 0.45);
}

.notFounded {
  padding: 64px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notFounded strong {
  color: var(--color-primary);
  font-size: 20px;
}

.flex-row {
  display: flex;
  align-items: center;
}

/* CORES DO HEADER */
.dot-red {
  width: 10px;
  height: 10px;
  background-color: #0066b2; /* Alterado para azul */
  border-radius: 50%;
  display: inline-block;
}

.main-nav-bar {
  background-color: #0066b2 !important; /* Alterado para azul com override */
}

.main-menu .link a.anchor {
  color: #fff;
  font-weight: bold;
  padding: 12px 16px;
  text-transform: uppercase;
  font-size: 13px;
}

.main-menu .link a.anchor:hover {
  background-color: #004d88; /* Tom azul mais escuro para hover */
}

/* ESTRUTURA GERAL DO PORTAL (GRID) */
.main-portal-container {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

.left-content-area {
  flex: 1;
}

.right-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* HERO NEWS GRID (SUBSTITUTO DO SLIDE) */
.hero-news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.main-featured .img-wrapper img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

.main-featured .main-title {
  font-size: 22px;
  color: #000;
  margin-top: 8px;
  line-height: 1.3;
}

.side-featured-item a {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.side-featured-item .thumb img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.side-featured-item .badge {
  color: #0066b2; /* Alterado para azul */
  font-size: 11px;
  font-weight: bold;
}

.side-featured-item h2 {
  font-size: 13px;
  color: #111;
  line-height: 1.2;
}

/* SEÇÃO DE VÍDEOS */
.videos-section-block {
  background-color: #1f232b;
  padding: 20px;
  border-radius: 6px;
  margin: 30px 0;
  color: #fff;
}

.video-header h2 {
  color: #fff;
  border-left: 4px solid #0066b2; /* Borda alterada para azul */
  padding-left: 10px;
  font-size: 18px;
  margin-bottom: 15px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.video-thumb {
  position: relative;
}

.video-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 102, 178, 0.85); /* Fundo do ícone alterado para azul */
  color: #fff;
  padding: 10px 14px;
  border-radius: 50%;
}

.video-card h4 {
  color: #fff;
  font-size: 13px;
  margin-top: 8px;
}

/* SIDEBAR WIDGETS */
.widget-title {
  border-bottom: 2px solid #0066b2; /* Borda alterada para azul */
  color: #0066b2; /* Texto alterado para azul */
  padding-bottom: 5px;
  font-size: 16px;
  margin-bottom: 15px;
}

.widget-list {
  list-style: none;
  padding: 0;
}

.widget-list li {
  border-bottom: 1px dotted #ccc;
  padding: 8px 0;
}

.widget-list .time-tag {
  color: #0066b2; /* Tag de tempo alterada para azul */
  font-weight: bold;
  font-size: 12px;
}

.widget-list p {
  font-size: 13px;
  color: #333;
  margin: 2px 0 0 0;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .main-portal-container {
    flex-direction: column;
  }
  .hero-news-grid, .videos-grid {
    grid-template-columns: 1fr;
  }
  .right-sidebar {
    width: 100%;
  }
}

/* COR DA BARRA E ALINHAMENTO DO MENU */
.main-nav-bar {
  background-color: #0066b2 !important; /* Garantindo fundo azul no menu principal */
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu .link a.anchor {
  color: #ffffff;
  font-weight: 700;
  padding: 14px 16px;
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
}

.main-menu .link a.anchor:hover {
  background-color: #004d88; /* Azul escuro no hover */
}

/* OCULTAR BOTÃO MENU NO DESKTOP */
.mobile-menu-toggle {
  display: none !important;
}

/* REGRAS APENAS PARA CELULAR / TABLET */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 15px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
  }

  .main-menu {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background-color: #0066b2; /* Menu mobile alterado para azul */
  }

  .main-menu.active {
    display: flex !important;
  }

  .main-menu .link a.anchor {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
  }
}

/* Layout do Portal */
.main-portal-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.left-content-area {
  flex: 1;
  min-width: 0;
}

/* Grid do Hero */
.hero-news-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.main-featured {
  flex: 2;
}

.main-featured .img-wrapper {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.main-featured .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-featured .main-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin-top: 10px;
}

.side-featured-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-featured-item a {
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.side-featured-item .thumb {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.side-featured-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-featured-item h2 {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #222;
  margin: 4px 0 0 0;
}

/* Feed em Cards das Notícias Gerais */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.news-card .card-thumb {
  width: 100%;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

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

.news-card h3 {
  font-size: 0.95rem;
  color: #222;
  line-height: 1.3;
}

/* Badges de Categoria */
.category-badge, .category-tag, .category-badge-sm {
  display: inline-block;
  color: #0066b2; /* Alterado para azul */
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Responsivo para Celulares */
@media (max-width: 768px) {
  .main-portal-container {
    flex-direction: column;
  }
  .hero-news-grid {
    flex-direction: column;
  }
  .right-sidebar {
    width: 100% !important;
  }
}