/* =====================================================
   DATAIQ LABS - Hero slider, news/events panel, offers, flash countdown
   ===================================================== */

/* ---------- Offer price + badge ---------- */
.offer-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-display); font-weight: 600; }
.offer-price__mrp { font-size: .5em; font-weight: 500; opacity: .6; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.offer-price__now { font: inherit; letter-spacing: inherit; }
.offer-badge { align-self: center; font: 700 12px/1 var(--font-text); letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; background: var(--red); color: #FFFFFF; white-space: nowrap; animation: offer-pulse 2.4s ease-in-out infinite; }
@keyframes offer-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,66,.45); } 50% { box-shadow: 0 0 0 7px rgba(255,0,66,0); } }
.live-card__price .offer-price { font-size: 26px; justify-content: flex-end; }

/* ---------- Flash countdown ---------- */
.countdown { display: inline-flex; gap: 8px; }
.countdown__cell { min-width: 62px; padding: 9px 10px 8px; border-radius: 12px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); display: flex; flex-direction: column; align-items: center; gap: 3px; color: #FFFFFF; overflow: hidden; }
.countdown__num { font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.countdown__num.tick { animation: cd-tick .38s var(--ease-out); }
.countdown__lbl { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; opacity: .7; }
@keyframes cd-tick { from { transform: translateY(-45%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown--sm { gap: 4px; }
.countdown--sm .countdown__cell { min-width: 40px; padding: 4px 6px; border-radius: 8px; flex-direction: row; align-items: baseline; gap: 3px; }
.countdown--sm .countdown__num { font-size: 14px; }
.countdown--sm .countdown__lbl { font-size: 9px; }
.countdown--light .countdown__cell, .offer-strip .countdown__cell { background: #FFFFFF; color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--grey-100); }
.offer-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 4px 0; border-radius: 12px; background: rgba(255,0,66,.07); box-shadow: inset 0 0 0 1px rgba(255,0,66,.25); font-size: 13px; color: var(--navy-900); }
.offer-strip strong { color: var(--red-600); }

/* ---------- Slider layout (full-bleed) ---------- */
.hslider { position: relative; padding: 0; }
.hs-stage { position: relative; }
.hs { position: relative; width: 100%; height: clamp(620px, calc(100vh - var(--header-h, 76px)), 780px); overflow: hidden; background: var(--navy-900); color: #FFFFFF; isolation: isolate; }
.hs:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease-out), visibility 0s linear 1s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hs-slide.is-prev { visibility: visible; z-index: 0; }
.hs-slide__bg { position: absolute; inset: 0; overflow: hidden; }
/* rotating web of connected nodes replaces the old zoom */
.hs-slide__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-slide__net { --ns: min(1020px, 135vh); position: absolute; z-index: 1; width: var(--ns); height: var(--ns); left: calc(75% - var(--ns) / 2); top: calc(50% - var(--ns) / 2); pointer-events: none; animation: hs-drift 16s ease-in-out infinite alternate; }
.hs-slide__net img { width: 100%; height: 100%; display: block; }
@keyframes hs-drift { from { transform: translate(18px, -14px) scale(1); } to { transform: translate(-26px, 18px) scale(1.06); } }
.hs-slide__shade { position: absolute; z-index: 1; inset: 0; background: var(--navy-900); pointer-events: none; }
.hs-slide__content { position: absolute; inset: 0; z-index: 3; }
.hs-slide__wrap { height: 100%; display: flex; align-items: center; padding-bottom: 64px; }
.hs-slide__col { max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hs-slide.is-active .hs-slide__col > * { animation: hs-up .9s var(--ease-out) both; }
.hs-slide.is-active .hs-slide__col > *:nth-child(1) { animation-delay: .15s; }
.hs-slide.is-active .hs-slide__col > *:nth-child(2) { animation-delay: .28s; }
.hs-slide.is-active .hs-slide__col > *:nth-child(3) { animation-delay: .41s; }
.hs-slide.is-active .hs-slide__col > *:nth-child(4) { animation-delay: .54s; }
.hs-slide.is-active .hs-slide__col > *:nth-child(5) { animation-delay: .67s; }
@keyframes hs-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hs-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.14); color: #FFFFFF; }
.hs-tag--red { background: var(--red); }
.hs-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.02em; color: #FFFFFF; }
.hs-sub { margin: 0; font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 560px; }
.hs-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hs-offer .offer-price { font-size: 48px; color: #FFFFFF; line-height: 1; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hs-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 30px; pointer-events: none; }
.hs-controls__row { display: flex; align-items: center; gap: 14px; }
.hs-controls__row > * { pointer-events: auto; }
.hs-arrow { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #FFFFFF; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background 240ms var(--ease-out), transform 240ms var(--ease-out); }
.hs-arrow svg { width: 20px; height: 20px; }
.hs-arrow:hover { background: var(--red); transform: scale(1.06); }
.hs-arrow:active { transform: scale(.96); }
.hs-dots { display: flex; gap: 6px; flex: 0 1 380px; }
.hs-dot { flex: 1; max-width: 76px; height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hs-dot span { display: block; position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.hs-dot span::after { content: ''; position: absolute; inset: 0; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; }
.hs-dot.is-active span::after { animation: hs-fill var(--hs-dur, 6500ms) linear forwards; }
.hs.is-paused .hs-dot.is-active span::after { animation-play-state: paused; }
@keyframes hs-fill { to { transform: scaleX(1); } }
.hs-count { margin-left: 6px; font: 500 13px var(--font-mono); letter-spacing: .08em; color: rgba(255,255,255,.7); }
.hs-count b { color: #FFFFFF; font-weight: 600; font-size: 15px; }

/* panel floats over the right side of the full-width slider */
.hs-panelwrap { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; padding-bottom: 24px; }

/* ---------- News & events panel ---------- */
.hp { pointer-events: auto; width: 470px; height: 470px; padding: 22px; border-radius: 26px; background: var(--navy-900); color: #FFFFFF; display: flex; flex-direction: column; gap: 18px; min-width: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 36px 70px -24px rgba(0,0,0,.6); }
.hp__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); flex: none; }
.hp__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--red); transition: transform 340ms var(--ease-out); }
.hp[data-tab="events"] .hp__ink { transform: translateX(100%); }
.hp__tab { position: relative; z-index: 1; height: 42px; border: 0; background: none; cursor: pointer; font: 600 14px var(--font-text); color: rgba(255,255,255,.7); border-radius: 999px; transition: color 240ms var(--ease-out); }
.hp__tab.is-active { color: #FFFFFF; }
.hp__pane { display: none; flex: 1; min-height: 0; flex-direction: column; gap: 16px; }
.hp__pane.is-active { display: flex; animation: hp-pane .5s var(--ease-out); }
@keyframes hp-pane { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hp__items { position: relative; flex: 1; min-height: 0; }
.hp-item { position: absolute; inset: 0; display: flex; align-items: flex-start; gap: 16px; padding: 18px; border-radius: 20px; background: var(--teal-800); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: #FFFFFF; text-decoration: none; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(46px); transition: none; }
.hp-item.is-active, .hp-item.is-leaving { transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), box-shadow 240ms var(--ease-out), visibility 0s linear .7s; }
.hp-item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hp-item.is-leaving { opacity: 0; visibility: visible; transform: translateY(-46px); }
.hp-item:hover { box-shadow: inset 0 0 0 1px rgba(255,0,66,.65); }
.hp-item__date { flex: none; width: 58px; padding: 11px 0 10px; border-radius: 14px; background: var(--red); display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.hp-item__date b { font: 600 24px/1 var(--font-display); }
.hp-item__date small { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; }
.hp-item__body { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.hp-item__kicker { font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hp-item__title { font: 600 18px/1.3 var(--font-display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-item__text { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hp-item__meta { font-size: 12.5px; color: rgba(255,255,255,.6); }
.hp__foot { display: flex; align-items: center; justify-content: space-between; flex: none; }
.hp__dots { display: flex; }
.hp__dot { position: relative; width: 24px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.hp__dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 8px; background: rgba(255,255,255,.3); transition: width 320ms var(--ease-out), margin 320ms var(--ease-out), background 240ms var(--ease-out); }
.hp__dot.is-active::before { width: 22px; margin-left: -11px; background: var(--red); }
.hp__all { font-size: 14px; font-weight: 600; color: #FFFFFF; text-decoration: none; padding: 8px 4px; box-shadow: inset 0 -2px 0 var(--red); transition: color 240ms var(--ease-out); }
.hp__all:hover { color: #FF4D77; }
.hp__empty { margin: auto; text-align: center; color: rgba(255,255,255,.65); font-size: 14.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hs { height: 560px; }
    .hs-slide__wrap { padding-bottom: 76px; }
    .hs-panelwrap { position: relative; inset: auto; display: block; pointer-events: auto; padding: 20px 40px 8px; }
    .hp { width: 100%; height: auto; }
    .hp__items { min-height: 250px; flex: none; }
}
@media (max-width: 767px) {
    .hs { height: 640px; }
    .hs-title { font-size: 30px; }
    .hs-sub { font-size: 15.5px; }
    .hs-offer .offer-price { font-size: 36px; }
    .hs-controls { bottom: 20px; }
    .hs-count { display: none; }
    .countdown__cell { min-width: 54px; padding: 8px 6px 7px; }
    .countdown__num { font-size: 20px; }
    .hs-actions .btn { flex: 1 1 auto; justify-content: center; }
    .hs-panelwrap { padding: 16px 20px 4px; }
    .hp { border-radius: 22px; padding: 18px; }
    .live-card__price .offer-price { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-slide__net { animation: none; }
        .hs-slide.is-active .hs-slide__col > * { animation: none; }
    .hs-dot.is-active span::after { animation: none; transform: scaleX(1); }
    .offer-badge, .countdown__num.tick { animation: none; }
    .hs-slide, .hp-item { transition-duration: 1ms; }
}


/* ---------- Homepage intro hero: light theme to match the header ---------- */
.hero { background: var(--grey-50); color: var(--navy-900); }
.hero .hero__eyebrow { color: var(--teal-700) !important; }
.hero .hero__title { color: var(--navy-900); }
.hero .hero__sub { color: var(--teal-700); }
.hero .hero__desc { color: var(--slate-600); }
.hero .hero__meta { border-top-color: var(--grey-300); }
.hero .hero__meta-item span.mono { color: var(--slate-500); }
.hero .hero__meta-item strong { color: var(--navy-900); }
.hero .hero__ring-1 { border-color: rgba(0,53,84,.1); }
.hero .hero__ring-2 { border-color: rgba(255,0,66,.22); }
.hero .btn--ghost { color: var(--teal-700); box-shadow: inset 0 0 0 1.5px var(--teal-700); background: transparent; }
.hero .hero__panel { color: #FFFFFF; box-shadow: 0 40px 80px -36px rgba(0,53,84,.55); }
:root[data-theme="dark"] .hero { background: var(--navy-900); color: #FFFFFF; }
:root[data-theme="dark"] .hero .hero__eyebrow { color: rgba(255,255,255,.72) !important; }
:root[data-theme="dark"] .hero .hero__title, :root[data-theme="dark"] .hero .hero__meta-item strong { color: #FFFFFF; }
:root[data-theme="dark"] .hero .hero__sub { color: #FFFFFF; }
:root[data-theme="dark"] .hero .hero__desc { color: rgba(255,255,255,.78); }
:root[data-theme="dark"] .hero .hero__meta-item span.mono { color: rgba(255,255,255,.6); }
:root[data-theme="dark"] .hero .btn--ghost { color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
