/* 
 * ==========================================
 * Ministries Page Styles
 * ==========================================
 */

.ministries-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    z-index: 0;
    background-color: #000;
}

.ministries-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ministries-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.ministries-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ministries-hero__title {
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.3);
    font-size: 80px;
    font-family: var(--font-heading);
    margin: 0;
}

.our-ministries {
    background: #000 !important;
}

.our-ministries .section-desc {
    max-width: 700px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    margin: auto;
    font-family: "Satoshi", "Satoshi Placeholder", sans-serif;

}

.our-ministries .section-title {
    margin-bottom: 20px;
}

.our-ministries .badge {
    text-align: center;
    border: 1px solid rgb(255 255 255 / 19%);
    margin-bottom: 20px;
}

.our-ministries-intro {
    text-align: center;
}

/* Ministries Section */
.ministries-content {
    position: relative;
    margin-top: 550px;
    z-index: 2;
    padding: 50px 0;
    background-color: var(--color-bg-light);
    /* #f4efea */
    color: var(--color-text-dark);
    padding-bottom: 100px;
}

.ministries-content .badge {
    text-align: center;
    margin-bottom: 50px;
}

.ministries-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.ministries-intro .badge {
    background-color: #000;
    color: #fff;
    margin-bottom: 24px;
}

.ministries-intro .section-title {
    font-size: 48px;
    margin-bottom: 24px;
    color: #000;
}

.ministries-intro .section-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    margin-top: 0;
}

/* Card List & Sticky Scroll */
.ministry-list {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.ministry-card {
    position: sticky;
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 40px;
    gap: 40px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 4px 16px 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Staggered sticky positions */
.ministry-card {
    top: 100px;   
}
.ministry-card:nth-child(1) {
    top: 100px;
    z-index: 1;
}

.ministry-card:nth-child(2) {
    /* top: 120px; */
    z-index: 2;
}

.ministry-card:nth-child(3) {
    /* top: 140px; */
    z-index: 3;
}

.ministry-card:nth-child(4) {
    /* top: 160px; */
    z-index: 4;
}

.ministry-card:nth-child(5) {
    /* top: 180px; */
    z-index: 5;
}

.ministry-card:nth-child(6) {
    /* top: 200px; */
    z-index: 6;
}

.ministry-card:nth-child(7) {
    /* top: 220px; */
    z-index: 7;
}

.ministry-card:nth-child(8) {
    /* top: 240px; */
    z-index: 8;
    margin-bottom: 0;
}

.minstry-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Background variants */
.mnistries-bg-purple {
    background: linear-gradient(rgb(191, 161, 255) 0%, rgb(255, 255, 255) 100%);
    /* matching design */
}

.mnistries-bg-mint {
    background: linear-gradient(180deg, #eaf6f1 0%, rgb(255, 255, 255) 100%);
}

.mnistries-bg-white {
    background: linear-gradient(180deg, #fcf5e9 0%, rgb(255, 255, 255) 100%);
}

/* Card Content Layout */
.ministry-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ministry-card__badge {
    align-self: flex-start;
    background-color: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-primary);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.ministry-card__title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 400;
}

.ministry-card__desc {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 500;
}

.ministry-card__time {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* Card Image */
.ministry-card__image {
    flex: 1;
    max-width: 50%;
    border-radius: 16px;
    overflow: hidden;
    /* Optional slight shadow on image itself */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ministry-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
    transition: transform 0.5s ease;
}

.ministry-card:hover .ministry-card__image img {
    transform: scale(1.05);
    /* subtle hover scale */
}

/* Responsive Design */
@media (max-width: 991px) {
    .ministry-card {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
        position: static;
        margin-bottom: 40px;
    }

    .ministry-card__image {
        max-width: 100%;
        width: 100%;
    }

    .ministries-hero__title {
        font-size: 60px;
    }
    .ministries-content {
        padding: 50px 0 0;
        padding-bottom: 50px;
    }
    .minstry-card-wrapper {
        gap: 0px;
    }
}

@media (max-width: 576px) {
    .ministry-card {
        padding: 24px;
    }

    .ministry-card__title {
        font-size: 32px;
    }

    .ministries-hero__title {
        font-size: 48px;
    }

    .ministry-list {
        padding: 0 16px 80px;
    }
    .minstry-card-wrapper {
        gap: 0px;
    }
}