/* =========================================================
   SIRAVU HOME
   HOW IT WORKS SECTION
========================================================= */


/* =========================================================
   Main Section
========================================================= */

.how-it-works-section {
    position: relative;

    overflow: hidden;

    padding-top: 70px;
    padding-bottom: 75px;

    background: var(--white);
}


.how-it-works-section::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    left: -160px;

    border-radius: 50%;

    background: rgba(117, 88, 214, 0.025);

    filter: blur(80px);

    pointer-events: none;
}


/* =========================================================
   Header
========================================================= */

.how-it-works-header {
    position: relative;

    z-index: 1;

    max-width: 720px;

    margin-right: auto;
    margin-left: auto;

    margin-bottom: 38px;

    text-align: center;
}


.how-it-works-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px 11px;

    margin-bottom: 11px;

    border: 1px solid #ccefe6;
    border-radius: 50px;

    background: #f0fcf8;

    color: var(--green-dark);

    font-size: 8px;
    font-weight: 800;
}


.how-it-works-title {
    margin-bottom: 9px;

    color: var(--dark);

    font-size: 28px;
    font-weight: 800;

    line-height: 1.6;

    letter-spacing: -0.4px;
}


.how-it-works-title span {
    color: var(--primary);
}


.how-it-works-description {
    max-width: 650px;

    margin-right: auto;
    margin-left: auto;

    margin-bottom: 0;

    color: var(--muted);

    font-size: 10px;

    line-height: 2;
}


/* =========================================================
   Steps Wrapper
========================================================= */

.steps-wrapper {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        15px
        minmax(0, 1fr)
        15px
        minmax(0, 1fr);

    align-items: center;

    gap: 0;

    direction: rtl;
}


/* =========================================================
   Step Card
========================================================= */

.step-card {
    position: relative;

    min-height: 150px;

    padding: 17px 18px 16px;

    border: 1px solid #e7ebef;

    border-radius: 14px;

    background: #f8fafc;

    text-align: right;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}


.step-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   Step Number
========================================================= */

.step-number {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 11px;

    border-radius: 9px;

    color: var(--white);

    font-family: Arial, sans-serif;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   Step Colors
========================================================= */

.step-card-red .step-number {
    background: var(--primary);
}


.step-card-green .step-number {
    background: #00875f;
}


.step-card-purple .step-number {
    background: #5144d9;
}


.step-card-red .step-link {
    color: var(--primary);
}


.step-card-green .step-link {
    color: var(--green-dark);
}


.step-card-purple .step-link {
    color: #5144d9;
}


/* =========================================================
   Step Content
========================================================= */

.step-title {
    margin-bottom: 6px;

    color: #1f2937;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.7;
}


.step-description {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 8px;

    line-height: 2;
}


/* =========================================================
   Step Link
========================================================= */

.step-link {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 9px;
    padding-top: 8px;

    border-top: 1px solid #e9edf0;

    font-size: 7px;
    font-weight: 800;
}


.step-link span {
    font-family: Arial, sans-serif;

    font-size: 10px;

    transition:
        transform var(--transition-fast);
}


.step-link:hover span {
    transform: translateX(-3px);
}


/* =========================================================
   Connectors
========================================================= */

.step-connector {
    width: 100%;
    height: 1px;

    position: relative;
}


.step-connector::after {
    content: "";

    position: absolute;

    top: 50%;
    right: -1px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    transform: translateY(-50%);
}


.step-connector-red {
    background: #d5c9c9;
}


.step-connector-red::after {
    background: #cbbbbb;
}


.step-connector-blue {
    background: #9ab4c5;
}


.step-connector-blue::after {
    background: #6e9db7;
}


/* =========================================================
   Job Opportunity
========================================================= */

.job-opportunity {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.85fr);

    align-items: center;

    gap: 45px;

    margin-top: 80px;

    padding: 30px;

    border: 1px solid #edf0f3;

    border-radius: 18px;

    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #fff9fb 100%
        );

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.035);
}


/* =========================================================
   Opportunity Content
========================================================= */

.job-opportunity-content {
    order: 1;

    text-align: right;
}


.job-opportunity-badge {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    margin-bottom: 12px;

    border-radius: 50px;

    background: var(--primary);

    color: var(--white);

    font-size: 7px;
    font-weight: 800;
}


.job-opportunity-title {
    max-width: 590px;

    margin-bottom: 10px;

    color: var(--dark);

    font-size: 23px;
    font-weight: 800;

    line-height: 1.7;
}


.job-opportunity-title span {
    color: var(--dark);
}


.job-opportunity-description {
    max-width: 570px;

    margin-bottom: 16px;

    color: var(--muted);

    font-size: 9px;

    line-height: 2.1;
}


.job-opportunity-actions {
    display: flex;

    align-items: center;

    gap: 13px;

    flex-wrap: wrap;
}


