/* =========================================================
   OUR MINISTRIES
========================================================= */

.ministries-section {

    width: 100%;

    padding: 75px 20px;

    background: #ffffff;

    box-sizing: border-box;

}


.ministries-container {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

}


/* =========================================================
   HEADING
========================================================= */

.ministries-heading {

    text-align: center;

    margin-bottom: 45px;

}


.ministries-cross {

    display: block;

    margin-bottom: 8px;

    color: #c58a25;

    font-size: 23px;

}


.ministries-heading h2 {

    margin: 0;

    color: #122b55;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 700;

}


.ministries-heading p {

    margin: 10px 0 0;

    color: #555b68;

    font-size: 15px;

}


/* =========================================================
   MINISTRY GRID
========================================================= */

.ministries-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


/* =========================================================
   CARD
========================================================= */

.ministry-card {

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid rgba(20, 35, 65, 0.10);

    border-radius: 9px;

    box-shadow:
        0 5px 20px
        rgba(20, 35, 65, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.ministry-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 14px 30px
        rgba(20, 35, 65, 0.14);

}


/* =========================================================
   IMAGE
========================================================= */

.ministry-image-wrapper {

    position: relative;

    width: 100%;

    height: 185px;

    overflow: hidden;

}


.ministry-image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.4s ease;

}


.ministry-card:hover
.ministry-image {

    transform:
        scale(1.05);

}


/* =========================================================
   ICON
========================================================= */

.ministry-icon {

    position: absolute;

    left: 50%;

    bottom: -24px;

    transform:
        translateX(-50%);

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #1648C1;

    border: 4px solid #ffffff;

    color: #ffffff;

    font-size: 23px;

    box-shadow:
        0 3px 10px
        rgba(0,0,0,0.15);

}


.ministry-icon.gold {

    background: #1648C1;

}


/* =========================================================
   CARD CONTENT
========================================================= */

.ministry-content {

    padding:
        43px 20px 23px;

    text-align: center;

}


.ministry-content h3 {

    margin: 0;

    color: #162b50;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 700;

}


.ministry-content p {

    min-height: 45px;

    margin:
        10px 0 18px;

    color: #5c6270;

    font-size: 13px;

    line-height: 1.6;

}


/* =========================================================
   LEARN MORE
========================================================= */

.ministry-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #162b50;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        color 0.2s ease,
        gap 0.2s ease;

}


.ministry-link span {

    color: #c58a25;

    font-size: 19px;

    line-height: 1;

}


.ministry-link:hover {

    color: #1648C1;

    gap: 14px;

}


/* =========================================================
   VIEW ALL BUTTON
========================================================= */

.ministries-button-wrapper {

    display: flex;

    justify-content: center;

    margin-top: 38px;

}


.ministries-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    min-width: 190px;

    padding:
        13px 23px;

    background: #1648C1;

    color: #ffffff;

    border-radius: 5px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.ministries-button span {

    font-size: 20px;

}


.ministries-button:hover {

    background: #10358F;

    transform:
        translateY(-2px);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .ministries-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .ministries-heading h2 {

        font-size: 32px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ministries-section {

        padding:
            55px 15px;

    }


    .ministries-heading {

        margin-bottom: 30px;

    }


    .ministries-heading h2 {

        font-size: 28px;

    }


    .ministries-heading p {

        font-size: 14px;

    }


    .ministries-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .ministry-image-wrapper {

        height: 210px;

    }


    .ministry-content {

        padding:
            43px 20px 25px;

    }


    .ministries-button-wrapper {

        margin-top: 30px;

    }


    .ministries-button {

        width: 100%;

        max-width: 250px;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .ministries-heading h2 {

        font-size: 24px;

    }


    .ministry-image-wrapper {

        height: 190px;

    }

}