/* SUBCAMP256 — Homepage Campaign Build 3.0 */

.hc3-shell {
  padding: 28px 0 10px;
}

.hc3-carousel {
  overflow: hidden;
  border: 1px solid rgba(11,31,51,.10);
  border-radius: 28px;
  background: #0b1f33;
  box-shadow: 0 24px 56px rgba(11,31,51,.18);
}

.hc3-slide {
  position: relative;
  min-height: clamp(360px, 42vw, 560px);
  overflow: hidden;
  color: var(--hc3-text, #fff);
  background:
    var(--hc3-bg-image, none) center / cover no-repeat,
    radial-gradient(circle at 82% 18%, rgba(217,181,95,.22), transparent 30%),
    var(--hc3-bg, #0b1f33);
}

.hc3-media,
.hc3-media img,
.hc3-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hc3-media img {
  object-fit: cover;
  object-position: center;
}

.hc3-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(4,20,31,calc(var(--hc3-overlay,.35) + .45)) 0%,
      rgba(4,20,31,calc(var(--hc3-overlay,.35) + .16)) 52%,
      rgba(4,20,31,calc(var(--hc3-overlay,.35) * .35)) 100%
    );
}

.hc3-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(360px, 42vw, 560px);
  max-width: 840px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 7vw, 82px);
}

.hc3-badge {
  align-self: flex-start;
  margin-bottom: .9rem;
  padding: .48rem .82rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}

.hc3-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 850;
  line-height: 1.06;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(0,0,0,.22);
}

.hc3-subtitle {
  max-width: 700px;
  margin: .9rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.45;
}

.hc3-description {
  max-width: 680px;
  margin: .75rem 0 0;
  font-size: clamp(.96rem, 1.4vw, 1.08rem);
  line-height: 1.65;
  opacity: .9;
}

.hc3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.hc3-primary-btn,
.hc3-secondary-btn {
  padding: .78rem 1.15rem;
  border-radius: 12px;
  font-weight: 750;
}

.hc3-primary-btn {
  border-color: var(--hc3-button, #d9b55f);
  background: var(--hc3-button, #d9b55f);
  color: var(--hc3-button-text, #1f2933);
}

.hc3-primary-btn:hover,
.hc3-primary-btn:focus {
  border-color: var(--hc3-button, #d9b55f);
  background: var(--hc3-button, #d9b55f);
  color: var(--hc3-button-text, #1f2933);
  filter: brightness(.96);
  transform: translateY(-1px);
}

.hc3-secondary-btn {
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.08);
  color: inherit;
  backdrop-filter: blur(8px);
}

.hc3-secondary-btn:hover,
.hc3-secondary-btn:focus {
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.16);
  color: inherit;
}

.hc3-countdown {
  align-self: flex-start;
  margin-top: 1.15rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 1rem;
  background: rgba(4,20,31,.36);
  backdrop-filter: blur(10px);
}

.hc3-countdown-label {
  margin-bottom: .55rem;
  font-size: .82rem;
  font-weight: 700;
}

.hc3-countdown-grid {
  display: flex;
  gap: .55rem;
}

.hc3-countdown-grid > span {
  min-width: 58px;
  padding: .45rem .55rem;
  border-radius: .7rem;
  background: rgba(255,255,255,.12);
  text-align: center;
}

.hc3-countdown-grid strong,
.hc3-countdown-grid small {
  display: block;
}

.hc3-countdown-grid strong {
  font-size: 1.3rem;
  line-height: 1.1;
}

.hc3-countdown-grid small {
  margin-top: .16rem;
  color: inherit;
  font-size: .68rem;
  opacity: .84;
}

.hc3-countdown-expired {
  font-weight: 800;
}

.hc3-carousel .carousel-indicators {
  z-index: 4;
  margin-bottom: 1rem;
}

.hc3-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
}

.hc3-carousel .carousel-control-prev,
.hc3-carousel .carousel-control-next {
  z-index: 3;
  width: 6%;
  min-width: 46px;
}

@media (min-width: 768px) {
  .hc3-mobile-only {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .hc3-desktop-only {
    display: none !important;
  }

  .hc3-shell {
    padding-top: 16px;
  }

  .hc3-carousel {
    border-radius: 20px;
  }

  .hc3-slide,
  .hc3-content {
    min-height: 450px;
  }

  .hc3-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(4,20,31,.90) 0%,
        rgba(4,20,31,.60) 62%,
        rgba(4,20,31,.24) 100%
      );
  }

  .hc3-content {
    justify-content: flex-end;
    padding: 30px 22px 58px;
  }

  .hc3-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .hc3-actions .btn {
    width: 100%;
  }

  .hc3-countdown-grid {
    gap: .35rem;
  }

  .hc3-countdown-grid > span {
    min-width: 51px;
    padding: .38rem .42rem;
  }

  .hc3-carousel .carousel-control-prev,
  .hc3-carousel .carousel-control-next {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc3-carousel .carousel-item,
  .hc3-primary-btn,
  .hc3-secondary-btn {
    transition: none;
  }
}

@media print {
  .hc3-shell {
    display: none !important;
  }
}
