/* ============================================================
   CSS for Ministry Detail Pages (PCMF, Guild, Youth, etc.)
   ============================================================ */

/* ---------- Page Header / Hero ---------- */
.ministry-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.ministry-hero.pcmf-hero {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.85), rgba(13, 33, 55, 0.9)),
        url('../../images/pcmf.jpeg') no-repeat center center/cover;
}

.ministry-hero.guild-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(30, 41, 59, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.youth-hero {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.8), rgba(13, 33, 55, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.evangelism-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(6, 78, 59, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.health-board-hero {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(7, 89, 133, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.jprc-hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(55, 28, 100, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.praise-team-hero {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.85), rgba(120, 53, 15, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.church-school-hero {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(131, 24, 67, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.brigade-hero {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.85), rgba(20, 83, 45, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero.christian-education-hero {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(127, 29, 29, 0.9)),
        url('../../images/agm3.jpg') no-repeat center center/cover;
}

.ministry-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.ministry-hero .motto {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Purpose Section ---------- */
.ministry-purpose {
    padding: 4rem 0;
    background: #fff;
}

.ministry-purpose h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--primary-start);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.ministry-purpose h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.ministry-purpose .purpose-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ministry-purpose .purpose-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.ministry-purpose .purpose-list li i {
    color: var(--primary-start);
    font-size: 0.9rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

/* ---------- Membership Levels ---------- */
.membership-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.membership-section .section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.membership-section .section-subheading {
    font-size: 0.95rem;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 2.5rem;
}

.level-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.level-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(21, 101, 192, 0.12);
}

.level-card .card-body {
    padding: 2rem 1.5rem;
}

.level-card .level-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1), rgba(198, 40, 40, 0.1));
    color: var(--primary-start);
    margin-bottom: 1rem;
}

.level-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.level-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-start);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.level-card .requirements-list,
.level-card .privileges-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.level-card .requirements-list li,
.level-card .privileges-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

.level-card .requirements-list li i {
    color: var(--primary-start);
    font-size: 0.7rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.level-card .privileges-list li i {
    color: #10b981;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.level-card .list-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* ---------- Leadership Section ---------- */
.ministry-leadership {
    padding: 4rem 0;
    background: #fff;
}

.ministry-leadership:nth-child(even) {
    background-color: #f8fafc;
}

/* --- Section Group Headings (from leadership.css) --- */
.section-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .25rem;
}

.section-group-subtitle {
    font-size: .95rem;
    color: #64748b;
    margin-bottom: 0;
}

.section-divider {
    width: 60px;
    height: 3px;
    border: none;
    border-radius: 2px;
    margin: .75rem auto 0;
}

.section-divider.office {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.section-divider.tumaini {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.section-divider.shalom {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.section-divider.miracle {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.section-divider.emmanuel {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* --- Church Badge (from leadership.css) --- */
.church-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 3px 10px;
    border-radius: 50px;
    color: #fff;
}

.church-badge.office {
    background: #1e293b;
}

.church-badge.tumaini {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.church-badge.shalom {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.church-badge.miracle {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e293b;
}

.church-badge.emmanuel {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

/* --- Elder Card (from leadership.css) --- */
.elder-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    background: #fff;
}

.elder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12) !important;
}

.elder-img {
    width: 130px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.elder-card:hover .elder-img {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.elder-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    transition: color .3s ease;
}

.elder-card:hover .card-title {
    color: #ef4444;
}

.elder-card .elder-district {
    font-size: .85rem;
    color: #6366f1;
    font-weight: 500;
}

/* ---------- Scripture Quote ---------- */
.scripture-quote {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.06), rgba(198, 40, 40, 0.04));
    text-align: center;
}

.scripture-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    padding: 0 2rem;
}

.scripture-quote blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-start);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-family: Georgia, serif;
}

.scripture-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-start);
}

/* ---------- Gallery Section ---------- */
.ministry-gallery {
    padding: 4rem 0;
    background: var(--bg-light);
}

.ministry-gallery .section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.ministry-gallery .section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.gallery-placeholder {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.gallery-placeholder i {
    font-size: 3rem;
    color: var(--text-medium);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.gallery-placeholder p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ministry-hero {
        min-height: 300px;
        padding: 100px 1rem 60px;
    }

    .ministry-hero h1 {
        font-size: 2rem;
    }

    .ministry-purpose,
    .membership-section,
    .ministry-leadership,
    .ministry-gallery {
        padding: 2.5rem 0;
    }
}