.job-opportunity-button {
    min-height: 39px;

    padding-right: 16px;
    padding-left: 16px;

    border-radius: 20px;

    font-size: 9px;
}


.job-opportunity-button span {
    margin-right: 7px;

    font-family: Arial, sans-serif;
}


.job-opportunity-note {
    color: var(--muted-light);

    font-size: 7px;
}


/* =========================================================
   Opportunity Preview
========================================================= */

.opportunity-preview {
    position: relative;

    order: 2;

    width: 100%;
    max-width: 330px;

    padding: 15px;

    margin-right: auto;
    margin-left: auto;

    border: 1px solid #e4e8ec;

    border-radius: 12px;

    background: var(--white);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.08);
}


.opportunity-preview-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}


.opportunity-label {
    margin-bottom: 3px;

    color: var(--muted-light);

    font-size: 6px;
    font-weight: 700;
}


.opportunity-name {
    color: #334155;

    font-size: 9px;
    font-weight: 800;
}


.opportunity-icon {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: #f2efff;

    color: #7558d6;

    font-size: 12px;
}


.opportunity-status {
    display: inline-flex;

    margin-top: 9px;

    padding: 3px 7px;

    border-radius: 5px;

    background: var(--green-light);

    color: var(--green-dark);

    font-size: 6px;
    font-weight: 800;
}


/* =========================================================
   Opportunity Info
========================================================= */

.opportunity-info {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

    margin-top: 12px;

    padding-top: 10px;

    border-top: 1px solid #f0f2f4;
}


.opportunity-info-row {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.opportunity-info-row span {
    color: var(--muted-light);

    font-size: 6px;
}


.opportunity-info-row strong {
    color: #475569;

    font-size: 7px;
    font-weight: 800;
}


/* =========================================================
   Match
========================================================= */

.opportunity-match {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 10px;

    color: var(--muted);

    font-size: 7px;
}


.opportunity-match strong {
    color: var(--green-dark);

    font-size: 8px;
}


.opportunity-bar {
    width: 100%;
    height: 5px;

    margin-top: 5px;

    overflow: hidden;

    border-radius: 20px;

    background: #edf2f0;
}


.opportunity-bar span {
    display: block;

    width: 94%;
    height: 100%;

    border-radius: inherit;

    background: #42c9a8;
}


/* =========================================================
   Preview Button
========================================================= */

.opportunity-preview-button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 30px;

    margin-top: 12px;

    border-radius: 7px;

    background: var(--primary);

    color: var(--white);

    font-size: 7px;
    font-weight: 800;

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}


.opportunity-preview-button:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1200px) {

    .how-it-works-section {
        padding-top: 60px;
        padding-bottom: 65px;
    }

    .steps-wrapper {
        grid-template-columns:
            minmax(0, 1fr)
            10px
            minmax(0, 1fr)
            10px
            minmax(0, 1fr);
    }

    .job-opportunity {
        gap: 30px;

        padding: 25px;
    }

}


@media (max-width: 1024px) {

    .steps-wrapper {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 12px;
    }

    .step-connector {
        display: none;
    }

    .job-opportunity {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .job-opportunity-content {
        order: 1;

        text-align: center;
    }

    .job-opportunity-description {
        margin-right: auto;
        margin-left: auto;
    }

    .job-opportunity-actions {
        justify-content: center;
    }

    .opportunity-preview {
        order: 2;
    }

}


@media (max-width: 768px) {

    .how-it-works-section {
        padding-top: 50px;
        padding-bottom: 55px;
    }

    .how-it-works-title {
        font-size: 25px;
    }

    .how-it-works-description {
        font-size: 9px;
    }

    .steps-wrapper {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .step-card {
        min-height: auto;

        padding: 17px;
    }

    .step-description {
        font-size: 9px;
    }

    .job-opportunity {
        margin-top: 50px;

        padding: 20px;

        border-radius: 15px;
    }

    .job-opportunity-title {
        font-size: 20px;
    }

}


@media (max-width: 520px) {

    .how-it-works-section {
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .how-it-works-title {
        font-size: 22px;

        line-height: 1.7;
    }

    .how-it-works-description {
        font-size: 8px;
    }

    .how-it-works-badge {
        font-size: 7px;
    }

    .step-card {
        border-radius: 12px;

        padding: 15px;
    }

    .step-number {
        width: 32px;
        height: 32px;

        font-size: 14px;
    }

    .step-title {
        font-size: 11px;
    }

    .step-description {
        font-size: 8px;
    }

    .job-opportunity {
        margin-top: 40px;

        padding: 16px;
    }

    .job-opportunity-title {
        font-size: 18px;
    }

    .job-opportunity-description {
        font-size: 8px;
    }

    .job-opportunity-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .job-opportunity-button {
        width: 100%;
    }

    .job-opportunity-note {
        text-align: center;
    }

}