/* =============================================
   Block 4.1: Рекомендуем прочесть (blog carousel)
   ============================================= */

.blog-carousel-section {
    padding: 80px 0 60px;
    margin-top: 100px;
    overflow: hidden;
}

.blog-carousel-section .section-title {
    margin-bottom: 40px;
}

/* --- Swiper slider --- */
.blog-carousel {
    overflow: hidden;
    padding: 10px 0;
    margin: -10px 0;
}

.blog-carousel .swiper {
    overflow: visible;
}

.blog-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.blog-carousel .swiper-slide {
    height: auto;
}

/* --- Card --- */
.blog-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid #e8e8ec;
    background: #fff;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
    height: 100%;
}

.blog-card:hover {
    border-color: #d0d0d8;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.blog-card-inner {
    display: flex;
    flex-flow: column;
    padding: 28px 26px 24px;
    min-height: 300px;
    height: 100%;
    box-sizing: border-box;
}

/* icon */
.blog-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 145, 248, 0.07);
    border-radius: 50%;
    margin-bottom: 22px;
    flex-shrink: 0;
}

.blog-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #1c91f8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* title */
.blog-card-title {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #1c1c1c;
    text-transform: none;
    text-align: left;
    letter-spacing: -0.01em;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: #1c91f8;
}

/* description */
.blog-card-desc {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #71717a;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* read more link */
.blog-card-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1c91f8;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.2s;
}

.blog-card-link:hover {
    gap: 10px;
    color: #0d7de8;
}

.blog-card-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.blog-card-link:hover svg {
    transform: translateX(3px);
}

/* --- Navigation arrows --- */
.blog-carousel-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 30px 0 0;
}

.blog-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e4;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    outline: none;
}

.blog-carousel-btn svg {
    width: 15px;
    height: 15px;
    fill: #555;
    transition: fill 0.25s ease;
}

.blog-carousel-btn:hover {
    background: #1c91f8;
    border-color: #1c91f8;
}

.blog-carousel-btn:hover svg {
    fill: #fff;
}

.blog-carousel-btn:active {
    transform: scale(0.93);
}

.blog-carousel-btn.swiper-button-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 991px) {
    .blog-carousel-section {
        padding: 60px 0 40px;
    }
    .blog-carousel-section .section-title {
        margin-bottom: 35px;
    }
}

@media (max-width: 767px) {
    .blog-carousel-section {
        padding: 40px 14px 30px;
    }
    .blog-carousel-section .section-title {
        margin-bottom: 25px;
    }
    .blog-card-inner {
        padding: 25px 20px 22px;
        min-height: 280px;
    }
    .blog-carousel-nav {
        justify-content: center;
        padding: 20px 0 0;
    }
    .blog-carousel-btn {
        width: 40px;
        height: 40px;
    }
}
