﻿
.breaking-right-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%; /* Critical */
    gap: 10px;
}

/* ===== LIVE VIDEO ===== */
.breaking-live-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

    .breaking-live-box .live-header {
        background: #dc2626;
        color: white;
        padding: 6px 10px;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

        .breaking-live-box .live-header .dot {
            width: 7px;
            height: 7px;
            background: white;
            border-radius: 50%;
            animation: pulse 1.4s infinite;
        }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.breaking-live-box .video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Ye wapas add kiya */
    background: #000;
}

    .breaking-live-box .video-frame iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* ===== STORY CARDS ===== */
.breaking-stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1 1 auto; /* Remaining height le lega */
    min-height: 0;
}

.breaking-story-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s;
}

    .breaking-story-card:hover {
        box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    }

    .breaking-story-card .img-wrap {
        width: 100%;
        flex: 1 1 auto;
        min-height: 70px;
        max-height: 120px;
        overflow: hidden;
    }

        .breaking-story-card .img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

    .breaking-story-card:hover .img-wrap img {
        transform: scale(1.06);
    }

    .breaking-story-card .content {
        padding: 8px 10px 10px;
        flex-shrink: 0;
    }

    .breaking-story-card h4 {
        margin: 0;
      
        line-height: 1.35;
        font-weight: 600;
        color: #111;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .breaking-story-card h4 a {
            color: inherit;
            text-decoration: none;
        }

            .breaking-story-card h4 a:hover {
                color: #dc2626;
            }

    .breaking-story-card .date {
        margin-top: 5px;
        font-size: 11px;
        color: #6b7280;
        display: flex;
        align-items: center;
        gap: 4px;
    }

/* No Live Video */
.breaking-right-wrapper.no-video .breaking-stories-grid {
    height: 100%;
}

/* Mobile + Tablet */
@media (max-width: 767px) {
    .breaking-right-wrapper {
        height: auto;
    }

    .breaking-stories-grid {
        grid-template-columns: 1fr;
        flex: none;
    }

    .breaking-story-card .img-wrap {
        height: 160px;
        max-height: none;
        flex: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .breaking-story-card .img-wrap {
        max-height: 110px;
    }
}