/* ══════════════════════════════════════
       CAROUSEL CONTROLS
       ══════════════════════════════════════ */
.slider-wrap {
    position: relative;
    padding: 0 44px;
}

/* ── Owl Carousel nav buttons (used by all sections) ── */
.slider-wrap .owl-carousel .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    margin: 0;
}

.slider-wrap .owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 52px;
    border-radius: 10px !important;
    background: var(--bs-primary-900) !important;
    color: #fff !important;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(33, 48, 105, .25);
    transition: background .15s;
    margin: 0;
    line-height: 1;
}

.slider-wrap .owl-carousel .owl-nav button:hover {
    background: var(--bs-primary-700) !important;
}

.slider-wrap .owl-carousel .owl-nav button.disabled {
    opacity: 0.35;
    cursor: default;
}

.slider-wrap .owl-carousel .owl-nav .owl-prev {
    left: -48px;
}

.slider-wrap .owl-carousel .owl-nav .owl-next {
    right: -48px;
}

/* Owl dots */
.slider-wrap .owl-carousel .owl-dots {
    margin-top: 16px;
    text-align: center;
}

.slider-wrap .owl-carousel .owl-dots {
    line-height: 0;
}

.slider-wrap .owl-carousel .owl-dot span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C6CEDE !important;
    margin: 0 5px;
    transition: background .2s;
}

/* พื้นที่กดของแต่ละจุดอย่างน้อย 24x24px (WCAG 2.5.8) - จุดที่เห็นยัง 10px เท่าเดิม
   owl.carousel.css ตั้ง padding:0 !important ที่ button.owl-dot จึงต้อง !important ทับ */
.slider-wrap .owl-carousel button.owl-dot {
    padding: 7px 2px !important;
}

.slider-wrap .owl-carousel .owl-dot.active span {
    background: var(--bs-secondary-500) !important;
}

/* Legacy dot-row (keep for any remaining Bootstrap carousel) */
.dot-row {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-gray-500);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.dot.on {
    background: var(--bs-secondary-500);
}

/* ── Responsive ── */
/* On tablet: slightly smaller nav area */
@media (max-width: 991.98px) {
    .slider-wrap {
        padding: 0 36px;
    }
    .slider-wrap .owl-carousel .owl-nav .owl-prev {
        left: -36px;
    }
    .slider-wrap .owl-carousel .owl-nav .owl-next {
        right: -36px;
    }
    .slider-wrap .owl-carousel .owl-nav button {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* On mobile: hide side nav arrows, reduce padding so dots still show */
@media (max-width: 767.98px) {
    .slider-wrap {
        padding: 0;
    }
    .slider-wrap .owl-carousel .owl-nav {
        display: none;
    }
    .slider-wrap .owl-carousel .owl-dots {
        margin-top: 12px;
    }
}