/* Main Stylesheet for Nepali News Portal */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@100;300;400;500;700;900&display=swap');

:root {
    --primary-color: #e31e24; /* Red theme like Kendrabindu */
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #ffffff;
    --header-bg: #ffffff;
    --border-color: #eee;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --font-main: 'Mukta', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: #f4f4f4;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Header Styles */
.top-header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-nepali {
    font-size: 14px;
    color: var(--light-text);
}

.social-icons a {
    margin-left: 15px;
    font-size: 18px;
    color: var(--light-text);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.main-header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
}

.logo img {
    max-height: 80px;
}

/* Navigation */
.navbar {
    background: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--primary-color);
    z-index: 1000;
    transition: 0.3s;
}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 17px;
    color: var(--secondary-color);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Breaking News Ticker */
.ticker-wrapper {
    background: #fff;
    margin: 15px 0;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    height: 40px;
    overflow: hidden;
}

.ticker-label {
    background: var(--primary-color);
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-content {
    flex-grow: 1;
    padding-left: 15px;
}

.ticker-content marquee a {
    margin-right: 30px;
    font-weight: 500;
}

/* Hero Section (Featured) */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.featured-main {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.featured-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.featured-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.latest-news-list {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

.latest-news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-news-item:last-child {
    border-bottom: none;
}

.latest-news-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.latest-news-item h3 {
    font-size: 15px;
    line-height: 1.3;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 15px;
}

.news-card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.meta {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar-box {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

/* Single News Page */
.news-detail {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.news-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.news-detail-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

.news-content {
    font-size: 18px;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* Search Box */
.search-box {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-box form {
    display: flex;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
}

.search-box button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--light-text);
}

/* Card Hover Animation */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.featured-main:hover img {
    transform: scale(1.05);
}

.featured-main img {
    transition: transform 0.5s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Modern Badges */
.badge {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .search-box {
        display: none; /* Hide on small screens or move to menu */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links li a {
        padding: 10px 15px;
        font-size: 15px;
    }
}
