/* ============================================================
   PHUYENTRAVEL — content-slider.css
   Frontend slider cho shortcode [blog_slider ids="..."]
   ============================================================ */

/* ── Outer wrapper ───────────────────────────────────────────── */
.bt-slider {
    margin: 28px 0;
    outline: none;
    user-select: none;
}

/* ── Viewport — position:relative để arrows canh giữa ảnh ───── */
.bt-slider__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    line-height: 0;
}

/* ── Track ──────────────────────────────────────────────────── */
.bt-slider__track {
    display: flex;
    will-change: transform;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Slide ──────────────────────────────────────────────────── */
.bt-slider__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    line-height: 0;
    box-sizing: border-box;
}

/* Override .pht-content img rules (margin, border-radius) that leak in */
.bt-slider .bt-slider__slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 560px;
    margin: 0;
    border-radius: 0;
}

/* ── Caption — bên dưới ảnh, kiểu wp-caption-text ───────────── */
.bt-slider__caption {
    display: none;
    font-size: 12px;
    color: rgb(136, 136, 136);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.bt-slider__caption.active {
    display: block;
}

/* ── Arrows — inside viewport, always visible ───────────────── */
.bt-slider__prev,
.bt-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.bt-slider__prev { left: 16px; }
.bt-slider__next { right: 16px; }

.bt-slider__prev:hover,
.bt-slider__next:hover {
    background: #f4f4f4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}

.bt-slider__prev:active {
    transform: translateY(-50%) scale(0.91);
}

.bt-slider__next:active {
    transform: translateY(-50%) scale(0.91);
}

/* ── Dots — bên dưới ảnh, không overlay ─────────────────────── */
.bt-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 2px 0;
}

.bt-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.22s, width 0.22s, border-radius 0.22s;
}

.bt-slider__dot.active {
    background: #1e40af;
    width: 28px;
    border-radius: 5px;
}

.bt-slider__dot:hover:not(.active) {
    background: #94a3b8;
}

/* ── Dark mode ──────────────────────────────────────────────── */
body[data-theme="dark"] .bt-slider__viewport {
    background: #000;
}

body[data-theme="dark"] .bt-slider__prev,
body[data-theme="dark"] .bt-slider__next {
    background: #1e293b;
    color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

body[data-theme="dark"] .bt-slider__dot {
    background: #334155;
}

body[data-theme="dark"] .bt-slider__dot.active {
    background: #3b82f6;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .bt-slider__prev,
    .bt-slider__next {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .bt-slider__prev { left: 10px; }
    .bt-slider__next { right: 10px; }

    .bt-slider__slide img {
        max-height: 240px;
    }

    .bt-slider__dot.active {
        width: 22px;
    }
}

/* Table styling nằm trong single.css — không duplicate ở đây */
