/* =========================================
   SERVICES SECTION
========================================= */

.services-section {
    padding: 75px 0 90px;

    background: #ffffff;
    color: #071c68;
}


/* =========================================
   SECTION HEADING
========================================= */

.section-heading {
    max-width: 1200px;

    margin: 0 auto 45px;

    text-align: center;
}

.section-heading .eyebrow {
    margin: 0 0 10px;

    color: #071c68;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.4;
}

.section-heading h2 {
    margin: 0 0 12px;

    color: #071c68;

    font-size: 40px;
    font-weight: 700;

    line-height: 1.15;
}

.section-description {
    max-width: 1180px;

    margin: 0 auto;

    color: #071c68;

    font-size: 19px;
    font-weight: 400;

    line-height: 1.35;
}

.section-divider {
    width: 60px;
    height: 2px;

    margin: 32px auto 0;

    background: #071c68;
}


/* =========================================
   SERVICES GRID
========================================= */

.services-grid {
    max-width: 1150px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}


/* =========================================
   SERVICE CARD
========================================= */

.service-card {
    position: relative;

    height: 370px;

    display: block;

    overflow: hidden;

    color: #ffffff;

    text-decoration: none;

    background: #071c68;
}


/* Image */

.service-card > img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}


/* =========================================
   BLUE OVERLAY + CONTENT
========================================= */

.service-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 35px 30px;

    color: #ffffff;

    text-align: center;

    background: rgba(19, 40, 111, 0.64);

    transition: background-color 0.3s ease;
}


/* =========================================
   SERVICE TITLE
========================================= */

.service-overlay h3 {
    margin: 0 0 17px;

    color: #ffffff;

    font-size: 34px;
    font-weight: 700;

    line-height: 1.2;
}


/* =========================================
   SERVICE DESCRIPTION
========================================= */

.service-overlay p {
    max-width: 520px;

    margin: 0 auto 18px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.45;
}


/* =========================================
   LEARN MORE BUTTON
========================================= */

.service-btn {
    min-width: 160px;
    min-height: 52px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    color: #ffffff;

    background: transparent;

    border: 1px solid #ffffff;

    font-size: 18px;
    font-weight: 700;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


/* =========================================
   HOVER
========================================= */

.service-card:hover > img {
    transform: scale(1.04);
}

.service-card:hover .service-overlay {
    background: rgba(7, 28, 104, 0.78);
}

.service-card:hover .service-btn {
    color: #071c68;

    background: #ffffff;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .services-section {
        padding: 65px 0 75px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    .section-description {
        font-size: 17px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        height: 350px;
    }

    .service-overlay h3 {
        font-size: 28px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .services-section {
        padding: 55px 0 65px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading .eyebrow {
        font-size: 14px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;

        line-height: 1.5;
    }

    .section-divider {
        margin-top: 25px;
    }


    /* One card per row */

    .services-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .service-card {
        height: 360px;
    }

    .service-overlay {
        padding: 30px 20px;
    }

    .service-overlay h3 {
        font-size: 27px;
    }

    .service-overlay p {
        font-size: 15px;
    }

    .service-btn {
        min-width: 145px;

        font-size: 16px;
    }

}