/* ==========================================================================
   LATEST NEWS STYLES (news.css)
   ========================================================================== */

/* Breaking News Ticker */
.news-ticker {
    background: var(--primary-blue);
    color: white;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-gold);
}

.ticker-label {
    background: var(--danger-red);
    padding: 4px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-right: 20px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 3px 0 10px rgba(0,0,0,0.2);
}

.ticker-content {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 30s linear infinite;
    font-size: 0.95rem;
}

.ticker-content:hover {
    animation-play-state: paused; /* माऊस नेल्यावर टिकर थांबेल */
    cursor: pointer;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.85)), url('../img/slider2.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

/* News Container Layout */
.news-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr; /* ८००px बातम्यांसाठी, ४००px साइडबारसाठी */
    gap: 40px;
}

/* Main News Section */
.news-main h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.news-main h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 35px;
    display: flex;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.news-img {
    width: 35%;
    min-width: 250px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-info {
    padding: 30px;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-info h2 {
    margin: 0 0 15px;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--primary-blue);
}

.news-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* जास्तीत जास्त ३ ओळी दिसतील */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.read-more:hover {
    color: var(--accent-gold);
    gap: 12px;
}

/* Sidebar Styling */
.sidebar-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary-blue);
}

.sidebar-box h4 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--primary-blue);
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.gr-item {
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    gap: 12px;
}

.gr-item:last-child { border-bottom: none; }

.gr-item i { 
    color: var(--danger-red); 
    font-size: 1.1rem;
    margin-top: 3px;
}

.gr-item a { 
    text-decoration: none; 
    color: #333; 
    font-size: 0.9rem; 
    line-height: 1.4;
    transition: 0.2s; 
}

.gr-item a:hover { color: var(--accent-gold); }

/* New Badge Styling & Animation */
.new-badge {
    background: #e74c3c; /* Bright Red */
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    
    /* Animation Link */
    animation: blinkBadge 1.5s infinite;
}

/* हे की-फ्रेम्स नसतील तर ॲनिमेशन दिसणार नाही */
@keyframes blinkBadge {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Categories List */
.cat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cat-item a { text-decoration: none; color: #555; font-size: 0.9rem; }
.cat-count { background: #eee; padding: 2px 8px; border-radius: 20px; font-size: 0.8rem; color: #777; }

/* Responsive */
@media (max-width: 950px) {
    .news-container { grid-template-columns: 1fr; }
    .news-card { flex-direction: column; }
    .news-img { width: 100%; height: 220px; }
    .news-info { width: 100%; padding: 25px; }
    .news-ticker { font-size: 0.85rem; }
}