.mfb-forum-spotlight {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(10, 18, 35, 0.06);
}

.mfb-forum-spotlight__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mfb-forum-spotlight__accent {
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: #d60d19;
  flex: 0 0 auto;
}

.mfb-forum-spotlight__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #17233c;
}

.mfb-forum-spotlight__hero {
  margin-bottom: 14px;
}

.mfb-forum-spotlight__hero-link,
.mfb-forum-spotlight__item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mfb-forum-spotlight__hero-link:hover,
.mfb-forum-spotlight__item-link:hover {
  text-decoration: none;
}

.mfb-forum-spotlight__hero-media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: #f4f5f7;
}

.mfb-forum-spotlight__hero-media img,
.mfb-forum-spotlight__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mfb-forum-spotlight__hero-body {
  padding-top: 12px;
}

.mfb-forum-spotlight__hero-title {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.14;
  font-weight: 800;
  color: #16233d;
  letter-spacing: -0.01em;
}

.mfb-forum-spotlight__hero-desc,
.mfb-forum-spotlight__item-desc {
  color: #606b80;
  font-size: 14px;
  line-height: 1.45;
}

.mfb-forum-spotlight__list {
  display: grid;
  gap: 12px;
}

.mfb-forum-spotlight__item {
  border-top: 1px solid #edf0f4;
  padding-top: 12px;
}

.mfb-forum-spotlight__item-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mfb-forum-spotlight__thumb {
  width: 96px;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f5f7;
}

.mfb-forum-spotlight__item-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 750;
  color: #17233c;
}

.mfb-forum-spotlight__hero-link:hover .mfb-forum-spotlight__hero-title,
.mfb-forum-spotlight__item-link:hover .mfb-forum-spotlight__item-title {
  color: #d60d19;
}

@media (max-width: 991px) {
  .mfb-forum-spotlight {
    padding: 16px;
  }

  .mfb-forum-spotlight__title {
    font-size: 20px;
  }

  .mfb-forum-spotlight__hero-title {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .mfb-forum-spotlight__item-link {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 10px;
  }

  .mfb-forum-spotlight__thumb {
    width: 80px;
  }

  .mfb-forum-spotlight__hero-title {
    font-size: 20px;
  }

  .mfb-forum-spotlight__item-title {
    font-size: 16px;
  }
}


/* Client-side pager for existing Forum Spotlight; scoped to this block only. */
.mfb-forum-spotlight__carousel {
  border-top: 1px solid #edf0f4;
  padding-top: 12px;
}
.mfb-forum-spotlight__carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mfb-forum-spotlight__carousel-heading {
  font: 600 12px/1.4 Arial, sans-serif;
  letter-spacing: .03em;
  color: #737d8d;
}
.mfb-forum-spotlight__carousel-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.mfb-forum-spotlight__carousel-count {
  font: 600 12px/1.4 Arial, sans-serif;
  color: #657084;
  min-width: 35px;
  text-align: center;
}
.mfb-forum-spotlight__carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid #dce2e9;
  border-radius: 50%;
  background: #fff;
  color: #344158;
  font: 700 18px/1 Arial, sans-serif;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.mfb-forum-spotlight__carousel-button:hover,
.mfb-forum-spotlight__carousel-button:focus-visible {
  background: #f6f7f9;
  border-color: #c30018;
  color: #b30016;
}
.mfb-forum-spotlight__carousel-button:focus-visible {
  outline: 2px solid #c30018;
  outline-offset: 2px;
}
.mfb-forum-spotlight__carousel .mfb-forum-spotlight__item {
  border-top: 0;
  padding-top: 0;
}
.mfb-forum-spotlight__carousel .mfb-forum-spotlight__item[hidden] {
  display: none !important;
}

/* BEGIN MFB FORUM SPOTLIGHT COMPACT V5 */
/* One-line rotating titles, a compact description and image. */
.mfb-forum-spotlight .mfb-forum-spotlight__carousel {
  padding-top: 11px;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel-controls {
  margin-bottom: 11px;
  gap: 7px;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel-heading {
  font-size: 12px;
  white-space: nowrap;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel-nav {
  gap: 7px;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel-button {
  width: 29px;
  height: 29px;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__item-link {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__thumb {
  width: 76px;
  height: 68px;
  aspect-ratio: auto;
  border-radius: 10px;
  overflow: hidden;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__item-body {
  min-width: 0;
  overflow: hidden;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__item-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font: 700 14px/1.4 "Open Sans Condensed", "Open Sans", Arial, sans-serif;
  margin: 0 0 4px;
  color: #17233c;
  min-width: 0;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__title-track {
  display: inline-block;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  transform: translateX(0);
  will-change: auto;
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__item-title.is-scrolling .mfb-forum-spotlight__title-track {
  animation: mfb-spotlight-title-pan var(--mfb-scroll-duration, 8s) ease-in-out 1s infinite alternate;
  will-change: transform;
}
@keyframes mfb-spotlight-title-pan {
  0%, 16% {transform: translateX(0)}
  80%, 100% {transform: translateX(calc(-1px * var(--mfb-travel, 0)))}
}
.mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__item-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font: 400 12px/1.4 "Open Sans", Arial, sans-serif;
  color: #68748a;
  max-height: 2.8em;
  overflow-wrap: anywhere;
}
/* Keep the main headline readable, but trim excessive hero height. */
.mfb-forum-spotlight .mfb-forum-spotlight__hero-title {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.17;
  margin-bottom: 5px;
}
.mfb-forum-spotlight .mfb-forum-spotlight__hero-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .mfb-forum-spotlight .mfb-forum-spotlight__carousel .mfb-forum-spotlight__item-title.is-scrolling .mfb-forum-spotlight__title-track {
    animation: none;
    transform: none;
  }
}
/* END MFB FORUM SPOTLIGHT COMPACT V5 */
