
/* =================================
   LOKMAYA DESH VIDESH NEWS
================================= */

.desh-videsh-section {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 25px auto !important;
    padding: 20px;
    background: #172D50;
    color: #fff;
    box-sizing: border-box;
    min-width: 0;
}

/* HEADER */

.desh-videsh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.8);
}

.desh-videsh-header h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}

/* TABS */

.desh-videsh-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desh-videsh-tab {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.8);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.desh-videsh-tab:hover {
    background: rgba(255,255,255,0.15);
}

.desh-videsh-tab.active {
    background: #fff;
    color: #172D50;
    border-color: #fff;
}

/* NEWS GRID */

.desh-videsh-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 15px;
    min-width: 0;
}

.desh-videsh-panel[hidden] {
    display: none !important;
}

/* NEWS CARD */

.desh-videsh-card {
    min-width: 0;
    overflow: hidden;
}

.desh-videsh-card a {
    display: block;
    color: #fff;
    text-decoration: none;
}

/* MAIN IMAGE 450 x 350 */

.desh-videsh-card.main-news {
    grid-column: 1;
    grid-row: 1 / span 4;
}

.desh-videsh-card.main-news img {
    display: block;
    width: 450px;
    max-width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

/* SMALL IMAGES 250 x 200 */

.desh-videsh-card.small-news img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

/* IMAGE HOVER EFFECT */

.desh-videsh-card a img {
    transition: transform 0.3s ease;
}

.desh-videsh-card a:hover img {
    transform: scale(1.03);
}

/* HEADLINES */

.desh-videsh-card h3 {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    margin: 8px 0 0;
}

.desh-videsh-card.main-news h3 {
    font-size: 23px;
    line-height: 1.5;
    margin-top: 12px;
}

.desh-videsh-card a:hover h3 {
    color: #ffd700;
}

/* NO NEWS */

.desh-videsh-no-news {
    grid-column: 1 / -1;
    color: #fff;
    padding: 30px 10px;
    text-align: center;
    font-size: 16px;
}

/* TABLET */

@media (max-width: 900px) {

    .desh-videsh-panel {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto;
    }

    .desh-videsh-card.main-news {
        grid-row: 1 / span 4;
    }

    .desh-videsh-card.main-news img {
        height: 280px;
    }

    .desh-videsh-card.small-news img {
        height: 110px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .desh-videsh-section {
        padding: 12px;
        margin: 18px 0;
    }

    .desh-videsh-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .desh-videsh-header h2 {
        font-size: 21px;
    }

    .desh-videsh-tabs {
        width: 100%;
    }

    .desh-videsh-tab {
        flex: 1;
        padding: 10px 8px;
        font-size: 14px;
    }

    .desh-videsh-panel {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .desh-videsh-card.main-news {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .desh-videsh-card.main-news img {
        height: 220px;
    }

    .desh-videsh-card.main-news h3 {
        font-size: 19px;
    }

    .desh-videsh-card.small-news img {
        height: 105px;
    }

    .desh-videsh-card h3 {
        font-size: 13px;
        line-height: 1.4;
    }

}

/* VERY SMALL MOBILE */

@media (max-width: 380px) {

    .desh-videsh-panel {
        grid-template-columns: 1fr;
    }

    .desh-videsh-card.main-news {
        grid-column: 1;
    }

}

/* TOUCH SCREEN */

@media (hover: none) {
    .desh-videsh-card a:hover img {
        transform: none;
    }
}
