/*
Theme Name: Lovely 1 Theme
Theme URI: https://premprasadpaudel.com.np
Author: Prem Prasad Paudel
Author URI: https://premprasadpaudel.com.np
Description: A fully customizable WordPress theme with multiple widget areas, top menu, flash news, hero slider, and category widgets.
Version: 1.0.0
License: GPL v2 or later
Text Domain: lovely-1-theme
Tags: blog, news, custom-menu, custom-logo, featured-images, footer-widgets, two-columns, right-sidebar
*/

/* ===== रिसेट ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== हेडर ===== */
.site-header {
    background: #e8f0fe; /* हल्का नीलो */
    border-bottom: 2px solid #d0e0f0;
    padding: 0;
}

/* Top Bar - पहिलो मेनु */
.top-bar {
    background: #d4e4f7; /* अलि गाढा हल्का नीलो */
    padding: 5px 0;
    border-bottom: 1px solid #c0d4eb;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.top-menu li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
}

.top-menu li a:hover {
    color: #1a73e8;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-right .widget {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

/* ===== Logo र HTML क्षेत्र ===== */
.header-middle {
    padding: 15px 0;
    background: #e8f0fe;
}

.header-middle .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.site-title-text h1 a {
    color: #1a3a5c;
    text-decoration: none;
}

.site-title-text .site-description {
    font-size: 14px;
    color: #4a6a8a;
    margin: 0;
}

.header-html {
    background: rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #d0e0f0;
}

/* ===== दोस्रो मेनु (Main Navigation) ===== */
.main-nav {
    background: #dce8f5;
    padding: 0;
    border-top: 1px solid #c8d8e8;
    border-bottom: 2px solid #c0d4eb;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    background: #4a90d9;
    color: #fff;
}

.main-nav-right .widget {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

/* ===== Flash News ===== */
.flash-news {
    background: #eef4fb;
    padding: 8px 0;
    border-bottom: 1px solid #d8e4f0;
}

.flash-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flash-label {
    background: #dc3545;
    color: #fff;
    padding: 3px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.flash-content {
    flex: 1;
    overflow: hidden;
}

.flash-content .widget {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.flash-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flash-content ul li {
    display: inline-block;
    margin-right: 30px;
    font-size: 14px;
}

.flash-content ul li a {
    color: #2c3e50;
    text-decoration: none;
}

.flash-content ul li a:hover {
    color: #1a73e8;
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 30px 0;
    background: #fff;
}

.hero-section .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-slider {
    flex: 2;
    min-width: 300px;
}

.hero-slider .widget {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.hero-slider .widget .slider-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-slider .widget .slider-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-slider .widget .slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.hero-slider .widget .slider-content h3 {
    font-size: 24px;
    margin: 0 0 5px;
}

.hero-slider .widget .slider-content h3 a {
    color: #fff;
    text-decoration: none;
}

.hero-slider .widget .slider-content .meta {
    font-size: 13px;
    opacity: 0.8;
}

.hero-sidebar {
    flex: 1;
    min-width: 250px;
}

.hero-sidebar .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.hero-sidebar .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    border-bottom: 3px solid #4a90d9;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.hero-sidebar .widget ul {
    list-style: none;
}

.hero-sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.hero-sidebar .widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-sidebar .widget ul li a:hover {
    color: #1a73e8;
}

.hero-sidebar .widget ul li .post-date {
    font-size: 12px;
    color: #888;
    display: block;
}

/* ===== Category Widgets ===== */
.category-widgets {
    padding: 30px 0;
    background: #f8f9fa;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-grid .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-grid .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    border-bottom: 3px solid #4a90d9;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-grid .widget-title a {
    font-size: 13px;
    color: #4a90d9;
    text-decoration: none;
}

.category-grid .widget ul {
    list-style: none;
}

.category-grid .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.category-grid .widget ul li .thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.category-grid .widget ul li .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-grid .widget ul li .post-info {
    flex: 1;
}

.category-grid .widget ul li .post-info a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.category-grid .widget ul li .post-info a:hover {
    color: #1a73e8;
}

.category-grid .widget ul li .post-info .date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 3px;
}

/* ===== नेपाली मिति ===== */
.nepali-date {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 3px;
}

/* ===== फुटर ===== */
.site-footer {
    background: #dce8f5; /* हल्का नीलो */
    color: #2c3e50;
    padding: 40px 0 0;
    border-top: 2px solid #c8d8e8;
    margin-top: 40px;
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #c8d8e8;
}

.footer-top .widget {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.footer-top .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    border-bottom: 2px solid #4a90d9;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-top .widget ul {
    list-style: none;
}

.footer-top .widget ul li {
    padding: 5px 0;
}

.footer-top .widget ul li a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-top .widget ul li a:hover {
    color: #1a73e8;
}

.footer-middle {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 30px 0;
}

.footer-middle .widget {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.footer-middle .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    border-bottom: 2px solid #4a90d9;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-middle .widget ul {
    list-style: none;
}

.footer-middle .widget ul li {
    padding: 5px 0;
}

.footer-middle .widget ul li a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-middle .widget ul li a:hover {
    color: #1a73e8;
}

.footer-bottom {
    background: #c8d8e8;
    padding: 15px 0;
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
}

.footer-bottom a {
    color: #1a3a5c;
    text-decoration: none;
}

/* ===== साइडबार ===== */
.widget-area {
    padding: 30px 0;
}

.widget-area .widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.widget-area .widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a3a5c;
    border-bottom: 3px solid #4a90d9;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget-area .widget ul {
    list-style: none;
}

.widget-area .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget-area .widget ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.widget-area .widget ul li a:hover {
    color: #1a73e8;
}

/* ===== कस्टमाइजर रङ ===== */
.customizer-primary-color {
    color: #4a90d9;
}

.customizer-primary-bg {
    background: #4a90d9;
}

/* ===== रिस्पोन्सिभ ===== */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-middle .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .main-nav .container {
        flex-direction: column;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation ul li a {
        text-align: center;
        border-bottom: 1px solid #c8d8e8;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-slider .widget .slider-item img {
        height: 250px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-middle {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* ===== Flash News Scrolling ===== */
.flash-news-scroll {
    overflow: hidden;
    position: relative;
}

.flash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    animation: flashScroll 20s linear infinite;
    white-space: nowrap;
}

.flash-list li {
    display: inline-block;
    padding: 0 30px 0 0;
    font-size: 14px;
}

.flash-list li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.flash-list li a:hover {
    color: #1a73e8;
}

.flash-list li .flash-date {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

@keyframes flashScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Flash News को लागि Duplicate content (smooth scrolling) */
.flash-list-duplicate {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Hover मा scroll रोक्नुहोस् */
.flash-news-scroll:hover .flash-list {
    animation-play-state: paused;
}