/* BlogCardSlider — horizontally scrolling blog strip.
 *
 * Cards are sized so a whole number of them fits the viewport at every
 * breakpoint: 2 on mobile (the point of this section — no half-card peek),
 * 3 on tablet, and a merchant-set count on desktop via --desktop-columns.
 */

.cc_9mq44h5t_MT31rLEr6r .blog-card-slider {
  --slider-gap: var(--space-md, 24px);
  --visible-cards: 2;

  width: 100%;
  background-color: var(--color-bg, #FAF8F5);
  padding: var(--space-lg, 40px) clamp(16px, 3vw, 32px);
}

@media (min-width: 768px) {
  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider {
    --visible-cards: 3;
    padding: var(--space-xl, 64px) clamp(24px, 3vw, 40px);
  }
}

@media (min-width: 1024px) {
  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider {
    --visible-cards: var(--desktop-columns, 3);
  }
}

.cc_9mq44h5t_MT31rLEr6r .blog-card-slider__title {
  margin: 0 0 var(--space-md, 24px);
  text-align: center;
  font-family: var(--font-display, Georgia, serif);
  font-size: var(--text-h2, 2.25rem);
  font-weight: 700;
  color: inherit;
}

.cc_9mq44h5t_MT31rLEr6r .blog-card-slider__viewport {
  position: relative;
}

.cc_9mq44h5t_MT31rLEr6r .blog-card-slider__track {
  display: grid;
  gap: var(--slider-gap);
  grid-auto-flow: column;
  /* n cards + (n-1) gaps fill the width exactly, so no card is clipped. */
  grid-auto-columns: calc(
    (100% - (var(--visible-cards) - 1) * var(--slider-gap)) / var(--visible-cards)
  );
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cc_9mq44h5t_MT31rLEr6r .blog-card-slider__track::-webkit-scrollbar {
  display: none;
}

.cc_9mq44h5t_MT31rLEr6r .blog-card-slider__track > * {
  scroll-snap-align: start;
}

/* Mobile gets a tighter gutter so two cards keep a usable width. */
@media (max-width: 767px) {
  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider {
    --slider-gap: var(--space-sm, 16px);
  }
}

/* ─── Arrows ────────────────────────────────────────────────────
 * Touch users swipe, so the arrows only appear where a real cursor
 * exists — that also keeps them off the mobile layout entirely.
 */
.cc_9mq44h5t_MT31rLEr6r .blog-card-slider__arrow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider__arrow {
    position: absolute;
    top: 30%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--color-border, #E5DDD5);
    border-radius: 50%;
    background: var(--color-surface, #FFFFFF);
    color: var(--color-text-primary, #1C1917);
    cursor: pointer;
    transition: opacity 200ms ease, background-color 200ms ease;
  }

  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider__arrow--prev {
    left: calc(-1 * var(--space-sm, 16px));
  }

  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider__arrow--next {
    right: calc(-1 * var(--space-sm, 16px));
  }

  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider__arrow:hover:not(:disabled) {
    background: var(--color-surface-alt, #F2EDE8);
  }

  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider__arrow:disabled {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_9mq44h5t_MT31rLEr6r .blog-card-slider__track {
    scroll-behavior: auto;
  }
}

/* BlogSlideCard — blog tile used inside the BlogCardSlider section. */

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-surface-alt, #F2EDE8);
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__image--empty {
  background-color: var(--color-surface-alt, #F2EDE8);
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card:hover .blog-slide-card__image {
  transform: scale(1.03);
}

/* `margin-top: auto` on the read-more keeps it pinned to the bottom so the
 * links line up across cards with different title/excerpt lengths. */
.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 8px);
  flex: 1;
  padding-top: var(--space-sm, 16px);
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__title {
  margin: 0;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-body, 1rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary, #1C1917);
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label, sans-serif);
  font-size: var(--text-small, 0.875rem);
  color: var(--color-text-secondary, #6B6560);
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__author-icon {
  flex: none;
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__excerpt {
  margin: 0;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-small, 0.875rem);
  line-height: 1.5;
  color: var(--color-text-secondary, #6B6560);
}

.cc_9mq44h5t_MT31rLEr6r .blog-slide-card__read-more {
  margin-top: auto;
  align-self: flex-end;
  padding-top: var(--space-xs, 8px);
  font-family: var(--font-label, sans-serif);
  font-size: var(--text-small, 0.875rem);
  letter-spacing: 0.06em;
  color: var(--color-text-primary, #1C1917);
  border-bottom: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .cc_9mq44h5t_MT31rLEr6r .blog-slide-card__image, .cc_9mq44h5t_MT31rLEr6r .blog-slide-card:hover .blog-slide-card__image {
    transition: none;
    transform: none;
  }
}
