/* Blog Anderson Souza 6.5.0 — Bopea Complete Suite CSS */

/* Customizer toggles */
body.asb650-hide-progress .asb-reading-progress { display: none !important; }
body.asb650-hide-toc .asb624-toc { display: none !important; }
body.asb650-hide-archive-excerpt .asb6411-card-excerpt { display: none !important; }

/* Customizer Archive Grid 2 & Grid 3 modes */
@media (min-width: 768px) {
  body.asb650-archive-grid-2 .asb31-archive .asb31-archive-grid.asb44-news-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
  body.asb650-archive-grid-3 .asb31-archive .asb31-archive-grid.asb44-news-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
  body.asb650-archive-grid-2 .asb31-archive .asb31-archive-grid .asb44-news-card,
  body.asb650-archive-grid-3 .asb31-archive .asb31-archive-grid .asb44-news-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
}

/* Elementor Block Tab Filter Bar */
.asb650-tab-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.asb650-tab-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.asb650-tab-btn:hover {
  color: var(--asb-blue, #0012cc);
  background: #eef2ff;
}
.asb650-tab-btn.is-active {
  background: var(--asb-blue, #0012cc);
  color: #ffffff;
}

/* Desktop Category Mega Menu */
.asb650-megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #ffffff;
  border-top: 2px solid var(--asb-blue, #0012cc);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 20px 24px 24px;
  z-index: 9999;
  display: none;
}
.asb650-megamenu.is-open {
  display: block;
}
.asb650-mega-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.asb650-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.asb650-mega-head strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
}
.asb650-mega-head a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--asb-blue, #0012cc);
  text-decoration: none;
}
.asb650-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.asb650-mega-card {
  text-decoration: none;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.asb650-mega-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}
.asb650-mega-card span {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}
.asb650-mega-card:hover span {
  color: var(--asb-blue, #0012cc);
}
.asb650-mega-card small {
  font-size: 11.5px;
  color: #64748b;
}
@media (max-width: 920px) {
  .asb650-megamenu { display: none !important; }
}

/* Native Article Lightbox */
.asb650-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 28, 0.92);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.asb650-lb-overlay img {
  max-width: min(92vw, 1180px);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.asb650-lb-cap {
  color: #e2e8f0;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  max-width: 720px;
}
.asb650-lb-close,
.asb650-lb-prev,
.asb650-lb-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.asb650-lb-close { top: 18px; right: 20px; }
.asb650-lb-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.asb650-lb-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.asb650-lb-close:hover, .asb650-lb-prev:hover, .asb650-lb-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Infinite Scroll Next Article Divider */
.asb650-next-divider {
  margin: 40px 0 28px;
  padding-top: 22px;
  border-top: 2px solid #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--asb-blue, #0012cc);
}
