/* Show Watch Us / Trending toggle on mobile, below Featured image */
@media (max-width: 767px) {
  .featured-container {
    display: flex !important;
    flex-direction: column !important;
  }
  .featured-container > .row.no-gutters {
    order: 1;
  }
  .featured-container > .featured-toggle-btn,
  .featured-container > .featured-toggle-btn.default {
    display: block !important;
    order: 2;
    width: 100%;
    text-align: center;
    margin: 12px 0;
  }
  .featured-container > .row.align-items-center {
    order: 3;
  }

  /* Pill-style toggle: match desktop appearance on mobile */
  .featured-toggle-btn .btn-group {
    position: relative !important;
    display: inline-flex !important;
    left: auto !important;
    top: auto !important;
    background-color: #f0f0f0 !important;
    border-radius: 30px !important;
    padding: 2px !important;
    height: auto !important;
    width: auto !important;
    overflow: hidden;
  }

  /* Hide native radio inputs */
  .featured-toggle-btn input[type="radio"] {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
  }

  /* Both labels: exact desktop font + pill shape */
  .featured-toggle-btn .btn-on,
  .featured-toggle-btn .btn-off {
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    padding: 6px 12px !important;
    font-family: Poppins, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 2.4px !important;
    text-transform: none !important;
    line-height: 22.5px !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 30px !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    white-space: nowrap;
  }

  /* Active (Watch Us) label: white text */
  .featured-toggle-btn .btn-on {
    color: #ffffff !important;
  }

  /* Inactive (Trending) label: grey text */
  .featured-toggle-btn .btn-off {
    color: #c1bfb7 !important;
  }

  /* When Trending is active: swap text colours */
  .featured-toggle-btn .btn-off.active {
    color: #ffffff !important;
  }
  .featured-toggle-btn .btn-on:not(.active) {
    color: #c1bfb7 !important;
  }

  /* Pink pill slider */
  .featured-toggle-btn .slide-btn {
    display: block !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    bottom: 2px !important;
    width: calc(50% - 2px) !important;
    background-color: #ea4a7f !important;
    border-radius: 30px !important;
    z-index: 0 !important;
    transition: left 0.15s ease-in-out !important;
  }

  /* CSS-driven slide: when Trending (.btn-off) has .active, push pill right */
  .featured-toggle-btn .btn-group:has(.btn-off.active) .slide-btn {
    left: calc(50% + 0px) !important;
  }
}

/* Centre featured image on mobile */
@media (max-width: 767px) {
  #featured-header {
    text-align: center !important;
    justify-content: center !important;
  }
  #featured-header img {
    display: block !important;
    margin: 0 auto !important;
  }
  .featured-toggle-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}