/* ============================================
   NAGAUR.NEWS HOMEPAGE - ASTRA FREE VERSION
   ============================================ */

:root {
    --primary: #e74c3c;
    --dark: #2c3e50;
    --gray: #f8f9fa;
    --text: #1a1a1a;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Breaking Ticker */
.nagaur-breaking-ticker {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    color: var(--white);
    padding: 0.75rem 0;
    overflow: hidden;
}

.ticker-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--white);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 1rem;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: var(--white);
    text-decoration: none;
    padding: 0 2rem;
    font-weight: 500;
}

.ticker-item:hover {
    color: #ffeb3b;
}

.ticker-time {
    font-size: 0.75rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

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

.ticker-content:hover .ticker-items {
    animation-play-state: paused;
}

/* Hero Section */
.nagaur-hero-section {
    padding: 2rem 0;
    background: var(--gray);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-main-story {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hero-main-story:hover {
    transform: translateY(-4px);
}

.hero-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.hero-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--white);
}

.hero-category {
    display: inline-block;
    background: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Top News Grid */
.nagaur-top-news {
    padding: 2rem 0;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.top-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.top-news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

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

.top-news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.top-news-image-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.top-news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.top-news-content {
    padding: 1rem;
}

.top-news-cat {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.top-news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-news-time {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* Category Sections */
.nagaur-categories {
    padding: 2rem 0;
    background: var(--gray);
}

.nagaur-categories.alt-bg {
    background: var(--white);
}

.cat-section {
    margin-bottom: 2rem;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.cat-title::before {
    content: "▬ ";
    color: var(--primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-all:hover {
    color: var(--dark);
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.cat-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.cat-featured {
    grid-row: 1 / 3;
    box-shadow: var(--shadow);
}

.cat-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.cat-image-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-content {
    padding: 1rem;
}

.cat-headline {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-featured .cat-headline {
    font-size: 1.25rem;
}

.cat-excerpt {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Live Section */
.nagaur-live {
    background: var(--dark);
    color: var(--white);
    padding: 1.5rem 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.live-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.live-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(8px);
}

.live-time {
    font-weight: 700;
    color: #f39c12;
    min-width: 50px;
}

.live-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.live-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .top-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .cat-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-featured {
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-excerpt {
        display: none;
    }
    
    .top-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .ticker-item {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .live-item {
        flex-direction: column;
        align-items: flex-start;
    }
}