/* =======================================
   FEATURE CARD MAIN STYLING
======================================= */
.feature-card {
    display: flex;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
    height: 100%;
    position: relative; /* required for steps */
    transition: .3s ease;
}

/* 30% IMAGE AREA */
.feature-card__img {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f9fb;
    padding: 0px;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

/* IMAGE FIX */
.feature-card__img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 70% CONTENT AREA */
.feature-card__body {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card__body h4 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.feature-card__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* HOVER EFFECT */
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

/* =======================================
   STEP FLOW TIMELINE (01 --- 02 --- 03)
======================================= */
.step-flow-row {
    position: relative;
    margin-top: 90px; /* space for steps */
}

/* DOTTED LINE */
.step-flow-row::before {
    content: "";
    position: absolute;
    top: -20px; /* aligns perfectly with circle center */
    left: 11%;
    right: 11%;
    border-bottom: 2px dashed #0ca678;
    z-index: 1;
}

/* STEP CIRCLE */
.step-card {
    position: relative;
    z-index: 2;
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    background: #fff;
    border: 3px solid #0ca678;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    color: #0ca678;
    box-shadow: 0 6px 12px rgba(0,0,0,0.10);
}

/* STEP HOVER */
.step-card:hover::before {
    border-color: #078e5f;
    color: #078e5f;
}

/* =======================================
   MOBILE VIEW FIXES
======================================= */
@media (max-width: 767.98px) {

    .feature-card {
        flex-direction: column;
        border-radius: 24px;
        height: auto !important;
    }

    .feature-card__img {
        flex: unset;
        width: 100%;
        max-width: 100%;
        padding: 10px 0;
        border-radius: 24px 24px 0 0;
        min-height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .feature-card__img img {
        height: auto;
        width: 80%;
        object-fit: contain;
    }

    .feature-card__body {
        max-width: 100%;
        width: 100%;
        padding: 24px 20px;
        display: block;
    }
}

/* REMOVE LINE + RESIZE CIRCLE ON TABLET / MOBILE */
@media (max-width: 991.98px) {
    .step-flow-row::before {
        display: none;
    }
    .step-card::before {
        top: -40px;
        width: 46px;
        height: 46px;
        font-size: 15px;
    }
}
