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

/* Общие стили для страницы статей */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.blog-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка блога */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточки статей */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.card-excerpt {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.card-date {
    color: #999;
    font-size: 0.9rem;
}

.card-read-more {
    color: #2748e6;
    font-weight: 500;
    font-size: 0.95rem;
}

/* CTA блок */
.blog-cta {
    background: #f5f7fd;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.blog-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.blog-cta p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Стили для отдельной статьи */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    color: #333;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #999;
    font-size: 0.95rem;
}

.article-date {
    margin-right: 20px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 15px;
}

.article-highlight {
    background: #f5f7fd;
    padding: 25px;
    border-left: 4px solid #2748e6;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}

.article-highlight p {
    margin-bottom: 0;
    font-weight: 500;
}

.article-content a {
    color: #2748e6;
    text-decoration: none;
    border-bottom: 1px solid #2748e6;
    transition: all 0.2s ease;
}

.article-content a:hover {
    opacity: 0.8;
}

/* Шапка сайта - добавление навигации */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
}

.header-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 5px 0;
    position: relative;
}

.header-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2748e6;
    transition: all 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: #2748e6;
}

.header-nav a:hover:after,
.header-nav a.active:after {
    width: 100%;
}

/* Стили для навигации между статьями */
.article-navigation {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 50px;
    background-color: #f5f7fd;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #e0e6f7;
    color: #2748e6;
    transform: translateY(-2px);
}

.nav-prev, .nav-next {
    min-width: 200px;
}

.nav-back {
    margin: 0 auto;
}

.nav-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.nav-info {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.nav-info a {
    color: #2748e6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-info a:hover {
    border-bottom-color: #2748e6;
}

/* Адаптив */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article {
        padding: 25px;
    }
    
    .article h1 {
        font-size: 2rem;
    }
    
    .blog-cta {
        padding: 30px 20px;
    }
    
    .header-nav {
        margin-right: 10px;
        gap: 10px;
    }
    
    header {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .header-button {
        margin-top: 10px;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
} 