/* How to Apply Section */
.how-to-apply {
    padding: 0 0;
    padding-top: 120px;
    position: relative;
    /* overflow: hidden; Removed to allow decor image to overlap hero */
}

.how-to-apply__container {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

.how-to-apply__decor-image {
    position: absolute;
    top: -6%;
    left: 0;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    max-width: 150px;
    height: auto;
}

.how-to-apply__main-title {
    font-family: var(--font-family-archer, 'Archer', serif);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: var(--color-text-teal, #196B81);
    text-align: center;
    position: relative;
    margin: 0;
    margin-bottom: 60px;
}

.how-to-apply__main-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width:30%;
    height: 15px;
    background-image: url('../images/BRUSHES.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateX(-50%);
}

/* Dashed Line - SVG positioned in center of container */
.how-to-apply__line {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    height: 100%;
    z-index: 1;
}

/* Step container */
.how-to-apply__step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 85px;
    margin-bottom: 60px;

    position: relative;
}

.how-to-apply__step:last-child {
    margin-bottom: 0;
}

/* Content block */
.how-to-apply__content {
    max-width: 367px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* Step number - circle in the center */
.how-to-apply__number {
    font-family: var(--font-family-archer, 'Archer', serif);
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    color: #FFFFFF;
    background-color: #E47633;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Step title */
.how-to-apply__title {
    font-family: var(--font-family-archer, 'Archer', serif);
    font-weight: 700;
    font-size: 36px;
    line-height: 120%;
    color: var(--color-text-teal, #196B81);
    margin: 0;
    margin-bottom: 10px;
}

/* Step description */
.how-to-apply__description {
    font-family: var(--font-family-archer, 'Archer', serif);
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    color: #000000;
    margin: 0;
}

/* Image wrapper */
.how-to-apply__image-wrapper {
    max-width: 367px;
    width: 100%;
    height: 300px;
    flex-shrink: 0;
}

/* Image */
.how-to-apply__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}



@media (max-width: 1000px) {
    .how-to-apply__decor-image {
        display: none;
    }

    .how-to-apply {
        padding: 60px 0;
    }

    .how-to-apply__main-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .how-to-apply__step {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 50px;
    }

    .how-to-apply__step--right {
        flex-direction: column !important;
    }

    .how-to-apply__step--right .how-to-apply__content {
        order: 1;
    }

    .how-to-apply__step--right .how-to-apply__number {
        order: 2;
    }

    .how-to-apply__step--right .how-to-apply__image-wrapper {
        order: 3;
    }

    .how-to-apply__content,
    .how-to-apply__image-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .how-to-apply__step--left .how-to-apply__content,
    .how-to-apply__step--right .how-to-apply__content {
        text-align: center;
    }

    .how-to-apply__image-wrapper {
        height: 250px;
    }

    .how-to-apply__line {
        display: none;
    }
}

@media (max-width: 500px) {
    .how-to-apply {
        padding: 40px 0;
    }

    .how-to-apply__main-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .hero-science__title:after {
        transform: translateX(-50%);
        left: 50%;
    }

    .how-to-apply__number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .how-to-apply__title {
        font-size: 24px;
    }

    .how-to-apply__description {
        font-size: 15px;
    }

    .how-to-apply__image-wrapper {
        height: 200px;
    }
}
