/* 
 * Blog Styles for Ovoschnaya-Kinza Repair Services
 * Additional styles specific to the blog section
 */

/* ============ BLOG LISTING PAGE ============ */
#blog-banner {
    background-color: #edf2f7;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

#blog-banner h1 {
    margin-bottom: var(--spacing-sm);
}

#blog-articles .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

#blog-articles .blog-card {
    margin-bottom: var(--spacing-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#blog-articles .blog-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#blog-articles .blog-content h2 {
    font-size: 2.2rem;
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

#blog-articles .blog-content h2 a {
    color: var(--dark-color);
    transition: color var(--transition-speed) ease;
}

#blog-articles .blog-content h2 a:hover {
    color: var(--primary-color);
}

#blog-articles .blog-content p {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

/* ============ BLOG SUBSCRIBE SECTION ============ */
#blog-subscribe {
    background-color: #edf2f7;
    padding: var(--spacing-xl) 0;
}

.subscribe-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-content h2 {
    margin-bottom: var(--spacing-sm);
}

.subscribe-content p {
    margin-bottom: var(--spacing-md);
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.subscribe-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: var(--spacing-sm);
}

.subscribe-form button {
    min-width: 200px;
}

/* ============ ARTICLE PAGE ============ */
.article-container {
    flex: 2;
    margin-right: var(--spacing-lg);
}

.article-sidebar {
    flex: 1;
    min-width: 280px;
}

#article .container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.article-header {
    margin-bottom: var(--spacing-md);
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-color);
    font-weight: 500;
}

.back-to-blog i {
    margin-right: var(--spacing-xs);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    color: var(--gray-color);
    margin-bottom: var(--spacing-md);
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: var(--spacing-xs);
}

.article-featured-image {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.article-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.article-content ul, .article-content ol {
    margin-bottom: var(--spacing-md);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: var(--spacing-md) 0;
}

.article-content blockquote {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
}

.article-cta {
    background-color: #edf2f7;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

.article-cta h3 {
    margin-bottom: var(--spacing-xs);
}

.article-cta p {
    margin-bottom: var(--spacing-md);
}

.article-share {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: var(--spacing-md);
}

.article-share span {
    margin-right: var(--spacing-md);
    font-weight: 500;
}

.article-share a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--dark-color);
    margin-right: var(--spacing-xs);
    transition: all var(--transition-speed) ease;
}

.article-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
}

.prev-article, .next-article {
    flex: 1;
}

.next-article {
    text-align: right;
}

.article-navigation a {
    display: block;
    padding: var(--spacing-sm);
    background-color: #f8fafc;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
}

.article-navigation a:hover {
    background-color: #edf2f7;
}

.article-navigation span {
    display: block;
    font-size: 1.4rem;
    color: var(--gray-color);
    margin-bottom: var(--spacing-xs);
}

.article-navigation h4 {
    font-size: 1.6rem;
    margin-bottom: 0;
}

/* ============ SIDEBAR WIDGETS ============ */
.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--light-gray);
}

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

.sidebar-widget ul li {
    margin-bottom: var(--spacing-xs);
}

.recent-posts li {
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--light-gray);
}

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

.recent-posts a {
    color: var(--dark-color);
    transition: color var(--transition-speed) ease;
    font-weight: 500;
}

.recent-posts a:hover, .recent-posts a.active {
    color: var(--primary-color);
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    color: var(--dark-color);
    transition: color var(--transition-speed) ease;
}

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

.categories a::after {
    content: '→';
    opacity: 0;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.categories a:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.contact-info ul {
    margin-bottom: var(--spacing-md);
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.contact-info li i {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-info .btn {
    width: 100%;
}

/* ============ MOBILE RESPONSIVENESS ============ */
@media screen and (max-width: 1024px) {
    .article-container {
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    #article .container {
        flex-direction: column;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .next-article, .prev-article {
        text-align: center;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form .form-group {
        width: 100%;
    }
    
    .subscribe-form button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .article-meta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .article-share {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .article-share span {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
}
