/*
Theme Name: NewsPro
Theme URI: https://example.com/newspro
Author: Your Name
Author URI: https://example.com
Description: A modern, beautiful news WordPress theme with all essential features for news websites and blogs.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newspro
Tags: news, blog, responsive, modern, clean, magazine, two-columns, right-sidebar

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a87;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-top {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

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

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

.header-main {
    padding: 20px 0;
}

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

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.site-description {
    color: #666;
    font-size: 1rem;
    margin: 5px 0 0 0;
}

/* Navigation */
.main-navigation {
    background: #007cba;
    border-top: 3px solid #005a87;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #fff;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: background 0.3s ease;
}

.main-navigation a:hover {
    background: #005a87;
}

/* Breaking News Ticker */
.breaking-news {
    background: #ff4444;
    color: #fff;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.breaking-news .container {
    display: flex;
    align-items: center;
}

.breaking-news-label {
    background: rgba(0,0,0,0.3);
    padding: 8px 20px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 20px;
    border-radius: 4px;
}

.breaking-news-label i {
    margin-right: 8px;
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.breaking-news-item {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

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

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

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

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #007cba, #005a87);
    border-radius: 2px;
}

/* Featured Categories */
.featured-categories {
    padding: 60px 0;
    background: #fff;
}

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

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.category-card:hover .category-image img {
    transform: scale(1.05);
}

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

.category-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.category-overlay span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.category-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-post {
    position: relative;
}

.hero-post .post-thumbnail {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content-inner {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
}

.hero-post .post-category {
    background: #ff4444;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-post h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-post h2 a {
    color: #fff;
    text-decoration: none;
}

.hero-post h2 a:hover {
    color: #f0f0f0;
}

.hero-post .post-meta {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 14px;
}

.hero-post .post-meta span {
    margin-right: 15px;
}

.hero-post .post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-read-more {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.hero-read-more:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    gap: 12px;
}

/* Enhanced Trending Posts */
.trending-posts {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.trending-posts h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.trending-posts ul {
    list-style: none;
}

.trending-posts li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.trending-number {
    background: #ff4444;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.trending-posts a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.trending-posts a:hover {
    color: #f0f0f0;
}

/* News Tabs */
.latest-news {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-tabs {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab-btn.active,
.tab-btn:hover {
    background: #007cba;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Video News Section */
.video-news {
    padding: 60px 0;
    background: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .video-play-btn {
    background: #ff4444;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.video-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.video-content h3 a:hover {
    color: #007cba;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

/* Enhanced Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #007cba;
}

.post-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.read-more {
    color: #007cba;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.read-more:hover {
    gap: 12px;
    color: #005a87;
}

.read-more span {
    transition: transform 0.3s ease;
}

.read-more:hover span {
    transform: translateX(3px);
}

/* Main Content */
.site-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007cba;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-title a {
    color: #1a1a1a;
}

.post-title a:hover {
    color: #007cba;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #007cba;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

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

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007cba;
    color: #1a1a1a;
}

.widget ul {
    list-style: none;
}

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

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

/* Categories Widget */
.category-widget {
    display: grid;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.category-item:hover {
    background: #e9ecef;
}

.category-count {
    background: #007cba;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

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

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    padding: 5px 0;
}

.footer-widget a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
}

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

/* Single Post */
.single-post {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-post .post-thumbnail {
    height: 400px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content h2,
.post-content h3 {
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 20px;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-cloud a {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    margin: 3px;
    border-radius: 15px;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.tag-cloud a:hover {
    background: #007cba;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .trending-posts {
        order: -1;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-post .post-thumbnail {
        height: 300px;
    }
    
    .hero-post h2 {
        font-size: 2rem;
    }
    
    .hero-content-inner {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .site-main {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #007cba;
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tab-nav {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .breaking-news-label {
        padding: 6px 15px;
        font-size: 14px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-post .post-thumbnail {
        height: 250px;
    }
    
    .hero-post h2 {
        font-size: 1.6rem;
    }
    
    .hero-content-inner {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .widget-area {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .featured-categories,
    .latest-news,
    .video-news {
        padding: 40px 0;
    }
    
    .news-tabs {
        padding: 20px;
    }
    
    .tab-nav {
        margin-bottom: 20px;
    }
    
    .breaking-news {
        padding: 10px 0;
    }
    
    .breaking-news-label {
        padding: 5px 12px;
        font-size: 13px;
        margin-right: 10px;
    }
    
    .trending-posts {
        padding: 20px;
    }
    
    .category-overlay {
        padding: 15px;
    }
    
    .category-overlay h3 {
        font-size: 1.1rem;
    }
    
    .video-content {
        padding: 15px;
    }
    
    .video-content h3 {
        font-size: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #007cba;
    text-decoration: none;
    margin-right: 8px;
}

.breadcrumbs a:hover {
    color: #005a87;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Additional Styles for Enhanced Features */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #005a87);
    width: 0%;
    transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #007cba;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,124,186,0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #005a87;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,124,186,0.4);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.search-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: #333;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #007cba;
}

.search-submit {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #005a87;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.newsletter-widget h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.newsletter-form button {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-form button:hover {
    background: rgba(255,255,255,0.3);
}

.newsletter-message {
    font-size: 14px;
    margin-top: 10px;
}

.newsletter-message.success {
    color: #4CAF50;
}

.newsletter-message.error {
    color: #f44336;
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.weather-location {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.weather-condition {
    font-size: 16px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    font-size: 14px;
    opacity: 0.8;
}

/* Post Animation */
.post-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.post-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .site-header {
    background: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .header-top {
    background: #1a1a1a;
}

body.dark-mode .main-navigation {
    background: #2d2d2d;
}

body.dark-mode .post-card,
body.dark-mode .widget-area,
body.dark-mode .news-tabs,
body.dark-mode .category-card,
body.dark-mode .video-card {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .post-title a {
    color: #e0e0e0;
}

body.dark-mode .post-title a:hover {
    color: #007cba;
}

body.dark-mode .post-meta {
    color: #999;
}

body.dark-mode .post-excerpt {
    color: #ccc;
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .search-modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .search-field {
    background: #1a1a1a;
    border-color: #444;
    color: #e0e0e0;
}

/* Header States */
.site-header {
    transition: transform 0.3s ease;
}

.site-header.header-down {
    transform: translateY(-100%);
}

.site-header.header-up {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 5px;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #007cba;
}

/* Enhanced Tab Styles */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #007cba;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.tab-btn.active:before {
    width: 100%;
}

/* Enhanced Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn.linkedin {
    background: #0077b5;
    color: #fff;
}

.share-btn.email {
    background: #ea4335;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Enhanced Author Box */
.author-bio {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 30px 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #007cba;
}

.author-info h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.author-info p {
    color: #666;
    margin-bottom: 15px;
}

.author-info a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.author-info a:hover {
    color: #005a87;
}

/* Enhanced Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-previous,
.nav-next {
    text-align: center;
}

.nav-link {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.nav-link h3 {
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

/* Enhanced Related Posts */
.related-posts {
    margin: 50px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
}

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

.related-post {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-3px);
}

.related-post-thumbnail {
    height: 150px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #007cba;
}

.related-post-meta {
    font-size: 12px;
    color: #666;
}
