/* Blog System Styles - Integrated with The OM Partners Theme */

/* Blog Main Layout */
.blog-main {
    padding: 4rem 0;
    background: var(--bg-primary);
    min-height: 60vh;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Blog Grid */
.blog-content {
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.blog-image {
    height: 300px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 3rem;
    opacity: 0.6;
}

.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--primary-color);
    width: 14px;
}

.blog-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
    flex-grow: 1;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.blog-author i {
    color: var(--primary-color);
    width: 14px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.read-more i {
    font-size: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-numbers a,
.pagination-current,
.pagination-dots {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-numbers a {
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
}

.pagination-numbers a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-current {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.pagination-dots {
    border: none;
    color: var(--text-light);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Recent Posts Widget */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.recent-post h4 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.recent-post h4 a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-post-date i {
    color: var(--primary-color);
    width: 12px;
}

/* Categories Widget */
.categories-list {
    margin: 0;
}

.category-item {
    margin-bottom: 0.75rem;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-item a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.category-item i {
    color: var(--primary-color);
    width: 16px;
}

.category-item a:hover i {
    color: white;
}

.post-count {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.newsletter-widget .widget-title {
    color: white;
}

.newsletter-widget .widget-title::after {
    background: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    placeholder-color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
}

.cta-widget .widget-title {
    color: white;
}

.cta-widget .widget-title::after {
    background: var(--primary-color);
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-content .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.6;
}

.no-posts h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Single Post Styles */
.single-post {
    padding: 3rem 0 4rem;
    background: var(--bg-primary);
}

.post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.post-content {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Modern Post Header */
.post-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    z-index: 1;
}

.post-header-content {
    position: relative;
    z-index: 2;
}

/* Back to Blog Link */
.back-to-blog {
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    position: relative;
}

.back-link:hover {
    color: white;
    gap: 0.75rem;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.back-link i {
    font-size: 0.8rem;
}

/* Post Header Meta */
.post-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.post-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 1.25rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.post-date,
.post-reading-time,
.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.post-date i,
.post-reading-time i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.post-author {
    font-weight: 400;
}

/* Post Header Title */
.post-header-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove old post header styles */
.post-meta-header,
.post-categories,
.category-badge,
.post-meta {
    /* These are now replaced by the new styles above */
}

/* Responsive Design for Post Header */
@media (max-width: 768px) {
    .post-header {
        padding: 2rem 0;
    }
    
    .post-header-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-header-meta > span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .post-header-title {
        font-size: 2.25rem;
    }
    
    .back-to-blog {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .post-header-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .post-header-meta {
        font-size: 0.875rem;
    }
    
    .post-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Body */
.post-body {
    padding: 3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.post-body h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.post-body h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.post-body h3 {
    font-size: 1.5rem;
}

.post-body h4 {
    font-size: 1.25rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
    position: relative;
}

.post-body blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.post-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Share Buttons */
.post-share {
    padding: 2rem 3rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.post-share h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: #64748b;
}

/* Author Bio */
.author-bio {
    padding: 2rem 3rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 2rem;
}

/* Table of Contents */
.toc-widget {
    max-height: 400px;
    overflow-y: auto;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-item a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toc-item a:hover {
    background: var(--primary-color);
    color: white;
}

.toc-h3 {
    padding-left: 1rem;
}

.toc-h4 {
    padding-left: 2rem;
    font-size: 0.875rem;
}

/* Related Posts in Sidebar */
.related-posts-sidebar {
    margin: 0;
}

.related-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-placeholder {
    color: #94a3b8;
    font-size: 1.5rem;
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.related-post-date i {
    color: var(--primary-color);
    width: 10px;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.related-card-image {
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-placeholder {
    color: #94a3b8;
    font-size: 3rem;
    opacity: 0.6;
}

.related-card-content {
    padding: 1.5rem;
}

.related-card-date {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.related-card-date i {
    color: var(--primary-color);
    width: 12px;
}

.related-card-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.related-card-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.related-card-content h3 a:hover {
    color: var(--primary-color);
}

.related-card-content .read-more {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 500;
    max-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Category Page Styles */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Archive Styles */
.archive-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Search Form */
.blog-search {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-form button {
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .blog-sidebar,
    .post-sidebar {
        position: static;
        order: 2;
    }
    
    .blog-content,
    .post-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .blog-main,
    .single-post {
        padding: 2rem 0;
    }
    
    .blog-layout,
    .post-layout {
        gap: 2rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-title {
        font-size: 1.5rem;
    }
    
    .blog-meta,
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: 2;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-body {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .post-body h1 {
        font-size: 2rem;
    }
    
    .post-body h2 {
        font-size: 1.75rem;
    }
    
    .post-body h3 {
        font-size: 1.375rem;
    }
    
    .post-share,
    .author-bio {
        padding: 1.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .newsletter-form,
    .search-form {
        flex-direction: column;
    }
    
    .archive-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .blog-image {
        height: 200px;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .blog-card-content,
    .post-body,
    .post-share,
    .author-bio,
    .sidebar-widget {
        padding: 1rem;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
    
    .post-body h1 {
        font-size: 1.75rem;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .related-card-image {
        height: 150px;
    }
    
    .related-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-post-image {
        width: 100%;
        height: 120px;
        align-self: center;
    }
}

/* Print Styles */
@media print {
    .blog-sidebar,
    .post-sidebar,
    .post-share,
    .related-posts-section,
    .pagination,
    .navigation,
    .footer {
        display: none !important;
    }
    
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr !important;
    }
    
    .post-content,
    .blog-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .post-body {
        padding: 1rem !important;
    }
    
    a {
        color: inherit !important;
        text-decoration: underline !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .blog-card,
    .sidebar-widget,
    .post-content {
        border: 2px solid #000;
    }
    
    .blog-card:hover {
        border-color: var(--primary-color);
        border-width: 3px;
    }
    
    .read-more,
    .pagination-btn,
    .share-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .blog-card:hover,
    .related-post-card:hover {
        transform: none !important;
    }
}