/* Дополнительные стили для блога */
.blog-header {
    padding: 150px 0 80px;
    background: linear-gradient(256deg, var(--orange) 0%, var(--pink) 49.04%, var(--purple) 100%);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.blog-header::after {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.blog-header .title {
    position: relative;
    z-index: 1;
}

.blog-header .text {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 20px auto 0;
}

.blog-section {
    padding: 80px 0;
    background: #F8F8F8;
}

.blog-card {
    border-radius: 40px;
    background: rgba(242, 239, 252, 0.40);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(82, 50, 146, 0.2);
    border-color: var(--orange);
}

.blog-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(256deg, var(--orange) 0%, var(--pink) 49.04%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
    font-weight: 700;
}

.blog-card__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    background: linear-gradient(256deg, var(--orange) 0%, var(--pink) 49.04%, var(--purple) 100%);
    color: var(--white);
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.blog-card__title {
    color: var(--black);
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: var(--orange);
}

.blog-card__excerpt {
    color: var(--grey);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 102, 102, 0.2);
    margin-top: auto;
}

.blog-card__date {
    color: var(--grey);
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.blog-card__read-more {
    color: var(--orange);
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card__read-more:hover {
    color: var(--purple);
    text-decoration: underline;
}

.blog-filters {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.blog-filter-btn {
    padding: 10px 25px;
    border-radius: 100px;
    background: rgba(242, 239, 252, 0.40);
    border: 2px solid transparent;
    color: var(--black);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: linear-gradient(256deg, var(--orange) 0%, var(--pink) 49.04%, var(--purple) 100%);
    color: var(--white);
    border-color: var(--orange);
}

.blog-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-pagination .page-link {
    border-radius: 100px;
    padding: 10px 20px;
    border: 2px solid rgba(242, 239, 252, 0.40);
    color: var(--black);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 500;
    background: rgba(242, 239, 252, 0.40);
    transition: all 0.3s ease;
}

.blog-pagination .page-link:hover {
    background: linear-gradient(256deg, var(--orange) 0%, var(--pink) 49.04%, var(--purple) 100%);
    color: var(--white);
    border-color: var(--orange);
}

.blog-pagination .page-item.active .page-link {
    background: linear-gradient(256deg, var(--orange) 0%, var(--pink) 49.04%, var(--purple) 100%);
    color: var(--white);
    border-color: var(--orange);
}

@media screen and (max-width: 769px) {
    .blog-header {
        padding: 120px 0 50px;
    }

    .blog-section {
        padding: 50px 0;
    }

    .blog-card {
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .blog-card__content {
        padding: 20px;
    }

    .blog-card__title {
        font-size: 20px;
    }

    .blog-card__excerpt {
        font-size: 14px;
    }

    .blog-filters {
        margin-bottom: 30px;
    }

    .blog-filter-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}
