/* ============================================================
 * Plan banner carousel (template-parts/plan-carousel.php)
 * ============================================================ */
.plan-carousel {
  --pc-accent: #3f6b3a;
  --pc-dot: #c9c4b6;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 56px;
}

.plan-carousel__swiper {
  overflow: hidden;
  border-radius: 6px;
}

.plan-carousel__link {
  display: block;
}

.plan-carousel__img {
  display: block;
  width: 100%;
  height: auto;
  /* SP: tất cả ảnh SP cùng tỉ lệ 1560x1440 */
  aspect-ratio: 1560 / 1440;
  object-fit: cover;
}

/* Nút prev / next: chỉ hiện trên PC */
.plan-carousel__arrow {
  display: none;
}

.plan-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.plan-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pc-dot);
  cursor: pointer;
  transition: background-color .3s, transform .3s;
}

.plan-carousel__dot.is-active {
  background: var(--pc-accent);
  transform: scale(1.15);
}

.plan-carousel__dot:focus-visible,
.plan-carousel__arrow:focus-visible {
  outline: 2px solid var(--pc-accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .plan-carousel {
    padding: 0 56px;
    margin-bottom: 72px;
  }

  .plan-carousel__img {
    /* PC: cố định tỉ lệ để các slide cao bằng nhau (plan_pc hơi khác tỉ lệ) */
    aspect-ratio: 2360 / 660;
  }

  .plan-carousel__arrow {
    position: absolute;
    top: calc(50% - 13px); /* trừ nửa vùng dots bên dưới */
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--pc-accent);
    border-radius: 50%;
    background: #fff;
    color: var(--pc-accent);
    cursor: pointer;
    transition: background-color .3s, color .3s;
  }

  .plan-carousel__arrow svg {
    width: 18px;
    height: 18px;
  }

  .plan-carousel__arrow:hover {
    background: var(--pc-accent);
    color: #fff;
  }

  .plan-carousel__arrow--prev { left: 0; }
  .plan-carousel__arrow--next { right: 0; }
}
