/* ── Country Work Section 2 — Carousel block ───────────────────────────── */

.olixir-country-work-section-2 {
  width: 100%;
  background: #000;
  padding: 5rem 0;
}

/* ── Title ──────────────────────────────────────────────────────────────── */

.olixir-country-work-section-2__title {
  margin: 0 0 2.5rem;
  color: var(--paper, #f5f0eb);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

/* ── Track ──────────────────────────────────────────────────────────────── */

.olixir-country-work-section-2__track {
  overflow: hidden;
  width: 100%;
}

.olixir-country-work-section-2__slides {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.olixir-country-work-section-2__slide {
  flex: 0 0 100%;
  width: 100%;
}

/* ── Figure / image ─────────────────────────────────────────────────────── */

.olixir-country-work-section-2__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.olixir-country-work-section-2__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.olixir-country-work-section-2__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Caption ────────────────────────────────────────────────────────────── */

.olixir-country-work-section-2__caption {
    padding: 1.25rem 1rem 0 1rem;
    margin: 0;
    color: #fff;
    line-height: 1.5;
    font-size: 0.85rem;
    font-weight: 200;
    text-align: center;
}

/* ── Dots ───────────────────────────────────────────────────────────────── */

.olixir-country-work-section-2__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.olixir-country-work-section-2__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.olixir-country-work-section-2__dot.is-active {
  width: 32px;
}

.olixir-country-work-section-2__dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: #fff;
}

.olixir-country-work-section-2__dot.is-active::after {
  animation: owcs2-dot-fill var(--carousel-duration, 5000ms) linear forwards;
}

@keyframes owcs2-dot-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Carousel wrapper & arrows ───────────────────────────────────────────── */

.olixir-country-work-section-2__carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.olixir-country-work-section-2__carousel .olixir-country-work-section-2__track {
  flex: 1;
  min-width: 0;
}

.olixir-country-work-section-2__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;

  svg {
    width: 20px;
    height: 20px;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.15);
    /* border-color: rgba(255, 255, 255, 0.6); */
    color: #fff;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .olixir-country-work-section-2 {
    padding: 3rem 0;
  }

  .olixir-country-work-section-2__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .olixir-country-work-section-2__caption {
    font-size: 0.9rem;
  }

  .olixir-country-work-section-2__carousel {
    gap: 0.5rem;
  }

  .olixir-country-work-section-2__arrow {
    width: 36px;
    height: 36px;

    svg {
      width: 16px;
      height: 16px;
    }
  }
}

/* ── Editor preview ─────────────────────────────────────────────────────── */

.editor-styles-wrapper .olixir-country-work-section-2.is-editor-preview {
  padding: 20px;
  background: #1a1713;
}

.editor-styles-wrapper .olixir-country-work-section-2.is-editor-preview .olixir-country-work-section-2__caption {
  color: #fff;
}

.editor-styles-wrapper .olixir-country-work-section-2.is-editor-preview .olixir-country-work-section-2__img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}

.editor-styles-wrapper .olixir-country-work-section-2.is-editor-preview .olixir-country-work-section-2__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.editor-styles-wrapper .olixir-country-work-section-2.is-editor-preview .olixir-country-work-section-2__add-row {
  margin-top: 16px;
}
