/* Pastors Page Styles */

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    color: #333;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

/* Senior Pastor Section */
.senior-pastor-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.main-pastor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .main-pastor-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.main-pastor-card .pastor-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .main-pastor-card .pastor-image {
        margin-right: 3rem;
        margin-bottom: 0;
    }
}

.main-pastor-card .pastor-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.main-pastor-card .pastor-info {
    flex: 1;
}

.main-pastor-card .pastor-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.main-pastor-card .position {
    font-size: 1.2rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.main-pastor-card .bio {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.main-pastor-card .btn-primary {
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.main-pastor-card .btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.main-pastor-card .btn-primary i {
    margin-right: 0.5rem;
}

/* Associate Pastors Section */
.associate-pastors-section {
    padding-top: 2rem;
}

.pastors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pastors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .pastors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pastor-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pastor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.pastor-card .pastor-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.pastor-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pastor-card:hover .pastor-social,
.main-pastor-card:hover .pastor-social {
    opacity: 1;
}

.pastor-social a {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.pastor-social a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-3px);
}

.pastor-info {
    padding: 1.5rem;
}

.pastor-card .pastor-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.pastor-card .position {
    font-size: 1rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pastor-card .bio {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

.pastor-card .bio:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, transparent);
}

.pastor-card .btn-outline {
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.pastor-card .btn-outline:hover {
    background-color: #3498db;
    color: white;
}

.pastor-card .btn-outline i {
    margin-right: 0.5rem;
}

/* No Pastors Message */
.no-pastors {
    text-align: center;
    padding: 3rem;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.no-pastors i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.no-pastors p {
    font-size: 1.2rem;
    color: #7f8c8d;
}
