/* =========================================================
   TREPEZA KALE HIWOT CHURCH
   MINISTRIES PAGE
   Pure CSS - No Bootstrap
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --church-blue: #1648C1;

    --church-dark-blue: #0d285c;

    --church-gold: #c58a25;

    --church-dark: #10182b;

    --text-dark: #162b50;

    --text-light: #606878;

    --white: #ffffff;

    --cream: #faf7f0;

}


/* =========================================================
   GLOBAL
========================================================= */

.ministry-page {

    width: 100%;

    overflow: hidden;

}


.ministry-container {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    padding-left: 20px;

    padding-right: 20px;

}


/* =========================================================
   HERO
========================================================= */

.ministry-hero {

    position: relative;

    min-height: 470px;

    display: flex;

    align-items: center;

    background-image: url("../images/bg.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}


.ministry-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 35, 0.86),
            rgba(5, 15, 35, 0.58),
            rgba(5, 15, 35, 0.35)
        );

}


.ministry-hero-content {

    position: relative;

    z-index: 2;

    padding-top: 70px;

    padding-bottom: 70px;

}


.ministry-hero-label {

    display: block;

    margin-bottom: 12px;

    color: #f0b83b;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


.ministry-hero h1 {

    margin: 0;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 62px;

    line-height: 1.08;

    font-weight: 700;

}


.ministry-hero-subtitle {

    margin:
        15px 0 10px;

    color: #f2b62d;

    font-size: 22px;

    font-weight: 600;

}


.ministry-heading-line {

    display: flex;

    align-items: center;

    gap: 9px;

    margin:
        20px 0;

}


.ministry-heading-line span {

    width: 38px;

    height: 2px;

    background: #f2b62d;

}


.ministry-heading-line b {

    color: #f2b62d;

    font-size: 19px;

}


.ministry-hero-description {

    max-width: 600px;

    margin: 0;

    color: #ffffff;

    font-size: 17px;

    line-height: 1.75;

}


/* =========================================================
   ONE MISSION
========================================================= */

.one-mission-section {

    padding:
        80px 0;

    background: var(--cream);

}


.one-mission-grid {

    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 70px;

    align-items: center;

}


.section-small-title {

    display: block;

    margin-bottom: 12px;

    color: var(--church-gold);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.one-mission-content h2 {

    margin: 0;

    color: var(--text-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 40px;

    line-height: 1.2;

}


.gold-line {

    width: 70px;

    height: 3px;

    margin:
        18px 0 22px;

    background: var(--church-gold);

}


.one-mission-content p {

    max-width: 650px;

    margin:
        0 0 15px;

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.75;

}


.one-mission-image {

    overflow: hidden;

    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12);

}


.one-mission-image img {

    width: 100%;

    height: 350px;

    display: block;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.one-mission-image:hover img {

    transform:
        scale(1.04);

}


/* =========================================================
   MINISTRIES LIST
========================================================= */

.ministries-list-section {

    padding:
        85px 0;

    background: #ffffff;

}


.ministries-list-heading {

    text-align: center;

    margin-bottom: 48px;

}


.ministries-list-heading h2 {

    margin: 0;

    color: var(--text-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;

    line-height: 1.2;

}


.heading-decoration {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-top: 18px;

}


.heading-decoration span {

    width: 35px;

    height: 2px;

    background: var(--church-gold);

}


.heading-decoration b {

    color: var(--church-gold);

    font-size: 19px;

}


/* =========================================================
   CARDS GRID
========================================================= */

.ministries-cards {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 24px;

}


/* =========================================================
   SERVICE CARD
========================================================= */

.ministry-service-card {

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid rgba(20, 35, 65, 0.10);

    border-radius: 11px;

    box-shadow:
        0 7px 25px rgba(20, 35, 65, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.ministry-service-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 17px 38px rgba(20, 35, 65, 0.15);

}


/* =========================================================
   CARD IMAGE
========================================================= */

.service-card-image {

    position: relative;

    width: 100%;

    height: 210px;

    overflow: visible;

}


.service-card-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    border-radius:
        11px 11px 0 0;

    transition:
        transform 0.45s ease;

}


.ministry-service-card:hover
.service-card-image img {

    transform:
        scale(1.05);

}


/* =========================================================
   CARD ICON
========================================================= */

.service-card-icon {

    position: absolute;

    left: 50%;

    bottom: -28px;

    transform:
        translateX(-50%);

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        4px solid #ffffff;

    border-radius: 50%;

    background:
        var(--church-blue);

    color: #ffffff;

    font-size: 25px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.15);

}


.ministry-service-card:nth-child(even)
.service-card-icon {

    background:
        var(--church-gold);

}


/* =========================================================
   CARD CONTENT
========================================================= */

.service-card-content {

    min-height: 245px;

    padding:
        50px 22px 25px;

    text-align: center;

}


.service-card-content h3 {

    margin: 0;

    color: var(--text-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;

}


.service-card-content p {

    min-height: 72px;

    margin:
        13px 0 20px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.65;

}


.service-card-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--text-dark);

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        color 0.2s ease,
        gap 0.2s ease;

}


.service-card-link span {

    color: var(--church-gold);

    font-size: 20px;

}


.service-card-link:hover {

    color: var(--church-blue);

    gap: 15px;

}


/* =========================================================
   GIFTS TO SERVE
========================================================= */

.gifts-section {

    position: relative;

    overflow: hidden;

    margin:
        0 20px 80px;

    border-radius: 16px;

    background-image:
        url("../images/donate.png");

    background-size: cover;

    background-position: center;

}


.gifts-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 24, 65, 0.96),
            rgba(10, 40, 90, 0.87),
            rgba(5, 20, 50, 0.72)
        );

}


