@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Rubik:wght@400;500;600&display=swap");

/* the space between the header and the banner stays black */
body {
  background: #000;
}

.bl-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffaa17;
  transform-origin: 0 50%;
  z-index: 100;
}

/* ---------- Hero ---------- */
.bl-hero {
  --bl-header-h: 95px; /* your header height, change if needed */
  --bl-gap: clamp(1.5rem, 3vw, 2.5rem); /* space between header and banner */

  position: relative;
  margin-top: calc(var(--bl-header-h) + var(--bl-gap));
  min-height: 500px;
  overflow: hidden;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}

@media (max-width: 900px) {
  .bl-hero {
    --bl-header-h: 90px;
  }
}

@media (max-width: 640px) {
  .bl-hero {
    --bl-header-h: 80px;
    --bl-gap: 1rem;
  }
}

.bl-half {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: blZoom 8s ease-out both;
}

.bl-half-l {
  clip-path: inset(0 50% 0 0);
  animation: blSplitL 1.4s cubic-bezier(0.7, 0, 0.2, 1) both, blZoom 8s ease-out both;
}

.bl-half-r {
  clip-path: inset(0 0 0 50%);
  animation: blSplitR 1.4s cubic-bezier(0.7, 0, 0.2, 1) both, blZoom 8s ease-out both;
}

.bl-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(transparent, #ffaa17, transparent);
  animation: blSeam 1.4s 0.2s both;
  z-index: 0;
}

.bl-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82));
}

.bl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 6vw 80px;
}

.bl-crumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font: 500 14px Rubik, sans-serif;
  color: rgba(255, 255, 255, 0.7);
}

.bl-crumb a {
  color: #ffaa17;
  text-decoration: none;
}

.bl-hero h1 {
  margin: 0 0 1rem;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
}

.bl-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  font-family: "Oswald", sans-serif;
}

.bl-rise {
  display: inline-block;
  animation: blRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.15s + 0.4s);
  font-family: "Oswald", sans-serif;
}

.bl-hl {
  color: #ffaa17;
  font-family: "Oswald", sans-serif;
}

.bl-hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font: 400 18px/1.6 Rubik, sans-serif;
  color: #fff;
}

.bl-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font: 500 14px Rubik, sans-serif;
  color: rgba(255, 255, 255, 0.8);
}

.bl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #888;
}

.bl-dot.live {
  background: #ffaa17;
  box-shadow: 0 0 0 0 rgba(255, 170, 23, 0.7);
  animation: blPulse 1.8s infinite;
}

.bl-dot.sample {
  background: #fff;
}

/* ---------- Glass ticker ---------- */
.bl-ticker {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 170, 23, 0.35);
  border-bottom: 1px solid rgba(255, 170, 23, 0.35);
}

.bl-track {
  display: flex;
  width: max-content;
  animation: blMarquee 60s linear infinite;
}

.bl-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font: 500 18px Oswald, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffaa17;
}

.bl-track i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffaa17;
}

/* ---------- Section ---------- */
.bl-section {
  padding: 70px 6vw 90px;
  background: #000;
  color: #fff;
  text-align: center;
}

/* Category tabs */
.bl-tabs {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(255, 170, 23, 0.35);
  border-radius: 999px;
  background: #0c0c0c;
}

.bl-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  z-index: 0;
  background: #ffaa17;
  border-radius: 999px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.5s;
}

.bl-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #ffaa17;
  font: 500 15px Rubik, sans-serif;
  cursor: pointer;
}

.bl-tab.on {
  color: #000;
}

.bl-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 170, 23, 0.15);
}

.bl-tab.on .bl-count {
  background: rgba(0, 0, 0, 0.18);
  color: #000;
}

/* ---------- Carousel ---------- */
.bl-stage {
  --cw: 340px;
  --ch: 580px;
  --step: 380px;
  --half: 170px;
  position: relative;
  height: 660px;
  margin: 40px -6vw 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.bl-stage.is-drag {
  cursor: grabbing;
}

.bl-stage-empty {
  display: grid;
  place-items: center;
  cursor: default;
  font: 500 16px Rubik, sans-serif;
  color: #ffaa17;
}

.bl-card-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cw);
  height: var(--ch);
  transform: translate(
    calc(var(--p) * var(--step) - var(--half) + var(--drag, 0px)),
    -50%
  );
  scale: 1;
  opacity: 1;
  z-index: 5;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.6s, opacity 0.6s;
  cursor: pointer;
}

.bl-stage.is-drag .bl-card-wrap {
  transition: none;
}

.bl-card-wrap[data-dist="1"] {
  opacity: 0.8;
  scale: 0.93;
  z-index: 4;
}

.bl-card-wrap[data-dist="2"] {
  opacity: 0.45;
  scale: 0.86;
  z-index: 3;
}

