/* Hide the Newsup inline tag section */
.newsup-tags,
.newsup-tags a,
.newsup-tags i {
  display: none !important;
  visibility: hidden !important;
}

/* Optional: remove spacing where tags were */
.entry-meta,
.mg-blog-date {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* --- Fix large padding and whitespace around the homepage slider --- */

/* Reduce the outer container spacing */
#home-section,
.mg-slider-area,
.slider-section,
.trending-slider,
.main-slider {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure the slider stretches properly */
.mg-slider-area .container,
.main-slider .container,
.slider-section .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Center the images and make sure they fill width neatly */
.mg-slider-area img,
.slider-section img,
.main-slider img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}

/* Remove extra space between slides */
.mg-slider-area .owl-stage-outer,
.mg-slider-area .owl-stage,
.mg-slider-area .owl-item {
  margin: 0 !important;
  padding: 0 !important;
}

/* Optional: tighten below nav bar if needed */
.site-content,
body.home #content {
  margin-top: 0 !important;
}
/* --- Fix large padding and whitespace around homepage slider --- */
#home-section,
.mg-slider-area,
.slider-section,
.trending-slider,
.main-slider {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Stretch container full width without white margins */
.mg-slider-area .container,
.main-slider .container,
.slider-section .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Normalize all slider image heights and remove gaps */
.mg-slider-area img,
.slider-section img,
.main-slider img {
  width: 100% !important;
  height: 480px !important; /* adjust this number for your preferred slider height */
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Responsive height scaling for smaller devices */
@media (max-width: 1024px) {
  .mg-slider-area img,
  .slider-section img,
  .main-slider img {
    height: 380px !important;
  }
}

@media (max-width: 768px) {
  .mg-slider-area img,
  .slider-section img,
  .main-slider img {
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  .mg-slider-area img,
  .slider-section img,
  .main-slider img {
    height: 200px !important;
  }
}

/* Remove unwanted gaps inside the slider */
.mg-slider-area .owl-stage-outer,
.mg-slider-area .owl-stage,
.mg-slider-area .owl-item {
  margin: 0 !important;
  padding: 0 !important;
}

/* Optional: adjust space below navigation bar */
.site-content,
body.home #content {
  margin-top: 0 !important;
}
/* === Restore Post Date / Time Visibility === */
.posted-on,
.meta-date,
.entry-date,
.updated {
  display: inline !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #555 !important;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
/* Show post date/time across all common Newsup selectors */
.entry-meta time,
.entry-meta .posted-on,
.entry-meta .updated,
.post-meta time,
.post-meta .posted-on,
.post-meta .updated,
span.posted-on,
span.meta-date,
time.entry-date {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #444 !important;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.site-info,
.footer-credit,
.footer-bottom,
.footer-copyright {
    display: none !important;
}
.eosl-card .eosl-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;  /* enforce same shape for all cards */
  object-fit: cover;
}

/* For lazy-load */
.eosl-card .eosl-card-media img[loading="lazy"] {
  transition: opacity .3s;
  opacity: 0;
}
.eosl-card .eosl-card-media img[loading="lazy"].loaded {
  opacity: 1;
}
.brightcove-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.brightcove-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.spoiler-link-box {
  background-color: #f5f7fb;
  border-left: 4px solid #1a3b8b;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  margin: 1.5em 0;
  font-family: 'Lato', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spoiler-link-box a {
  color: #1a3b8b;
  text-decoration: none;
}

.spoiler-link-box a:hover {
  text-decoration: underline;
}
/* Metro-style Recent Posts Block – Clean Numbered Badges */

.trending-block {
  font-family: inherit;
  margin: 1.5rem 0;
}

.trending-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}

/* Layout – smaller image column and tighter spacing */
.trending-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  position: relative;
}

.trending-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(48% + 0.75rem);
  width: 1px;
  background: #eee;
}

.trending-grid .main-post {
  position: relative;
}

.trending-grid .main-post img {
  width: 100%;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  height: auto;
  max-height: 220px;
}

.trending-grid .main-post h3 {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Refined list layout – remove leading numbers */
.trending-list {
  counter-reset: item;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-list li {
  counter-increment: item;
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.trending-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Red numbered badges only */
.trending-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.15rem;
  background: #e50046;
  color: #fff;
  font-weight: 700;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* Remove default list numbering */
.trending-list li::marker {
  content: none;
}

.trending-list a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.trending-list a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: 1fr;
  }

  .trending-grid::after {
    display: none;
  }

  .trending-grid .main-post img {
    max-height: none;
  }

  .trending-grid .main-post h3 {
    font-size: 0.9rem;
  }
}
/* Fix double line above block */
.trending-grid {
  border-top: none !important;
}
/* Adjust divider to avoid running through number badges */
.trending-grid::after {
  left: calc(50% + 0.75rem); /* centers better between image & text */
  top: 0.5rem;               /* start slightly lower */
  bottom: 0.5rem;            /* end slightly higher */
}