.gifts-content {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        110px 1fr auto;

    align-items: center;

    gap: 30px;

    padding:
        45px 50px;

}


/* =========================================================
   GIFTS ICON
========================================================= */

.gifts-icon {

    width: 85px;

    height: 85px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        2px solid var(--church-gold);

    border-radius: 50%;

    color: var(--church-gold);

    font-size: 46px;

}


/* =========================================================
   GIFTS TEXT
========================================================= */

.gifts-text > span {

    display: block;

    margin-bottom: 5px;

    color: var(--church-gold);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.gifts-text h2 {

    margin:
        0 0 8px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

}


.gifts-text p {

    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,0.9);

    font-size: 14px;

    line-height: 1.6;

}


/* =========================================================
   GIFTS BUTTON
========================================================= */

.gifts-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    min-width: 190px;

    padding:
        14px 24px;

    border-radius: 6px;

    background:
        var(--church-gold);

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.25s ease,
        transform 0.25s ease;

}


.gifts-button span {

    font-size: 20px;

}


.gifts-button:hover {

    background:
        #a96f12;

    transform:
        translateY(-2px);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .ministries-cards {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .one-mission-grid {

        grid-template-columns:
            1fr;

        gap: 40px;

    }


    .one-mission-image img {

        height: 380px;

    }


    .gifts-content {

        grid-template-columns:
            80px 1fr;

    }


    .gifts-button-wrapper {

        grid-column:
            2;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .ministry-container {

        padding-left: 15px;

        padding-right: 15px;

    }


    /* HERO */

    .ministry-hero {

        min-height: 430px;

    }


    .ministry-hero-content {

        padding-top: 55px;

        padding-bottom: 55px;

    }


    .ministry-hero h1 {

        font-size: 42px;

    }


    .ministry-hero-subtitle {

        font-size: 18px;

        line-height: 1.4;

    }


    .ministry-hero-description {

        font-size: 15px;

    }


    /* ONE MISSION */

    .one-mission-section {

        padding:
            60px 0;

    }


    .one-mission-content h2 {

        font-size: 32px;

    }


    .one-mission-image img {

        height: 280px;

    }


    /* MINISTRIES */

    .ministries-list-section {

        padding:
            60px 0;

    }


    .ministries-list-heading h2 {

        font-size: 32px;

    }


    .ministries-cards {

        grid-template-columns:
            1fr;

        gap: 20px;

    }


    .service-card-image {

        height: 230px;

    }


    /* GIFTS */

    .gifts-section {

        margin:
            0 15px 60px;

    }


    .gifts-content {

        grid-template-columns:
            1fr;

        gap: 22px;

        padding:
            35px 25px;

        text-align: center;

    }


    .gifts-icon {

        margin: 0 auto;

    }


    .gifts-text p {

        margin-left: auto;

        margin-right: auto;

    }


    .gifts-button-wrapper {

        grid-column:
            auto;

    }


    .gifts-button {

        width: 100%;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .ministry-hero h1 {

        font-size: 36px;

    }


    .ministry-hero-subtitle {

        font-size: 16px;

    }


    .one-mission-content h2 {

        font-size: 28px;

    }


    .ministries-list-heading h2 {

        font-size: 28px;

    }


    .service-card-image {

        height: 200px;

    }


    .gifts-text h2 {

        font-size: 25px;

    }

}

/* =========================================================
   JAVASCRIPT REVEAL ANIMATION
========================================================= */

.ministry-service-card {

    opacity: 0;

    transform:
        translateY(25px);

}


.ministry-service-card.show {

    opacity: 1;

    transform:
        translateY(0);

}