/* ============================================
   Blog Hero — 히어로 섹션
   ============================================ */
.blog-hero {
    padding: 24px 0 0;
}

.blog-hero__container {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 32px;
}

.blog-hero__section-title {
    font-size: 22px;
    font-weight: 700;
    color: rgb(44, 51, 58);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* ---- Slider ---- */
.blog-hero__slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.blog-hero__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
    width: 100%;
}

.blog-hero__slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
}

/* ---- Image mode ---- */
.blog-hero__image-link,
.blog-hero__image-only {
    display: block;
    width: 100%;
}

.blog-hero__image-link img,
.blog-hero__image-only {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* ---- Post card mode (full-width) ---- */
.blog-hero__card {
    display: flex;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    text-decoration: none;
    color: #fff;
}

.blog-hero__thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.4s ease;
}

.blog-hero__thumb--dark {
    background: linear-gradient(135deg, #2c333a, #1a1f24);
}

.blog-hero__card:hover .blog-hero__thumb {
    transform: scale(1.03);
}

/* 다크 오버레이 — 텍스트 가독성 */
.blog-hero__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
    border-radius: 12px;
}

.blog-hero__info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px;
    max-width: 50%;
}

.blog-hero__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.blog-hero__cat {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.blog-hero__sep {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.blog-hero__date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.blog-hero__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-hero__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Navigation Buttons ---- */
.blog-hero__nav {
    position: absolute;
    bottom: 24px;
    left: 48px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.blog-hero__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-hero__btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ---- "모든 글" 구분선 ---- */
.all-posts-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 36px 0 28px;
}

.all-posts-header__title {
    font-size: 22px;
    font-weight: 700;
    color: rgb(44, 51, 58);
    white-space: nowrap;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.all-posts-header__line {
    display: block;
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .blog-hero__container {
        padding: 0 20px;
    }

    .blog-hero__card {
        aspect-ratio: 16 / 9;
    }

    .blog-hero__info {
        max-width: 70%;
        padding: 24px;
    }

    .blog-hero__title {
        font-size: 20px;
    }

    .blog-hero__excerpt {
        display: none;
    }

    .blog-hero__nav {
        left: 24px;
        bottom: 16px;
    }

    .blog-hero__btn {
        width: 32px;
        height: 32px;
    }

    .blog-hero__image-link img,
    .blog-hero__image-only {
        aspect-ratio: 16 / 9;
    }
}