/* ========================================
   MINISTRY DETAIL PAGES - Styles
   ======================================== */

/* About Section */
.ministry-about {
    padding: 80px 0;
    background: var(--pure-white);
}

.ministry-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ministry-about-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--royal-blue);
    font-family: var(--heading-font);
}

.ministry-about-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(var(--royal-blue-rgb), 0.8);
}

.ministry-about-image {
    width: 100%;
    height: 400px;
    background: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--accent-gold-rgb), 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.ministry-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ministry-about-image .img-placeholder {
    font-size: 5rem;
    color: rgba(var(--accent-gold-rgb), 0.3);
}

.ministry-scripture {
    background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
    padding: 30px 40px;
    margin-top: 30px;
    border-left: 4px solid var(--gold-accent);
    border-radius: 0 12px 12px 0;
    color: var(--pure-white);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

.ministry-scripture strong {
    color: var(--gold-accent);
    font-style: normal;
    display: block;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .ministry-about-grid {
        grid-template-columns: 1fr;
    }
    .ministry-about-image {
        height: 280px;
    }
}

/* Activities Section */
.ministry-activities {
    padding: 80px 0;
    background: var(--deep-blue);
    color: var(--pure-white);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background: rgba(var(--white-rgb), 0.05);
    border: 1px solid rgba(var(--accent-gold-rgb), 0.2);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), var(--red-accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.activity-card:hover::before {
    transform: scaleX(1);
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    box-shadow: 0 15px 40px rgba(var(--accent-gold-rgb), 0.15);
    background: rgba(var(--white-rgb), 0.08);
}

.activity-icon {
    font-size: 2.8rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.activity-card h3 {
    font-size: 1.5rem;
    color: var(--pure-white);
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-family: var(--heading-font);
}

.activity-card p {
    color: rgba(var(--white-rgb), 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Media Gallery Section */
.ministry-gallery {
    padding: 80px 0;
    background: var(--pure-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    background: var(--deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(var(--accent-gold-rgb), 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--gold-accent);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.2);
}

.gallery-item img,
.gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover iframe {
    transform: scale(1.08);
}

.gallery-item .gallery-placeholder {
    font-size: 3rem;
    color: rgba(var(--accent-gold-rgb), 0.3);
}

.gallery-item .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(var(--royal-blue-rgb), 0.9));
    color: var(--pure-white);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item.video-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(var(--accent-gold-rgb), 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--royal-blue);
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-item.video-item:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(var(--accent-gold-rgb), 0.5);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 220px;
    }
}

/* Contact / Get Involved Section */
.ministry-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--deep-blue), var(--royal-blue));
    color: var(--pure-white);
}

.ministry-contact .section-header h2 {
    color: var(--pure-white);
}

.contact-profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-profile {
    background: rgba(var(--white-rgb), 0.06);
    border: 1px solid rgba(var(--accent-gold-rgb), 0.25);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-profile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), transparent);
}

.contact-profile:hover {
    transform: translateY(-6px);
    border-color: var(--gold-accent);
    background: rgba(var(--white-rgb), 0.1);
    box-shadow: 0 12px 35px rgba(var(--accent-gold-rgb), 0.12);
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-accent), #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--royal-blue);
    border: 3px solid rgba(var(--accent-gold-rgb), 0.5);
    box-shadow: 0 4px 15px rgba(var(--accent-gold-rgb), 0.3);
}

.contact-profile h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--gold-accent);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.contact-profile .profile-role {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(var(--white-rgb), 0.9);
    margin-bottom: 15px;
}

.contact-profile .profile-desc {
    font-size: 0.9rem;
    color: rgba(var(--white-rgb), 0.65);
    line-height: 1.5;
}

.ministry-cta {
    text-align: center;
    margin-top: 30px;
}

