/* --- VARIABLES --- */
:root {
    --purple-dark: #3d0052;
    --purple-main: #7b2cbf;
    --purple-light: #af6be2;
    --gold: #d4af37;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --gray-bg: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden;
}

/* --- SECTION 1: HERO (CINEMATIC NETFLIX STYLE) --- */

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes fadeUpCinematic {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ref-hero {
    position: relative;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

/* Full-screen background image with zoom and parallax */
.ref-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/about page image.png') center/cover no-repeat;
    background-attachment: fixed;
    transform-origin: center;
    animation: heroZoom 12s ease-out forwards;
    z-index: 0;
}

/* Cinematic gradient overlay */
.ref-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.90) 30%,
            rgba(20, 10, 40, 0.75) 60%,
            rgba(80, 30, 140, 0.35) 100%);
    z-index: 1;
}

/* We don't need the old subtle pattern */

/* Ensure content sits above the overlays */
.ref-hero>* {
    position: relative;
    z-index: 5;
}

/* No card background â€” text directly on the hero */
.ref-hero-text {
    position: relative;
    z-index: 5;
    padding: 20px 0;
    max-width: 650px;
    opacity: 0;
    animation: fadeUpCinematic 1.2s ease-out 0.5s forwards;
}

@media (min-width: 992px) {
    .ref-hero-text {
        transform: translateX(-6%);
    }
}

