/*
 * Content width, gap, image ratio and object-fit are set as CSS variables on the section (see index.tsx).
 * Layout: two columns. Left = sticky banner with an overlay box. Right = featured post, divider, two-post grid
 * that scrolls normally. Same pattern as ProductSlider feature mode.
 * --bs-sticky-top is the gap above the banner while the page scrolls; added on top of the live header height (--ta-header-offset).
 * Breakpoints: tablet = 1024px 1024px, mobile = 768px 768px.
 */
.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase {
  --bs-sticky-top: calc(var(--ta-header-offset, 0px) + 24px);
  box-sizing: border-box;
  width: 100%;
  overflow-x: clip;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--bs-gap, 16px);
  align-items: start;
}

/* Banner is viewport-high (capped) and sticks; the right column is taller, so the banner has room to move. */
.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner {
  position: sticky;
  top: var(--bs-sticky-top);
  align-self: start;
  height: min(calc(100vh - var(--bs-sticky-top) - 24px), 560px);
  min-height: 400px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: var(--bs-object-fit, cover);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-box {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 380px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ta-space-sm);
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ta-color-text-primary, #1a1a1a);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-title {
  margin: 0;
  color: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: var(--ta-title-font-weight);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: var(--ta-space-xs);
  padding: 0 24px;
  font-size: 12px;
  background: var(--ta-color-text-strong, #000);
  color: #fff;
  text-decoration: none;
  transition: opacity var(--ta-transition-fast);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-button:hover {
  opacity: 0.8;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-side {
  display: flex;
  flex-direction: column;
  gap: var(--bs-gap, 16px);
  min-width: 0;
  align-self: start;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card {
  display: flex;
  flex-direction: column;
  gap: var(--ta-space-sm);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--bs-object-fit, cover);
  transition: transform var(--ta-transition-base);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card:hover .blog-showcase-card-image {
  transform: scale(1.03);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card-category, .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card-title {
  margin: 0;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card-category {
  font-size: 12px;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card-title {
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  text-transform: none;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured {
  display: flex;
  flex-direction: column;
  gap: var(--ta-space-sm);
  color: inherit;
  text-decoration: none;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--bs-object-fit, cover);
  transition: transform var(--ta-transition-base);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured:hover .blog-showcase-featured-image {
  transform: scale(1.03);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-body {
  display: flex;
  flex-direction: column;
  gap: var(--ta-space-sm);
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-title {
  margin: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-more {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.15;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bs-gap, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-grid > li {
  min-width: 0;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured:focus-visible, .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-empty {
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner {
    position: relative;
    top: auto;
    height: 360px;
    min-height: 0;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-banner-box {
    bottom: 16px;
    padding: 16px 20px;
  }

  /* Featured post and the grid posts become one horizontal scroll-snap track. */
  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-side {
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-side::-webkit-scrollbar {
    display: none;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-divider {
    display: none;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-grid {
    display: contents;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured, .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-grid > li {
    flex: 0 0 80%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured-image {
    transition: none;
  }

  .cc_5eyhtjn9_mwOgqbVqNS .blog-showcase-featured:hover .blog-showcase-featured-image {
    transform: none;
  }
}
