
/* =========================================
   SABKI AWAAZ
   DESH VIDESH HOMEPAGE SECTION
========================================= */

.desh-videsh-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 20px 0 !important;
    padding: 15px !important;

    background: #172D50 !important;
    color: #ffffff !important;

    box-sizing: border-box !important;
    overflow: hidden;
}

/* HEADER */

.desh-videsh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 15px;
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.desh-videsh-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
}

/* TABS */

.desh-videsh-tabs {
    display: flex;
    gap: 8px;
}

.desh-videsh-tab {
    background: transparent;
    color: #ffffff;

    border: 1px solid #ffffff;
    padding: 8px 16px;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.desh-videsh-tab.active {
    background: #ffffff;
    color: #172D50;
}

/* =========================================
   NEWS GRID
========================================= */

.desh-videsh-panel {
    display: grid !important;

    grid-template-columns: 450px repeat(2, minmax(0, 1fr));

    grid-auto-flow: row;
    grid-auto-rows: auto;

    gap: 12px;

    width: 100%;
    height: auto;

    min-width: 0;
    align-items: start;

    box-sizing: border-box;
}

.desh-videsh-panel[hidden] {
    display: none !important;
}

/* NEWS CARD */

.desh-videsh-card {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
}

.desh-videsh-card a {
    display: block;
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   MAIN THUMBNAIL
   FIXED SIZE 450 X 350
========================================= */

.desh-videsh-card.main-news {
    grid-column: 1;
    grid-row: span 3;
}

.desh-videsh-card.main-news img {
    display: block;

    width: 450px !important;
    max-width: 100% !important;

    height: 350px !important;
    min-height: 350px;
    max-height: 350px;

    object-fit: cover !important;
    object-position: center;

    border-radius: 3px;
}

/* MAIN HEADLINE */

.desh-videsh-card.main-news h3 {
    color: #ffffff;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 700;
    margin: 10px 0 0;
}

/* =========================================
   SMALL THUMBNAILS
   FIXED SIZE 150 X 120
========================================= */

.desh-videsh-card.small-news img {
    display: block;

    width: 150px !important;
    max-width: 100% !important;

    height: 120px !important;
    min-height: 120px;
    max-height: 120px;

    object-fit: cover !important;
    object-position: center;

    border-radius: 3px;
}

/* SMALL HEADLINES */

.desh-videsh-card.small-news h3 {
    color: #ffffff;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;

    margin: 6px 0 0;
}

/* HOVER */

.desh-videsh-card a:hover h3 {
    color: #ffd700;
}

.desh-videsh-card img {
    transition: transform 0.3s ease;
}

.desh-videsh-card a:hover img {
    transform: scale(1.03);
}

/* NO NEWS */

.desh-videsh-no-news {
    grid-column: 1 / -1;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .desh-videsh-panel {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }

    .desh-videsh-card.main-news img {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px;
        max-height: 280px;
    }

    .desh-videsh-card.small-news img {
        width: 150px !important;
        height: 120px !important;
        min-height: 120px;
        max-height: 120px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .desh-videsh-section {
        padding: 12px !important;
    }

    .desh-videsh-header h2 {
        font-size: 19px;
    }

    .desh-videsh-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 9px;
    }

    .desh-videsh-card.main-news {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .desh-videsh-card.main-news img {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px;
        max-height: 220px;
    }

    .desh-videsh-card.small-news img {
        width: 100% !important;
        height: 120px !important;
        min-height: 120px;
        max-height: 120px;
    }

    .desh-videsh-card.main-news h3 {
        font-size: 18px;
    }

    .desh-videsh-card.small-news h3 {
        font-size: 12px;
    }
}

/* TOUCH DEVICES */

@media (hover: none) {
    .desh-videsh-card a:hover img {
        transform: none;
    }
}
