:root {
  --swiper-theme-color: var(--span);
}

/* Two reusable sponsor-ready panels, proportioned from the homepage reference. */
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.home-feature-grid > .home-feature-column {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
  min-width: 0;
}

.home-feature-panel {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 2.1 / 1;
  overflow: hidden;
  color: var(--text-default);
  background: color-mix(in srgb, var(--card) 94%, #000);
  border: 1px solid var(--transparent-5-w);
  border-radius: 6px;
}

.home-feature-panel--announcements {
  align-items: center;
  padding: 28px 30px;
}

.home-feature-panel--community {
  align-items: center;
  padding: 28px 30px;
  text-decoration: none;
  isolation: isolate;
}

.home-feature-panel--community::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, color-mix(in srgb, var(--brand-discord-color) 18%, transparent), transparent 62%);
}

.home-feature-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 70%;
  max-width: 29rem;
  gap: 10px;
  z-index: 1;
  pointer-events: none;
}

.home-feature-click-target {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-feature-media {
  position: absolute;
  right: 18px;
  bottom: 0;
  z-index: 0;
  width: 43%;
  height: 92%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.home-feature-panel:hover > .info-block__action {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home-feature-kicker {
  color: var(--span);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-feature-copy h2,
.image-slider__image.home-feature-fallback h3 {
  margin: 0;
  color: var(--text-default);
  font-family: var(--font-family-1);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-feature-copy p,
.image-slider__image.home-feature-fallback p {
  position: static;
  width: auto;
  max-width: 34rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: wrap;
  text-shadow: none;
}

.home-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--text-default);
  font-size: 12px;
  font-weight: 700;
}

.home-feature-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transition: transform .2s ease;
}

.home-feature-panel--community:hover .home-feature-link svg {
  transform: translate(2px, -2px);
}

.home-feature-mark {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: 92px;
  height: 92px;
  fill: var(--brand-discord-color);
  opacity: .16;
}

.home-feature-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 30px;
  gap: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--span) 12%, transparent), transparent 55%);
}

.image-slider__image.home-feature-fallback h3 {
  position: static;
  left: auto;
  bottom: auto;
  text-shadow: none;
}

.swiper {
  width: 100%;
  height: auto;
  aspect-ratio: 2.1 / 1;
}

.wrapper {
  padding: 30px;
  min-height: 100%;
}

.title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-7);
  color: white;
  margin: 0 0 30px 0;
}

.image-slider {
  border-radius: 6px;
  background-color: var(--card);
}

.image-slider__image {
  text-align: left;
  height: 100%;
}

.image-slider__image p {
  position: absolute;
  bottom: 60px;
  left: 20px;
  font-size: var(--font-size-m);
  width: 100%;
  text-wrap: nowrap;
  text-shadow: 1px 1px 2px rgb(0 0 0 / 40%);
  -webkit-text-shadow: 1px 1px 2px rgb(0 0 0 / 40%);
}

.image-slider__image h3 {
  position: absolute;
  bottom: 100px;
  left: 20px;
  font-family: var(--font-family-1);
  font-size: var(--font-size-4xl);
  text-shadow: 1px 1px 2px rgb(0 0 0 / 37%);
  -webkit-text-shadow: 1px 1px 2px rgb(0 0 0 / 37%);
}

.image-slider__image img {
  width: 100%;
  height: 100%;
  background-size: cover;
  object-fit: cover;
}

@media (max-width: 1099.98px) {
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-panel--community {
    padding: 24px;
  }

  .home-feature-panel--announcements {
    padding: 24px;
  }

  .home-feature-copy {
    width: 76%;
  }

  .home-feature-media {
    right: 10px;
    width: 48%;
    opacity: .62;
  }

  .home-feature-mark {
    width: 72px;
    height: 72px;
    right: 18px;
  }

  .home-feature-fallback {
    padding: 22px;
  }

  .home-feature-copy h2,
  .image-slider__image.home-feature-fallback h3 {
    font-size: 28px;
  }

  .swiper {
    height: auto;
  }
}

@media (max-width: 575.98px) {
  .home-feature-grid {
    gap: 8px;
  }

  .home-feature-panel--community,
  .home-feature-panel--announcements,
  .home-feature-fallback {
    padding: 18px;
  }

  .home-feature-copy {
    width: 78%;
    gap: 6px;
  }

  .home-feature-copy h2,
  .image-slider__image.home-feature-fallback h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-feature-copy p,
  .image-slider__image.home-feature-fallback p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-feature-link {
    margin-top: 0;
  }
}

.image-slider .swiper-button-next::after,
.image-slider .swiper-button-prev::after {
  color: rgb(255 255 255 / 50%);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-5);
  transition: var(--transition-duration);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: rgb(255 255 255);
}

.swiper-button-next:active::after,
.swiper-button-prev:active::after {
  transform: scale(0.8);
}

.swiper-button-next,
.swiper-button-prev {
  bottom: 20px !important;
  right: 20px !important;
  top: unset !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--br-50);
  border: none;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
  left: auto !important;
  right: 60px !important;
}

.swiper-buttons {
  width: 80px;
  position: absolute;
  right: 20px;
  bottom: 18px;
  background: var(--bg-modal);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  height: 45px;
  z-index: 1;
  border-radius: var(--br-48);
}

.image-slider .swiper-pagination {
  bottom: 10px !important;
  right: 10px !important;
  border-radius: var(--br-24) !important;
  width: 100% !important;
  height: 9px;
  line-height: 4px;
}

.image-slider .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  line-height: 20px;
  font-size: var(--font-size-m);
  background-color: rgb(255 255 255 / 80%);
  border-radius: var(--br-7);
  transition: width 0.15s linear;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
  transform: scale(1);
  width: 18px;
}

.swiper-pagination-bullet-active {
  width: 20px !important;
  transition: width 0.15s linear;
}

.image-slider .swiper-pagination-fraction {
  font-size: var(--font-size-xl);
  color: #fff;
}

.image-slider .swiper-pagination-progressbar-fill {
  background-color: rgb(255 255 255 / 15%) !important;
  border-radius: var(--br-24) !important;
}

.autoplay-progress {
  background-color: var(--bg-modal);
  color: var(--green);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border-radius: var(--br-50);
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-7);
  font-size: var(--font-size-s);
}

.autoplay-progress svg {
  --progress: 0;
  position: absolute;
  left: 0;
  top: 0px;
  z-index: 10;
  width: 100%;
  height: 100%;
  stroke-width: 3px;
  stroke: var(--green);
  fill: none;
  stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
  stroke-dasharray: 125.6;
  transform: rotate(-90deg);
}

.swiper_action_svg {
  position: absolute;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--input-form);
  border-radius: var(--br-4);
  left: 12px;
  transition: var(--transition-duration) ease-in-out;
  z-index: -1;
}

.swiper_btn svg {
  position: absolute;
  left: 20px;
  height: 8px;
  width: 8px;
  fill: white;
  transition: var(--transition-duration) ease-in-out;
}

.swiper_btn:hover svg {
  transform: rotate(45deg);
}

.swiper_btn:hover .swiper_action_svg {
  width: 300px;
  height: 300px;
  border-radius: var(--br-50);
  left: -12px;
}

.image-slider__image .swiper_btn {
  display: flex;
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  align-items: center;
  justify-content: center;
  height: 41px;
  line-height: 41px;
  background: var(--span);
  padding: 0 20px 0 45px;
  border-radius: var(--br-8);
  color: var(--text-default);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-6);
  gap: 10px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--span);
}

.image-slider__image .swiper_btn:hover {
  border: 1px solid #545454;
}
