/* 
 * ==========================================
 * About Page Styles
 * ==========================================
 */

/* Hero Section */
.hero-about {
    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;
}

.hero-about__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: #000;
}

.hero-about__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-about__title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: #fff;
    text-align: center;
    margin: 0;
}

/* Who We Are */
.who-we-are {
    position: relative;
    margin-top: 550px;
    z-index: 2;
    padding: 60px 16px 30px;
    background: url('../images/about/who-we-are-bg.jpg') center/cover no-repeat;
}

.who-we-are .section-title {
    margin-bottom: 20px;
}

.who-we-are .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.who-we-are__header-img {
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 4px 16px 4px;
}

.who-we-are__content {
    text-align: center;
}

.who-we-are__content .badge {
    margin-bottom: 20px;
}

.who-we-are__text p {
    color: #121212;
    font-size: 18px;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;

}

/* Pastor Sections */
.pastor-section {
    padding: 60px 0;
    background-color: #000;
}

.pastor-section .badge {
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pastor-section--light {
    background-color: #f4efea;
}

.pastor-card {
    display: flex;
    gap: 30px;
    align-items: center;
}

.pastor-card--reverse {
    flex-direction: row-reverse;
}

.pastor-card__image {
    flex: 1;
}

.pastor-card__image img {
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pastor-card__info {
    flex: 1.2;
}

.pastor-card__name {
    font-family: var(--font-heading);
    font-size: 46px;
    color: #fff;
    margin-bottom: 15px;
}

.pastor-section--light .pastor-card__name {
    color: #000;
    margin-bottom: 0;
}

.pastor-card__role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.pastor-section--light .pastor-card__role {
    color: rgb(33, 33, 33);
}

.pastor-card__bio p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 45px;
    font-weight: 500;
    max-width: 600px;
}

.pastor-section--light .pastor-card__bio p {
    color: #000;
}

/* Vision and Mission */
.vision-mission {
    padding: 60px 0;
    background-color: #fff;
}

.vision-mission .badge {
    margin-bottom: 20px;
}

.vision-mission .section-title--dark {
    margin-bottom: 20px;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vm-card {
    background: #575757;
    padding: 30px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.6s ease;
}

.vm-card:hover {
    background-color: rgb(86 132 255);
}

.vm-card__title {
    font-size: 24px;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.vm-card__divider {
    height: 1px;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.15) 50%, #0319ff 100%);
    margin-bottom: 22px;
}

.vm-card__desc {
    font-family: 'Satoshi';
    line-height: 1.5;
    font-size: 18px;
    font-weight: 500;
    color: rgb(255 255 255 / 60%);
}

.vm-card__highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 85, 255, 0) 0%, #0055ff 50%, rgba(0, 85, 255, 0) 100%);
}

/* ==========================================
 * Beliefs Timeline — Scroll Animation
 * ==========================================
 */
.beliefs {
    padding: 60px 0;
    background-color: #000;
    overflow: hidden;
}

.beliefs .badge {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.beliefs .section-title {
    margin-bottom: 10px;
}

.beliefs .container--center {
    max-width: 700px;
    margin: 0 auto;
}

.beliefs .section-desc {
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    margin: -10px auto 0;
    font-size: 18px;
    max-width: 450px;
    font-weight: 500;
}

/* Timeline wrapper */
.timeline {
    position: relative;
    margin: 80px auto 0;
}

/* Base line segments (grey) */
.timeline__item::before {
    content: '';
    position: absolute;
    top: 22px; /* 10px gap from dot bottom (12px) */
    /* Gap from current dot */
    bottom: 10px; /* 10px gap from next dot */
    /* Towards next dot */
    width: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 1;
}

/* Blue line segments (fills based on scroll) */
.timeline__item::after {
    content: '';
    position: absolute;
    top: 22px; /* 10px gap from dot bottom (12px) */
    bottom: 10px; /* 10px gap from next dot */
    width: 3px;
    background: #0408de;
    z-index: 2;
    transform: scaleY(var(--scroll-progress, 0));
    transform-origin: top;
    transition: transform 0.1s linear;
}

/* Unique state for the first line segment */
.timeline__item:first-child::before {
    background: #ffffff;
}

/* Removed .timeline__item--passed::after opacity toggle as we use scaleY now */

.timeline__item--left::before,
.timeline__item--left::after {
    right: -1.5px;
}

.timeline__item--right::before,
.timeline__item--right::after {
    left: -1.5px;
}

/* No line for the last item */
/* Line remains visible for last child as requested */
/* .timeline__item:last-child::before,
.timeline__item:last-child::after {
    display: none;
} */

/* ---- Individual items ---- */
.timeline__item {
    position: relative;
    width: 50%;
    /* Keep parent at full opacity to avoid affecting the static lines */
    opacity: 1;
}

/* State: currently active */
.timeline__item--active {
    z-index: 10;
}


/* Left side items */
.timeline__item--left {
    padding-right: 60px;
    text-align: right;
}

/* Right side items */
.timeline__item--right {
    margin-left: 50%;
    padding-left: 60px;
}

/* ---- Dots ---- */
.timeline__dot {
    position: absolute;
    top: 0px;
    /* align with center of first line of card heading */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 5;
    /* Default: future = solid grey dot with low opacity */
    background: #575757;
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.timeline__item--left .timeline__dot {
    right: -6px;
}

.timeline__item--right .timeline__dot {
    left: -6px;
}

/* Past/active dot: white and glowing */
.timeline__item--active .timeline__dot,
.timeline__item--passed .timeline__dot {
    background: #fff;
    border-color: #fff;
    opacity: 1;
}

/* ---- Cards ---- */
.timeline__content {
    padding: 24px;
    border: 1px solid transparent;
    text-align: center;
    background: transparent;
    
    /* Subtle zoom and slower transition */
    opacity: 0.5; 
    transform: scale(0.96);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline__item--active .timeline__content {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    opacity: 1;
    transform: scale(1.02);
}

.timeline__item--passed .timeline__content {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.01);
    opacity: 1;
    transform: scale(1);
}

/* Card heading */
.timeline__content h5 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Card body text — future: ghosted */
.timeline__content p {
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    transition: color 0.5s ease;
    font-weight: 500;
}

/* Active card body: bright */
.timeline__item--active .timeline__content p {
    color: rgba(255, 255, 255, 0.6);
}

/* Past card body: readable but subdued */
.timeline__item--passed .timeline__content p {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
 * Responsive
 * ==========================================
 */
@media (max-width: 991px) {
    .pastor-card {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .pastor-card__image {
        order: -1;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .timeline__item::before,
    .timeline__item::after {
        left: 19.5px !important; /* Perfect center for 12px dot starting at 15px */
        right: auto !important;
    }

    .timeline__item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .timeline__dot {
        left: 15px !important;
        right: auto !important;
    }
}