/* ============================================================
   Tab Image Switcher — tab-image-switcher.css
   ============================================================ */

/* ---- Layout Wrapper ---- */
.tis-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.tis-dir-left {
    flex-direction: row;
}

.tis-dir-right {
    flex-direction: row-reverse;
}

/* ---- Image Column ---- */
.tis-image-col {
    position: relative;
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}

.tis-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tis-img-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 400ms ease, transform 400ms ease;
    pointer-events: none;
    z-index: 0;
}

.tis-img-slide.tis-img-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    pointer-events: auto;
}

/* ---- Tabs Column ---- */
.tis-tabs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- Single Tab Card ---- */
.tis-tab-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 250ms ease,
                border-color 250ms ease,
                box-shadow 250ms ease,
                transform 250ms ease;
    position: relative;
    outline: none;
}

.tis-tab-item:last-child {
    margin-bottom: 0;
}

/* Lift on hover — toggled via JS class */
.tis-lift-hover .tis-tab-item:hover {
    transform: translateY(-2px);
}

.tis-tab-item:focus-visible {
    outline: 2px solid #2ec4b6;
    outline-offset: 2px;
}

/* ---- Inner flex layout ---- */
.tis-tab-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* ---- Icon wrapper ---- */
.tis-tab-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 250ms ease;
    flex-shrink: 0;
}

.tis-tab-icon {
    font-size: 22px;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 250ms ease;
}

.tis-tab-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: fill 250ms ease;
}

/* ---- Active state: icon ---- */
.tis-tab-item.tis-active .tis-tab-icon-wrap {
    background-color: #d0f5f3;
}

.tis-tab-item.tis-active .tis-tab-icon,
.tis-tab-item.tis-active .tis-tab-icon svg {
    color: #2ec4b6;
    fill: #2ec4b6;
}

/* ---- Text Content ---- */
.tis-tab-content {
    flex: 1;
    min-width: 0;
}

.tis-tab-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
    transition: color 250ms ease;
}

.tis-tab-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    transition: color 250ms ease;
}

/* ---- Active state: text ---- */
.tis-tab-item.tis-active .tis-tab-title {
    color: #2ec4b6;
}

.tis-tab-item.tis-active .tis-tab-desc {
    color: #444444;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .tis-wrapper,
    .tis-dir-left,
    .tis-dir-right {
        flex-direction: column !important;
    }

    .tis-image-col {
        flex: none !important;
        max-width: 100% !important;
        width: 100%;
        height: 280px !important;
        margin-bottom: 20px;
    }

    .tis-img-slide {
        height: 280px !important;
    }
}
