/* --- СТИЛИ ДЛЯ БЛОГА (blog-style.css) --- */

/* --- Стили для blog-index.html (Список статей) --- */

.blog-hero {
    background-color: var(--light-color);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.blog-hero h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.blog-hero p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
}

.blog-filters {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.blog-filters .container {
    display: flex;
    flex-wrap: wrap; /* Перенос на моб. */
    gap: 10px;
}
.filter-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.featured-post-section {
    padding: 40px 0;
}
.featured-post {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.featured-image {
    flex: 1 1 50%; /* 50% ширины, может сжиматься/растягиваться */
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-content {
    flex: 1 1 50%;
    padding: 40px;
}
.featured-content h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 10px;
}

.article-grid-section {
    padding: 40px 0 60px 0;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.article-card {
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.article-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-card-content {
    padding: 20px;
}
.article-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.article-card-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}
.article-category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* --- Стили для blog-post.html (Одна статья) --- */

.post-layout {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.post-content {
    flex: 1;
}
.post-header {
    margin-bottom: 20px;
}
.post-header h1 {
    font-size: 2.5rem;
    margin-top: 10px;
    color: var(--dark-color);
}
.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-top: 15px;
}
.post-featured-image {
    width: 100%;
    margin-bottom: 30px;
}
.post-featured-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Стилизация самого текста статьи */
.article-body {
    font-size: 1.1rem; /* Крупный, читабельный шрифт */
    line-height: 1.7; /* Воздух между строк */
    color: #333;
}
.article-body p {
    margin-bottom: 20px;
}
.article-body h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: left;
    color: var(--primary-color);
}
.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}
.article-body li {
    margin-bottom: 10px;
}
.article-body blockquote {
    margin: 30px 0;
    padding: 20px;
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}
.article-body blockquote strong {
    font-style: normal;
    color: var(--dark-color);
}

/* Сайдбар */
.post-sidebar {
    /* Сайдбар будет прилипать при скролле */
    width: 100%;
}
.post-sidebar .widget {
    position: sticky;
    top: 100px;
}
.post-sidebar .booking-box {
    position: sticky;
    top: 100px;
}
.author-bio-sidebar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.author-bio-sidebar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.author-bio-sidebar p {
    font-size: 0.9rem;
    margin-bottom: 0;
}



/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    /* Планшеты */
    .featured-post {
        flex-direction: column; /* Ставим в колонку */
    }
    .featured-content {
        padding: 30px;
    }
    .post-layout {
        grid-template-columns: 1fr; /* 1 колонка */
    }
}

@media (max-width: 768px) {
    /* Мобильные */
    .blog-filters .container {
        justify-content: center;
    }
    .featured-content {
        padding: 20px;
    }
    .featured-content h2 {
        font-size: 1.5rem;
    }
    .post-header h1 {
        font-size: 1.8rem;
    }
    .article-body {
        font-size: 1rem;
        line-height: 1.6;
    }
}