.ministry-cta p {
    color: rgba(var(--white-rgb), 0.8);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.ministry-cta .btn {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-profiles-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to Ministries link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 12px;
    color: var(--pure-white);
}

/* ========================================
   COMBINED ACTIVITIES WITH GALLERY
   ======================================== */

/* Combined Activities Section */
.ministry-activities-combined {
    padding: 80px 0;
    background: var(--pure-white);
    color: var(--royal-blue);
}

.activities-combined-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card-combined {
    background: rgba(var(--royal-blue-rgb), 0.05);
    border: 1px solid rgba(var(--royal-blue-rgb), 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.activity-card-combined::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), var(--red-accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.activity-card-combined:hover::before {
    transform: scaleX(1);
}

.activity-card-combined:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    box-shadow: 0 15px 40px rgba(var(--royal-blue-rgb), 0.1);
    background: rgba(var(--royal-blue-rgb), 0.08);
}

.activity-card-combined-content {
    padding: 40px 30px;
    text-align: center;
}

.activity-card-combined-icon {
    font-size: 2.8rem;
    color: var(--gold-accent);
    margin-bottom: 20px;
}

.activity-card-combined h3 {
    font-size: 1.5rem;
    color: var(--royal-blue);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.activity-card-combined p {
    color: rgba(var(--royal-blue-rgb), 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.activity-card-combined-gallery {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    border-top: 1px solid rgba(var(--accent-gold-rgb), 0.2);
}

.activity-card-combined.expanded .activity-card-combined-gallery {
    max-height: 2200px;
}

.activity-card-combined-gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    overflow: hidden;
    background: var(--deep-blue);
    border: 1px solid rgba(var(--royal-blue-rgb), 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--deep-blue);
}

.activity-gallery-thumb:hover {
    border-color: var(--gold-accent);
    transform: scale(1.05);
}

.activity-gallery-thumb.is-hidden-preview {
    display: none;
}

.activity-gallery-thumb img,
.activity-gallery-thumb iframe,
.activity-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-gallery-thumb:hover img,
.activity-gallery-thumb:hover iframe,
.activity-gallery-thumb:hover video {
    transform: scale(1.1);
}

.activity-gallery-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(var(--accent-gold-rgb), 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--royal-blue);
    z-index: 2;
    transition: all 0.3s ease;
}

.activity-gallery-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--gold-accent);
}

.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gold-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 10px 15px;
}

.activity-card-combined.expanded .expand-toggle {
    color: var(--royal-blue);
}

.expand-toggle i {
    transition: transform 0.3s ease;
}

.activity-card-combined.expanded .expand-toggle i {
    transform: rotate(180deg);
}

.ministry-activities-combined .section-header h2 {
    color: var(--royal-blue);
}

.ministry-activities-combined .section-label {
    color: var(--gold-accent);
}

/* Modal / Lightbox Gallery */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--black-rgb), 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--deep-blue);
    border-radius: 12px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold-accent);
    border: none;
    color: var(--royal-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: var(--red-accent);
    color: var(--pure-white);
    transform: rotate(90deg);
}

.gallery-modal-main {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: var(--pure-white);
}

.gallery-modal-main img,
.gallery-modal-main iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.gallery-modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(var(--black-rgb), 0.3);
    overflow-x: auto;
    justify-content: flex-start;
}

.gallery-modal-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(var(--white-rgb), 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-thumb:hover,
.gallery-modal-thumb.active {
    border-color: var(--gold-accent);
    transform: scale(1.05);
}

.gallery-modal-thumb img,
.gallery-modal-thumb iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--accent-gold-rgb), 0.9);
    color: var(--royal-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-modal-nav:hover {
    background: var(--red-accent);
    color: var(--pure-white);
}

.gallery-modal-prev {
    left: 15px;
}

.gallery-modal-next {
    right: 15px;
}

@media (max-width: 768px) {
    .activities-combined-grid {
        grid-template-columns: 1fr;
    }

    .activity-card-combined-gallery-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .gallery-modal-content {
        max-height: 95vh;
    }

    .gallery-modal-main {
        height: 350px;
    }

    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

