/* Embla Carousel Styles
   ========================================================================== */

.featured-banner-section {
  padding-block: var(--space-xl);
}

/* Embla Container */
.embla {
  position: relative;
}

.embla__viewport {
  overflow: hidden;
  border-radius: 0.5rem;
  background: #1a1a2e;
}

.embla__container {
  display: flex;
}

.embla__slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* Banner Slide - using every-layout aspect ratio technique */
.featured-banner__slide {
  display: block;
  position: relative;
  height: 0;
  padding-block-start: calc(1 / 2 * 100%); /* 2:1 aspect ratio */
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  text-decoration: none;
  color: #fff;
}

.featured-banner__slide:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .featured-banner__slide {
    padding-block-start: calc(1 / 3 * 100%); /* 3:1 aspect ratio on larger screens */
  }
}

.featured-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.featured-banner__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: var(--space-s);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

@media (min-width: 768px) {
  .featured-banner__content {
    max-width: 60%;
    padding: var(--space-m);
  }
}

.featured-banner__label {
  display: inline-block;
  font-size: var(--step--2);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2em 0.5em;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0.25em;
  margin-block-end: var(--space-xs);
  align-self: flex-start;
}

.featured-banner__title {
  font-size: var(--step-2);
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .featured-banner__title {
    font-size: var(--step-3);
  }
}

.featured-banner__author {
  font-size: var(--step--1);
  margin: 0;
  margin-block-start: -0.2em;
  color: #fff;
  opacity: 0.9;
}

.featured-banner__status {
  display: inline-block;
  font-size: var(--step--2);
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
  text-transform: capitalize;
  align-self: flex-start;
  margin-block-start: var(--space-l);
}

/* Navigation Buttons */
.embla__prev,
.embla__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--color-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.embla__prev:hover,
.embla__next:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.embla__prev:disabled,
.embla__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.embla__prev {
  left: var(--space-s);
}
.embla__next {
  right: var(--space-s);
}

@media (min-width: 900px) {
  .embla__prev {
    left: -3.5rem;
  }
  .embla__next {
    right: -3.5rem;
  }
}

.embla__prev svg,
.embla__next svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Dot Navigation */
.embla__dots {
  position: absolute;
  bottom: var(--space-s);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: var(--space-2xs);
}

.embla__dot {
  width: 0.75rem;
  height: 0.75rem;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.embla__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.embla__dot--active {
  background: #fff;
}

/* Hide navigation on touch devices (swipe works) */
@media (hover: none) {
  .embla__prev,
  .embla__next {
    display: none;
  }
}
