@import url("../../share/colors.css");

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.hiw {
    width: min(100%, 1408px);
    margin-inline: auto;
    padding: 80px 61px;
    border-radius: 28px;
    border: 1px solid var(--Extended-Border-Soft, #E5E7EB);
    background: linear-gradient(149deg, rgba(239, 241, 244, 0.85) 0%, rgba(239, 241, 244, 0.75) 100%);
}

.hiw__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.hiw__title {
    color: var(--Text-Dark, #0F1C3F);
    font-size: 56px;
    font-style: normal;
    font-weight: 700;
    line-height: 114%; /* 63.84px */
    letter-spacing: -0.56px;
    margin-bottom: 12px;
}

.hiw__subtitle {
    color: var(--Extended-Muted-Blue-Gray, #41537A);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 30px */
}

.hiw__track {
    display: flex;
    gap: 16px;
}

.him-card {
    flex: 1;
    border-radius: 20px;
    border: 1px solid var(--BG-White, #FFF);
    background: var(--BG-White-60, rgba(255, 255, 255, 0.60));
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.him-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.him-card__step {
    color: var(--Brand-Primary-100, #112AD4);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 14.3px */
    letter-spacing: 0.055px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.him-card__step::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--Extended-Border-Soft, #E5E7EB);
}

.him-badge {
    border-radius: 50px;
    border: 1px solid var(--Brand-Primary-10, rgba(17, 42, 212, 0.10));
    background: var(--Brand-Primary-5, rgba(17, 42, 212, 0.05));
    padding: 4px 12px;
    color: var(--Brand-Primary-100, #112AD4);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 14px */
}

.him-card__title {
    color: var(--Extended-Dark-Graphite, #101727);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 26px */
    letter-spacing: -0.02px;
    margin-bottom: 6px;
}

.him-card__desc {
    color: var(--Text-Muted, #5A6478);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 155%; /* 21.7px */
    margin-bottom: 18px;
}

.him-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 38px;
}

@media (min-width: 768px) {
    .hiw__track {
        display: grid;
        grid-template-columns: repeat(2, 312px);
        gap: 16px;
        justify-content: center;
    }

    .him-card {
        flex: none;
        width: 312px;
        height: 404px;
    }

    .him-tags {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1024px) {
    .hiw {
        padding: 60px 40px;
    }
}

@media (min-width: 1440px) {
    .hiw__track {
        grid-template-columns: repeat(4, 312px);
    }
}

.him-tag {
    display: flex;
    padding: 6px 10px;
    align-items: center;
    gap: 6px;
    color: var(--Extended-Dark-Graphite, #101727);
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 145%; /* 15.95px */
    border-radius: 50px;
    border: 1px solid var(--Extended-Border-Soft, #E5E7EB);
    background: var(--BG-Light, #F2F3F5);
    white-space: nowrap;
}

.him-tag::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--Brand-Primary-100, #112AD4);
    flex: 0 0 auto;
}

.media {
    margin-top: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 122px;
    border-radius: 12px;
    border: 1px solid var(--BG-White, #FFF);
    background: var(--BG-Light, #F2F3F5);
    padding: 16px;
}

.step-1 .media {
    border: none;
    padding: 0;
}

.step-4 .media {
    opacity: 0.8;
    padding: 0;
}

.media--img {
    width: 100%;
    aspect-ratio: 16/10;
}

.step-1 .media__img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.media__img {
    object-fit: cover;
    display: block;
    height: 100%;
    width: auto;
    max-width: 45%;
}

.dash {
    width: 100%;
    padding: 16px;
    box-shadow: 0 1px 0 rgba(20, 25, 50, .04);
}

.dash__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dash__title {
    color: var(--Extended-Dark-Graphite, #101727);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 14.3px */
    letter-spacing: 0.055px;
}

.dash__status {
    border-radius: 50px;
    border: 1px solid rgba(0, 156, 91, 0.08);
    background: rgba(0, 156, 91, 0.05);
    color: var(--Status-Success, #009C5B);
    font-size: 8px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.88px;
}

.dash__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--Brand-Primary-10, rgba(17, 42, 212, 0.10));
}

.dash__item:last-child {
    border-bottom: none;
}

.dash__label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--Extended-Dark-Graphite, #101727);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 14px */
}

.dash__value {
    color: var(--Status-Success, #009C5B);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 14px */
}


/* ---------- pagination dots (mobile only) ---------- */
.dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #c9cee2;
    cursor: pointer;
}

.dots button.active {
    width: 22px;
    border-radius: 5px;
    background: var(--Text-Primary, #202D4E);
}

/* ================= MOBILE — swipeable ================= */
@media (max-width: 767px) {
    .hiw {
        padding: 32px 16px 24px;
        max-width: 100%;
        border-radius: 14px;
    }

    .hiw__head {
        padding: 0 20px;
        margin-bottom: 24px;
    }

    .hiw__title {
        font-size: 32px;
        font-style: normal;
        font-weight: 700;
        line-height: 118%; /* 37.76px */
        letter-spacing: -0.16px;
        margin-bottom: 6px;
    }

    .hiw__subtitle {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%; /* 21px */    }

    .hiw__track {
        display: flex;
        grid-template-columns:none;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        scrollbar-width: none;
        flex-direction: row;
    }

    .hiw__track::-webkit-scrollbar {
        display: none;
    }

    .him-card {
        scroll-snap-align: center;
        flex: 0 0 84%;
        min-width: 84%;
        padding: 24px;
        border-radius: 14px;
    }

    .him-card__title {
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 137%; /* 21.92px */
        margin-bottom: 4px;
    }

    .him-card__desc {
        font-size: 13px;
        font-style: normal;
        font-weight: 500;
        line-height: 154%; /* 20.02px */
        margin-bottom: 18px;
    }

    .media {
        height: 150px;
        overflow: hidden;
    }
    .him-tags {
        margin-bottom: 0;
    }

    .dots {
        display: flex;
        background: var(--BG-White);
        padding: 4px 6px;
        width: fit-content;
        margin: auto;
        border-radius: 99px;
        margin-top: 24px;
    }

    .media__img {
        height: auto;
    }

    .dash {
        height: 100%;
    }
}