/* Sermons Widget CSS - Based on User Design */

.sermons-section {
    padding: 5rem 1rem;
    background: linear-gradient(to bottom, #1e3a8a, #1e40af);
    position: relative;
    overflow: hidden;
}

.sermons-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2), transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.2), transparent 50%);
    z-index: 0;
}

.sermons-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sermons-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.sermons-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.sermons-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, #60a5fa, #93c5fd);
    margin: 0 auto 1.5rem;
}

.sermons-description {
    font-size: 1.125rem;
    color: #bfdbfe;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.75;
}

.sermons-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

.sermon-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    /* Flex alignment added by dev for consistent height */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sermon-card:hover {
    transform: translateY(-0.5rem);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sermon-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
}

.sermon-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.sermon-video:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 5rem;
    height: 5rem;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay:hover .play-button {
    transform: scale(1.1);
    background: #2563eb;
}

.play-button i {
    font-size: 2rem;
    color: white;
    margin-left: 0.25rem;
}

.sermon-content {
    padding: 1.5rem;
    color: white;
    /* Flex for bottom align */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sermon-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #bfdbfe;
}

.sermon-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sermon-meta-item i {
    font-size: 1rem;
}

.sermon-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sermon-description {
    color: #dbeafe;
    line-height: 1.625;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.sermon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Push to bottom */
    margin-top: auto;
}

.sermon-pastor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pastor-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #60a5fa, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.pastor-info {
    display: flex;
    flex-direction: column;
}

.pastor-label {
    font-size: 0.75rem;
    color: #93c5fd;
}

.pastor-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}

.watch-btn {
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.8);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.watch-btn:hover {
    background: #2563eb;
    transform: translateX(0.25rem);
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #1e3a8a;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.view-all-btn:hover {
    background: #eff6ff;
    transform: scale(1.05);
}

/* Animation classes for JS */
.hidden-card {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
    .sermons-title {
        font-size: 3rem;
    }

    .sermons-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sermons-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}