/* Blog Specific Styles */
.blog-header {
    background-color: var(--background-alt);
    padding: 8rem 0 3rem;
    text-align: center;
    margin-top: 0;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.blog-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed);
}

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

.blog-card-image {
    height: 200px;
    background-color: var(--background-alt);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

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

.blog-card-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card-content h3 {
    margin-bottom: 1rem;
}

.blog-card-content a {
    color: var(--text-color);
    transition: color var(--transition-speed);
}

.blog-card-content a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.blog-card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
}

/* Single Article Styles */
.article-main {
    padding-top: 120px; /* Добавляем отступ сверху, чтобы текст не перекрывал шапку */
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-meta svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

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

.article-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px var(--shadow-color);
}

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

.article-content {
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.article-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-share {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.article-share-title {
    flex: 100%;
    margin-bottom: 1rem;
}

.article-share-buttons {
    display: flex;
    gap: 1rem;
}

.article-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-alt);
    border-radius: 50%;
    transition: all var(--transition-speed);
}

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

.related-articles {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    margin-top: 3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.back-to-blog svg {
    margin-right: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .blog-header {
        padding: 6rem 0 2rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
}
