/* WordPress-specific compatibility rules for the existing editorial design. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto;
  clip-path: none;
  color: #111;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.custom-logo {
  height: auto;
  max-width: 175px;
}

.rbgnews-site-title {
  color: var(--secondary);
  display: inline-block;
  font-family: var(--font_header);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.rbgnews-site-title--white {
  color: var(--white);
}

.rbgnews-elementor-content {
  width: 100%;
}

.rbgnews-related-posts {
  clear: both;
}

/* Category video shortcode: keep the supplied featured-stories design while
 * giving Swiper a stable, responsive media box for every card. */
.rbgnews-category-videos .swiper-wrapper {
  align-items: stretch;
}

.rbgnews-category-videos .swiper-slide {
  display: flex;
  height: auto;
}

.rbgnews-category-videos .swiper-slide > .featured-stories__item {
  width: 100%;
  height: 100%;
}

.rbgnews-category-videos .featured-stories__thumb {
  aspect-ratio: 16 / 9;
}

.rbgnews-category-videos .featured-stories__thumb > .rbgnews-featured-media,
.rbgnews-category-videos .featured-stories__thumb > .rbgnews-featured-media > img,
.rbgnews-category-videos .featured-stories__thumb > .rbgnews-featured-media > video,
.rbgnews-category-videos .featured-stories__thumb > .rbgnews-featured-media > iframe {
  width: 100%;
  height: 100%;
}

.rbgnews-category-videos .featured-stories__play .rbgnews-featured-media__play {
  position: static;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 500%;
  outline: 12px solid rgba(255, 255, 255, 0.2);
  color: var(--primary);
  background: var(--white);
  transform: none;
}

.rbgnews-category-videos .featured-stories__play .rbgnews-featured-media__play:hover,
.rbgnews-category-videos .featured-stories__play .rbgnews-featured-media__play:focus-visible {
  color: var(--primary);
  background: var(--white);
  transform: scale(1.05);
}

.rbgnews-category-videos .featured-stories__play .rbgnews-featured-media__play:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Autoplay previews are intentionally non-interactive thumbnails in this
 * shortcode only; article/title links remain the navigation target. */
.rbgnews-category-videos .rbgnews-featured-media__play,
.rbgnews-category-videos .featured-stories__play,
.rbgnews-category-videos .ripple {
  display: none !important;
}

.rbgnews-category-videos .rbgnews-featured-media--preview > video,
.rbgnews-category-videos .rbgnews-featured-media--preview > iframe {
  pointer-events: none;
}

.rbgnews-category-videos .rbgnews-featured-media--preview > video {
  object-fit: cover;
  object-position: center;
}

/* Featured video media stays inside the existing card/hero media box. */
.rbgnews-featured-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #111;
}

.rbgnews-featured-media--video {
  aspect-ratio: 16 / 9;
}

.blog-section-9__thumb > .rbgnews-featured-media,
.blog-section-9__image > .rbgnews-featured-media,
.latest-blog-5__thumb > .rbgnews-featured-media,
.featured-news__thumb > .rbgnews-featured-media,
.blog-slider__thumb > .rbgnews-featured-media,
.banner-section-5__thumb > .rbgnews-featured-media {
  height: 100%;
}

.rbgnews-featured-media > a,
.rbgnews-featured-media__poster,
.rbgnews-featured-media__video,
.rbgnews-featured-media__iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.rbgnews-featured-media__poster,
.rbgnews-featured-media__video {
  object-fit: cover;
  object-position: center;
}

.rbgnews-featured-media__iframe {
  border: 0;
}

.rbgnews-featured-media__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 160px;
  place-items: center;
  color: var(--white);
  background: #1d2630;
}

.rbgnews-featured-media__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  place-items: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.rbgnews-featured-media__play:hover,
.rbgnews-featured-media__play:focus-visible {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.05);
}

.rbgnews-featured-media__play:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.rbgnews-featured-media--archive .rbgnews-featured-media__play {
  width: 44px;
  height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .rbgnews-featured-media__play {
    transition: none;
  }
}

