/*
Theme Name: TheAcademicEssays Theme
Theme URI: https://theacademicessays.com
Description: A specialized, SEO-optimized WordPress theme designed specifically for TheAcademicEssays.com. Features comprehensive homework help, assignment assistance, and academic writing services with built-in SEO tools, XML sitemap generation, automatic search engine ping notifications, and optimized performance for academic service websites.
Author: MiniMax Agent
Author URI: https://minimax.ai/
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theacademicessaystheme
Tags: seo, responsive, education, academic, homework-help, assignment-help, essay-writing, research-papers, tutoring, custom-academic-essays
*/

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #3498db;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.cta-button.primary {
    background: #e74c3c;
    color: white;
}

.cta-button.primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #667eea;
}

.cta-button.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-item {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-item.featured {
    border-color: #3498db;
    transform: scale(1.05);
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.pricing-item.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pricing-item.featured h3 {
    color: white;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.pricing-item.featured .price {
    color: white;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.pricing-item.featured .price span {
    color: rgba(255,255,255,0.8);
}

.pricing-item ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-item ul li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
}

.pricing-cta {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
    width: 100%;
}

.pricing-cta:hover {
    background: #2980b9;
}

.pricing-item.featured .pricing-cta {
    background: white;
    color: #3498db;
}

.pricing-item.featured .pricing-cta:hover {
    background: #f8f9fa;
}

/* Blog Preview Section */
.blog-preview-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-preview-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.blog-preview-thumbnail {
    position: relative;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.blog-category span {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-preview-content {
    padding: 1.5rem;
}

.blog-preview-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-preview-title {
    margin-bottom: 1rem;
}

.blog-preview-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
}

.blog-preview-title a:hover {
    color: #3498db;
}

.blog-preview-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.blog-author {
    font-size: 0.9rem;
    color: #666;
}

.read-more-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.read-more-link:hover {
    color: #2980b9;
}

.arrow {
    transition: transform 0.3s ease;
}

.read-more-link:hover .arrow {
    transform: translateX(5px);
}

.blog-preview-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-all-posts-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-all-posts-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.no-posts-preview {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.testimonial-author span {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.testimonial-rating {
    color: #f39c12;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Final CTA Section */
.final-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.final-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.final-cta-buttons {
    margin-bottom: 2rem;
}

.final-cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.9rem;
}

.final-cta-features span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Statistics Section */
.stats-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Blog/Post Styles */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #3498db;
}

.post-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* Footer Styles */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        margin: 0;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .how-it-works {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-item.featured {
        transform: none;
    }
    
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta-content h2 {
        font-size: 2rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .final-cta-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-page-header .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
}

/* SEO Optimization Styles */
.seo-breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.seo-breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.seo-breadcrumbs li {
    margin-right: 0.5rem;
}

.seo-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #666;
}

.seo-breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.seo-breadcrumbs a:hover {
    text-decoration: underline;
}

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

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* SEO Dashboard Styles */
.seo-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.char-counter {
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}

/* Search Form Styles */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 20px 0;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-submit {
    background: #3498db;
    border: none;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #2980b9;
}

.search-icon {
    font-size: 16px;
}

/* Comments Styles */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

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

.comment-list li {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.comment-author img {
    float: left;
    margin-right: 15px;
    border-radius: 50%;
}

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

.comment-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    margin-bottom: 15px;
}

.comment-form .submit {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form .submit:hover {
    background: #2980b9;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3498db;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

/* Reading Time */
.reading-time {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Social Sharing */
.social-sharing {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.social-sharing h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.social-sharing a {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #3b5998;
    color: white;
}

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

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

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

/* Author Info */
.author-info {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.author-avatar {
    margin-right: 20px;
}

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

.author-description h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.author-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.author-link a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #3498db;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .main-navigation.mobile-open {
        display: flex;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Error 404 Styles */
.error-404 {
    text-align: center;
    padding: 50px 0;
}

.error-404-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.error-404-content .widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.error-404-content .widget h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.error-404-content .widget ul {
    list-style: none;
    padding: 0;
}

.error-404-content .widget ul li {
    margin-bottom: 10px;
}

.error-404-content .widget ul li a {
    color: #3498db;
    text-decoration: none;
}

.error-404-content .widget ul li a:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results .page-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Enhanced Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    color: white;
    background: #000;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Blog Page Styles */
.blog-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.blog-page-header .page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-page-header .page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

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

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

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

.blog-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.blog-post-category span {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.blog-post-title {
    margin-bottom: 1rem;
}

.blog-post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.4;
}

.blog-post-title a:hover {
    color: #3498db;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.blog-post-author {
    font-size: 0.9rem;
    color: #666;
}

.blog-read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.blog-read-more:hover {
    color: #2980b9;
}

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

.blog-read-more:hover .arrow {
    transform: translateX(5px);
}

.blog-pagination {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.no-blog-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-posts-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.back-home-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* High contrast support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .cta-button {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .cta-button,
    .social-sharing,
    .back-to-top,
    .comments-area {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .post-card,
    .single-post,
    .single-page {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}