.sermons-section {
    padding: 5px 0;
}

.section-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #009fe2;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 158, 226, 0.222);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #009fe2;
    font-size: 24px;
}

.video-content {
    padding: 20px;
}

.video-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.4;
}

.video-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.video-date {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 13px;
}

.video-date i {
    margin-right: 5px;
    color: #009fe2;
}

.watch-btn {
    display: inline-block;
    background: #009fe2;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.watch-btn:hover {
    background: #007bb5;
    color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #009fe2;
    color: white;
}

.slider-nav.prev {
    left: -25px;
}

.slider-nav.next {
    right: -25px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #009fe2;
}

@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }

    .video-thumbnail {
        height: 200px;
    }
}


/* Main Youtube Video Start */

.upside-down-container {
    margin-top: -140px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    /* Added max-width for desktop */
    margin: 0 auto;
    /* Center the video */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

/* Animation for fade-in effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation: fadeIn 1s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .btn {
        width: 100%;
        margin-bottom: 15px;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Remove max-width on mobile for full width */
    .video-container {
        max-width: 100%;
    }
}

/* Additional desktop sizing */
@media (min-width: 993px) {
    .video-container {
        max-width: 80%;
        /* Adjust this value to make it smaller/larger */
        padding-bottom: 45%;
        /* Adjust aspect ratio if needed */
    }
}