/* ================================
   Sidebar News Carousel (perfect)
   ================================ */

.gh-news-card {
  position: relative;
  isolation: isolate; /* ensures float-card overlays never sit above content */
}

/* Responsive square:
   - On desktop: 250px
   - On smaller widths: scales down with container */
.gh-news-carousel {
  width: min(250px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* Make inner and items fill the square viewport */
.gh-news-inner,
.gh-news-item {
  width: 100%;
  height: 100%;
}

/* Image always covers */
.gh-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Link should fill the slide */
.gh-news-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Subtle gradient overlay for readable caption (always consistent) */
.gh-news-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.05) 55%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none;
}

/* Caption container (clean, modern) */
.gh-news-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  text-align: center;
  pointer-events: none; /* don’t block swipe/click */
}

.gh-news-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.gh-news-sub {
  font-size: 0.78rem;
  line-height: 1.2;
  opacity: 0.9;
}

/* ================================
   News carousel – dash indicators
   ================================ */

.gh-news-indicators {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gh-news-indicators [data-bs-target] {
  width: 14px;
  height: 3px;
  border-radius: 2px;

  background-color: rgba(255, 255, 255, 0.35);
  border: none;

  transition:
    background-color 0.2s ease,
    width 0.2s ease,
    opacity 0.2s ease;

  opacity: 0.7;
}

/* Active dash */
.gh-news-indicators .active {
  width: 20px;
  background-color: white;
  opacity: 1;
}

/* Controls: subtle, always visible, not bulky */
.gh-news-control {
  width: 18%;
  z-index: 3;
  opacity: 0.85;
}

.gh-news-control:hover {
  opacity: 1;
}

/* Make control icons smaller/cleaner */
.gh-news-carousel .carousel-control-prev-icon,
.gh-news-carousel .carousel-control-next-icon {
  transform: scale(0.85);
}


/* ================================
   Premium fade tuning
   ================================ */

/* Make the fade smoother/longer */
.gh-news-carousel.carousel-fade .carousel-item {
  transition: opacity 0.65s ease-in-out;
}

/* Ensure no sliding transforms interfere */
.gh-news-carousel.carousel-fade .carousel-item-next,
.gh-news-carousel.carousel-fade .carousel-item-prev,
.gh-news-carousel.carousel-fade .carousel-item.active {
  transform: none !important;
}

/* Keep active slide above during crossfade */
.gh-news-carousel.carousel-fade .carousel-item {
  opacity: 0;
  z-index: 1;
}

.gh-news-carousel.carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 2;
}
