/* YouTube Sidebar Section */
.youtube_sidebar_card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    font-family: SolaimanLipi;
    text-decoration: none !important;
    margin-top: 25px;
}

.youtube_video_container {
    padding: 15px;
}

.video_wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 135px;
    /* Increased height for better visibility */
    border-radius: 5px;
    overflow: hidden;
    background: #000;
}

.video_wrapper video,
.video_wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Darkens video so overlay pops */
    transition: all 0.5s ease;
}

.video_wrapper:hover video,
.video_wrapper:hover iframe {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Overlay & Play Button */
.video_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.play_icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.video_wrapper:hover .play_icon {
    transform: scale(1.2);
    background: #ff0000;
}

/* Live Pulse Badge */
.live_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: yt-pulse 1.5s infinite;
}

@keyframes yt-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Footer Button */
.youtube_footer {
    margin-top: 15px;
}

.yt_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fdf2f2;
    color: #cc0000 !important;
    text-decoration: none;
    padding: 8px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 19px;
    transition: all 0.3s ease;
    border: 1px dashed #ff0000;
}

.yt_btn:hover {
    background: #ff0000;
    color: #fff !important;
    text-decoration: none;
}

.video_wrapper:hover .play_icon .la-play:before {
    text-decoration: none;
    border: none;
}

.video_wrapper:hover .play_icon {
    text-decoration: none;
    border: none;
}

.youtube-board-title {
    background: #051939;
    padding: 8px;
    font-size: 20px;
    color: #ffffff;
}