/* ==========================================================================
   BSB HOJE — Main Stylesheet
   Direitos: BSB HOJE NOTICIAS E PUBLICIDADES — CNPJ 02.478.123/0001-68
   ========================================================================== */

:root {
  --bsb-primary: #00a4db;
  --bsb-navy: #000c2d;
  --bsb-text: #1a1f2c;
  --bsb-muted: #687385;
  --bsb-bg: #f7f8f9;
  --bsb-white: #ffffff;
  --bsb-border: #eaecee;
  --bsb-border-soft: #eaecee;
  --bsb-card-border: #eaecee;
  --bsb-shadow: rgba(44, 62, 80, 0.45) 0 15px 18px -15px;
  --bsb-radius: 4px;
  --bsb-container: 1488px;
  --bsb-gutter: 24px;
  --bsb-font: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bsb-font-display: "Roboto", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--bsb-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--bsb-text);
  background: var(--bsb-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bsb-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--bsb-navy);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bsb-font-display);
  color: var(--bsb-navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  left: 8px;
  top: 8px;
  z-index: 100000;
  background: var(--bsb-navy);
  color: #fff;
  padding: 10px 14px;
}

.bsb-container {
  width: min(100% - (var(--bsb-gutter) * 2), var(--bsb-container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.bsb-site-header {
  position: relative;
  z-index: 50;
}

.bsb-header-brand {
  position: relative;
  background: var(--bsb-white);
  overflow: hidden;
  padding: 28px 0 18px;
}

.bsb-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.bsb-header-brand__inner {
  position: relative;
  z-index: 1;
}

.bsb-branding {
  text-align: center;
}

.bsb-logo,
.bsb-logo-text {
  display: inline-block;
}

.bsb-logo img,
.bsb-logo-img,
.custom-logo {
  max-height: 110px;
  width: auto;
  margin: 0 auto;
}

.bsb-slogan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 0;
  color: #4a5568;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bsb-slogan__line {
  display: inline-block;
  width: 42px;
  height: 1px;
  background: #c5cad3;
}

.bsb-header-nav {
  background: var(--bsb-white);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 60;
}

.bsb-header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 12px;
  position: relative;
}

.bsb-main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.bsb-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
}

.bsb-menu > li > a {
  display: block;
  padding: 12px 10px;
  color: var(--bsb-muted);
  font-size: 12.8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bsb-menu > li > a:hover,
.bsb-menu > li.current-menu-item > a,
.bsb-menu > li.current-menu-ancestor > a {
  color: var(--bsb-primary);
}

.bsb-menu .sub-menu {
  display: none;
}

.bsb-nav-toggle,
.bsb-search-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--bsb-muted);
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bsb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.bsb-nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--bsb-navy);
  display: block;
}

.bsb-search-toggle {
  position: absolute;
  right: 0;
}

.bsb-search-panel {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  padding: 14px 0;
}

.bsb-search-panel[hidden] {
  display: none;
}

.bsb-search-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
}

.bsb-search-field {
  flex: 1;
  border: 1px solid #d7dbe2;
  border-radius: var(--bsb-radius);
  padding: 10px 14px;
  font: inherit;
}

.bsb-search-submit,
.bsb-btn {
  background: var(--bsb-primary);
  color: #fff;
  border: 0;
  border-radius: var(--bsb-radius);
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bsb-search-submit:hover,
.bsb-btn:hover {
  filter: brightness(0.95);
  color: #fff;
}

.bsb-header-ad {
  padding: 16px 0 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Category badge & meta
   -------------------------------------------------------------------------- */
.bsb-cat-badge {
  display: inline-block;
  background: var(--bsb-primary);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.bsb-cat-badge:hover {
  filter: brightness(0.95);
  color: #fff !important;
}

.bsb-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.bsb-card .bsb-post-meta,
.bsb-single .bsb-post-meta {
  color: var(--bsb-muted);
}

.bsb-meta-author,
.bsb-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bsb-post-meta a {
  color: inherit;
}

.bsb-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Magazine featured grid
   -------------------------------------------------------------------------- */
.bsb-home-wrap {
  padding: 22px 0 48px;
}

.bsb-magazine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(220px, 254px));
  gap: 12px;
  margin-bottom: 36px;
}

.bsb-magazine-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--bsb-radius);
  min-height: 220px;
  background: #111;
}

