/* Стили для блога */

.blog-hero {
    background-color: var(--primary-color);
    color: #000000;
    padding: 20px 0; 
    text-align: center;
}

.blog-hero__title {
    font-size: 42px;
    margin-bottom: 20px;
}

.blog-hero__subtitle {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

.blog-card__image {
    height: 200px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card__content {
    padding: 25px;
}

.blog-card__title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.blog-card__excerpt {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.blog-card__link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.blog-card__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.blog-card__link:hover::after {
    width: 100%;
}

/* Стили для отдельной статьи */
.article {
    padding: 60px 0;
}

.article__container {
    max-width: 800px;
    margin: 0 auto;
}

.article__header {
    margin-bottom: 40px;
}

.article__title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article__meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.article__date {
    margin-right: 20px;
}

.article__author {
    font-weight: 600;
}

.article__image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article__content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.article__content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article__content p {
    margin-bottom: 20px;
}

.article__content ul, 
.article__content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article__content li {
    margin-bottom: 10px;
}

.article__content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #f8f9fa;
    font-style: italic;
}

.article__tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article__tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f5ff;
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.article__tag:hover {
    background-color: #e0ebff;
}

.article__navigation {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
}

.article__nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article__nav-link:hover {
    color: var(--secondary-color);
}

.article__nav-link--prev::before {
    content: '←';
    margin-right: 8px;
}

.article__nav-link--next::after {
    content: '→';
    margin-left: 8px;
}

/* Адаптивность для блога */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-hero__title {
        font-size: 36px;
    }
    
    .blog-content {
        padding: 60px 0;
    }
    
    .article__title {
        font-size: 32px;
    }
    
    .article__image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero__title {
        font-size: 30px;
    }
    
    .blog-hero__subtitle {
        font-size: 16px;
    }
    
    .article__title {
        font-size: 28px;
    }
    
    .article__content {
        font-size: 16px;
    }
    
    .article__navigation {
        flex-direction: column;
        gap: 20px;
    }
}

/* Исправление стилей навигации для соответствия главной странице */
.main-nav__link {
    font-weight: 500 !important;
}

