/* Sermons Section Styles */

.sermons-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

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

.sermon-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sermon-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.sermon-card:hover .sermon-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(58, 139, 187, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.sermon-details {
    padding: 20px;
}

.sermon-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.sermon-card:hover .sermon-details h3 {
    color: var(--primary-color);
}

.sermon-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 14px;
}

.sermon-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.sermon-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.sermon-description {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.sermon-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sermon-actions a {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.sermon-actions a i {
    margin-right: 5px;
}

.sermon-actions a:hover {
    color: var(--secondary-color);
}

/* View All Sermons button spacing */
.sermon-view-all {
    margin-top: 30px;
}

/* Sermon slider for mobile */
@media (max-width: 768px) {
    .sermons-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    .sermon-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        margin-right: 15px;
    }
    
    .sermon-card:last-child {
        margin-right: 0;
    }
}