.ref-eyebrow {
    display: inline-block;
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 22px;
    background: rgba(255, 215, 0, 0.12);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.ref-heading {
    font-size: 4.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.08;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ref-intro {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 45px;
    max-width: 95%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ref-hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ref-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--purple-main);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(175, 107, 226, 0.5);
    color: var(--white);
    background: var(--purple-light);
}

.ref-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.ref-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* --- ABOUT US STORY ROW GAP (FLEX/GRID OVERRIDE) --- */
@media (min-width: 1100px) {
    .about-story-row {
        --bs-gutter-x: 0;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        column-gap: 80px;
        /* 70-90px real gap */
        align-items: center;
    }

    .about-story-row>.col-lg-6:first-child {
        flex: 0 0 39% !important;
        /* ~38-40% width */
        max-width: 39% !important;
        /* Allow the image to grow larger than this column by bleeding left */
        display: flex;
        justify-content: flex-end;
    }

    .about-story-row .story-image-wrapper {
        width: 520px;
        /* With 20px padding, image itself is ~480px */
        flex: 0 0 520px;
        max-width: none;
    }

    .about-story-row>.col-lg-6:last-child {
        flex: 0 0 51% !important;
        /* ~50-52% width */
        max-width: 51% !important;
    }
}

@media (min-width: 768px) and (max-width: 1099.98px) {
    .about-story-row {
        --bs-gutter-x: 0;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        column-gap: 45px;
        /* 40-50px gap */
        align-items: center;
    }

    .about-story-row>.col-lg-6:first-child {
        flex: 0 0 42% !important;
        max-width: 42% !important;
        display: flex;
        justify-content: flex-end;
    }

    .about-story-row .story-image-wrapper {
        width: 420px;
        flex: 0 0 420px;
        max-width: none;
    }

    .about-story-row>.col-lg-6:last-child {
        flex: 0 0 52% !important;
        max-width: 52% !important;
    }
}

@media (max-width: 767.98px) {
    .about-story-row {
        row-gap: 30px;
        /* Keep existing stacked layout vertical gap */
    }
}

/* --- ABOUT US STORY IMAGE UPGRADES --- */
.story-image-wrapper {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.story-main-img {
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(86, 31, 148, 0.18);
    object-fit: cover;
    aspect-ratio: 4 / 5;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-image-wrapper:hover .story-main-img {
    transform: translateY(-8px);
}

/* Decorative Blob Top Right */
.story-blob-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
    border-radius: 50% 40% 60% 40% / 40% 50% 60% 50%;
    z-index: 0;
    opacity: 0.6;
    filter: blur(20px);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Decorative Circle Bottom Left */
.story-blob-2 {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 250px;
    height: 250px;
    background: var(--purple-dark);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.15;
    filter: blur(15px);
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-image-wrapper:hover .story-blob-1 {
    transform: translateY(-5px) translateX(5px);
}

.story-image-wrapper:hover .story-blob-2 {
    transform: translateY(-4px) translateX(-4px);
}

/* Floating Badge */
.story-floating-badge {
    position: absolute;
    top: 40px;
    right: -30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 3;
    animation: floatBadge 5s ease-in-out infinite;
    border: 1px solid rgba(123, 44, 191, 0.1);
}

.story-floating-badge .badge-icon {
    width: 45px;
    height: 45px;
    background: rgba(123, 44, 191, 0.1);
    color: var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.story-floating-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.story-floating-badge .badge-text strong {
    color: var(--purple-dark);
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
}

.story-floating-badge .badge-text span {
    @media (min-width: 992px) {
        .ref-hero-text {
            transform: translateX(-6%);
        }
    }

    .ref-eyebrow {
        display: inline-block;
        color: #ffd700;
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 22px;
        background: rgba(255, 215, 0, 0.12);
        padding: 8px 18px;
        border-radius: 50px;
        border: 1px solid rgba(255, 215, 0, 0.3);
    }

    .ref-heading {
        font-size: 4.2rem;
        font-weight: 900;
        color: #ffffff;
        line-height: 1.08;
        margin-bottom: 25px;
        letter-spacing: -1.5px;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .ref-intro {
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.9;
        margin-bottom: 45px;
        max-width: 95%;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .ref-hero-actions {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .ref-btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: var(--purple-main);
        color: var(--white);
        padding: 16px 35px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ref-btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(175, 107, 226, 0.5);
        color: var(--white);
        background: var(--purple-light);
    }

    .ref-btn-outline {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.05);
        color: var(--white);
        padding: 14px 35px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .ref-btn-outline:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.9);
        color: var(--white);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }

    /* --- ABOUT US STORY IMAGE UPGRADES --- */
    .story-image-wrapper {
        position: relative;
        z-index: 1;
        padding: 20px;
    }

    .story-main-img {
        border-radius: 24px;
        box-shadow: 0 30px 80px rgba(86, 31, 148, 0.18);
        object-fit: cover;
        aspect-ratio: 4 / 5;
        position: relative;
        z-index: 2;
        transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .story-image-wrapper:hover .story-main-img {
        transform: translateY(-8px);
    }

    /* Decorative Blob Top Right */
    .story-blob-1 {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 300px;
        height: 300px;
        background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
        border-radius: 50% 40% 60% 40% / 40% 50% 60% 50%;
        z-index: 0;
        opacity: 0.6;
        filter: blur(20px);
        transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* Decorative Circle Bottom Left */
    .story-blob-2 {
        position: absolute;
        bottom: -30px;
        left: -30px;
        width: 250px;
        height: 250px;
        background: var(--purple-dark);
        border-radius: 50%;
        z-index: 0;
        opacity: 0.15;
        filter: blur(15px);
        transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .story-image-wrapper:hover .story-blob-1 {
        transform: translateY(-5px) translateX(5px);
    }

    .story-image-wrapper:hover .story-blob-2 {
        transform: translateY(-4px) translateX(-4px);
    }

    /* Floating Badge */
    .story-floating-badge {
        position: absolute;
        top: 40px;
        right: -30px;
        background: white;
        padding: 15px 25px;
        border-radius: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 15px;
        z-index: 3;
        animation: floatBadge 5s ease-in-out infinite;
        border: 1px solid rgba(123, 44, 191, 0.1);
    }

    .story-floating-badge .badge-icon {
        width: 45px;
        height: 45px;
        background: rgba(123, 44, 191, 0.1);
        color: var(--purple-main);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .story-floating-badge .badge-text {
        display: flex;
        flex-direction: column;
    }

    .story-floating-badge .badge-text strong {
        color: var(--purple-dark);
        font-size: 1.1rem;
        line-height: 1.2;
        font-weight: 800;
    }

    .story-floating-badge .badge-text span {
        color: #666;
        font-size: 0.85rem;
        font-weight: 500;
    }

    @keyframes floatBadge {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-12px);
        }
    }

    @media (max-width: 992px) {
        .story-image-wrapper {
            padding: 10px;
        }

        .story-floating-badge {
            right: 10px;
            top: 20px;
            padding: 12px 20px;
        }
    }

    /* â”€â”€â”€ MINISTRIES / ABOUT: MOBILE OVERFLOW FIX â”€â”€â”€ */
    @media (max-width: 768px) {

        /* Clip absolute children that bleed horizontally beyond the container */
        .story-image-wrapper {
            overflow-x: clip;
            overflow-y: visible;
        }

        /* Pull decorative blobs inside the container bounds */
        .story-blob-1 {
            top: -10px;
            right: -10px;
            width: 160px;
            height: 160px;
        }

        .story-blob-2 {
            bottom: -10px;
            left: -10px;
            width: 130px;
            height: 130px;
        }

        /* Keep badge inside viewport */
        .story-floating-badge {
            right: 8px;
            top: 16px;
            padding: 10px 14px;
            gap: 10px;
        }
    }

    /* Elegant Scroll Animations for Content Sections */
    .about-fade-left {
        opacity: 0;
        transform: translateX(-60px);
        transition: opacity 0.9s ease-out, transform 0.9s ease-out;
        will-change: opacity, transform;
    }

    .about-fade-right {
        opacity: 0;
        transform: translateX(60px);
        transition: opacity 0.9s ease-out, transform 0.9s ease-out;
        will-change: opacity, transform;
    }

    .about-fade-left.visible,
    .about-fade-right.visible {
        opacity: 1;
        transform: translateX(0);
    }



    /* --- COMPACT GLASS BADGE --- */
    .compact-glass-badge {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(123, 44, 191, 0.4);
        border-radius: 12px;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 8px 32px rgba(123, 44, 191, 0.15);
        z-index: 10;
        transition: all 0.3s ease;
    }

    .compact-glass-badge:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(123, 44, 191, 0.25);
        border-color: rgba(123, 44, 191, 0.8);
    }

    .compact-glass-badge .badge-icon {
        background: var(--purple-main);
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
    }

    .compact-glass-badge .badge-text strong {
        display: block;
        font-size: 0.85rem;
        color: var(--purple-dark);
        font-weight: 800;
        line-height: 1.2;
    }

    .compact-glass-badge .badge-text span {
        display: block;
        font-size: 0.75rem;
        color: #555;
        font-weight: 600;
        margin-top: 2px;
    }

    /* --- DECORATIVE WAVE BACKGROUND --- */
    .wave-bg-about {
        background-color: #f7effc !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800'%3E%3Cdefs%3E%3Cfilter id='blur' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeGaussianBlur stdDeviation='30' /%3E%3C/filter%3E%3C/defs%3E%3Cpath fill='%23b388ff' fill-opacity='0.15' filter='url(%23blur)' d='M0,200 C400,400 800,0 1440,300 L1440,800 L0,800 Z'%3E%3C/path%3E%3Cpath fill='%239b51e0' fill-opacity='0.12' d='M0,400 C400,200 800,600 1440,400 L1440,800 L0,800 Z'%3E%3C/path%3E%3Cpath fill='%237b2cbf' fill-opacity='0.12' d='M0,600 C400,700 800,300 1440,500 L1440,800 L0,800 Z'%3E%3C/path%3E%3C/svg%3E") !important;
        background-size: cover !important;
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;
    }
}

/* --- COMPACT TOP-LEFT BADGE MODIFIER --- */
.story-floating-badge.badge-top-left-sm {
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    bottom: auto !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    gap: 12px !important;
}

.story-floating-badge.badge-top-left-sm .badge-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
}

.story-floating-badge.badge-top-left-sm .badge-text strong {
    font-size: 0.9rem !important;
}

.story-floating-badge.badge-top-left-sm .badge-text span {
    font-size: 0.7rem !important;
}

@media (max-width: 992px) {
    .story-floating-badge.badge-top-left-sm {
        top: 15px !important;
        left: 15px !important;
        padding: 10px 16px !important;
    }
}

@media (max-width: 768px) {
    .story-floating-badge.badge-top-left-sm {
        top: 12px !important;
        left: 12px !important;
        padding: 8px 11px !important;
        gap: 8px !important;
    }
}

/* --- VISION & MISSION SECTION --- */
.vision-mission-section {
    position: relative;
    padding: 85px 0;
    background-image: url('img/home page/hero/church image 2.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.vision-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.vm-container {
    position: relative;
    z-index: 2;
}

.vm-header {
    text-align: center;
    margin-bottom: 50px;
}

.vm-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.vm-title {
    font-weight: 800;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.vm-divider {
    width: 70px;
    height: 4px;
    background: var(--purple-main);
    margin: 0 auto;
    border-radius: 2px;
}

.vm-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 45px 40px;
    height: 100%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Purple Neon Breathing Border */
.vm-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    border: 1px solid rgba(123, 44, 191, 0.5);
    box-shadow: 0 0 15px rgba(123, 44, 191, 0.3), inset 0 0 15px rgba(123, 44, 191, 0.3);
    pointer-events: none;
    z-index: 10;
    animation: neonPulse 3.5s infinite alternate ease-in-out;
}

@keyframes neonPulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.9;
    }
}

/* Inner purple gradient */
.vm-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.vm-card:hover {
    transform: translateY(-10px);
    background: rgba(25, 25, 25, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(123, 44, 191, 0.3);
}

.vm-card:hover::before {
    opacity: 1;
}

.vm-card-content {
    position: relative;
    z-index: 1;
}

.vm-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 25px;
    transition: all 0.5s ease;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.vm-card:hover .vm-icon-wrapper {
    background: var(--purple-main);
    color: white;
    border-color: var(--purple-main);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.4);
}

.vm-card-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.vm-card-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Mobile Spacing & Layout */
@media (max-width: 991px) {
    .vision-mission-section .col-md-6 {
        margin-bottom: 32px;
    }

    .vision-mission-section .col-md-6:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .vision-mission-section {
        padding: 55px 0;
    }

    .vm-header {
        margin-bottom: 40px;
    }

    .vm-title {
        font-size: 2.3rem;
    }

    .vm-card {
        padding: 35px 25px;
    }
}