/* =========================================================
   AI Search Blog Hub page
   Design source: Figma "AI Search Present - Final" node 3803:56347
   Builds on ranking.css (rank-banner, blog-card, rank-articles__grid).
   ========================================================= */

.site-main > .blog-hero,
.site-main > .blog-section {
  width: min(1264px, calc(100% - 48px));
}

/* ---------- Highlight hero slider ---------- */

.blog-hero {
  position: relative;
}

.blog-hero__viewport {
  overflow: hidden;
  border-radius: 24px;
}

.blog-hero__track {
  display: flex;
  transition: transform var(--duration-normal) var(--ease-out);
}

.blog-hero__slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  min-height: 583px;
  /* Bottom padding clears the thumbnail/dot chrome overlaid on the card. */
  padding: 80px 80px 216px;
  overflow: hidden;
  border-radius: 24px;
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.blog-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 21.3%, rgba(0, 0, 0, 0) 85.7%);
}

.blog-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 685px;
}

.blog-hero__eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 20px;
  line-height: 2;
  letter-spacing: 0.02em;
}

.blog-hero__eyebrow span {
  color: transparent;
  background-image: var(--gradient-brand, linear-gradient(131deg, #1c73e9 38.87%, #2ac48b 88.955%));
  background-clip: text;
  -webkit-background-clip: text;
}

.blog-hero__flame {
  width: 32px;
  height: 32px;
}

.blog-hero__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-width: 639px;
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.blog-hero__title a {
  color: inherit;
}

.blog-hero__cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 12px 24px 12px 32px;
  border: 1px solid var(--color-brand-blue);
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.33;
  color: #f5f5ff;
}

.blog-hero__cta-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Hero chrome: thumbnails, dots, arrows ---------- */

.blog-hero__nav {
  position: absolute;
  bottom: 40px;
  left: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.blog-hero__thumbs {
  display: flex;
  gap: 14px;
  align-items: center;
}

.blog-hero__thumb {
  position: relative;
  width: 100px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.blog-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inactive thumbs sit behind a dark wash. */
.blog-hero__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.blog-hero__thumb.is-active {
  border: 2px solid #fff;
  box-shadow: 0 2.5px 5px 1.9px rgba(0, 0, 0, 0.15), 0 0.6px 1.9px rgba(0, 0, 0, 0.3);
}

.blog-hero__thumb.is-active::after {
  content: none;
}

/* Dots on the dark card need light inactive states. */
.slider-dots--hero button {
  background: rgba(244, 245, 252, 0.5);
}

.blog-hero__arrows {
  position: absolute;
  right: 33px;
  bottom: 40px;
  display: flex;
  gap: 12px;
}

.blog-hero__arrows .slider-arrow {
  position: static;
  transform: none;
}

.blog-hero__arrows .slider-arrow:hover {
  transform: scale(1.06);
}

/* ---------- Category sections ---------- */

.blog-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-section__head {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  width: 100%;
}

.blog-section__head-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.blog-section__title {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  color: var(--color-text-strong);
}

.blog-section__subtitle {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 939px;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.75rem);
  line-height: 1.43;
  color: #000;
  opacity: 0.8;
}

.blog-section__more {
  flex-shrink: 0;
  padding: 12px 24px 12px 32px;
  border-radius: 100px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .blog-hero__slide {
    padding: 48px 32px 200px;
    min-height: 480px;
  }

  .blog-hero__nav {
    left: 32px;
  }

  .blog-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Below 680px the arrows collide with the 4-thumb strip (both bottom-anchored)
   — dots carry navigation instead. */
@media (max-width: 680px) {
  .blog-hero__thumbs {
    display: none;
  }
}

@media (max-width: 640px) {
  .blog-hero__slide {
    min-height: 420px;
    padding: 32px 24px 120px;
  }

  .blog-hero__nav {
    left: 24px;
    bottom: 32px;
  }

  .blog-hero__arrows {
    right: 24px;
    bottom: 32px;
  }
}
