/*
Theme Name: Yojana Viral Pro
Theme URI: https://yojanaviral.com
Author: Suraj Goswami
Author URI: https://yojanaviral.com
Description: Advanced WordPress theme for Yojana Viral - Modern, attractive and fully responsive theme for Sarkari Yojana and News website. Features include custom homepage, category pages, single post layouts, ad management, and much more.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yojanaviral
Tags: blog, news, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, two-columns

Yojana Viral Pro WordPress Theme, Copyright 2026 Suraj Goswami
Yojana Viral Pro is distributed under the terms of the GNU GPL
*/

/* ==========================================
   YOJANA VIRAL PRO - WORDPRESS THEME CSS
   Modern, Attractive & Fully Responsive
   ========================================== */

/* ========== CSS Variables ========== */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F7931E;
    --success-color: #00B894;
    --danger-color: #D63031;
    --dark: #2D3436;
    --text-dark: #2C3E50;
    --text-light: #636E72;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #DFE6E9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Poppins', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* WordPress Core Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* ========== Top Bar ========== */
.top-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #003D6E 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

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

.breaking-news {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    overflow: hidden;
}

.breaking-label {
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    font-size: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.news-ticker {
    display: flex;
    gap: 20px;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ========== Header ========== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 30px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin: 0;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: var(--font-primary);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-size: 24px;
}

.site-description {
    font-family: var(--font-hindi);
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    display: block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    padding: 0;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 14px;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background: var(--bg-light);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
}

.search-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    border-radius: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== Search Overlay ========== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-content {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.search-form-wrapper {
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 50px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.search-form-wrapper .search-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 18px;
    font-family: var(--font-primary);
    background: transparent;
}

.search-form-wrapper .search-submit {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.search-form-wrapper .search-submit:hover {
    transform: scale(1.05);
}

/* ========== Hero Section ========== */
.hero-section {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-post {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.post-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-color), #FF4757);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

.post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content-wrapper {
    padding: 30px;
}

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

.post-category {
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--text-dark);
}

.post-date {
    color: var(--text-light);
}

.entry-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--font-hindi);
}

.entry-title a {
    color: var(--text-dark);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-hindi);
    line-height: 1.8;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-hindi);
}

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

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.sidebar-widget ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    position: relative;
    padding-left: 20px;
}

.sidebar-widget li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
}

.sidebar-widget li:hover::before {
    left: 5px;
}

.sidebar-widget a {
    color: var(--text-dark);
    font-size: 14px;
    font-family: var(--font-hindi);
}

.sidebar-widget a:hover {
    color: var(--primary-color);
}

/* ========== Posts Grid ========== */
.posts-section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    font-size: 36px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    gap: 10px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    font-size: 12px;
}

.badge-new {
    background: linear-gradient(135deg, #00B894, #00D2A0);
}

.badge-trending {
    background: linear-gradient(135deg, var(--primary-color), #FF4757);
}

.badge-hot {
    background: linear-gradient(135deg, #FD79A8, #E84393);
}

.post-card .post-thumbnail {
    aspect-ratio: 16/10;
}

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

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

.post-card .post-content-wrapper {
    padding: 25px;
}

.post-card .entry-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .entry-excerpt {
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-post {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.share-post:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Category Colors */
.cat-sarkari-yojana { background: #E3F2FD; color: #1976D2; }
.cat-sarkari-result { background: #FCE4EC; color: #C2185B; }
.cat-pm-yojana { background: #FFF3E0; color: #EF6C00; }
.cat-latest-news { background: #FFEBEE; color: #C62828; }
.cat-bollywood { background: #F3E5F5; color: #7B1FA2; }
.cat-technology { background: #E0F2F1; color: #00796B; }
.cat-politics { background: #FBE9E7; color: #D84315; }

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 0 15px;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-2px);
}

/* ========== Single Post ========== */
.single-post-wrapper {
    padding: 40px 0;
}

.single-post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.single-post-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.single-post-content .entry-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.single-post-content .entry-content {
    font-family: var(--font-hindi);
    line-height: 1.8;
    font-size: 16px;
}

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

.single-post-content .entry-content h2,
.single-post-content .entry-content h3,
.single-post-content .entry-content h4 {
    margin: 30px 0 15px;
    color: var(--text-dark);
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-post-content .entry-content li {
    margin-bottom: 10px;
}

.single-post-content .entry-content img {
    border-radius: 15px;
    margin: 25px 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    padding: 8px 20px;
    background: var(--bg-light);
    border-radius: 25px;
    font-size: 13px;
    color: var(--text-dark);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

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

.comment {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-content p {
    margin: 0;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.comment-form {
    margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-size: 15px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* ========== Sidebar ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget a {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* ========== Footer ========== */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-family: var(--font-hindi);
}

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

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ========== Scroll to Top ========== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    cursor: pointer;
}

.scroll-top.active {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ========== Animations ========== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .hero-grid,
    .single-post-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 10px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .site-description {
        font-size: 10px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .single-post-content {
        padding: 25px;
    }
    
    .single-post-content .entry-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section,
    .posts-section {
        padding: 20px 0;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
