/* నమస్తే నారద - Colorful News Website */
:root {
    --primary: #c41e3a;
    --primary-dark: #9a1830;
    --primary-light: #ffe5ea;
    --secondary: #1a365d;
    --secondary-light: #2c5282;
    --accent: #ed8936;
    --accent2: #38b2ac;
    --gold: #d69e2e;
    --bg: #f0f4f8;
    --card: #ffffff;
    --text: #1a202c;
    --text-muted: #4a5568;
    --border: #e2e8f0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --gradient: linear-gradient(135deg, #c41e3a 0%, #9a1830 50%, #1a365d 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Telugu', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

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

/* TOP BAR */
.top-bar {
    background: var(--gradient);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #ffd6de; margin-left: 14px; }
.top-bar a:hover { color: #fff; }

/* HEADER */
.main-header {
    background: #fff;
    padding: 12px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 200;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area a { display: flex; align-items: center; gap: 12px; }
.logo {
    height: 115px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
}
.logo-text h1 { font-size: 26px; color: var(--primary); font-weight: 700; line-height: 1.2; }
.logo-text p { font-size: 12px; color: var(--text-muted); }

.mobile-menu-btn {
    display: none;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* NAV */
.main-nav {
    background: var(--secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.main-nav a {
    display: block;
    color: #e2e8f0;
    padding: 13px 15px;
    font-weight: 500;
    font-size: 14.5px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
    color: #fff;
}

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > a::after { content: ' ▾'; font-size: 11px; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 10px 10px;
    z-index: 300;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    color: var(--text) !important;
    padding: 10px 16px !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 13.5px !important;
    border-left: 3px solid transparent;
}
.dropdown-menu a:hover {
    background: var(--primary-light) !important;
    border-left-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* BREAKING */
.breaking-news {
    background: linear-gradient(90deg, #fff5f5, #fff);
    border-bottom: 3px solid var(--primary);
    padding: 10px 0;
    overflow: hidden;
}
.breaking-news .container { display: flex; align-items: center; gap: 12px; }
.breaking-label {
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
.ticker { overflow: hidden; flex: 1; }
.ticker-content {
    display: flex;
    gap: 50px;
    animation: ticker 10s linear infinite;
    white-space: nowrap;
}
.ticker-content a { color: var(--text); font-weight: 600; font-size: 14px; }
.ticker-content a:hover { color: var(--primary); }
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* MAIN */
.main-content { padding: 20px 0 40px; min-height: 55vh; }

/* HERO */
.hero-section {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}
.featured-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--card);
    min-height: 380px;
}
.featured-main img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.featured-main .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 10%, rgba(0,0,0,0.9));
    padding: 28px 22px 22px;
    color: #fff;
}
.featured-main .cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.featured-main h2 {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.35;
}
.featured-main h2 a { color: #fff; }
.featured-main h2 a:hover { color: var(--accent); }

.featured-side { display: flex; flex-direction: column; gap: 12px; }
.side-card {
    display: flex;
    gap: 12px;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
}
.side-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.side-card img {
    width: 130px;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.side-card .info {
    padding: 12px 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.side-card .cat {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}
.side-card h3 { font-size: 14px; line-height: 1.4; font-weight: 600; }
.side-card h3 a { color: var(--text); }
.side-card h3 a:hover { color: var(--primary); }

/* LATEST STRIP */
.latest-strip {
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 28px;
    border-left: 5px solid var(--accent);
}
.latest-strip h3 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.latest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.latest-list a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
}
.latest-list a:hover { color: var(--primary); }
.latest-list a::before {
    content: '▸ ';
    color: var(--accent);
    font-weight: 700;
}

/* SECTION */
.section { margin-bottom: 36px; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}
.section-header h2 {
    font-size: 22px;
    color: var(--secondary);
    font-weight: 700;
}
.section-header a {
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
}
.section-header a:hover {
    background: var(--primary);
    color: #fff;
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.news-card .img-wrap {
    position: relative;
    overflow: hidden;
    height: 190px;
    background: #edf2f7;
}
.news-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}
.news-card:hover .img-wrap img { transform: scale(1.05); }
.news-card .body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-card .cat-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
}
.news-card h3 {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 8px;
    font-weight: 600;
    flex: 1;
}
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-card .meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-top: auto;
}
.news-card .excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    background: linear-gradient(135deg, #c41e3a22, #1a365d22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

/* PAGE TITLE */
.page-title {
    font-size: 26px;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}
.page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--accent);
}

/* SINGLE POST */
.post-article {
    background: var(--card);
    border-radius: 14px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 820px;
    margin: 0 auto;
}
.post-article .cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.post-article h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 14px;
    color: var(--text);
}
.post-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.post-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}
.post-content {
    font-size: 17px;
    line-height: 1.9;
}
.post-content p { margin-bottom: 16px; }
.post-content h1, .post-content h2, .post-content h3 {
    margin: 20px 0 12px;
    color: var(--secondary);
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}
.post-content ul, .post-content ol { margin: 12px 0 12px 24px; }

/* Share */
.share-box {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.share-box h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--secondary);
}
.share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; color: #fff !important; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-telegram { background: #0088cc; }
.share-copy { background: var(--secondary); }

/* CONTACT */
.contact-box {
    background: var(--card);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
}
.contact-box h1 { font-size: 26px; color: var(--secondary); margin-bottom: 16px; }
.contact-box .about-text { margin-bottom: 24px; line-height: 1.85; }
.contact-details {
    background: linear-gradient(135deg, #fff5f5, #f0f4f8);
    border-radius: 10px;
    padding: 22px;
    border-left: 5px solid var(--primary);
}
.contact-details p { margin-bottom: 10px; }

/* FOOTER */
.main-footer {
    background: linear-gradient(180deg, #1a365d 0%, #0f2744 100%);
    color: #e2e8f0;
    padding: 48px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: 36px;
    margin-bottom: 32px;
}
.footer-about .footer-logo {
    height: auto;
    margin-bottom: 12px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}
.footer-about .footer-logo img {
    height: 42px;
    width: auto;
    display: block;
}
.footer-about h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.footer-about p { font-size: 14px; margin-bottom: 8px; opacity: 0.9; line-height: 1.7; }
.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer-links ul { list-style: none; }
.footer-links a {
    color: #a0aec0;
    font-size: 14px;
    display: block;
    padding: 5px 0;
    transition: all 0.2s;
}
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; opacity: 0.9; }
.footer-contact a { color: #90cdf4; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 9px 15px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: #fff;
}

/* DISTRICTS */
.district-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}
.district-chip {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}
.district-chip:hover,
.district-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-section { grid-template-columns: 1fr; }
    .featured-main, .featured-main img { height: 300px; min-height: 300px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .district-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .mobile-menu-btn { display: block; }
    .main-nav { display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a {
        padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.25);
        max-height: none;
        border-radius: 0;
    }
    .dropdown-menu a { color: #e2e8f0 !important; padding-left: 28px !important; }
    .dropdown-menu a:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }

    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .district-grid { grid-template-columns: repeat(2, 1fr); }

    .featured-main, .featured-main img { height: 220px; min-height: 220px; }
    .featured-main h2 { font-size: 18px; }
    .featured-main .overlay { padding: 16px; }

    .side-card img { width: 100px; min-height: 80px; }
    .logo { height: 70px; }

    .post-article { padding: 18px 16px; border-radius: 10px; }
    .post-article h1 { font-size: 22px; }
    .post-content { font-size: 16px; }

    .share-btns { gap: 8px; }
    .share-btn { padding: 8px 12px; font-size: 12px; }

    .top-bar .top-right { display: none; }
    .section-header h2 { font-size: 18px; }
    .latest-list { flex-direction: column; gap: 6px; }
}

@media (max-width: 400px) {
    .district-grid { grid-template-columns: 1fr 1fr; }
    .side-card { flex-direction: column; }
    .side-card img { width: 100%; height: 140px; }
}
