/* =============================================
   Strengths Stacking Widget v3
   strengths-stacking.css
   ============================================= */

.ss-wrap {
    background: #ffffff;
}

.ss-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── 頂部標題區 ── */
.ss-header-block {
    padding: 48px 40px 36px;
    border-bottom: 1px solid #e8e8e8;
}

.ss-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #2563eb;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.ss-eyebrow img {
    height: 24px;
    width: auto;
    display: block;
}

.ss-block-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* ── 每個步驟卡片 ── */
.ss-cell {
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    position: sticky;
}

/* 標題列 */
.ss-cell-header {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 16px;
}

.ss-num {
    font-size: 0.78rem;
    color: #64748b;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.ss-en {
    font-size: 0.78rem;
    color: #64748b;
    letter-spacing: 0.04em;
    flex: 1;
}

.ss-en-right {
    flex: 0 0 auto;
    text-align: right;
}

/* 主體 */
.ss-body {
    display: flex;
    border-top: 1px solid #e8e8e8;
    min-height: 420px;
}

/* ── 圖片區域（含 hover）── */
.ss-img {
    width: 52%;
    flex-shrink: 0;
    background: #e8ecf0;
    overflow: hidden;       /* hover 放大時裁切 */
    position: relative;
}

.ss-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    transition: transform 0.4s ease;  /* hover 預設值，可被 Elementor 覆寫 */
}

.ss-img:hover img {
    transform: scale(1.08);           /* hover 預設值，可被 Elementor 覆寫 */
}

.ss-img-ph {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: #94a3b8;
    letter-spacing: 0.1em;
}

/* ── 文字內容區 ── */
.ss-content {
    flex: 1;
    padding: 48px 48px 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.ss-content-en {
    font-size: 0.78rem;
    color: #64748b;
    letter-spacing: 0.04em;
}

.ss-title {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #2563eb;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.ss-txt {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.85;
}

.ss-txt p {
    margin-bottom: 8px;
}

.ss-txt p:last-child {
    margin-bottom: 0;
}

.ss-txt ul {
    padding-left: 1.2em;
    list-style: disc;
}

.ss-txt li {
    margin-bottom: 4px;
}

.ss-txt li::marker {
    color: #2563eb;
}

.ss-arrow {
    font-size: 0.88rem;
    color: #334155;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

/* ── 特殊視窗高度 ── */
@media screen and (min-width: 1024px) and (max-height: 600px) {
    .ss-cell { top: 0 !important; }
}

@media screen and (min-width: 1024px) and (max-height: 500px) {
    .ss-cell { position: static !important; }
}

/* ── 手機版 ── */
@media (max-width: 768px) {
    .ss-cell {
        position: relative !important;
        top: 0 !important;
    }

    .ss-body {
        flex-direction: column !important;
    }

    .ss-img {
        width: 100%;
        min-height: 260px;
    }

    .ss-img-ph {
        min-height: 260px;
    }

    .ss-content {
        padding: 32px 24px;
    }

    .ss-cell-header {
        padding: 0 24px;
        flex-wrap: wrap;
        height: auto;
        min-height: 52px;
        gap: 4px;
    }

    .ss-en-right {
        display: none;
    }

    .ss-header-block {
        padding: 36px 24px 28px;
    }
}
