/* ===========================
   HOW IT WORKS SECTION - FULL CSS
   =========================== */

.home-works-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-works-section .section-header .subtitle {
  color:#6b6b6b !important;
}

.home-works-section .steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* margin-bottom: 30px;
    padding-bottom: 30px; */
}

.home-works-section .step-card {
    width: 100%;
    max-width: 250px;
    height: 270px;
    background: #FFFFFF;
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #CDCDCD;
    border-radius: 8px;
    gap: 20px;
}

.home-works-section .step-number {
    width: 45px;
    border: 1px solid #C43D1A;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 700;
    color: #C43D1A;
    display: flex;
    padding: 5px;
    font-family: 'Open Sans';
    margin-top: 20px;
    align-items: center;
    justify-content: center;
}

.home-works-section .step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A3764;
    font-family: 'Open Sans';
}

.home-works-section .step-description {
    font-size: 16px;
    font-family: 'Open Sans';
    font-weight: 400;
    color: #6b6b6b;
    line-height: 25.5px;
    min-height: calc(1.5em * 6);
    max-height: calc(1.5em * 6);
}

.home-works-section .learn-more-link {
    display: inline-block;
    margin-top: auto;
    padding: 8px 16px;
    color: #C43D1A;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.home-works-section .learn-more-link:hover {
    text-decoration: none;
}

/* ===========================
   TABLET / iPad (768px - 1024px)
   =========================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .home-works-section .steps-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 30px;
        justify-items: center;
        width: 100%;
    }

    .home-works-section .step-card {
        max-width: 90%;
        width: 100%;
        height: auto;
        padding: 20px;
        min-height: 260px;
    }

    .home-works-section .step-title {
        font-size: 20px;
    }

    .home-works-section .step-description {
        font-size: 15px;
        line-height: 24px;
    }

    .home-works-section .section-header {
        padding-top: 25px;
        margin-bottom: 25px;
    }
}

/* ===========================
   MOBILE (max-width: 767px)
   =========================== */
@media (max-width: 767px) {
    .home-works-section .section-header {
        display: block !important;
    }

    .home-works-section .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .home-works-section .step-card {
        height: auto;
        min-height: 280px;
        max-width: 250px;
        width: 100%;
    }
}

/* ===========================
   SMALL MOBILE (max-width: 480px)
   =========================== */
@media (max-width: 480px) {
    .home-works-section .section-header {
        display: block !important;
    }

    .home-works-section .steps-container {
        gap: 10px;
        margin-top: 15px;
    }

    .home-works-section .step-card {
        min-height: 250px;
    }

    .home-works-section .step-title {
        font-size: 18px;
    }

    .home-works-section .step-description {
        font-size: 14px;
        overflow: auto;
    }

    .home-works-section .step-card {
        height: auto;
        min-height: 280px;
        max-width: 250px;
        width: 60%;
    }
}
