/* =====================================================
   Yamuna Sandesh - Full Responsive Site Stylesheet
   Preserving all brand aesthetics, colors, animations
===================================================== */

:root {
    --primary-red: #d60000;
    --primary-dark: #8b0000;
    --accent-yellow: #ffc107;
    --accent-gold: #ffd54f;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

/* ==========================================
   GLOBAL RESET & TYPOGRAPHY
========================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 50px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.shadow-soft {
    box-shadow: var(--card-shadow);
}

/* ==========================================
   BREAKING NEWS TICKERS (TOP & BOTTOM)
========================================== */
.topbar, .site-footer {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #ffffff;
}

.breaking-box {
    background: #dc3545;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
}

.breaking-strip, .breaking-strip-bottom {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    overflow: hidden;
}

.breaking-label {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.breaking-ticker {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.breaking-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: topTicker 35s linear infinite;
}

.breaking-track:hover {
    animation-play-state: paused;
}

.breaking-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 25px;
    color: #ffffff;
    font-size: clamp(12px, 1.8vw, 14px);
    font-weight: 500;
    white-space: nowrap;
}

.breaking-item::after {
    content: "●";
    color: var(--accent-gold);
    font-size: 10px;
    margin-left: 25px;
}

@keyframes topTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes tvLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   LEADING NEWS CARD
========================================== */
.leading-news {
    border-radius: 16px;
    overflow: hidden;
}

.leading-news img {
    height: clamp(180px, 22vw, 280px);
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.leading-news h4 {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.leading-news p {
    font-size: 0.92rem;
    color: #495057;
    line-height: 1.6;
}

/* ==========================================
   MEDIUM NEWS CARD (GRID)
========================================== */
.news-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card-image {
    height: clamp(170px, 20vw, 240px);
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.03);
}

.news-card h4 {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    font-weight: 700;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
}

.read-more-btn {
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================
   EDITORIAL CARD
========================================== */
.editorial-card {
    border-radius: 16px;
    overflow: hidden;
}

.editorial-card img {
    max-height: 85px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.editorial-card h5 {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.editorial-card p {
    font-size: 0.88rem;
    color: #555;
}

/* ==========================================
   SIDEBAR & ROTATING ADS
========================================== */
.ad-card {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    transition: 0.35s ease;
    box-shadow: var(--card-shadow);
}

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

.ad-image {
    width: 100%;
    height: clamp(160px, 20vw, 220px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #ffffff;
    display: block;
    transition: all 0.8s ease;
}

.ad-title {
    padding: 12px 14px;
    background: #ffffff;
    text-align: center;
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 700;
    color: #222;
}

.adFade {
    animation: adFade 0.8s ease;
}

@keyframes adFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   VERTICAL CARDS (TRENDING & MARKETS)
========================================== */
.verticalCard {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
}

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

.cardHeader {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redGrad {
    background: linear-gradient(135deg, #d60000 0%, #8b0000 100%);
}

.orangeGrad {
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
}

.darkGrad {
    background: linear-gradient(135deg, #2c3437 0%, #1a1d20 100%);
}

.newsRow {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.newsRow:hover {
    background: #fff8f8;
    padding-left: 22px;
    color: var(--primary-red);
}

/* ==========================================
   CLASSIFIED ADS GRID
========================================== */
.classified-card {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    height: 100%;
    transition: 0.3s ease;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

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

.classified-img {
    width: 100%;
    height: clamp(180px, 22vw, 260px);
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 8px;
}

.classified-title {
    padding: 12px;
    text-align: center;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 600;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.fadeCard {
    animation: fadeCard 0.8s ease;
}

@keyframes fadeCard {
    from {
        opacity: 0.3;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   POPUP OVERLAY / NEWS READER
========================================== */
.news-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(10px, 3vw, 30px);
    background: rgba(0, 0, 0, 0.78);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.news-overlay.show {
    opacity: 1;
    visibility: visible;
}

.news-panel {
    width: min(850px, 96%);
    max-height: 90vh;
    margin: auto;
    background: #ffffff;
    border-radius: 16px;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.news-overlay.show .news-panel {
    transform: translateY(0);
}

.news-header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.news-header h4 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
}

.news-close {
    border: none;
    background: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}

.news-body {
    padding: clamp(16px, 3vw, 25px);
}

.news-thumb {
    float: left;
    width: clamp(130px, 25vw, 240px);
    height: auto;
    margin: 0 18px 12px 0;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 4px;
    object-fit: cover;
}

.news-text {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.8;
    color: #333;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
========================================== */
@media (max-width: 991.98px) {
    .news-thumb {
        width: 160px;
    }
}

@media (max-width: 767.98px) {
    .news-thumb {
        float: none;
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 16px auto;
    }

    .news-text {
        text-align: left;
    }
}