/* WOW controls visibility and animation timing. The common script provides
 * the visible fallback when the optional library is unavailable. */
@media (prefers-reduced-motion: reduce) {
  .wow,
  .wow.animated {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

.featured-news-2__active {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding-top: 3px;
  touch-action: pan-y;
}

.featured-news-2__active .swiper-wrapper {
  align-items: stretch;
}

.featured-news-2__active .swiper-slide {
  display: flex;
  height: auto;
}

.featured-news-2__item {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  max-height: none;
  max-width: none;
  min-height: 162px;
  overflow: visible;
  padding: 12px 16px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-news-2__item:hover,
.featured-news-2__item:focus-within {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(18, 36, 63, 0.12);
  transform: translateY(-3px);
}

.featured-news-2__thumb img {
  backface-visibility: hidden;
  aspect-ratio: 1 / 1;
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  width: 100%;
}

.featured-news-2__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex: 0 0 80px;
  height: 80px;
  justify-content: center;
  overflow: hidden;
  width: 80px;
}

.featured-news-2__title {
  align-items: flex-start;
  display: flex;
  height: 36px;
  justify-content: center;
  max-height: 36px;
  min-height: 36px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
  width: 100%;
}

.featured-news-2__title a {
  display: -webkit-box;
  max-width: 100%;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .featured-news-2__item:hover,
  .featured-news-2__item:focus-within {
    transform: none;
  }
}

@media (min-width: 1200px) {
  .blog-section-9__area .row.mb-minus-24 > .col-xl-6 .blog-section-9__thumb {
    height: 550px;
  }

  .blog-section-9__area .row.mb-minus-24 > .col-xl-3 .blog-section-9__image {
    height: 270px;
  }

  .blog-section-9__area
    .row.mb-minus-24
    > .col-xl-3:last-child
    .blog-section-9__image {
    height: 550px;
  }
}

.blog-section-9__area .blog-section-9__thumb > img,
.blog-section-9__area .blog-section-9__image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.entry-content > * {
  margin-left: auto;
  margin-right: auto;
}

.entry-content .alignwide {
  max-width: 1200px;
}

.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
}

.entry-content .wp-block-gallery,
.entry-content .wp-block-embed,
.entry-content .wp-block-cover,
.entry-content .wp-block-image,
.entry-content .wp-block-table {
  margin-bottom: 2rem;
}

.entry-content .wp-block-button__link {
  text-decoration: none;
}

.navigation.pagination {
  margin-top: 2rem;
}

.navigation.pagination .page-numbers {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.navigation.pagination .page-numbers a,
.navigation.pagination .page-numbers span {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
}

.footer-4__subscribe a.rr-btn {
  display: inline-flex;
}

.post-card__thumb img,
.featured-stories__thumb img,
.latest-updates-3__thumb img,
.trending-posts-4__image img {
  height: auto;
  width: 100%;
}

/* Keep the latest-posts banner slides and their supporting thumbnails uniform
 * without changing the shortcode markup or Swiper behavior. */
.rbgnews-latest-posts,
.rbgnews-latest-posts .banner-section-5__active,
.rbgnews-latest-posts .swiper-slide,
.rbgnews-latest-posts .banner-section-5__wrapper,
.rbgnews-latest-posts .banner-section-5__anim {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

.rbgnews-latest-posts .swiper-wrapper {
  align-items: stretch;
}

.rbgnews-latest-posts .swiper-slide {
  display: flex;
  height: auto;
}

.rbgnews-latest-posts .banner-section-5__wrapper {
  height: 100%;
}

.rbgnews-latest-posts .banner-section-5__thumb {
  flex: 0 0 110px;
}

.rbgnews-latest-posts .banner-section-5__thumb img {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.rbgnews-latest-posts .banner-section-5__wrapper > .rbgnews-featured-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
}

@media (max-width: 575px) {
  .rbgnews-latest-posts .banner-section-5__thumb {
    flex-basis: 150px;
  }
}

@media (min-width: 992px) {
  .rbgnews-latest-posts .banner-section-5__wrapper {
    padding-top: 100px;
  }
}
