/* ═══════════════════════════════════════
   Image Tabs Widget
   ═══════════════════════════════════════ */

/* Wrapper */
.itw-wrapper {
    width: 100%;
}

/* ─── Tab Images Row ─── */
.itw-tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.itw-tab-item {
    position: relative;
    flex: 1 1 0%;
    min-width: 100px;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.itw-tab-item:not(.is-active) {
    opacity: 0.65;
}

.itw-tab-item.is-active {
    opacity: 1;
}

/* Active indicator — vertical bar on the left */
.itw-tab-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.25s ease;
    z-index: 2;
    border-radius: 2px 0 0 2px;
}

.itw-tab-item.is-active .itw-tab-indicator {
    background-color: #0054A6;
}

/* Tab image */
.itw-tab-image {
    width: 100%;
    overflow: hidden;
}

.itw-tab-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.itw-tab-item:hover .itw-tab-image img {
    transform: scale(1.03);
}

/* ─── Content Popup ─── */
.itw-popup-area {
    position: relative;
    width: 100%;
    min-height: 0;
}

.itw-content-popup {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 480px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: itwPopupIn 0.25s ease;
    box-sizing: border-box;
}

.itw-content-popup.is-active {
    display: block;
}

@keyframes itwPopupIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.itw-content-title {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

/* Subtitle */
.itw-content-subtitle {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
}

/* Body */
.itw-content-body {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Button */
.itw-content-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: background-color 0.25s ease;
    border: none;
    cursor: pointer;
}

.itw-content-btn:hover {
    background-color: #444;
    color: #fff;
    text-decoration: none;
}

/* ─── Responsive ─── */
@media (max-width: 767px) {
    .itw-tabs-row {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .itw-tab-item {
        min-width: 120px;
        flex: 0 0 auto;
    }

    .itw-tab-image img {
        height: 180px;
    }

    .itw-content-popup {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    .itw-content-popup {
        padding: 20px 16px;
    }

    .itw-content-title {
        font-size: 18px;
    }
}
