/**
 * Hub carousel + Search & Filter offer cards (horizontal, trending, newest, 10860, 253650, 244966).
 * Enqueued from functions.php — keep markup/classes in sync; avoid duplicating inline <style>.
 */

.topbcol {
  padding-bottom: 4px;
}

.banner-top-6-offers .blaze-track-container > .row,
.banner-top-6-offers .search-filter-results-list.row {
  align-items: stretch;
}

@media (min-width: 992px) {
  .banner-top-6-offers .row > .ndb-offer-grid-col,
  .banner-top-6-offers .search-filter-results-list.row > .ndb-offer-grid-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}
.equal-height-title,
.card-title {
  text-decoration: none !important;
}

.banner-top-6-offers .row > .topbcol,
.banner-top-6-offers .search-filter-results-list.row > .topbcol,
.banner-top-6-offers .row > .ndb-offer-grid-col.topbcol,
.banner-top-6-offers .search-filter-results-list.row > .ndb-offer-grid-col {
  display: flex;
  flex-direction: column;
}

.banner-top-6-offers .ndb-offer-card,
.search-filter-results-list .ndb-offer-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  position: relative;
  border-radius: 14px !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.banner-top-6-offers .ndb-offer-card:hover,
.search-filter-results-list .ndb-offer-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-2px);
}

.banner-top-6-offers .ndb-offer-card--featured,
.search-filter-results-list .ndb-offer-card--featured {
  border-color: rgba(244, 192, 42, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(244, 192, 42, 0.2),
    0 12px 40px rgba(244, 192, 42, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.38) !important;
}

.banner-top-6-offers .ndb-offer-card--featured:hover,
.search-filter-results-list .ndb-offer-card--featured:hover {
  border-color: rgba(244, 192, 42, 0.65) !important;
  box-shadow:
    0 0 0 1px rgba(244, 192, 42, 0.35),
    0 16px 44px rgba(244, 192, 42, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.42) !important;
}

.ndb-offer-card > .card-body.d-flex.flex-column {
  flex: 1 1 auto;
  min-height: 0;
}

.ndb-offer-card .card-body > .footer-claim.text-center.mt-4 {
  margin-top: auto !important;
}

.ndb-offer-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 13px 13px 0 0;
}

.ndb-offer-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  opacity: 0.85;
}

.ndb-offer-card__media a {
  display: block;
  position: relative;
  z-index: 1;
}

.ndb-offer-card__media .card-img-top {
  border-radius: 0 !important;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.ndb-offer-card:hover .ndb-offer-card__media .card-img-top {
  transform: scale(1.04);
}

.banner-top-6-offers .ndb-offer-card__pick,
.search-filter-results-list .ndb-offer-card__pick {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1204;
  background: linear-gradient(135deg, #fff4d4 0%, #f4c02a 45%, #e89420 100%);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ndb-offer-card__pick-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #ea580c 55%, #b8410a 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.banner-top-6-offers .ndb-offer-card .post-views,
.search-filter-results-list .ndb-offer-card .post-views {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

.ndb-offer-card__trust {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.ndb-card-compliance {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  margin: 0 !important;
  padding: 9px 8px 10px !important;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.25;
  color: #9ca3af;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
  row-gap: 5px;
}

.ndb-card-compliance:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ndb-card-compliance__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ndb-card-compliance__dot {
  color: rgba(156, 163, 175, 0.45);
  font-weight: 400;
  user-select: none;
}

.ndb-card-compliance__tc,
.ndb-card-compliance__rg {
  color: #9ca3af !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.ndb-card-compliance__tc:hover,
.ndb-card-compliance__rg:hover {
  color: #e5e7eb !important;
  border-bottom-color: rgba(229, 231, 235, 0.35);
}

.ndb-card-compliance__chev {
  font-size: 13px;
  font-weight: 300;
  color: rgba(156, 163, 175, 0.65);
  line-height: 1;
  margin-left: 1px;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.ndb-card-compliance__rg:hover .ndb-card-compliance__chev {
  color: #f4c02a;
  transform: translateX(2px);
}

@media (max-width: 575px) {
  .banner-top-6-offers .ndb-offer-card__pick,
  .search-filter-results-list .ndb-offer-card__pick {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 8px;
    gap: 4px;
  }

  .ndb-card-compliance {
    padding: 8px 6px 9px !important;
    font-size: 8.5px;
    gap: 4px 5px;
  }

  .ndb-card-compliance__age {
    min-width: 26px;
    height: 18px;
    padding: 0 6px;
    font-size: 8px;
  }
}
