/* =============================================
   BLOG
   ============================================= */

.blog-section {
    padding: 0.75rem 0 1rem;
}

.blog-section__layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.blog-section__slider-wrap {
    min-width: 0;
    overflow: hidden;
}

.blog-swiper {
    overflow: visible;
}

.blog-swiper .swiper-slide {
    width: 11.5rem;
    height: auto;
}

.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 18.5rem;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(160deg, color-mix(in srgb, var(--blog-tone, #3566df) 28%, #ffffff), var(--blog-tone, #3566df));
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.blog-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 16, 47, 0.05) 0%, rgba(3, 16, 47, 0.35) 48%, rgba(3, 16, 47, 0.92) 100%);
    pointer-events: none;
}

.blog-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.875rem 0.875rem;
}

.blog-card__title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.blog-card__author {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.blog-card__avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.blog-card__name {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card__verified {
    color: #4ade80;
    font-size: 0.6875rem;
    line-height: 1;
    flex-shrink: 0;
}

.blog-card__date {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---- Featured kart ---- */
.blog-section__featured {
    min-width: 0;
}

.blog-featured {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    min-height: 18.5rem;
    padding: 0.75rem 1.25rem 0.75rem 0.5rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #edf0f5;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.blog-featured__visual {
    position: relative;
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.blog-featured__visual::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 88%);
    pointer-events: none;
    z-index: 1;
}

.blog-featured__person {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 17rem;
    object-fit: contain;
    object-position: bottom left;
}

.blog-featured__person--placeholder {
    width: 8.5rem;
    height: 11rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff4e8 0%, #ffe8d6 100%);
}

.blog-featured__decor {
    display: none;
}

.blog-featured__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0 0.5rem 0.25rem;
}

.blog-featured__title {
    font-size: clamp(1rem, 2.2vw, 1.375rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #00167a;
    text-align: right;
}

.blog-featured__cta {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #3566df 0%, #6c8ceb 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(53, 102, 223, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-featured__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(53, 102, 223, 0.4);
}

@media (min-width: 768px) {
    .blog-section {
        padding: 1rem 0 1.25rem;
    }

    .blog-section__layout {
        flex-direction: row;
        align-items: stretch;
        gap: 1rem;
    }

    .blog-section__slider-wrap {
        flex: 1.15;
        min-width: 0;
    }

    .blog-section__featured {
        flex: 0.85;
        min-width: 0;
    }

    .blog-swiper .swiper-slide {
        width: 12.5rem;
    }

    .blog-card {
        min-height: 20rem;
    }

    .blog-featured {
        min-height: 20rem;
        padding: 0.875rem 1.5rem 0.875rem 0.625rem;
    }

    .blog-featured__visual {
        flex: 0 0 52%;
    }

    .blog-featured__person {
        min-height: 18.5rem;
    }

    .blog-card__title {
        font-size: 0.875rem;
    }
}

@media (min-width: 992px) {
    .blog-section__layout {
        gap: 1.125rem;
    }

    .blog-swiper .swiper-slide {
        width: 13.25rem;
    }

    .blog-card {
        min-height: 21rem;
    }

    .blog-featured {
        min-height: 21rem;
        padding: 1rem 1.75rem 1rem 0.75rem;
    }

    .blog-featured__visual {
        flex: 0 0 54%;
    }

    .blog-featured__person {
        min-height: 19.5rem;
    }

    .blog-featured__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 575px) {
    .blog-featured {
        flex-direction: column;
        min-height: auto;
        padding: 1rem;
    }

    .blog-featured__visual {
        flex: none;
        width: 100%;
        min-height: 14rem;
    }

    .blog-featured__person {
        min-height: 14rem;
        object-position: bottom center;
    }

    .blog-featured__title {
        text-align: left;
    }

    .blog-featured__cta {
        align-self: flex-start;
    }
}