.bsb-magazine-item--0 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.bsb-magazine-item--1 {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}

.bsb-magazine-item--2 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.bsb-magazine-item--3 {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.bsb-magazine-item__link {
  display: block;
  position: absolute;
  inset: 0;
  color: #fff;
}

.bsb-magazine-item__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.bsb-magazine-item:hover .bsb-magazine-item__bg {
  transform: scale(1.05);
}

.bsb-magazine-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.78) 100%);
}

.bsb-magazine-item__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 20px;
  z-index: 1;
}

.bsb-magazine-item__title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.bsb-magazine-item--0 .bsb-magazine-item__title {
  font-size: 1.65rem;
}

.bsb-magazine-item__link:hover .bsb-magazine-item__title {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.bsb-section {
  margin-bottom: 40px;
}

.bsb-section--with-ad {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.bsb-section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--bsb-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 12px;
}

.bsb-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--bsb-primary);
}

.bsb-section-title a {
  color: inherit;
}

.bsb-section-title a:hover {
  color: var(--bsb-primary);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.bsb-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bsb-cards-grid--archive {
  grid-template-columns: repeat(3, 1fr);
}

.bsb-card {
  background: var(--bsb-white);
  border: 1px solid #eaecee;
  border-radius: var(--bsb-radius);
  box-shadow: var(--bsb-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease;
}

.bsb-card:hover {
  transform: translateY(-2px);
}

.bsb-card__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e8ebef;
}

.bsb-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bsb-card:hover .bsb-card__thumb img {
  transform: scale(1.04);
}

.bsb-card__body {
  padding: 14px 16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.bsb-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.bsb-card__title a {
  color: var(--bsb-navy);
}

.bsb-card__title a:hover {
  color: var(--bsb-primary);
}

.bsb-card__excerpt {
  font-size: 0.9rem;
  color: var(--bsb-muted);
  text-align: left;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Overlay grid (Esportes)
   -------------------------------------------------------------------------- */
.bsb-overlay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.bsb-overlay-card {
  position: relative;
  min-height: 260px;
  border-radius: var(--bsb-radius);
  overflow: hidden;
  background: #111;
}

.bsb-overlay-card__link {
  display: block;
  position: absolute;
  inset: 0;
}

.bsb-overlay-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.bsb-overlay-card:hover .bsb-overlay-card__bg {
  transform: scale(1.05);
}

.bsb-overlay-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.75) 100%);
}

.bsb-overlay-card__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.bsb-overlay-card__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Ads
   -------------------------------------------------------------------------- */
