/* ============================================================
   HERO SLIDER - U Tẻn
   ============================================================ */

/* Wrapper */
.uten-hero-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: inherit;
}

/* ─── Main Slides ─── */
.uten-slides-container {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
}

.uten-slide {
    position: absolute;
    inset: 0;                       /* top/right/bottom/left = 0 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.uten-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Gradient overlay bên trái để chữ dễ đọc */
.uten-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.30) 50%,
        rgba(0, 0, 0, 0.00) 100%
    );
    z-index: 1;
}

/* Nội dung văn bản */
.uten-slide-body {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 80px;
    max-width: 650px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 2s ease-in-out, transform 2s ease-out;
}

.uten-slide.is-active .uten-slide-body {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.6s;
}

.uten-slide-sub {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: var(--uten-secondary, #f28200);
}

.uten-slide-title {
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.uten-slide-desc {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0 0 30px;
}

.uten-slide-desc p { margin: 0; }

/* CTA Button */
.uten-slide-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--uten-secondary, #f28200);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(242,130,0,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uten-slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(242,130,0,0.55);
}

/* ─── Thumbnail Nav ─── */
.uten-thumbs-nav {
    position: absolute;
    bottom: 36px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 12px;
    max-width: calc(100% - 80px);
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.uten-thumbs-nav::-webkit-scrollbar {
    display: none;
}

.uten-thumb-btn {
    width: 110px;
    height: 70px;
    min-width: 110px;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.55;
    padding: 0;
    margin: 0;
    outline: none;
    scroll-snap-align: start;
}

.uten-thumb-btn:hover {
    opacity: 0.85;
    transform: scale(1.05);
}

.uten-thumb-btn.is-active {
    border-color: #fff;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .uten-hero-wrap {
        display: flex;
        flex-direction: column;
    }

    .uten-slides-container {
        height: 65vh;
        min-height: 480px;
    }

    .uten-slide-body {
        padding: 0 20px;
        max-width: 100%;
    }

    .uten-slide-sub {
        font-size: 11px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .uten-slide-title {
        font-size: clamp(1.15rem, 4.8vw, 1.5rem);
        line-height: 1.28;
        margin-bottom: 10px;
    }

    .uten-slide-desc {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .uten-slide-btn {
        padding: 10px 22px;
        font-size: 13px;
    }

    /* Khung thumbnail: rộng đúng 3 cái, căn giữa, nhiều hơn thì scroll trong khung */
    .uten-thumbs-nav {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        /* 3 thumb (80px) + 2 gap (20px) + padding 2 bên (28px) = 308px */
        width: 308px;
        max-width: calc(100% - 32px);
        gap: 20px;
        margin: 0 auto;
        padding: 14px;
        background: #fff;
        border-radius: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    .uten-thumbs-nav::-webkit-scrollbar {
        display: none;
    }

    .uten-thumb-btn {
        width: 80px;
        height: 54px;
        min-width: 80px;
        margin: 0;
        opacity: 0.7;
        border: 2.5px solid #e0e0e0;
        border-radius: 10px;
    }

    .uten-thumb-btn.is-active {
        border-color: var(--uten-primary, #287b38);
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 3px 12px rgba(40, 123, 56, 0.25);
    }
}

@media (max-width: 480px) {
    .uten-slides-container {
        height: 58vh;
        min-height: 440px;
    }

    .uten-slide-body {
        padding: 0 16px;
    }

    .uten-slide-sub {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .uten-slide-title {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .uten-slide-desc {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .uten-slide-btn {
        padding: 9px 18px;
        font-size: 12.5px;
    }
}
