/* ============================================================
   Quality Slider Widget
   Two-column: large current image (left) + content & preview (right)
   ============================================================ */

.tekcom-quality-slider {
    width: 100%;
}

/* ── Two-column grid ── */
.tqs-layout {
    display: grid;
    grid-template-columns: 58fr 42fr;
    /* Khoảng cách giữa 2 cột */
    column-gap: 80px;
}

/* ── Left column: main image ── */
.tqs-image-col {
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

/* Track fill toàn bộ chiều cao cột — đây là containing block cho 2 ảnh */
.tqs-image-track {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tqs-img-current {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.tqs-img-incoming {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 2;
}

/* ── Right column ── */
.tqs-content-col {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Content area */
.tqs-content-wrap {
    flex: 1;
    padding: 0 40px 16px;
    display: flex;
    flex-direction: column;
}

/* ── Title ── */
.tqs-title {
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    font-weight: 700;
    color: #193250;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tqs-title.tqs-fading {
    opacity: 0;
    transform: translateY(8px);
}

/* ── Description ── */
.tqs-description {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
    transition: opacity 0.25s ease;
}

.tqs-description.tqs-fading {
    opacity: 0;
}

.tqs-description p {
    margin: 0;
}

/* ── Navigation ── */
.tqs-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.tqs-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(25, 50, 80, 0.2);
    background: transparent;
    color: #AFB0B3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tqs-nav-btn:hover {
    color: #193250;
}

.tqs-icon-next {
    display: block;
    transform: scaleX(-1);
}

/* ── Preview image (next slide) ── */
.tqs-preview-wrap {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    height: 260px;
    margin: 0 clamp(1.5rem, 3vw, 3rem);
}

.tqs-preview-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 3;
    pointer-events: none;
}

.tqs-img-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.tqs-img-preview-incoming {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 2;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tqs-layout {
        grid-template-columns: 1fr 1fr;
    }

    .tqs-image-col {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .tqs-layout {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .tqs-image-col {
        min-height: 260px;
    }

    .tqs-preview-wrap {
        height: 180px;
    }
}