.bsb-ad-slot {
  background: var(--bsb-white);
  border: 1px solid #e5e7eb;
  border-radius: var(--bsb-radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bsb-ad-placeholder {
  color: #9aa3b2;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef1f4;
}

.bsb-section__ad .bsb-ad-slot,
.bsb-section__ad .bsb-widget {
  position: sticky;
  top: 70px;
}

.bsb-ad-inarticle {
  margin: 24px 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Layout / Single
   -------------------------------------------------------------------------- */
.bsb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 28px 0 48px;
  align-items: start;
}

.bsb-layout--single {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.no-sidebar .bsb-layout {
  grid-template-columns: 1fr;
}

.bsb-archive-header {
  margin-bottom: 24px;
  text-align: center;
}

.bsb-archive-title {
  font-size: 1.75rem;
  text-transform: uppercase;
}

.bsb-single {
  background: var(--bsb-white);
  border: 1px solid #eaecee;
  border-radius: var(--bsb-radius);
  padding: 28px 32px 36px;
  box-shadow: var(--bsb-shadow);
}

.bsb-single__title {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.bsb-single__cats {
  margin: 12px 0 18px;
}

.bsb-single__thumb {
  margin: 0 0 24px;
  border-radius: var(--bsb-radius);
  overflow: hidden;
}

.bsb-single__thumb img {
  width: 100%;
}

.entry-content {
  font-size: 1.05rem;
  color: #2a3140;
}

.entry-content p {
  margin: 0 0 1.1em;
}

.entry-content a {
  text-decoration: underline;
}

.bsb-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eef1f4;
  font-size: 0.9rem;
}

.bsb-tags a {
  display: inline-block;
  background: #eef1f4;
  color: var(--bsb-muted);
  padding: 4px 10px;
  border-radius: 3px;
  margin: 4px 4px 0 0;
}

.bsb-post-nav {
  margin: 28px 0;
}

.bsb-post-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bsb-post-nav a {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--bsb-radius);
  padding: 14px 16px;
  color: var(--bsb-navy);
  max-width: 48%;
}

.bsb-post-nav .nav-subtitle {
  display: block;
  font-size: 12px;
  color: var(--bsb-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.bsb-related {
  margin-top: 20px;
}

.bsb-comments {
  margin-top: 36px;
  background: #fff;
  border: 1px solid #eaecee;
  border-radius: var(--bsb-radius);
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Sidebar / Widgets
   -------------------------------------------------------------------------- */
.bsb-sidebar .bsb-widget {
  background: #fff;
  border: 1px solid #eaecee;
  border-radius: var(--bsb-radius);
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: var(--bsb-shadow);
}

.bsb-widget-title {
  font-size: 16px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bsb-primary);
}

.bsb-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsb-latest-list li {
  border-bottom: 1px solid #eef1f4;
  padding: 10px 0;
}

.bsb-latest-list li:last-child {
  border-bottom: 0;
}

.bsb-latest-list a {
  color: var(--bsb-navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.bsb-latest-list a:hover {
  color: var(--bsb-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bsb-site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin-top: 20px;
}

.bsb-footer-nav {
  padding: 22px 0;
  border-bottom: 1px solid #eef1f4;
}

.bsb-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.bsb-footer-menu a {
  color: var(--bsb-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.bsb-footer-menu a:hover {
  color: var(--bsb-primary);
}

.bsb-footer-legal {
  padding: 20px 0 28px;
  text-align: center;
  color: var(--bsb-muted);
  font-size: 13px;
}

.bsb-copyright {
  margin: 0 0 6px;
}

.bsb-copyright strong {
  color: var(--bsb-navy);
}

.bsb-rights {
  margin: 0;
}

.bsb-footer-widgets {
  padding: 28px 0;
  border-bottom: 1px solid #eef1f4;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.navigation.pagination {
  margin-top: 28px;
  text-align: center;
}

.navigation.pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--bsb-radius);
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--bsb-navy);
  font-weight: 600;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--bsb-primary);
  border-color: var(--bsb-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .bsb-section--with-ad {
    grid-template-columns: 1fr 260px;
  }

  .bsb-overlay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bsb-cards-grid,
  .bsb-cards-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .bsb-magazine-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bsb-magazine-item--0,
  .bsb-magazine-item--1,
  .bsb-magazine-item--2,
  .bsb-magazine-item--3 {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .bsb-magazine-item--0 {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .bsb-section--with-ad,
  .bsb-layout,
  .bsb-layout--single {
    grid-template-columns: 1fr;
  }

  .bsb-section__ad {
    order: 2;
  }

  .bsb-nav-toggle {
    display: inline-flex;
  }

  .bsb-main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0 16px;
    z-index: 70;
  }

  .bsb-main-nav.is-open {
    display: block;
  }

  .bsb-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .bsb-menu > li > a {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
  }

  .bsb-header-nav__inner {
    justify-content: space-between;
  }

  .bsb-search-toggle {
    position: static;
  }
}

@media (max-width: 640px) {
  .bsb-logo img,
  .bsb-logo-img,
  .custom-logo {
    max-height: 72px;
  }

  .bsb-magazine-grid,
  .bsb-cards-grid,
  .bsb-cards-grid--archive,
  .bsb-overlay-grid {
    grid-template-columns: 1fr;
  }

  .bsb-magazine-item--0 {
    grid-column: auto;
  }

  .bsb-magazine-item--0 .bsb-magazine-item__title {
    font-size: 1.25rem;
  }

  .bsb-single {
    padding: 18px 16px 24px;
  }

  .bsb-post-nav .nav-links {
    flex-direction: column;
  }

  .bsb-post-nav a {
    max-width: 100%;
  }
}