.bl-card-wrap[data-dist="3"] {
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 16px 22px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 23, 0.25);
  border-radius: 22px;
  background: #0c0c0c;
  color: #ffaa17;
  text-align: left;
  transition: background 0.5s, color 0.5s, box-shadow 0.5s, border-color 0.5s;
}

.bl-card.on {
  background: #ffaa17;
  color: #000;
  border-color: #ffaa17;
  box-shadow: 0 30px 70px -20px rgba(255, 170, 23, 0.55);
}

/* Large image at the top */
.bl-img {
  position: relative;
  flex: none;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: #1a1a1a;
}

.bl-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
}

.bl-card.on .bl-img img {
  transform: scale(1.05);
}

.bl-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
  color: #ffaa17;
  font: 700 64px Oswald, sans-serif;
}

/* Day numeral and month */
.bl-card-top {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 16px;
  line-height: 1;
}

.bl-day {
  font: 400 88px/0.82 Oswald, sans-serif;
  letter-spacing: -0.02em;
}

.bl-month {
  padding-bottom: 4px;
  font: 500 18px Rubik, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bl-card h3 {
  margin: 14px 0 8px;
  font: 600 22px/1.2 Oswald, sans-serif;
  text-transform: uppercase;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Date and comment count */
.bl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font: 500 13px Rubik, sans-serif;
  opacity: 0.85;
}

.bl-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bl-desc {
  flex: 1;
  margin: 10px 0 0;
  font: 400 14px/1.5 Rubik, sans-serif;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-divider {
  height: 1px;
  margin: 14px 0;
  background: currentColor;
  opacity: 0.25;
}

/* Author row and button */
.bl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bl-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 15px Rubik, sans-serif;
}

.bl-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000;
  color: #ffaa17;
  font: 600 14px Oswald, sans-serif;
}

.bl-learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #ffaa17;
  font: 600 14px Rubik, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.bl-learn b {
  font-size: 18px;
  line-height: 1;
}

.bl-card.on .bl-learn {
  background: #000;
  border-color: #000;
  color: #ffaa17;
}

/* Floating category pill */
.bl-float {
  position: absolute;
  right: -24px;
  top: 56%;
  z-index: 6;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 600 12px Rubik, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: blPop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.4) both,
    blFloat 4s ease-in-out 0.6s infinite;
}

/* Dots only */
.bl-nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.bl-pips {
  display: flex;
  gap: 10px;
}

.bl-pip {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 170, 23, 0.3);
  cursor: pointer;
  transition: width 0.4s, background 0.4s;
}

.bl-pip.on {
  width: 34px;
  background: #ffaa17;
}

/* Card content rises in on the active card */
.bl-card.on > * {
  animation: blUp 0.6s both;
}

.bl-card.on > :nth-child(2) { animation-delay: 0.1s; }
.bl-card.on > :nth-child(3) { animation-delay: 0.2s; }
.bl-card.on > :nth-child(4) { animation-delay: 0.3s; }
.bl-card.on > :nth-child(5) { animation-delay: 0.4s; }
.bl-card.on > :nth-child(6) { animation-delay: 0.5s; }
.bl-card.on > :nth-child(7) { animation-delay: 0.55s; }

/* ---------- Keyframes ---------- */
@keyframes blSplitL {
  from { clip-path: inset(0 50% 0 50%); }
  to { clip-path: inset(0 50% 0 0); }
}

@keyframes blSplitR {
  from { clip-path: inset(0 50% 0 50%); }
  to { clip-path: inset(0 0 0 50%); }
}

@keyframes blSeam {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes blZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes blRise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes blPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 170, 23, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 170, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 170, 23, 0); }
}

@keyframes blMarquee {
  to { transform: translateX(-50%); }
}

@keyframes blPop {
  from { opacity: 0; scale: 0.4; }
  to { opacity: 1; scale: 1; }
}

@keyframes blFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes blUp {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .bl-hero {
    min-height: 440px;
  }

  .bl-hero-inner {
    padding: 50px 16px 60px;
  }

  .bl-section {
    padding: 50px 0 70px;
  }

  .bl-stage {
    --cw: 280px;
    --ch: 560px;
    --step: 250px;
    --half: 140px;
    height: 600px;
    margin: 36px 0 0;
  }

  .bl-day {
    font-size: 68px;
  }

  .bl-float {
    right: -8px;
  }

  .bl-learn {
    padding: 9px 14px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bl-track,
  .bl-half,
  .bl-half-l,
  .bl-half-r,
  .bl-seam,
  .bl-rise,
  .bl-dot.live,
  .bl-float,
  .bl-card.on > * {
    animation: none;
  }

  .bl-card-wrap,
  .bl-pill {
    transition: none;
  }
}