/* Hide Scrollbar for Carousels - Aggressive cross-browser */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
  width: 0;
  height: 0;
  background: transparent;
  /* Fix for potential black bar background */
}

.scrollbar-hide::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-hide::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Custom Text Shadow */
.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Article Body Typography (matching read.html template) */
.article-body {
  font-family: Merriweather, Georgia, serif;
}

.article-body p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 900;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
  color: #111827;
}

.dark .article-body h2,
.dark .article-body h3,
.dark .article-body h4,
.dark-mode .article-body h2,
.dark-mode .article-body h3,
.dark-mode .article-body h4 {
  color: #f3f4f6;
}

.article-body blockquote {
  border-left: 8px solid var(--default, #b91c1c);
  padding: 1.75rem 1.5rem;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  margin: 2.5rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: rgba(0, 0, 0, 0.03);
  color: #374151;
}

.dark .article-body blockquote,
.dark-mode .article-body blockquote {
  background-color: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 0rem auto;
  display: block;
}

.article-body figure {
  margin: 2.5rem 0;
}

.article-body figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.75rem;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
}

.dark .article-body figcaption,
.dark-mode .article-body figcaption {
  color: #9ca3af;
}

.article-body a {
  color: #b91c1c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: #991b1c;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Reset Bootstrap link defaults to avoid unwanted blue hover/color */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: inherit;
}

/* Micro-movimento das setas da TV RPB ao passar o mouse */
.btn-tv-nav {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.btn-tv-nav .tv-arrow-icon,
.arrow-nudge-right svg,
.arrow-nudge-right i,
.arrow-nudge-left svg,
.arrow-nudge-left i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.btn-tv-next:hover .tv-arrow-icon,
.btn-tv-next.is-animating .tv-arrow-icon,
.arrow-nudge-right:hover svg,
.arrow-nudge-right:hover i {
  animation: tvRecoilNext 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-tv-prev:hover .tv-arrow-icon,
.btn-tv-prev.is-animating .tv-arrow-icon,
.arrow-nudge-left:hover svg,
.arrow-nudge-left:hover i {
  animation: tvRecoilPrev 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes tvRecoilNext {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-10px); /* vem para trás */
  }
  70% {
    transform: translateX(5px);  /* avança para frente */
  }
  100% {
    transform: translateX(0);   /* repousa */
  }
}

@keyframes tvRecoilPrev {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(10px);  /* vem para trás */
  }
  70% {
    transform: translateX(-5px); /* avança para frente */
  }
  100% {
    transform: translateX(0);   /* repousa */
  }
}

/* VenoBox modal centering & responsive styling */
.vbox-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  text-align: center !important;
}

.venoframe,
.venoframe.vbvid,
.vbox-content .figlio,
.vbox-container .figlio,
iframe.venoframe {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* ==========================================================================
   AD ROTATOR / CAROUSEL (Compatível com Imagens e Scripts de AdServer)
   ========================================================================== */
.ad-rotator-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* Tamanho 355x240 */
.ad-rotator-355-240 {
  width: 100%;
  max-width: 355px;
  aspect-ratio: 355 / 240;
}
@media (min-width: 768px) {
  .ad-rotator-355-240 {
    width: 355px !important;
    height: 240px !important;
    max-width: 355px !important;
    max-height: 240px !important;
  }
}

/* Tamanho 728x90 */
.ad-rotator-728-90 {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 728 / 90;
}
@media (min-width: 768px) {
  .ad-rotator-728-90 {
    width: 728px !important;
    height: 90px !important;
    max-width: 728px !important;
    max-height: 90px !important;
  }
}

/* Tamanho 970x250 */
.ad-rotator-970-250 {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 970 / 250;
}
@media (min-width: 768px) {
  .ad-rotator-970-250 {
    width: 970px !important;
    height: 250px !important;
    max-width: 970px !important;
    max-height: 250px !important;
  }
}

/* Tamanho 260x180 */
.ad-rotator-260-180 {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 260 / 180;
}
@media (min-width: 768px) {
  .ad-rotator-260-180 {
    width: 260px !important;
    height: 180px !important;
    max-width: 260px !important;
    max-height: 180px !important;
  }
}

/* Estrutura interna do Rotator */
.ad-rotator {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
}

.ad-rotator-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
}

.ad-rotator-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.ad-banner-link,
.ad-banner-static {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ad-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.ad-banner-script {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ==========================================================================
   AD CTA FALLBACK CARD (Moderno & Atrativo para Anunciantes)
   ========================================================================== */
.ad-cta-card {
  text-decoration: none !important;
  user-select: none;
  background: radial-gradient(circle at 85% 15%, rgba(185, 28, 28, 0.18) 0%, rgba(15, 23, 42, 0.96) 75%);
  border: 1px solid rgba(185, 28, 28, 0.25);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ad-cta-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 10px 24px -4px rgba(185, 28, 28, 0.25);
}

.ad-cta-horizontal {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.ad-cta-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
