/* =========================================
   СТИЛІ ДЛЯ СТОРІНКИ БЛОГУ (blog.css)
   ========================================= */

.content-wrapper-blog {
    position: relative;
    z-index: 10;
    /* padding-top: 70px; */ /* Відступ під фіксовану шапку */
}

/* --- HERO СЕКЦІЯ БЛОГУ --- */
.blog-hero {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(to right, rgba(15, 19, 25, 1) 0%, rgba(15, 19, 25, 0.5) 50%, rgba(15, 19, 25, 0.3) 100%), url(../image/blog-hero-bg.png) no-repeat center right;
    background-size: cover;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.blog-hero-content {
    padding: 80px 0 0;
}

.blog-hero-content h1 {
    font-size: 5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blog-hero-content p {
    font-size: 1.1rem;
    color: var(--text-white);
    opacity: 0.9;
    max-width: 400px;
}

/* 1. Вимикаємо градієнт для всього h1 і робимо базовий колір тексту білим */
h1.multi-line-gradient {
    background: none;
    -webkit-text-fill-color: var(--text-white);
    color: var(--text-white);
    line-height: 1.1;
    padding: 0px 20px;
    font-weight: 500;
}

/* 2. Застосовуємо градієнт ТІЛЬКИ до елементів span без класу .text-white */
h1.multi-line-gradient span:not(.text-white) {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 5px;
}

/* 3. Стилі для білого рядка (за бажанням можна налаштувати розмір чи шрифт) */
h1.multi-line-gradient .text-white {
    background: none;
    -webkit-text-fill-color: var(--text-white);
    color: var(--text-white);
    display: inline-block;
    /* font-size: 0.8em; — якщо захочеш зробити цей рядок трохи меншим за заголовок */
    font-size: 2rem;
}

/* --- ФІЛЬТРИ --- */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px;
    border-radius: 8px;
    background: rgba(15, 19, 25, 0.6);
    backdrop-filter: blur(10px);
    justify-content: space-around;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-btn img {
    height: 25px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--text-white);
}

.filter-btn:hover img {
    opacity: 1;
}

.filter-btn.active {
    border-color: rgba(212, 175, 55, 0.5);
    color: var(--text-gold);
    background: rgba(212, 175, 55, 0.05);
}

.filter-btn.active img {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.search-btn {
    margin-left: auto; /* Відштовхуємо пошук вправо */
    padding: 10px 15px;
}

/* --- СІТКА КАРТОК --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    transition: opacity 0.4s ease; /* Для плавної фільтрації */
}

.blog-card {
    background: rgba(24, 29, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 220px;
}

.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);
}

.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 19, 25, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text-gold);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 2;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-date {
    font-size: 0.75rem;
    color: var(--feature-text);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.blog-card-content h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h3 {
    color: var(--text-gold);
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--feature-text);
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-gold);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.post-meta img {
    height: 16px;
    opacity: 0.8;
}

/* --- ПАГІНАЦІЯ --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.page-btn:hover {
    border-color: var(--text-gold);
    color: var(--text-white);
}

.page-btn.active {
    background: var(--gold-gradient);
    color: var(--bg-dark);
    border-color: transparent;
    font-weight: bold;
}

.page-dots {
    color: #a0a0a0;
    letter-spacing: 2px;
}

/* Адаптив для блогу */
@media (max-width: 900px) {
    .blog-hero h1 {
        font-size: 3.5rem;
    }
    .blog-hero {
        padding: 70px 0;
        background: linear-gradient(to right, rgba(15, 19, 25, 1) 0%, rgba(15, 19, 25, 0.8) 50%, rgba(15, 19, 25, 0.3) 100%), url(../image/blog-hero-bg.png) no-repeat center right;
    }
    .blog-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 20px;
        white-space: nowrap;
    }
    .search-btn {
        margin-left: 0;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}