.study-process-wrapper {
    --sp-gap: 20px;
    --sp-number: 36px;
    --sp-count: 3;
    display: grid;
    grid-template-columns: repeat(var(--sp-count), minmax(0, 1fr));
    gap: var(--sp-gap);
    align-items: stretch;
    width: 100%;
}

.study-process-wrapper[data-steps="4"] {
    --sp-gap: 16px;
}

.study-process-wrapper[data-steps="4"] .study-process-card {
    padding: 28px 16px 32px;
}

.study-process-wrapper[data-steps="4"] .study-process-title {
    font-size: 18px;
}

.study-process-wrapper[data-steps="4"] .study-process-details {
    font-size: 14px;
}

.study-process-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.study-process-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--sp-number);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.study-process-number {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sp-number);
    height: var(--sp-number);
    border-radius: 50%;
    background-color: #54843C;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.study-process-connector {
    position: absolute;
    top: 50%;
    left: calc(50% + 26px);
    width: calc(100% + var(--sp-gap) - 52px);
    height: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.study-process-connector::before {
    content: '';
    position: absolute;
    left: 0;
    right: 9px;
    top: 50%;
    height: 1.5px;
    background-color: #C8CCC9;
    transform: translateY(-50%);
}

.study-process-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #C8CCC9;
    border-right: 2px solid #C8CCC9;
    transform: translateY(-50%) rotate(45deg);
}

.study-process-item:last-child .study-process-connector {
    display: none;
}

.study-process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 36px 28px 40px;
    background-color: #54843C0A;
    border-radius: 12px;
    text-align: center;
}

.study-process-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.study-process-card-icon img {
    width: 100%;
    height: 100%;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(42%) sepia(87%) saturate(300%) hue-rotate(56deg) brightness(90%) contrast(83%);
}

.study-process-title {
    margin: 0 0 12px;
    color: #040B01;
    font-family: "DM Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.study-process-details {
    color: #4D525A;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
}

.study-process-details p {
    margin: 0;
}

.study-process-details p + p {
    margin-top: 8px;
}

.study-process-details a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media screen and (max-width: 1200px) {
    .study-process-card {
        padding: 28px 20px 32px;
    }

    .study-process-title {
        font-size: 18px;
    }

    .study-process-details {
        font-size: 14px;
    }
}

@media screen and (max-width: 990px) {
    .study-process-wrapper {
        --sp-gap: 28px;
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .study-process-connector {
        display: none;
    }

    .study-process-item:not(:last-child) {
        position: relative;
        padding-bottom: 12px;
    }

    .study-process-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid #C8CCC9;
        border-bottom: 1.5px solid #C8CCC9;
        transform: translateX(-50%) rotate(45deg);
    }

    .study-process-card {
        padding: 32px 24px 36px;
    }

    .study-process-wrapper[data-steps="4"] .study-process-card {
        padding: 32px 24px 36px;
    }

    .study-process-wrapper[data-steps="4"] .study-process-details {
        font-size: 15px;
    }
}

@media screen and (max-width: 575px) {
    .study-process-wrapper {
        --sp-number: 32px;
    }

    .study-process-number {
        font-size: 14px;
    }

    .study-process-card {
        padding: 28px 18px 32px;
    }

    .study-process-card-icon,
    .study-process-card-icon img {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
    }

    .study-process-title {
        font-size: 18px;
    }
}
