/* Pastor Section */
.pastor {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
}

.pastor h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: block;
    padding-bottom: 15px;
    width: 100%;
}

.pastor h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.pastor-profile {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pastor-card {
    display: flex;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.pastor-image {
    flex: 0 0 350px;
    position: relative;
    overflow: hidden;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pastor-card:hover .pastor-image img {
    transform: scale(1.05);
}

.pastor-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.pastor-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pastor-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pastor-bio {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray-color);
}

.pastor-contact {
    margin-top: auto;
}

.pastor-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.pastor-contact i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .pastor-card {
        flex-direction: column;
    }
    
    .pastor-image {
        flex: 0 0 300px;
    }
}

/* Services Section */
#services {
    padding: 5rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    clip-path: ellipse(50% 50% at 50% 50%);
}

#services h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    display: block;
    padding-bottom: 15px;
    width: 100%;
}

#services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

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

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background-color 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-color);
    gap: 0.8rem;
}
