/*
Theme Name: AstraNews
Theme URI: https://navbharatlive.com/
Author: Ashok
Author URI: https://ashok.com/
Description: A lightweight and performance-optimized WordPress theme for news websites, inspired by navbharatlive.com and prabhatkhabar.com.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: news, magazine, blog, two-columns, right-sidebar, custom-header, custom-menu, custom-logo, editor-style, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
Text Domain: astranews

This theme is designed to be fast, responsive, and easy to use for any news-focused website.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Top Bar */
.top-bar {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

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

.weather-widget {
    display: flex;
    align-items: center;
    gap: 10px;
}

.temperature {
    font-weight: bold;
    color: #ff6b35;
}

.location {
    color: #ccc;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ff6b35;
}

.epaper-btn {
    background: #ff6b35;
    color: #fff;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.epaper-btn:hover {
    background: #e55a2b;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

.site-description {
    color: #666;
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input[type="search"] {
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 250px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.city-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    min-width: 200px;
}

/* Navigation */
.main-navigation {
    background: #1a1a1a;
    padding: 0;
}

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

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: background 0.3s;
}

.primary-menu a:hover {
    background: #ff6b35;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

/* Secondary Navigation */
.secondary-navigation {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.secondary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.secondary-menu a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: 14px;
    transition: color 0.3s;
}

.secondary-menu a:hover {
    color: #ff6b35;
}

/* Breaking News Bar */
.breaking-news-bar {
    background: #ff6b35;
    color: #fff;
    padding: 10px 0;
    font-weight: bold;
}

.breaking-news-bar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
}

.breaking-icon {
    font-size: 16px;
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
}

.breaking-news-slider {
    display: flex;
    animation: scroll-news 20s linear infinite;
}

.breaking-news-item {
    white-space: nowrap;
    margin-right: 30px;
}

.breaking-news-item a {
    color: #fff;
    text-decoration: none;
}

.breaking-news-item a:hover {
    text-decoration: underline;
}

@keyframes scroll-news {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Main Content */
.site-content {
    padding: 30px 0;
}

#primary {
    float: left;
    width: 70%;
    padding-right: 30px;
}

#secondary {
    float: right;
    width: 30%;
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-2px);
}

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

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.news-card-title a:hover {
    color: #ff6b35;
}

.news-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.news-category {
    background: #ff6b35;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

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

.category-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b35;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Sidebar */
.widget-area {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b35;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover {
    color: #ff6b35;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.site-info {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    margin-top: 30px;
}

.site-info a {
    color: #ff6b35;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box input[type="search"] {
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
    }
    
    #primary,
    #secondary {
        float: none;
        width: 100%;
        padding-right: 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .breaking-news-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .breaking-news-label {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .site-title a {
        font-size: 24px;
    }
    
    .news-card-content {
        padding: 15px;
    }
    
    .news-card-title {
        font-size: 16px;
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}
