
/* =====================================
   TREPEZA KALE HIWOT CHURCH
   MINISTRY PAGE STYLES
===================================== */

.ministry-page {
    --navy: #082f67;
    --blue: #075baa;
    --text: #173d70;
    --light-blue: #edf6ff;
    --gold: #e9bd4f;

    color: var(--text);
    overflow: hidden;
    font-family: inherit;
}

.ministry-page *,
.ministry-page *::before,
.ministry-page *::after {
    box-sizing: border-box;
}

.ministry-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* Shared headings */

.ministry-eyebrow {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.ministry-eyebrow::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 12px;
    background: currentColor;
}

.ministry-eyebrow--light {
    color: #fff;
}

/* =====================================
   SECTION 1: HERO
===================================== */

.ministry-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    color: #fff;
    background: #073665;
    isolation: isolate;
}

.ministry-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

.ministry-hero__overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2, 31, 57, 0.90) 0%,
        rgba(2, 45, 81, 0.65) 43%,
        rgba(2, 45, 81, 0.08) 100%
    );
}

.ministry-hero__content {
    padding-top: 65px;
    padding-bottom: 65px;
}

.ministry-hero h1 {
    max-width: 650px;
    margin: 0 0 18px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1px;
}

.ministry-hero__intro {
    max-width: 480px;
    margin: 0 0 26px;
    color: #fff;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
}

/* Buttons */

.ministry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 48px;
    padding: 12px 23px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ministry-button:hover {
    transform: translateY(-2px);
}

.ministry-button--light {
    color: var(--navy);
    background: #fff;
}

.ministry-button--light:hover {
    color: var(--blue);
    background: #eaf5ff;
}

/* =====================================
   SECTION 2: DESCRIPTION
===================================== */

.ministry-story {
    padding: 62px 0 58px;
    background: #fff;
}

.ministry-story__content {
    max-width: 1100px;
}

.ministry-story h2,
.ministry-section-title,
.ministry-join h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
}

.ministry-story h2 {
    color: var(--navy);
    font-size: clamp(32px, 4vw, 52px);
}

.ministry-story__lead {
    max-width: 950px;
    margin: 0;
    color: #234b7d;
    font-size: 18px;
    line-height: 1.85;
}

/* =====================================
   SECTION 3: THREE TEXT CARDS
===================================== */

.ministry-services {
    padding: 55px 0 65px;
    background: linear-gradient(
        135deg,
        #f2f8ff 0%,
        #e6f3ff 100%
    );
}

.ministry-section-title {
    margin-bottom: 30px;
    color: var(--navy);
    font-size: clamp(30px, 3vw, 42px);
}

.ministry-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.ministry-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 27px 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cfe2f7;
    border-top: 4px solid var(--blue);
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(8, 47, 103, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ministry-card:hover,
.ministry-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(8, 47, 103, 0.12);
}

.ministry-card__number {
    margin: 0 0 13px;
    color: #5688bb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.ministry-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.35;
}

.ministry-card p {
    margin: 0;
    color: #365d8c;
    font-size: 15px;
    line-height: 1.75;
}

.ministry-card__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.ministry-card__link:hover {
    color: var(--navy);
}

/* =====================================
   SECTION 4: JOIN OUR CHURCH FAMILY
===================================== */

.ministry-join {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    color: #fff;
    background: #073665;
    isolation: isolate;
}

.ministry-join__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ministry-join__overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 39, 78, 0.90) 0%,
        rgba(4, 55, 103, 0.58) 60%,
        rgba(4, 55, 103, 0.25) 100%
    );
}

.ministry-join__content {
    position: relative;
    padding-top: 55px;
    padding-bottom: 55px;
}

.ministry-join h2 {
    max-width: 750px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(38px, 4.5vw, 60px);
}

.ministry-join__description {
    max-width: 600px;
    margin: 0 0 24px;
    color: #fff;
    font-size: 17px;
    line-height: 1.75;
}

.ministry-button--outline {
    color: #fff;
    background: rgba(4, 58, 111, 0.65);
    border-color: #fff;
}

.ministry-button--outline:hover {
    color: var(--navy);
    background: #fff;
}

.ministry-join__welcome {
    position: absolute;
    right: 10px;
    bottom: 45px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 42px);
    font-style: italic;
    transform: rotate(-7deg);
}

/* =====================================
   TABLETS
===================================== */

@media (max-width: 850px) {
    .ministry-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ministry-card:last-child {
        grid-column: 1 / -1;
    }

    .ministry-join__welcome {
        position: static;
        display: block;
        margin-top: 25px;
        transform: rotate(-4deg);
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {
    .ministry-container {
        width: calc(100% - 32px);
    }

    .ministry-hero {
        min-height: 370px;
    }

    .ministry-hero__image {
        object-position: 60% center;
    }

    .ministry-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(2, 31, 57, 0.88),
            rgba(2, 45, 81, 0.48)
        );
    }

    .ministry-hero__content {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .ministry-hero h1 {
        font-size: 42px;
    }

    .ministry-story {
        padding: 43px 0;
    }

    .ministry-story__lead {
        font-size: 16px;
        line-height: 1.8;
    }

    .ministry-services {
        padding: 42px 0 48px;
    }

    .ministry-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ministry-card:last-child {
        grid-column: auto;
    }

    .ministry-card {
        min-height: 0;
        padding: 24px 21px;
    }

    .ministry-join {
        min-height: 350px;
    }

    .ministry-join__content {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .ministry-join__image {
        object-position: center;
    }

    .ministry-join__overlay {
        background: rgba(3, 39, 78, 0.72);
    }

    .ministry-join h2 {
        font-size: 38px;
    }

    .ministry-join__description {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ministry-page *,
    .ministry-page *::before,
    .ministry-page *::after {
        scroll-behavior: auto;
        transition: none;
    }
}
