/* Premium Home Styles */
:root {
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --primary-color: #ff6600;
    /* Newsroom Orange */
    --text-color: #222222;
    --meta-color: #666666;
    --border-radius: 4px;
    --noto-tamil: 'Noto Sans Tamil', sans-serif;
}

/* Bulletproof Mobile Overflow Fix */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

#mvp-site {
    overflow-x: hidden !important;
}

/* Global Homepage Width Override */
.home .mvp-main-boxed-wrap,
.home #mvp-site,
.home #mvp-main-wrap,
.home #mvp-head-wrap,
.home #mvp-nav-wrap {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    box-sizing: border-box !important;
}

.home .mvp-main-out {
    margin-left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
}

.home .mvp-main-in {
    margin-left: 0 !important;
    box-sizing: border-box !important;
}


.premium-home-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    /* Main content + Fixed sidebar width */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.premium-section-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 20px;
    margin-bottom: 20px;
}

.premium-featured-large {
    grid-column: span 2;
    grid-row: span 2;
}


.premium-section-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 24px;
    row-gap: 30px;
    margin-bottom: 40px;
    margin-top: 20px;
}


.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.premium-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.premium-card-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.premium-card:hover .premium-card-img-wrap img {
    transform: scale(1.05);
}

.premium-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.premium-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.premium-card-title {
    font-family: var(--noto-tamil);
    font-size: 15px;
    /* Slightly smaller for better grid fit */
    line-height: 1.3;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-featured-large .premium-card-title {
    font-size: 20px;
    -webkit-line-clamp: 4;
}

.premium-card-title-small {
    font-size: 14px !important;
}


.premium-card-excerpt {
    font-family: var(--noto-tamil);
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}




.premium-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.premium-cat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: var(--noto-tamil);
}

.premium-card-cat {
    color: var(--primary-color);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 10px;
}

.premium-card-time {
    color: var(--meta-color);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
}


.premium-share-icon {
    color: var(--meta-color);
    font-size: 12px;
    cursor: pointer;
}

.premium-trending-header {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 4px;
    font-family: var(--noto-tamil);
}

.premium-trending-line {
    flex-grow: 1;
    height: 2px;
    background: #eee;
}

/* Live Now Card */
.premium-live-card {
    background: #000;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.premium-live-btn {
    background: #cc0000;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
}

.premium-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Trending List Style */
.premium-trending-list-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.premium-trending-list-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.premium-trending-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-trending-list-title {
    font-family: var(--noto-tamil);
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.premium-trending-header-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.premium-newsroom-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 14px;
    display: inline-block;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.premium-header-line {
    height: 4px;
    background: var(--primary-color);
    width: 100%;
    margin-bottom: 20px;
}

.premium-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}


/* Grid Layouts */
.premium-col-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Featured Large Override */
.premium-featured-large .premium-card-title {
    font-size: 22px;
}

/* Sidebar Trending */
.premium-sidebar-trending {
    background: #fff;
}




/* Responsive */
@media screen and (max-width: 1024px) {
    .premium-home-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .premium-sidebar {
        margin-top: 30px;
    }

    .premium-section-top {
        grid-template-columns: 1fr 1fr;
    }

    .premium-section-4col {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .premium-home-grid {
        padding: 10px;
    }

    .premium-section-top {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    /* Transform NEWSROOM into 1 Big + List */
    .premium-section-top .premium-card {
        flex-direction: row !important;
        border: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        padding: 12px 0;
        gap: 15px;
        align-items: flex-start;
        background: transparent;
        box-shadow: none;
    }

    .premium-section-top .premium-featured-large {
        grid-column: span 1;
        margin-bottom: 25px;
    }

    .premium-section-top .premium-featured-large .premium-card {
        flex-direction: column !important;
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius);
        padding: 0;
        background: var(--card-bg);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    }

    .premium-section-top .premium-card .premium-card-img-wrap {
        width: 110px !important;
        height: 80px !important;
        flex-shrink: 0;
        border-radius: 4px;
        overflow: hidden;
    }

    .premium-section-top .premium-featured-large .premium-card .premium-card-img-wrap {
        width: 100% !important;
        height: auto !important;
        border-radius: 0;
    }

    .premium-section-top .premium-card-body {
        padding: 0 !important;
    }

    .premium-section-top .premium-card-title {
        font-size: 14px !important;
        line-height: 1.4;
        margin-bottom: 5px;
    }

    .premium-section-top .premium-featured-large .premium-card-title {
        font-size: 18px !important;
        padding: 12px 12px 5px;
    }

    .premium-section-top .premium-card-excerpt {
        display: none;
    }

    .premium-section-top .premium-featured-large .premium-card-excerpt {
        display: -webkit-box;
        padding: 0 12px;
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .premium-section-top .premium-featured-large .premium-card-footer {
        padding: 10px 12px 12px;
    }

    .premium-section-top .premium-card-footer {
        padding-top: 0;
    }

    .premium-section-4col {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .premium-full-width-section {
        padding: 0 10px;
        box-sizing: border-box;
    }
}