/**
 * Hero 통합 프리셋 — 기준 스타일 (수정 금지 원칙: 배포 후 관리자에서 덮어쓰지 않음)
 * 인스턴스 오버라이드: views/section/{section-key}/style.css
 */
.hero-unified {
    --radius: 8px;
    --hero-badge-mt: 0px;
    --hero-title-mt: 12px;
    --hero-desc-mt: 16px;
    --hero-actions-mt: 24px;
    --hero-btn-gap: 12px;
    --hero-section-pt: 120px;
    --hero-section-pb: 120px;
    --hero-overlay-color: #000000;
    --hero-overlay-opacity: 0;
    position: relative;
    border-bottom: 1px solid rgb(229 231 235);
    background: #fff;
}

.hero-unified.hero-unified--media-none {
    background: var(--hero-media-bg, #fff);
}

.hero-unified--media-video,
.hero-unified--media-hybrid,
.hero-unified--media-image {
    overflow: hidden;
}

.hero-unified__raster-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-unified__raster-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-unified--media-image .hero-unified__inner {
    position: relative;
    z-index: 1;
}

.hero-unified__video-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-unified__video-iframe,
.hero-unified__video-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.hero-unified--media-video .hero-unified__inner,
.hero-unified--media-hybrid .hero-unified__inner {
    position: relative;
    z-index: 1;
}

.hero-unified--fullpage {
    min-height: min(100vh, 920px);
    display: flex;
    align-items: center;
}

.hero-unified--default:not(.hero-unified--fullpage) {
    padding-top: var(--hero-section-pt, 120px);
    padding-bottom: var(--hero-section-pb, 120px);
}

.hero-unified__inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .hero-unified__inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* 콘텐츠 정렬: 텍스트 + inner 블록 위치(좌/우는 margin으로 박스를 붙임) */
.hero-unified--align-left .hero-unified__inner {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.hero-unified--align-center .hero-unified__inner {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-unified--align-right .hero-unified__inner {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.hero-unified__badge {
    display: inline-block;
    margin-top: var(--hero-badge-mt, 0px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hero-badge-color, #374151);
    background: var(--hero-badge-bg, #f3f4f6);
    padding: var(--hero-badge-py, 6px) var(--hero-badge-px, 12px);
    border-radius: var(--radius);
}

.hero-unified__title {
    margin: 0;
    margin-top: var(--hero-title-mt, 12px);
    color: var(--hero-title-color, var(--heading-color, #111827));
}

.hero-unified__desc {
    margin: 0;
    margin-top: var(--hero-desc-mt, 0px);
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--hero-desc-color, var(--text-muted, #6b7280));
}

.hero-unified--align-center .hero-unified__desc {
    margin-left: auto;
    margin-right: auto;
}

.hero-unified--align-right .hero-unified__desc {
    margin-left: auto;
}

.hero-unified__actions {
    margin-top: var(--hero-actions-mt, 40px);
    display: flex;
    flex-wrap: wrap;
    gap: var(--hero-btn-gap, 0.75rem);
}

.hero-unified--align-center .hero-unified__actions {
    justify-content: center;
}

.hero-unified--align-right .hero-unified__actions {
    justify-content: flex-end;
}

.hero-unified__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: var(--hero-btn-padding, 0.875rem 1.5rem);
    border-radius: var(--radius);
    font-size: var(--hero-btn-font-size, 0.875rem);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    border: 2px solid transparent;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        filter 0.25s ease,
        box-shadow 0.25s ease;
}

/* 카드·패널 등 박스형 확장용 — 마크업에 class="hero-unified__surface" 부여 시 동일 radius 적용 */
.hero-unified__surface {
    border-radius: var(--radius);
}

.hero-unified__inner > :first-child {
    margin-top: 0 !important;
}

.hero-unified--text-sm .hero-unified__badge { font-size: 0.6875rem; }
.hero-unified--text-sm .hero-unified__title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.hero-unified--text-sm .hero-unified__desc { font-size: 1rem; }

.hero-unified--text-md .hero-unified__badge { font-size: 0.75rem; }
.hero-unified--text-md .hero-unified__title { font-size: clamp(2rem, 5vw, 3.25rem); }
.hero-unified--text-md .hero-unified__desc { font-size: 1.125rem; }

.hero-unified--text-lg .hero-unified__badge { font-size: 0.8125rem; }
.hero-unified--text-lg .hero-unified__title { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
.hero-unified--text-lg .hero-unified__desc { font-size: 1.25rem; }

.hero-unified__overlay-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--hero-overlay-color, #000000);
    opacity: var(--hero-overlay-opacity, 0);
}

.hero-unified--btn-align-left .hero-unified__actions { justify-content: flex-start; }
.hero-unified--btn-align-center .hero-unified__actions { justify-content: center; }
.hero-unified--btn-align-right .hero-unified__actions { justify-content: flex-end; }

/* 라인형: 1px 고정(기본·hover 동일), 패딩·글자 크기 불변, 그림자·filter 없음 */
.hero-unified__btn--st-line {
    border-width: 1px;
    border-style: solid;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: none;
    filter: none;
}

.hero-unified__btn--st-line:hover {
    box-shadow: none;
    filter: none;
}

/* —— 버튼1(Primary tier) —— */
.hero-unified__btn--tier-primary.hero-unified__btn--st-default {
    background-color: var(--primary-color, #2563eb);
    color: #fff;
    border-color: transparent;
}

.hero-unified__btn--tier-primary.hero-unified__btn--st-default:hover {
    background-color: var(--primary-hover-color, #1d4ed8);
}

.hero-unified__btn--tier-primary.hero-unified__btn--st-line {
    background-color: transparent;
    color: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
}

.hero-unified__btn--tier-primary.hero-unified__btn--st-line:hover {
    background-color: var(--primary-color, #2563eb);
    color: var(--bg-color, #ffffff);
    border-color: var(--primary-color, #2563eb);
}

.hero-unified__btn--tier-primary.hero-unified__btn--st-emphasis {
    background-color: var(--primary-color, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 22px color-mix(in srgb, var(--primary-color, #2563eb) 38%, transparent);
}

.hero-unified__btn--tier-primary.hero-unified__btn--st-emphasis:hover {
    background-color: var(--primary-hover-color, #1d4ed8);
    filter: brightness(1.03);
}

/* —— 버튼2(Secondary tier) —— */
.hero-unified__btn--tier-secondary.hero-unified__btn--st-default {
    background-color: var(--bg-color, #fff);
    color: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
}

.hero-unified__btn--tier-secondary.hero-unified__btn--st-default:hover {
    background-color: var(--primary-color, #2563eb);
    color: var(--bg-color, #ffffff);
    border-color: var(--primary-color, #2563eb);
}

.hero-unified__btn--tier-secondary.hero-unified__btn--st-line {
    background-color: transparent;
    color: var(--primary-color, #2563eb);
    border-color: var(--primary-color, #2563eb);
}

.hero-unified__btn--tier-secondary.hero-unified__btn--st-line:hover {
    background-color: var(--primary-color, #2563eb);
    color: var(--bg-color, #ffffff);
    border-color: var(--primary-color, #2563eb);
}

.hero-unified__btn--tier-secondary.hero-unified__btn--st-emphasis {
    background-color: var(--primary-color, #2563eb);
    color: #fff;
    border-color: transparent;
}

.hero-unified__btn--tier-secondary.hero-unified__btn--st-emphasis:hover {
    background-color: var(--primary-hover-color, #1d4ed8);
}

.hero-unified__btn--custom:hover:not(.hero-unified__btn--st-line) {
    filter: brightness(0.96);
}

/*
 * 커스텀 라인형: data-hero-line + .hero-unified__actions 로 특이성 확보
 * (Tailwind a{color:inherit} · 티어 라인 규칙보다 우선, 미리보기·실사이트 동일)
 */
.hero-unified__actions a.hero-unified__btn[data-hero-line='1'] {
    background-color: var(--hero-line-from-bg);
    color: var(--hero-line-from-fg);
    border-width: 1px;
    border-style: solid;
    border-color: var(--hero-line-from-fg);
}

.hero-unified__actions a.hero-unified__btn[data-hero-line='1']:hover {
    background-color: var(--hero-line-from-fg);
    color: var(--hero-line-from-bg);
    border-color: var(--hero-line-from-fg);
    filter: none;
    box-shadow: none;
}

.hero-unified__slider {
    margin-top: 2rem;
    border-radius: 0.75rem;
    border: 1px dashed #d1d5db;
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.hero-unified__slider--panels {
    margin-top: 0;
    border: none;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    color: inherit;
}

.hero-unified__slider-ui {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-unified__slider-arrows {
    display: inline-flex;
    gap: 0.5rem;
}

.hero-unified__slider-arrow {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 9999px;
    background: var(--bg-color, #fff);
    color: var(--text-color, #111827);
}

.hero-unified__slider-dots {
    display: inline-flex;
    gap: 0.375rem;
}

.hero-unified__slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #cbd5e1;
}

.hero-unified__slider-dot.is-active {
    background: var(--primary-color, #2563eb);
}

.hero-unified__slide-panel {
    position: relative;
    border-radius: 0.75rem;
    padding: 2rem 1.25rem;
    background-color: rgb(249 250 251);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-unified__slide-panel__raster-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-unified__slide-panel__raster-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-unified__slide-panel--dual-bg {
    position: relative;
    overflow: hidden;
}

.hero-unified__slide-panel__layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.hero-unified__slide-panel__layer--top,
.hero-unified__slide-panel__layer--bottom {
    flex: 1;
    min-height: 50%;
    background-repeat: no-repeat;
}

.hero-unified__slide-panel__inner {
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .hero-unified__slide-panel {
        padding: 2.5rem 2rem;
    }
}

.hero-unified--hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hero-unified--hide-mobile {
        display: block;
    }

    .hero-unified--hide-mobile.hero-unified--fullpage {
        display: flex;
    }
}

.hero-unified--hide-pc {
    display: block;
}

@media (min-width: 768px) {
    .hero-unified--hide-pc {
        display: none;
    }
}

@keyframes hero-anim-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes hero-anim-slide-up {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-unified__anim.hero-unified__anim--fade-in {
    animation-name: hero-anim-fade-in;
    animation-duration: var(--ha-dur, 600ms);
    animation-delay: var(--ha-delay, 0ms);
    animation-timing-function: var(--hero-anim-ease, ease-out);
    animation-fill-mode: both;
}

.hero-unified__anim.hero-unified__anim--slide-up {
    animation-name: hero-anim-slide-up;
    animation-duration: var(--ha-dur, 600ms);
    animation-delay: var(--ha-delay, 0ms);
    animation-timing-function: var(--hero-anim-ease, ease-out);
    animation-fill-mode: both;
}

.hero-unified--anim-repeat .hero-unified__anim {
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-duration: calc(var(--ha-dur, 600ms) + var(--hero-anim-repeat-gap, 0ms));
}

.hero-unified__slider--panels.js-hero-slider-init > .hero-unified__slide-panel {
    display: none;
}

.hero-unified__slider--panels.js-hero-slider-init > .hero-unified__slide-panel.is-active {
    display: block;
}
