@charset "UTF-8";
:root {
  --bg:#fff; /* hero background */
  --brand: #ee324b;
  --fade:48px; /* width of edge fade + chevron strip */
  --gap:.5rem; /* pill gap */
  --chev:20px; /* chevron font size */
  --play-d: 80px; /* red circle diameter */
  --tri-w: 20px; /* triangle width  */
  --tri-h: 14px; /* triangle half-height */
  --tri-push: 2px; /* slight right push for optical centering */
  --play-red: rgba(238, 50, 75, 0.95);
  --tint-alpha: .28; /* strength of red tint on hover */
}

body, html {
  height: 100%;
}

/* helper for BS4 flex rows */
.min-w-0 {
  min-width: 0 !important;
}

.text-gray-100 {
  color: #f8f9fa !important;
}

.text-gray-200 {
  color: #e9ecef !important;
}

.text-gray-300 {
  color: #dee2e6 !important;
}

.text-gray-400 {
  color: #ced4da !important;
}

.text-gray-500 {
  color: #adb5bd !important;
}

.text-gray-600 {
  color: #6c757d !important;
}

.text-gray-700 {
  color: #495057 !important;
}

.text-gray-800 {
  color: #343a40 !important;
}

.text-gray-900 {
  color: #212529 !important;
}

.rounded-4 {
  border-radius: 0.5rem;
}

.hero {
  min-height: calc(100% - 77px);
  padding-top: 77px;
}

.hero h1 {
  font-size: calc(1.75rem + 2.35vw);
  font-weight: 700;
  line-height: 1.1;
}

@media (min-width: 992px) {
  .hero {
    min-height: 100%;
  }
}
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }
}
.search-btn {
  border: 1px solid #e3e3e3;
  border-radius: 50rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: text;
  font-size: 0.9rem;
  padding: 1.15rem 1.35rem !important;
  position: relative;
  width: 100%;
  height: 62px;
}

.search-btn:hover {
  border-color: #162233;
  color: #162233;
}

.search-btn span.i-search {
  background-color: #ee324b;
  border-radius: 50%;
  display: block;
  width: 46px;
  height: 46px;
  padding: 0.5rem;
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
}

.search-btn span.i-search:before {
  color: #fff;
  font-size: 1.45rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 992px) {
  .scroll-bg .search {
    position: relative;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-999px);
    transition: all 0.3s ease;
  }
  .scroll-bg.scrolled .search {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }
}
/* start: clean left edge, protected right edge */
.tag-rail {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  --pad-left:0px; /* no left padding until scrolled */
  --pad-right:var(--fade); /* space for right strip */
  --fade-left:0px; /* no left fade until scrolled */
  --fade-right:var(--fade); /* right fade visible when can-scroll */
}

/* after user scrolls right at least once */
.tag-rail.has-left {
  --pad-left:var(--fade);
  --fade-left:var(--fade);
}

/* at extreme right, hide right fade */
.tag-rail.at-end {
  --fade-right:0px;
}

/* horizontal rail */
.rail {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0.5rem var(--pad-right) 0.5rem var(--pad-left);
  white-space: nowrap;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.rail > * + * {
  margin-left: var(--gap);
}

/* fade chips BEFORE the strips so they never run under the chevrons */
.rail {
  -webkit-mask-image: linear-gradient(to right, transparent 0, black var(--fade-left), black calc(100% - var(--fade-right)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black var(--fade-left), black calc(100% - var(--fade-right)), transparent 100%);
}

/* gradient caps behind the chevrons (match hero) */
.tag-rail::before,
.tag-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--fade);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.tag-rail.has-left::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
  opacity: 1;
}

.tag-rail.can-scroll:not(.at-end)::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
  opacity: 1;
}

/* chevrons: transparent strip, centered glyph; no circles */
.rail-btn {
  position: absolute;
  top: 0;
  width: var(--fade);
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  z-index: 2;
  cursor: pointer;
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
}

.rail-btn.prev {
  left: -15px;
} /* sits on top of left gradient */
.rail-btn.next {
  right: -15px;
} /* sits on top of right gradient */
/* visibility rules */
.tag-rail.can-scroll .rail-btn.next {
  display: flex;
} /* show right if overflow */
.tag-rail.has-left .rail-btn.prev {
  display: flex;
} /* show left after scroll */
.tag-rail.at-end .rail-btn.next {
  display: none;
} /* hide at end */
/* sizing */
.video-wrap {
  border-radius: 1rem;
  aspect-ratio: 4.5/3;
}

@media (min-width: 1920px) {
  .video-wrap {
    aspect-ratio: 16/9;
  }
}
.video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* same bottom-half geometry as the black gradient */
  background: linear-gradient(0deg, rgba(238, 50, 75, var(--tint-alpha)), rgba(238, 50, 75, 0));
  background-size: 100% 50%;
  background-repeat: no-repeat;
  background-position: bottom;
  opacity: 0; /* hidden by default */
  transition: opacity 0.25s ease;
  z-index: 1; /* below .video-overlay (z:2) */
}

/* Hover/focus states */
.video-wrap:hover::after,
.video-wrap:focus-within::after {
  opacity: 1;
}

.video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: inherit;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}

.video-wrap:hover .video,
.video-wrap:focus-within .video {
  transform: scale(1.05);
}

/* overlay: gradient only on bottom 50% of the frame */
.video-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  background-size: 100% 50%;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 2;
}

/* RED CIRCLE (centered) */
.video-overlay::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--play-d);
  height: var(--play-d);
  border-radius: 50%;
  background: var(--play-red);
  box-shadow: 0 6px 24px rgba(238, 50, 75, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

/* WHITE TRIANGLE (centered, then nudged right) */
.video-overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: var(--tri-w) solid #fff;
  border-top: var(--tri-h) solid transparent;
  border-bottom: var(--tri-h) solid transparent;
  pointer-events: none;
  opacity: 0;
  transform: translate(calc(-50% + var(--tri-push)), -50%) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

/* show on hover/focus */
.video-wrap:hover .video-overlay::before,
.video-wrap:hover .video-overlay::after,
.video-wrap:focus-within .video-overlay::before,
.video-wrap:focus-within .video-overlay::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1); /* circle */
}

.video-wrap:hover .video-overlay::after,
.video-wrap:focus-within .video-overlay::after {
  transform: translate(calc(-50% + var(--tri-push)), -50%) scale(1); /* triangle */
}

/* optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .video-overlay::before, .video-overlay::after, .video {
    transition: none;
  }
}
.navbar.scroll-bg .video {
  max-width: 48px;
  transition: max-width 0.3s ease;
}

.navbar.scroll-bg.scrolled .video {
  max-width: 32px;
}

.tag-ai {
  background: linear-gradient(to right, rgba(238, 50, 75, 0.1) 0%, rgba(238, 50, 75, 0) 100%);
  border-left: 2px solid #ee324b;
}

.meta-list span + span::before {
  content: "•"; /* customize symbol */
  margin-right: 0.5rem;
  color: #999;
}

.counter {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.counter.is-visible {
  opacity: 1;
  transform: translateY(0);
}