/* =====================================================
   RESET / BASE
===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* =====================================================
   TOPO DO PORTAL
===================================================== */

.site-header,
.portal-header {
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  position: relative;
  z-index: 20;
}

/* Área da logo */

.portal-logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 20px;
  text-align: center;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.portal-logo-img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.portal-logo-text {
  font-size: 34px;
  font-weight: 900;
  color: #07162f;
  letter-spacing: -1px;
}

/* =====================================================
   BARRA DE MENU PROFISSIONAL
===================================================== */

.portal-menu-bar {
  width: 100%;
  background: #061a3d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 3px solid #e11d24;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.portal-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  min-height: 54px;
  margin: 0;
  padding: 0;
}

.portal-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 22px;
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.portal-menu a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-menu a:hover {
  background: #0b2d68;
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Remove qualquer influência do menu antigo */
.main-menu,
.centered-main-menu {
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-menu a,
.centered-main-menu a {
  border-radius: 0;
}

/* =====================================================
   LAYOUT PRINCIPAL
===================================================== */

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding: 32px 0 50px;
}

.content-area {
  min-width: 0;
}

/* =====================================================
   FEED DE NOTÍCIAS
===================================================== */

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feed-post {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.feed-post-image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e5e7eb;
}

.feed-post-image img,
.feed-placeholder {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.feed-placeholder {
  background: linear-gradient(135deg, #d9dde3, #eef0f3);
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.feed-post-content {
  padding: 28px 32px 34px;
}

.feed-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e11d24;
  color: #ffffff;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.feed-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #07162f;
}

.feed-title a {
  color: #07162f;
  transition: 0.2s ease;
}

.feed-title a:hover {
  color: #e11d24;
}

.feed-excerpt {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  font-weight: 500;
}

/* =====================================================
   CONTEÚDO DA MATÉRIA
===================================================== */

.feed-full-content {
  font-size: 17px;
  line-height: 1.82;
  color: #1f2937;
}

.feed-full-content p {
  margin-bottom: 18px;
}

.feed-full-content p:last-child {
  margin-bottom: 0;
}

.feed-full-content strong,
.feed-full-content b {
  font-weight: 800;
  color: #111827;
}

.feed-full-content a {
  color: #e11d24;
  font-weight: 700;
  text-decoration: underline;
}

.feed-full-content h1,
.feed-full-content h2,
.feed-full-content h3,
.feed-full-content h4 {
  color: #07162f;
  line-height: 1.25;
  margin: 28px 0 14px;
  font-weight: 900;
}

.feed-full-content h1 {
  font-size: 30px;
}

.feed-full-content h2 {
  font-size: 26px;
}

.feed-full-content h3 {
  font-size: 22px;
}

.feed-full-content h4 {
  font-size: 19px;
}

.feed-full-content ul,
.feed-full-content ol {
  margin: 16px 0 20px 26px;
}

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

.feed-full-content blockquote {
  border-left: 4px solid #e11d24;
  padding: 14px 18px;
  background: #f3f4f6;
  margin: 22px 0;
  border-radius: 8px;
  color: #374151;
  font-style: italic;
}

.feed-full-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 22px 0;
}

.feed-full-content iframe,
.feed-full-content video {
  max-width: 100%;
  border-radius: 14px;
  margin: 22px 0;
}

/* Divisor entre posts */

.feed-post + .feed-post {
  position: relative;
}

.feed-post + .feed-post::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #d7dce3;
  position: absolute;
  top: -15px;
  left: 0;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 20px;
}

.sidebar-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.sidebar-box h3 {
  font-size: 20px;
  color: #07162f;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #e11d24;
}

.sidebar-list,
.most-read {
  list-style: none;
}

.sidebar-list li,
.most-read li {
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-list li:last-child,
.most-read li:last-child {
  border-bottom: none;
}

.sidebar-list a,
.most-read a {
  display: block;
  padding: 11px 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
  transition: 0.2s ease;
}

.sidebar-list a:hover,
.most-read a:hover {
  color: #e11d24;
}

.most-read li:first-child a {
  color: #e11d24;
}

/* =====================================================
   ESTADO VAZIO
===================================================== */

.empty-state {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.empty-state h2 {
  color: #07162f;
  margin-bottom: 8px;
}

.empty-state p {
  color: #64748b;
}

/* =====================================================
   RODAPÉ
===================================================== */

.site-footer {
  background: #07162f;
  color: #ffffff;
  padding: 24px 0;
  margin-top: 20px;
  text-align: center;
}

.site-footer p {
  font-size: 14px;
}

/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
  }

  .feed-title {
    font-size: 30px;
  }

  .feed-post-image img,
  .feed-placeholder {
    height: 340px;
  }

  .portal-menu a {
    padding: 0 18px;
  }
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .feed-post-image img,
  .feed-placeholder {
    height: 320px;
  }

  .feed-title {
    font-size: 29px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .portal-logo-area {
    padding: 20px 0 18px;
  }

  .portal-logo-img {
    width: 180px;
    height: 90px;
  }

  .portal-logo-text {
    font-size: 30px;
  }

  .portal-menu-bar .container {
    width: 100%;
  }

  .portal-menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .portal-menu a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 18px;
    font-size: 14px;
  }

  .main-layout {
    padding: 22px 0 38px;
    gap: 24px;
  }

  .feed-post {
    border-radius: 15px;
  }

  .feed-post-image img,
  .feed-placeholder {
    height: 250px;
  }

  .feed-post-content {
    padding: 22px 20px 26px;
  }

  .feed-title {
    font-size: 25px;
    letter-spacing: -0.4px;
  }

  .feed-excerpt {
    font-size: 15.5px;
    margin-bottom: 16px;
  }

  .feed-full-content {
    font-size: 15.8px;
    line-height: 1.72;
  }

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

  .sidebar-box {
    border-radius: 15px;
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .portal-logo-img {
    width: 160px;
    height: 80px;
  }

  .portal-logo-text {
    font-size: 27px;
  }

  .portal-menu a {
    height: 50px;
    padding: 0 16px;
    font-size: 13px;
  }

  .feed-post-image img,
  .feed-placeholder {
    height: 215px;
  }

  .feed-title {
    font-size: 22px;
  }

  .feed-full-content {
    font-size: 15.5px;
  }

  .site-footer {
    margin-top: 16px;
  }
}