/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ===== HEADER STYLES ===== */
header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2563eb;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.logo-link:hover {
    color: inherit;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: #2563eb;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ===== HERO SECTIONS ===== */
.hero, .blog-post-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 180px 0 80px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before, .blog-post-hero::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 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero h1, .blog-post-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    position: relative;
}

.blog-post-hero .breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
}

.blog-post-hero .breadcrumbs a {
    color: #e5e7eb;
    text-decoration: none;
}

.blog-post-hero .breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-post-hero .meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.blog-post-hero .meta span {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.blog-post-hero .article-stats {
    display: flex;
    gap: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== BLOG CONTENT STYLES ===== */
.blog-post-content {
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.article-main {
    max-width: 100%;
}

.blog-post-image {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-intro {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.table-of-contents {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.table-of-contents h3 {
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: #2563eb;
}

.quote {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: #0ea5e9;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
}

.skills-summary {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    gap: 1.5rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2563eb;
}

.author-details h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.author-details p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    background: #bae6fd;
    transform: translateY(-2px);
}

.social-share {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn.vk { background: #4c75a3; }
.share-btn.telegram { background: #0088cc; }
.share-btn.twitter { background: #1da1f2; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.course-recommendation, .popular-article {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.course-recommendation h4, .popular-article h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.popular-article h4 a {
    color: inherit;
    text-decoration: none;
}

.popular-article h4 a:hover {
    color: #2563eb;
}

.views {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ===== POST GRID STYLES ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-content h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.rating {
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #92400e;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

/* ===== BUTTON STYLES ===== */
.btn, .btn-read {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.btn:hover, .btn-read:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-read {
    background: #1e3a8a;
    width: auto;
    margin-top: auto;
}

.btn-read:hover {
    background: #1e40af;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #f8fafc;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: #60a5fa;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h1, .blog-post-hero h1 {
        font-size: 2rem;
    }
    
    .hero, .blog-post-hero {
        padding: 140px 0 60px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .article-tags {
        justify-content: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .blog-post-hero .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero h1, .blog-post-hero h1 {
        font-size: 1.75rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card, .sidebar-widget, .skill-item {
    animation: fadeIn 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
    color: #1e3a8a;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 2px;
}

.reading-time {
    font-style: italic;
}

.related-posts {
    background: #f8fafc;
    padding: 4rem 0;
}
/* ===== TOOL-SPECIFIC STYLES ===== */
.tool-features {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #0ea5e9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-item h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.feature-item p {
    color: #1e3a8a;
    font-weight: 500;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.tools-comparison {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid #e2e8f0;
}

.comparison-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    background: #1e3a8a;
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s;
}

.table-row:hover {
    background: #f8fafc;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.selection-guide {
    background: #f0fdf4;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #bbf7d0;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item h4 {
    color: #15803d;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    min-width: 180px;
}

.guide-item p {
    color: #4b5563;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE TABLES ===== */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .table-cell {
        padding: 0.25rem 0;
    }
    
    .table-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1e3a8a;
        min-width: 120px;
        display: inline-block;
    }
    
    .guide-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .guide-item h4 {
        min-width: auto;
    }
}

/* ===== ENHANCED LISTS FOR TOOLS ===== */
.article-main ul {
    position: relative;
}

.article-main ul li {
    position: relative;
    padding-left: 1.5rem;
}

.article-main ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* ===== PRICE HIGHLIGHTS ===== */
.tool-features .feature-item:first-child p {
    color: #059669;
    font-weight: 600;
}

.tool-features .feature-item:nth-child(3) p {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== ZEROCODING SPECIFIC STYLES ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #f1f5f9;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-item p {
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.platform-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #2563eb;
    transition: all 0.3s;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.platform-card h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.platform-card p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.platform-rating {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
}

.use-case h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.use-case p {
    color: #4b5563;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.limitation-item {
    background: #fef2f2;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}

.limitation-item h4 {
    color: #dc2626;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.limitation-item p {
    color: #7f1d1d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.steps-timeline {
    position: relative;
    margin: 3rem 0;
    padding-left: 2rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb, #60a5fa);
    border-radius: 1px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.step-content h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.platform-comparison {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid #e2e8f0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .benefits-grid,
    .platforms-grid,
    .use-cases,
    .limitations-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-timeline {
        padding-left: 1rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .step-content {
        width: 100%;
    }
}

/* ===== ENHANCED TABLE STYLES ===== */
.comparison-table .table-cell:nth-child(3) {
    font-size: 1.2rem;
}

.comparison-table .table-cell:nth-child(5) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== ECOLOGY SPECIFIC STYLES ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

.eco-tips {
    margin: 3rem 0;
}

.eco-tip {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s;
}

.eco-tip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tip-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content h3 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tip-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tip-impact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.impact-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.impact-desc {
    color: #047857;
    font-size: 0.9rem;
    font-weight: 500;
}

.it-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.solution-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #bae6fd;
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-card h4 {
    color: #0369a1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.solution-card p {
    color: #4b5563;
    margin-bottom: 0;
    line-height: 1.5;
}

.tip-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
}

.tip-box h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-box p {
    color: #92400e;
    margin-bottom: 0;
    line-height: 1.6;
}

.course-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    position: relative;
}

.course-card h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.course-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.course-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.course-rating {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eco-tip {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-number {
        align-self: center;
    }
    
    .tip-impact {
        justify-content: center;
    }
    
    .it-solutions,
    .course-recommendations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .eco-tip {
        padding: 1.5rem;
    }
}

/* ===== ENHANCED QUOTE STYLES FOR ECOLOGY ===== */
.quote {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid #10b981;
    padding: 2rem 2rem 2rem 3rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: #10b981;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
    font-family: serif;
}

/* ===== ECOLOGY SPECIFIC STYLES ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

.eco-tips {
    margin: 3rem 0;
}

.eco-tip {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s;
}

.eco-tip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tip-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content h3 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tip-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tip-impact {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.impact-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.impact-desc {
    color: #047857;
    font-size: 0.9rem;
    font-weight: 500;
}

.it-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.solution-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #bae6fd;
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-card h4 {
    color: #0369a1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.solution-card p {
    color: #4b5563;
    margin-bottom: 0;
    line-height: 1.5;
}

.tip-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
}

.tip-box h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-box p {
    color: #92400e;
    margin-bottom: 0;
    line-height: 1.6;
}

.course-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    position: relative;
}

.course-card h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.course-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.course-card li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.course-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.course-rating {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .eco-tip {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-number {
        align-self: center;
    }
    
    .tip-impact {
        justify-content: center;
    }
    
    .it-solutions,
    .course-recommendations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .eco-tip {
        padding: 1.5rem;
    }
}

/* ===== ENHANCED QUOTE STYLES FOR ECOLOGY ===== */
.quote {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-left: 4px solid #10b981;
    padding: 2rem 2rem 2rem 3rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: #10b981;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
    font-family: serif;
}

/* ===== SERIES REVIEW SPECIFIC STYLES ===== */
.series-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.highlight-card {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.highlight-rating {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.highlight-date {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.highlight-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
}

.comparison-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border: 1px solid #e2e8f0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.comparison-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.comparison-item h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.comparison-item ul {
    list-style: none;
    padding-left: 0;
}

.comparison-item li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.comparison-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.character-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s;
}

.character-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.character-avatar {
    font-size: 3rem;
    flex-shrink: 0;
}

.character-info {
    flex: 1;
}

.character-info h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.character-info p {
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.theme-item {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #0ea5e9;
}

.theme-item h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.theme-item p {
    color: #4b5563;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.watch-recommendation {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.watch-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.watch-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.watch-content strong {
    font-size: 1.1rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .series-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .comparison-grid,
    .characters-grid,
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .character-card {
        flex-direction: column;
        text-align: center;
    }
    
    .watch-recommendation {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .series-highlights {
        grid-template-columns: 1fr;
    }
    
    .comparison-section {
        padding: 1.5rem;
    }
}

/* ===== ENHANCED QUOTE STYLES FOR CULTURE ===== */
.quote {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #6366f1;
    padding: 2rem 2rem 2rem 3rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: #6366f1;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
    font-family: serif;
}

/* ===== DYNAMIC CONTENT STYLES ===== */
.dynamic-content {
    padding: 4rem 0;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    color: #1e3a8a;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.category-posts {
    margin-bottom: 2rem;
}

.more-articles {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn-more {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-more:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
    }
    
    .dynamic-content {
        padding: 2rem 0;
    }
    
    .category-section {
        margin-bottom: 3rem;
    }
}

/* ===== CATEGORIES PAGE STYLES ===== */
.categories-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 140px 0 80px;
    margin-top: 60px;
    text-align: center;
}

.categories-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.categories-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.categories-page {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.category-card-large {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.category-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.category-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-large:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.article-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
}

.category-content {
    padding: 2rem;
}

.category-title {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.category-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
}

.btn-explore {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
}

.btn-explore:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

/* ===== ACTIVE NAV LINK ===== */
nav ul li a.active {
    color: #2563eb;
    font-weight: 600;
}

nav ul li a.active::after {
    width: 100%;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .categories-hero {
        padding: 120px 0 60px;
    }
    
    .categories-hero h1 {
        font-size: 2rem;
    }
    
    .categories-hero p {
        font-size: 1.1rem;
    }
    
    .categories-page {
        padding: 2rem 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-content {
        padding: 1.5rem;
    }
    
    .category-stats {
        gap: 1rem;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .categories-hero h1 {
        font-size: 1.75rem;
    }
    
    .category-image-container {
        height: 160px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

/* ===== ARTICLES PAGE STYLES ===== */
.articles-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 140px 0 80px;
    margin-top: 60px;
    text-align: center;
}

.articles-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.articles-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.articles-stats {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.all-articles-page {
    padding: 3rem 0;
}

.articles-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover:not(.active) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pagination-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-ellipsis {
    padding: 0.75rem 0.5rem;
    color: #6b7280;
}

.pagination-info {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Сообщения */
.loading, .error, .no-articles {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

.error {
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

.no-articles {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .articles-hero {
        padding: 120px 0 60px;
    }
    
    .articles-hero h1 {
        font-size: 2rem;
    }
    
    .articles-hero p {
        font-size: 1.1rem;
    }
    
    .all-articles-page {
        padding: 2rem 0;
    }
    
    .articles-filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-group select {
        min-width: 100%;
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .articles-hero h1 {
        font-size: 1.75rem;
    }
    
    .articles-stats {
        font-size: 1rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        min-width: 36px;
    }
}

/* ===== ARTICLE SIDEBAR STYLES ===== */
.popular-articles-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article-sidebar {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.popular-article-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.popular-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-article-content {
    flex: 1;
    min-width: 0;
}

.popular-article-content h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

.popular-article-content h4 a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-article-content h4 a:hover {
    color: #2563eb;
}

.article-meta-sidebar {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.post-date-sidebar {
    font-size: 0.75rem;
}

.rating-sidebar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.loading-sidebar, .no-articles {
    text-align: center;
    padding: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* ===== RESPONSIVE SIDEBAR STYLES ===== */
@media (max-width: 1024px) {
    .popular-article-sidebar {
        padding: 0.75rem;
    }
    
    .popular-article-image {
        width: 70px;
        height: 50px;
    }
    
    .popular-article-content h4 {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .popular-articles-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .popular-article-sidebar {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-article-image {
        width: 100%;
        height: 120px;
    }
    
    .article-meta-sidebar {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .popular-articles-sidebar {
        grid-template-columns: 1fr;
    }
    
    .popular-article-image {
        height: 100px;
    }
}