.youtube-live-stream-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between grid items */
    width: 100%; /* Ensure the grid takes full width */
}

.youtube-live-video {
    flex: 1 1 calc(33.33% - 20px); /* 3 columns with gap */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    max-width: calc(33.33% - 20px); /* 3 columns with gap */
}

.youtube-live-video iframe {
    width: 100%; /* Make iframe responsive */
    height: 315px; /* Fixed height for consistency */
    border: none; /* Remove iframe border */
    border-radius: 8px; /* Optional: Add rounded corners */
}

.no-live {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%; /* Ensure it takes full width */
}

h2 {
    width: 100%;
    margin-top: 20px;
    font-size: 24px;
}

.youtube-slider {
    position: relative;
    padding: 20px 20px 40px;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.swiper-slide iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.swiper-slide h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

.swiper-slide p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.swiper-button-next,
.swiper-button-prev {
    color: #000;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: #000;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #000;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .swiper-slide iframe {
        height: 300px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .swiper-slide iframe {
        height: 350px;
    }
}

@media (min-width: 769px) {
    .swiper-slide iframe {
        height: 400px;
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .youtube-live-video {
        flex: 1 1 calc(50% - 20px); /* 2 columns on tablets */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .youtube-live-video {
        flex: 1 1 100%; /* 1 column on mobile */
        max-width: 100%;
    }
}