:root{
  --cor-primaria: #0d6efd;
  --cor-hover: #ff6b6b;
  --bg-sidebar: #1f2a40;
}

/* Sidebar container (a página deve ter <aside class="col-md-3 sidebar"> ... ) */
.sidebar {
  background: var(--bg-sidebar);
  color: #fff;
  padding: 25px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Logo */
.sidebar .logo {
  text-align: center;
  margin-bottom: 18px;
}
.sidebar .logo img {
  max-width: 160px;
  height: auto;
}

/* Titles */
.sidebar h4, .sidebar h5 {
  margin-top: 16px;
  font-weight: 600;
  color: #fff;
}

/* Links */
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: all .25s ease;
}
.sidebar a:hover {
  background: var(--cor-hover);
  color: #fff !important;
  transform: translateX(5px);
}

/* Divider */
.sidebar-divider {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 20px 0;
}

/* Icon colors (como na index) */
.sidebar i.bi-person-circle { color: #00bcd4; }
.sidebar i.bi-headset { color: #ff5722; }
.sidebar i.bi-wallet2 { color: #4caf50; }
.sidebar i.bi-book { color: #ffc107; }
.sidebar i.bi-megaphone { color: #9c27b0; }
.sidebar i.bi-box-seam { color: #03a9f4; }
.sidebar i.bi-globe { color: #8bc34a; }

/* Menu lateral de categorias das noticias */
.news-layout-container,
.orbital-section-page .container-fluid.news-layout-container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 24px 24px 0 !important;
}

.news-layout-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.news-layout-main {
  min-width: 0;
  padding: 0 !important;
}

.news-category-sidebar,
.orbital-section-page .news-category-sidebar {
  min-width: 0;
  position: sticky;
  top: 92px;
  min-height: calc(100vh - 120px);
  padding: 2px 20px 0 0;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
}

.news-category-menu {
  display: grid;
  gap: 8px;
}

.news-category-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background:
    radial-gradient(10rem 7rem at 100% 0%, rgba(89, 216, 255, 0.16), transparent 64%),
    rgba(255, 255, 255, 0.52);
}

.news-category-menu-head > span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--cor-primaria);
}

.news-category-menu-head strong,
.news-category-menu-head small {
  display: block;
}

.news-category-menu-head strong {
  color: #172033;
  font-size: 0.92rem;
}

.news-category-menu-head small {
  color: #6c7484;
  font-size: 0.74rem;
}

.news-category-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  color: #334155;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(13, 110, 253, 0.08) 0 3px, rgba(255, 255, 255, 0.48) 3px),
    rgba(255, 255, 255, 0.44);
  box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.28);
  font-weight: 600;
  font-size: 0.93rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.news-category-menu a span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-category-menu a span i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--cor-primaria);
  font-size: 0.9rem;
}

.news-category-menu a em {
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: #2563eb;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  font-style: normal;
}

.news-category-menu a:hover,
.news-category-menu a.active {
  background: linear-gradient(135deg, var(--cor-primaria), #1598d5);
  border-color: transparent;
  color: #fff;
  transform: none;
  box-shadow: 0 16px 30px -22px rgba(13, 110, 253, 0.55);
}

.news-category-menu a:hover span i,
.news-category-menu a.active span i {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.news-category-menu a:hover em,
.news-category-menu a.active em {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.news-category-inline {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--cor-primaria);
  font-size: 0.76rem;
  font-weight: 700;
}

.news-sidebar-related {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.news-sidebar-related h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #172033;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.news-sidebar-related h3 i {
  color: var(--cor-primaria);
}

.news-sidebar-related-list {
  display: grid;
  gap: 8px;
}

.news-sidebar-related-item {
  display: grid;
  gap: 5px;
  padding: 10px 10px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.news-sidebar-related-item:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(13, 110, 253, 0.22);
  color: var(--cor-primaria);
}

.news-sidebar-related-item span {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.news-sidebar-related-item small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Pequenos ajustes responsivos */
@media (max-width: 767px) {
  .news-layout-container,
  .orbital-section-page .container-fluid.news-layout-container {
    padding: 16px 12px 0 !important;
  }

  .news-layout-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-layout-main {
    padding: 0 !important;
  }

  .sidebar { padding: 18px; }
  .sidebar h4 { font-size: 1.05rem; }
  .sidebar a { padding: 8px 10px; font-size: .95rem; }
  .news-category-sidebar,
  .orbital-section-page .news-category-sidebar {
    position: static;
    min-height: 0;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  }
  .news-category-menu a:hover,
  .news-category-menu a.active { transform: none; }
}
