/*
Theme Name: RutoDelivers
Theme URI: https://rutodelivers.com
Description: WordPress theme for tracking Kenya's development progress
Version: 1.0
Author: editor@rutodelivers.com
Text Domain: rutodelivers
*/

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

:root {
    --primary: #006600;
    --primary-dark: #004d00;
    --secondary: #ffcc00;
    --dark: #333;
    --light: #fff;
    --gray: #666;
    --light-gray: #f5f5f5;
    --border: #e0e0e0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e6b800;
}

/* Header Styles */
.site-header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.site-branding img {
    height: 50px;
}

.site-branding h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.site-branding p {
    font-size: 0.9rem;
    color: var(--gray);
}

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

.desktop-menu {
    display: flex;
    gap: 2rem;
}

.desktop-menu a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.desktop-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--primary);
    color: var(--light);
    padding: 10px 0;
    margin-bottom: 20px;
}

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

.breaking-label {
    background: var(--secondary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 20px;
    white-space: nowrap;
}

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

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

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

/* Hero Section */
.hero {
    padding: 40px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--light);
    border-radius: 8px;
    margin-bottom: 40px;
}

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

.featured-article {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.featured-content {
    padding: 30px;
}

.featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.featured-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.featured-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.top-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: transform 0.3s;
    backdrop-filter: blur(5px);
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    background: var(--secondary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.5rem;
}

.story-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.story-meta {
    font-size: 0.8rem;
    color: #ccc;
}

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

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--dark);
}

/* Projects Showcase */
.projects-showcase {
    margin-bottom: 40px;
}

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

.project-card {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 3rem;
}

.project-content {
    padding: 20px;
}

.project-badge {
    display: inline-block;
    padding: 5px 10px;
    background: var(--primary);
    color: var(--light);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.project-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-completed {
    background: #28a745;
}

.status-ongoing {
    background: #ffc107;
}

.status-planned {
    background: #17a2b8;
}

.project-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
    text-align: right;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-content {
    padding: 20px;
}

.post-badge {
    display: inline-block;
    padding: 5px 10px;
    background: var(--primary);
    color: var(--light);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.post-meta {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.post-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-post {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.trending-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-number {
    background: var(--primary);
    color: var(--light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.trending-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.trending-content .post-date {
    font-size: 0.8rem;
    color: var(--gray);
}

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

.newsletter-form input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.category-item:last-child {
    border-bottom: none;
}

.count {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Development Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Social Sharing */
.social-sharing {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--light);
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.social-btn:hover {
    opacity: 0.9;
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--light);
    padding: 50px 0 20px;
}

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

.footer-widget h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-menu a:hover {
    color: var(--light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}
.post-card .post-image {
    width: 100%;
    height: 200px; /* must match post-thumb height */
    overflow: hidden;
    border-radius: 12px; /* optional, matches your card style */
}

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


/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 1001;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-list a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* WordPress Specific */
.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .projects-grid, .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .breaking-label {
        margin-right: 10px;
        font-size: 0.8rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .projects-grid, .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .social-sharing {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .featured-content h2 {
        font-size: 1.3rem;
    }
    
    .story-card {
        flex-direction: column;
    }
    
    .story-image {
        width: 100%;
        height: 120px;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
}

/* Single Post Styles */
.single-post .site-main {
    padding: 40px 0;
}

.article-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

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

.featured-image:hover img {
    transform: scale(1.02);
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.article-meta span::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
}

.post-date::before {
    content: '\f133';
}

.reading-time::before {
    content: '\f017';
}

.post-category::before {
    content: '\f02b';
}

.post-category a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-category a:hover {
    color: var(--primary-dark);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark);
}

.article-content > * {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5em 0 1em 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 2em 0 1em 0;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5em 0 1em 0;
}

.article-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 40px 0;
    background: linear-gradient(135deg, var(--light-gray), #fafafa);
    border-radius: 0 12px 12px 0;
    position: relative;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--dark);
}

.article-content blockquote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.article-content ul, 
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    position: relative;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.article-content ol {
    counter-reset: list-counter;
}

.article-content ol li {
    counter-increment: list-counter;
}

.article-content ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: -25px;
    font-weight: 700;
    color: var(--primary);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th {
    background: var(--primary);
    color: var(--light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

.article-content table tr:nth-child(even) {
    background: var(--light-gray);
}

.article-content table tr:hover {
    background: rgba(0, 102, 0, 0.05);
}

.article-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    border-left: 4px solid var(--secondary);
}

.article-content code {
    background: rgba(0, 102, 0, 0.1);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-content .wp-block-image {
    text-align: center;
    margin: 40px 0;
}

.article-content .wp-caption-text {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.article-footer .social-sharing {
    justify-content: center;
    margin-bottom: 40px;
}

.article-footer .social-btn {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.article-footer .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.tags-links a {
    display: inline-block;
    background: var(--light-gray);
    color: var(--dark);
    padding: 8px 16px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.tags-links a:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 0, 0.3);
}

/* Related Posts Section */
.related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid var(--border);
}

.related-posts .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.related-posts .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.related-posts .posts-grid {
    margin-bottom: 0;
}

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

.comments-title {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 40px;
    text-align: center;
}

.comment-list {
    margin-bottom: 40px;
}

.comment {
    background: var(--light);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.comment-metadata {
    font-size: 0.9rem;
    color: var(--gray);
}

.comment-content {
    line-height: 1.7;
    color: var(--dark);
}

.comment-reply-link {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.comment-reply-link:hover {
    color: var(--primary-dark);
}

/* Comment Form */
.comment-respond {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 0, 0.1);
}

.comment-form .submit {
    background: var(--primary);
    color: var(--light);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 0, 0.3);
}

/* Page Links */
.page-links {
    margin: 30px 0;
    text-align: center;
}

.page-links a,
.page-links span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--dark);
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

.page-links span {
    background: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

/* Responsive Design for Single Posts */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .featured-image img {
        height: 300px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content blockquote {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .article-footer .social-sharing {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .comment-respond {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .related-posts .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        padding: 20px;
    }
    
    .comment-meta {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation for content reveal */
.article-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.article-content > *:nth-child(1) { animation-delay: 0.1s; }
.article-content > *:nth-child(2) { animation-delay: 0.2s; }
.article-content > *:nth-child(3) { animation-delay: 0.3s; }
.article-content > *:nth-child(4) { animation-delay: 0.4s; }
.article-content > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .article-header,
    .article-content,
    .article-footer {
        max-width: none;
    }
    
    .social-sharing,
    .related-posts,
    .comments-area {
        display: none;
    }
    
    .article-title {
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: #000 !important;
    }
}