/* =============================================================
   브랜드스토리 페이지 전용 스타일
   레퍼런스 측정값 기반 보정
============================================================= */

/* ─── 히어로 배너 ─── */
.bs-hero {
    position: relative;
    min-height: 666px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.bs-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bs-hero-bg--default {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
}

.bs-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.bs-hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    padding: 80px 24px;
    max-width: 700px;
}

.bs-hero-logo {
    margin-bottom: 28px;
}
.bs-hero-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 50%;
}

/* 히어로 타이틀: 44px / 800 / -0.4px */
.bs-hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.4px;
    margin-bottom: 20px;
    color: var(--color-white);
}

/* 히어로 서브카피 */
.bs-hero-desc {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: -0.4px;
    color: rgba(255,255,255,0.85);
}


/* ─── 본문 영역 ─── */
.bs-content {
    padding: 0;
}

.bs-content-inner {
    max-width: 100%;
    padding: 0;
}

.bs-content .wp-block-group,
.bs-content .wp-block-columns {
    margin: 0 !important;
    padding: 0 !important;
}


/* ─── 챕터 섹션 ─── */
/* 섹션 높이 590px, 수직 가운데 정렬 */
.bs-chapter {
    min-height: 590px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    padding: 0 80px !important;
    margin: 0 !important;
}

.bs-chapter:last-child {
    border-bottom: none;
}

.bs-chapter:nth-child(even) {
    background: #fafafa;
}

/* 컬럼 래퍼: 이미지 46% / 텍스트 54% */
.bs-chapter-cols {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
    min-height: 590px;
}

.bs-chapter-cols .wp-block-column:not(.bs-chapter-body) {
    padding: 0 !important;
    margin: 0 !important;
}

.bs-chapter-cols .wp-block-column.bs-chapter-body,
.bs-chapter-cols .wp-block-column.bs-chapter-body.is-layout-flow,
.bs-chapter-cols .wp-block-column.bs-chapter-body[class] {
    margin: 0 !important;
    padding: 60px 80px 60px 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.bs-chapter--reverse .bs-chapter-cols .wp-block-column.bs-chapter-body,
.bs-chapter--reverse .bs-chapter-cols .wp-block-column.bs-chapter-body.is-layout-flow,
.bs-chapter--reverse .bs-chapter-cols .wp-block-column.bs-chapter-body[class] {
    padding: 60px 100px 60px 100px !important;
}

/* 이미지 컬럼: 590/(590+690) ≈ 46% */
.bs-chapter-cols .wp-block-column:first-child {
    flex: 0 0 46% !important;
    max-width: 46% !important;
}

/* 텍스트 컬럼: 54% */
.bs-chapter-cols .wp-block-column:last-child {
    flex: 0 0 54% !important;
    max-width: 54% !important;
}

/* 역방향 (--reverse) */
.bs-chapter--reverse .bs-chapter-cols .wp-block-column:first-child {
    flex: 0 0 54% !important;
    max-width: 54% !important;
}
.bs-chapter--reverse .bs-chapter-cols .wp-block-column:last-child {
    flex: 0 0 46% !important;
    max-width: 46% !important;
}


/* ─── 이미지 ─── */
.bs-chapter-image {
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    height: 100%;
    min-height: 590px;
}

.bs-chapter-image img {
    width: 100%;
    height: 100%;
    min-height: 590px;
    object-fit: cover;
    display: block;
}


/* ─── 텍스트 영역: padding-left 100px ─── */
.bs-chapter-body,
.bs-chapter-cols .wp-block-column.bs-chapter-body {
    padding: 60px 80px 60px 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.bs-chapter--reverse .bs-chapter-body,
.bs-chapter--reverse .bs-chapter-cols .wp-block-column.bs-chapter-body {
    padding: 60px 100px 60px 100px !important;
}


/* ─── 챕터 번호: 18px / 700 / primary / margin-bottom 6px ─── */
.bs-chapter-num {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.2px !important;
    color: var(--color-primary) !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
}


/* ─── 챕터 제목: 28px / 800 / line-height 1.35 / margin-bottom 24px ─── */
.bs-chapter-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.5px !important;
    color: var(--color-navy) !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}


/* ─── 챕터 본문: 15px / 400 / line-height 2.0 / #555 / 문단간 margin 16px ─── */
.bs-chapter-text {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 2.0 !important;
    letter-spacing: -0.2px !important;
    color: #555555 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bs-chapter-text + .bs-chapter-text {
    margin-top: 16px !important;
}


/* ─── 반응형 ─── */
@media (max-width: 1024px) {
    .bs-hero-title { font-size: 36px; }
    .bs-chapter-body,
    .bs-chapter--reverse .bs-chapter-body,
    .bs-chapter-cols .wp-block-column.bs-chapter-body,
    .bs-chapter--reverse .bs-chapter-cols .wp-block-column.bs-chapter-body {
        padding: 48px 48px !important;
    }
    .bs-chapter-title { font-size: 26px !important; line-height: 1.4 !important; }
    .bs-chapter-num { font-size: 24px !important; }
    .bs-chapter-text { font-size: 16px !important; }
}

@media (max-width: 768px) {
    .bs-hero { min-height: 400px; }
    .bs-hero-title { font-size: 28px; letter-spacing: -0.3px; }
    .bs-hero-desc { font-size: 15px; }

    .bs-chapter {
        min-height: unset !important;
        flex-direction: column !important;
    }
    .bs-chapter--reverse {
        flex-direction: column-reverse !important;
    }

    .bs-chapter-cols {
        flex-direction: column !important;
        min-height: unset !important;
    }
    .bs-chapter--reverse .bs-chapter-cols {
        flex-direction: column-reverse !important;
    }

    .bs-chapter-cols .wp-block-column:first-child,
    .bs-chapter-cols .wp-block-column:last-child,
    .bs-chapter--reverse .bs-chapter-cols .wp-block-column:first-child,
    .bs-chapter--reverse .bs-chapter-cols .wp-block-column:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .bs-chapter-image,
    .bs-chapter-image img {
        min-height: 280px !important;
    }

    .bs-chapter-body,
    .bs-chapter--reverse .bs-chapter-body,
    .bs-chapter-cols .wp-block-column.bs-chapter-body,
    .bs-chapter--reverse .bs-chapter-cols .wp-block-column.bs-chapter-body {
        padding: 40px 24px !important;
    }

    .bs-chapter-num { font-size: 22px !important; line-height: 1.5 !important; }
    .bs-chapter-title { font-size: 22px !important; line-height: 1.4 !important; }
    .bs-chapter-text { font-size: 15px !important; line-height: 1.8 !important; }
}
