/* ========================================
   Widget: Module Paths
======================================== */

/* Section Layout */

.budi-module-paths__wrapper {
    width: 100%;
}

.budi-module-paths {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */

.budi-module-paths__header {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(140px, 0.55fr);
    align-items: center;
    gap: 24px;
    padding: 18px 40px;
    background-color: rgba(138, 64, 141, 0.1);
}

.budi-module-paths__header-col {
    margin: 0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.budi-module-paths__header-col--sequence {
    text-align: left;
}

.budi-module-paths__header-col--price {
    text-align: right;
}

/* Rows */

.budi-module-paths__body {
    padding: 8px 0 24px;
}

.budi-module-paths__row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(140px, 0.55fr);
    align-items: center;
    gap: 24px;
    padding: 22px 40px;
    border-bottom: 1px solid rgba(24, 24, 24, 0.12);
}

.budi-module-paths__row:last-child {
    border-bottom: 0;
    padding-bottom: 8px;
}

/* Role */

.budi-module-paths__role {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.budi-module-paths__icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    margin: 0;
}

.budi-module-paths__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.budi-module-paths__title {
    margin: 0;
    color: #181818;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

/* Sequence */

.budi-module-paths__sequence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.budi-module-paths__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8a408d 0%, #322447 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
}

.budi-module-paths__arrow {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.budi-module-paths__arrow svg {
    display: block;
}

/* Share / Price */

.budi-module-paths__share {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.budi-module-paths__modules {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.budi-module-paths__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
}

.budi-module-paths__old-price {
    color: rgba(102, 102, 102, 0.4);
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
    text-decoration: line-through;
}

.budi-module-paths__price {
    color: var(--color-main, #8a408d);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Note */

.budi-module-paths__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 0 16px;
}

.budi-module-paths__note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.budi-module-paths__note-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.budi-module-paths__note-icon-svg {
    display: block;
}

.budi-module-paths__note-text {
    margin: 0;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive */

@media screen and (max-width: 991px) {
    .budi-module-paths {
        border-radius: 16px;
    }

    .budi-module-paths__header {
        display: none;
    }

    .budi-module-paths__body {
        padding: 8px 24px 16px;
    }

    .budi-module-paths__row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px 0;
    }

    .budi-module-paths__role {
        width: 100%;
    }

    .budi-module-paths__sequence {
        justify-content: flex-start;
        width: 100%;
    }

    .budi-module-paths__share {
        align-items: flex-start;
        width: 100%;
        text-align: left;
    }

    .budi-module-paths__prices {
        justify-content: flex-start;
    }

    .budi-module-paths__title {
        font-size: 18px;
    }

    .budi-module-paths__price {
        font-size: 22px;
    }

    .budi-module-paths__note {
        margin-top: 22px;
    }
}

@media screen and (max-width: 767px) {
    .budi-module-paths__body {
        padding: 8px 20px 12px;
    }

    .budi-module-paths__row {
        gap: 14px;
        padding: 18px 0;
    }

    .budi-module-paths__step {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .budi-module-paths__sequence {
        gap: 8px;
    }

    .budi-module-paths__note {
        margin-top: 18px;
        justify-content: flex-start;
    }

    .budi-module-paths__note-text {
        font-size: 14px;
    }
}