﻿/* =====================================================
   TOP NEWS SLIDER WRAPPER
===================================================== */
.topnews-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 14px;
    border-radius: 8px;
}

.topnews-slider {
    max-width: 1280px;
    margin: 0 auto;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

    img.fade-in {
        opacity: 1;
    }

/* =====================================================
   SLIDE
===================================================== */
.topnews-slide {
    display: grid;
    grid-template-columns: 61% 38%;
    gap: 14px;
    background: #f7f7f7;
    padding: 14px;
    border-radius: 8px;
    height: 420px; /* locked height */
    box-sizing: border-box;
}

    .topnews-slide:not(.active) {
        display: none;
    }

/* =====================================================
   BIG CARD
===================================================== */
.news-card.big {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

    /* Image */
    .news-card.big .news-img {
        width: 100%;
        height: 236px;
        object-fit: cover;
        display: block;
        cursor: pointer;
        transition: opacity 0.2s ease;
    }

    .news-card.big:hover .news-img {
        opacity: 0.92;
    }

    /* Title */
    .news-card.big .news-title {
        font-size: 18px;
        font-weight: 700 !important;
        margin: 12px 14px 6px;
        line-height: 1.25;
        max-width: 95%;
        letter-spacing: -0.2px;
        color: #0b1f33;
    }

        .news-card.big .news-title a {
            /*color: #0b1f33;*/
            color: inherit;
            text-decoration: none;
            transition: color 0.15s ease;
            font-weight: 700;
        }

            .news-card.big .news-title a:hover {
                text-decoration: underline;
                color: #0a58ca;
            }

    /* Description */
    .news-card.big .news-text {
        font-size: 12.5px;
        color: #4d4d4d;
        margin: 0 14px 8px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

        .news-card.big .news-text a {
            color: inherit;
            text-decoration: none;
            cursor: pointer;
        }

            .news-card.big .news-text a:hover {
                text-decoration: underline;
            }

/* Author + Date */
.news-meta {
    margin: auto 14px 12px;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

    .news-meta .author {
        font-weight: 600;
    }

    .news-meta .smallauthor {
        align-content: center;
        font-weight: 600;
        left: -11px;
    }

    .news-meta .dot {
        margin: 0 6px;
        font-weight: 400;
        opacity: 0.6;
    }

    .news-meta .date {
        font-weight: 600;
    }

.news-card.big .news-meta {
    margin-top: auto;
}

/*/Jan 12 2026 Nimesh Gamiform click all over area for big card and small card css*/

.news-card.big {
    position: relative;
}

    .news-card.big .news-title a,
    .news-card.big .news-text a {
        position: relative;
        z-index: 2;
    }

    /* Invisible overlay link */
    .news-card.big::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
    }

.news-card.small {
    cursor: pointer;
}

    .news-card.small:hover {
        background-color: #f5f9ff;
    }

.news-card.big:hover .news-title a {
    text-decoration: underline;
}

.news-card.big:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background-color: #f5f9ff;
}

.news-card.small:hover .news-title a {
    text-decoration: underline;
}


.news-card.big,
.news-card.small {
    cursor: pointer !important;
}


/* =====================================================
   SMALL CARDS COLUMN
===================================================== */
.small-cards {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    height: 100%;
}

/* =====================================================
   SMALL CARD
===================================================== */
.news-card.small {
    background: #ffffff;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 10px;
    padding: 6px 8px;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

    .news-card.small:hover {
        background-color: #fafafa;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    }

    /* Small image */
    .news-card.small img {
        width: 82px;
        height: 82px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
    }

    /* Small title */
    .news-card.small .news-title {
        font-size: 14px;
        font-weight: 600 !important;
        margin: 0 0 3px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 2px;
        letter-spacing: -0.1px;
        color: #0b1f33;
    }

        .news-card.small .news-title a {
            /*color: #102a43;*/
            color: inherit;
            text-decoration: none;
            transition: color 0.15s ease;
            font-weight: 600;
        }

            .news-card.small .news-title a:hover {
                text-decoration: underline;
                color: #0a58ca;
            }

    /* Small description */
    .news-card.small .news-text {
        font-size: 11px;
        color: #666;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Small author + date */
    .news-card.small .news-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.2;
        color: #777;
        line-height: 1.2;
        /*text-transform: uppercase;
        letter-spacing: 0.4px;*/
    }

        .news-card.small .news-meta .dot {
            /*font-weight: 400;
            color: #999;*/
            margin: 0;
            opacity: 0.6;
            margin: -9px;
        }


        .news-card.small .news-meta .smallauthor {
            font-weight: 600;
            color: #555;
            white-space: nowrap;
            font-size: 10px;
        }

        .news-card.small .news-meta .date {
            font-weight: 600;
            color: #777;
            white-space: nowrap;
            margin: 12px;
            font-size: 10px;
        }

/* =====================================================
   SLIDER NAV ARROWS
===================================================== */
.topnews-slider .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #d5d5d5;
    font-size: 20px;
    font-weight: bold;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    z-index: 50;
    opacity: 0.55;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

    .topnews-slider .nav:hover {
        opacity: 1;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .topnews-slider .nav.prev {
        left: 4px;
    }

    .topnews-slider .nav.next {
        right: 4px;
    }

/* =====================================================
   LOAD MORE
===================================================== */
.table-footer {
    text-align: center;
    cursor: pointer;
    padding: 12px 0;
}

    .table-footer p {
        font-size: 14px;
        color: #555;
        transition: color 0.15s ease;
    }

    .table-footer:hover p {
        color: #000;
        text-decoration: underline;
    }

/*Added by Nimesh G. 18 Jan 2026 to apply style hover effect on home page News*/
.text--news .title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}


    .text--news .title a:hover {
        color: #1f6fd2;
        text-decoration: underline;
    }

/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 901px) and (max-width: 1500px) {
    .topnews-slide {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .topnews-slide {
        grid-template-columns: 60% 40%;
        height: 380px;
    }

    .news-card.big .news-img {
        height: 210px;
    }

    .news-card.big .news-title {
        font-size: 16px;
    }

    .news-card.big .news-text {
        -webkit-line-clamp: 3;
    }

    .news-card.small img {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 900px) {
    .topnews-slide {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
    }

    .news-card.big {
        height: auto;
    }

        .news-card.big .news-img {
            height: 200px;
        }

        .news-card.big .news-text {
            -webkit-line-clamp: 4;
        }

    .news-meta {
        margin-top: 6px;
    }

    .small-cards {
        grid-template-rows: auto;
    }
}

@media (max-width: 600px) {
    .topnews-slider {
        padding: 10px;
    }

    .topnews-slide {
        padding: 10px;
    }

    .news-card.big .news-title {
        font-size: 15px;
        line-height: 1.3;
    }

    .news-card.big .news-text {
        font-size: 12px;
    }

    .news-card.small {
        grid-template-columns: 64px 1fr;
        padding: 6px;
    }

        .news-card.small img {
            width: 64px;
            height: 64px;
        }

        .news-card.small .news-title {
            font-size: 12.5px;
        }

        .news-card.small .news-text {
            font-size: 11px;
        }

    .topnews-slider .nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 30px;
    }

    #topnews-slider .topnews-slide.active {
        padding-left: 10px !important;
    }

        #topnews-slider .topnews-slide.active .news-card.big {
            margin-left: 0 !important;
            width: 100% !important
        }
}

@media (max-width: 1366px) {
    .topnews-slide {
        grid-template-columns: 58% 42%;
        height: 400px;
    }

    .news-card.big .news-img {
        height: 220px;
    }

    .news-card.big .news-title {
        font-size: 16px;
    }

    .news-card.small img {
        width: 72px;
        height: 72px;
    }
}

/* Tablets / small laptops */
@media (max-width: 1200px) {
    .topnews-slide {
        height: 400px;
    }

    .news-card.big .news-img {
        height: 210px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .topnews-slide {
        grid-template-columns: 1fr;
        height: auto;
    }

    .news-card.big .news-img {
        height: 200px;
    }

    .small-cards {
        grid-template-rows: auto;
    }
}
