/* --- [1] Variables & Reset (Cinematic Modern Luxury Theme) --- */
:root {
    /* [영화적 기법 1] Color Grading: 완벽한 순백/순흑색을 버리고 전체적으로 따뜻한 필름 톤(LUT) 적용 */
    --bg-ivory: #F7F5F0;
    /* 노란기가 아주 살짝 도는 깊은 미색 */
    --bg-sand: #E8E5DF;
    /* 차가운 회색이 아닌 따뜻한 웜 그레이지 */
    --bg-white: #FCFBFA;
    /* 완벽한 흰색이 아닌 아주 옅은 크림 화이트 */

    /* Colors: 채도를 낮춰 고급스러움을 강조 */
    --point-color: #947C68;
    /* Muted Bronze/Taupe (차분한 토프색) */
    --point-dark: #6B594B;
    /* Darker Brown (깊은 밤색) */

    /* [영화적 기법 2] 순흑색(#000) 제거: 텍스트에 베이스 컬러를 미세하게 섞어 융화 */
    --text-primary: #332F2C;
    /* Warm Soft Black (먹색 -> 따뜻한 먹색) */
    --text-secondary: #7A736E;
    /* Warm Gray */
    --border-line: #E0D8D0;
    /* 부드러운 웜톤 경계선 (단순 회색 탈피) */

    /* [영화적 기법 3] 시맨틱 컬러 길들이기: 기능성은 유지하되 채도를 낮춘 경고/강조 컬러 */
    --semantic-danger: #B04A3C;
    /* 쨍한 유튜브 레드를 대체할 차분한 벽돌색(Rust) */

    /* Fonts */
    --font-kr: 'Noto Sans KR', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    --font-en: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* 페이지 밖으로 카드가 벗어나 우측 여백을 만드는 것 차단 */
}

body {
    font-family: var(--font-kr);
    background-color: var(--bg-ivory);
    color: var(--text-primary);
    line-height: 1.75;
    /* 가독성을 위해 줄간격 확대 */
    word-break: keep-all;
    letter-spacing: -0.02em;
    position: relative;
    /* 노이즈 오버레이를 위해 추가 */
}

/* 일본어는 keep-all 때문에 줄바꿈이 막히지 않도록 개별 언어 규칙 적용 */
:lang(ja),
[lang="ja"],
[lang="ja-JP"] {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: strict;
}

/* [영화적 기법 4] 화면 전체를 하나로 묶어주는 미세한 아날로그 필름 그레인(질감) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    /* 눈에 띌듯 말듯한 아주 미세한 수준 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Utilities */
.inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 너비를 줄여 집중도 향상 */
.section-container {
    padding: 120px 0;
}

/* 여백을 넓게 잡아 여유로운 느낌 (Zen) */
.theme-bg-ivory {
    background-color: var(--bg-ivory);
}

.theme-bg-sand {
    background-color: var(--bg-sand);
}

.theme-bg-white {
    background-color: var(--bg-white);
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #FCFBFA !important;
}

.text-white-op {
    color: rgba(252, 251, 250, 0.85);
}

/* Typography - Elegant & Clean */
.section-title-large {
    font-family: var(--font-serif);
    font-size: 38px;
    /* 과하지 않은 크기 */
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.eng-label {
    display: block;
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 600;
    color: var(--point-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
    /* 영문 자간 넓게 */
    text-transform: uppercase;
}

.body-text {
    font-size: 16px;
    font-weight: 300;
}

.body-text-center {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 2.0;
    font-weight: 300;
}

/* --- [2] Header & Nav --- */
.main-header {
    height: 90px;
    background-color: rgba(252, 251, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-line);
}

/* Header layout would be handled by Bootstrap classes in base.html, styling here overrides */

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252, 251, 250, 0.98);
    border-bottom: 1px solid var(--border-line);
    box-shadow: 0 2px 10px rgba(51, 47, 44, 0.03);
    /* 웜톤 그림자 */
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-list li a {
    display: block;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--point-color);
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--point-color);
    transition: 0.3s;
}

.nav-list li a:hover::after {
    width: 100%;
}

/* --- [3] Hero Slider --- */
.hero-slider-section {
    position: relative;
    height: 680px;
    overflow: hidden;
    background: #221F1C;
}

/* 순흑색 지양, 웜 다크톤 */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) sepia(5%);
}

/* 필름 필터 */

.hero-caption {
    position: absolute;
    left: 50px;
    bottom: 50px;
    color: rgba(252, 251, 250, 0.9);
    border-left: 1px solid rgba(252, 251, 250, 0.5);
    padding-left: 15px;
    display: flex;
    flex-direction: column;
}

.caption-title {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 600;
}

.caption-desc {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.8;
}

.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.main-hero-title {
    font-family: var(--font-serif);
    font-size: 52px;
    color: #FCFBFA;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 400;
}

.main-hero-subtitle {
    color: rgba(252, 251, 250, 0.8);
    font-size: 15px;
    letter-spacing: 3px;
    font-family: var(--font-en);
    text-transform: uppercase;
}

/* =========================================================
   Calm Cinematic Hero
   ========================================================= */
.hero-cinematic-section {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #d9d1c5;
    isolation: isolate;
}

/* Background Layers */
.cinematic-bg,
.cinematic-bg img,
.cinematic-overlay,
.cinematic-noise,
.aurora {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cinematic-bg img {
    object-fit: cover;
    transform: scale(1.08);
    filter: brightness(0.78) saturate(0.85) sepia(5%);
    /* 필름 룩 그레이딩 */
    transition: transform 6s ease, filter 1.4s ease;
    will-change: transform;
}

.cinematic-overlay {
    background:
        linear-gradient(90deg, rgba(32, 27, 21, 0.58) 0%, rgba(32, 27, 21, 0.36) 32%, rgba(32, 27, 21, 0.20) 58%, rgba(32, 27, 21, 0.30) 100%),
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.14), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(247, 223, 205, 0.16), transparent 26%);
    z-index: 1;
}

.cinematic-noise {
    z-index: 2;
    opacity: 0.07;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.9) 0.45px, transparent 0.45px);
    background-size: 8px 8px;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.aurora {
    z-index: 2;
    filter: blur(70px);
    opacity: 0.42;
    pointer-events: none;
}

.aurora-1 {
    background: radial-gradient(circle, rgba(212, 170, 132, 0.58) 0%, rgba(212, 170, 132, 0) 68%);
    top: 10%;
    left: -8%;
    animation: auroraMove1 12s ease-in-out infinite alternate;
}

.aurora-2 {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 70%);
    top: 45%;
    left: 55%;
    animation: auroraMove2 14s ease-in-out infinite alternate;
}

.aurora-3 {
    background: radial-gradient(circle, rgba(168, 197, 182, 0.26) 0%, rgba(168, 197, 182, 0) 68%);
    top: 60%;
    left: 15%;
    animation: auroraMove3 16s ease-in-out infinite alternate;
}

/* Layout */
.cinematic-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1280px;
    /* min() 함수 인식 오류로 인한 붕괴 방지 */
    flex: 1;
    /* 부모가 flex일 때 화면 우측 끝까지 꽉 채우도록 강제 */
    margin: 0 auto;
    padding: 120px 28px 110px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.cinematic-copy {
    max-width: 680px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-family: var(--font-en);
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f1d0b0;
    box-shadow: 0 0 14px rgba(241, 208, 176, 0.85);
}

.cinematic-title {
    margin: 0 0 22px;
    color: #FCFBFA;
    font-family: var(--font-serif);
    font-size: clamp(24px, 4.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 500;
    text-shadow: 0 18px 35px rgba(32, 27, 21, 0.25);
    /* 그림자도 웜톤으로 */
}

.cinematic-desc {
    margin: 0 0 34px;
    color: rgba(252, 251, 250, 0.88);
    font-size: 18px;
    line-height: 1.9;
    font-weight: 300;
    word-break: keep-all;
    max-width: 620px;
}

/* Buttons */
.cinematic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease;
    font-size: 15px;
    font-weight: 600;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #f1dcc8, #e5c2a1);
    color: #3f2f22;
    box-shadow: 0 14px 35px rgba(61, 39, 20, 0.18);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FCFBFA;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-btn:hover {
    transform: translateY(-3px);
}

/* Visual Side */
.cinematic-visual {
    position: relative;
    width: 100%;
    /* 우측 카드 영역이 너비를 잃고 왼쪽으로 쏠리는 현상 방지 */
    min-height: 520px;
}

.float-card {
    position: absolute;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07));
    box-shadow: 0 24px 70px rgba(32, 27, 21, 0.18);
    /* 그림자 웜톤 */
    color: #FCFBFA;
    will-change: transform, opacity;
}

/* 위치는 기존 감성 유지 */
.card-main {
    right: 20%;
    /* 기존 50%에서 우측으로 대폭 이동 */
    top: 12%;
    bottom: 0;
    margin: auto;
    /* transform 대신 margin으로 완벽한 수직 중앙 정렬 */
    height: max-content;
    /* 중앙 정렬을 위해 필수 */
    width: min(420px, 100%);
    padding: 34px 32px;
    border-radius: 32px;
}

.card-main .mini-label {
    display: inline-block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    letter-spacing: 2px;
    font-family: var(--font-en);
}

.card-main strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-main p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    font-size: 15px;
}

.card-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 270px;
    padding: 18px 20px;
    border-radius: 22px;
}

.card-top {
    top: 15%;
    right: 45%;
}

.card-bottom {
    bottom: 15%;
    right: 5%;
}

/* 개별 float 애니메이션 제거: drifting만 사용 */
.card-main.bubble-card,
.card-top.bubble-card,
.card-bottom.bubble-card {
    animation: none;
}

/* 가시성 상태 */
.bubble-card {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    --rand-x: 0px;
    --rand-y: 0px;
}

/* 보일 때 */
.bubble-card {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
    --rand-x: 0px;
    --rand-y: 0px;
}

/* 모바일에서도 크기만 줄이고 구조 유지 */
@media (max-width: 767px) {

    /* 기존 420px에서 540px로 늘려 떠다닐 상하 여유 공간 확보 */
    .cinematic-visual {
        position: relative;
        z-index: 6;
        min-height: 540px;
        overflow: hidden;
        isolation: isolate;
        margin-top: 14px;
        width: 100%;
    }

    .main-hero-title {
        font-size: 40px;
    }

    .main-hero-subtitle {
        font-size: 12px;
    }

    .caption-title {
        font-size: 18px;
    }

    .caption-desc {
        font-size: 12px;
    }

    /* 화면 정중앙에 고정되도록 수정 */
    .card-main {
        position: absolute;
        top: 50%;
        bottom: 0;
        left: 20%;
        right: auto;
        margin: auto;
        height: max-content;
        width: min(340px, 92%);
        padding: 12px 10px;
        border-radius: 24px;
    }

    .card-main strong {
        font-size: 22px;
    }

    .card-sub {
        width: 210px;
        padding: 14px 15px;
        border-radius: 18px;
    }

    /* 위로 이탈하지 않도록 top을 내림 */
    .card-top {
        top: 15%;
        right: auto;
        left: 15%;
        /* 모바일에서는 살짝 좌측 상단으로 배치 */
    }

    /* 아래로 이탈하지 않도록 bottom을 올림 */
    .card-bottom {
        bottom: 15%;
        right: 15%;
        /* 우측 하단 배치 */
    }

    .scroll-cue {
        left: 18px;
        bottom: 16px;
    }
}

.bubble-card {
    --rand-x: 0px;
    --rand-y: 0px;
    --drift-x-1: 40px;
    --drift-y-1: -30px;
    --drift-x-2: -30px;
    --drift-y-2: -70px;
    --drift-x-3: 50px;
    --drift-y-3: -40px;
    --drift-x-4: -40px;
    --drift-y-4: 30px;
    --drift-duration: 12s;
    --drift-delay: 0s;
}

.bubble-card.drifting {
    animation: bubbleDrift var(--drift-duration) ease-in-out infinite alternate;
    animation-delay: var(--drift-delay);
}

@keyframes bubbleDrift {
    0% {
        transform: translate(var(--rand-x), var(--rand-y));
    }

    25% {
        transform: translate(calc(var(--rand-x) + var(--drift-x-1)),
                calc(var(--rand-y) + var(--drift-y-1)));
    }

    50% {
        transform: translate(calc(var(--rand-x) + var(--drift-x-2)),
                calc(var(--rand-y) + var(--drift-y-2)));
    }

    75% {
        transform: translate(calc(var(--rand-x) + var(--drift-x-3)),
                calc(var(--rand-y) + var(--drift-y-3)));
    }

    100% {
        transform: translate(calc(var(--rand-x) + var(--drift-x-4)),
                calc(var(--rand-y) + var(--drift-y-4)));
    }
}

@media (max-width: 1199px) {
    .cinematic-inner {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 110px;
        padding-bottom: 100px;
    }

    .cinematic-copy {
        position: relative;
        z-index: 12;
    }

    .cinematic-visual {
        position: relative;
        z-index: 6;
        min-height: 360px;
        overflow: hidden;
        isolation: isolate;
        margin-top: 8px;
    }

    .card-main {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .card-top,
    .card-bottom {
        width: 240px;
    }

    .card-top {
        top: 0;
        right: 8%;
    }

    .card-bottom {
        bottom: 0;
        right: 2%;
    }
}

@media (max-width: 767px) {
    .hero-cinematic-section {
        min-height: 820px;
    }

    .cinematic-inner {
        /* padding: 96px 18px 92px; */
        padding: 16px 3px 16px;
        margin: 0 !important;
    }

    .cinematic-copy {
        position: relative;
        z-index: 12;
    }

    .cinematic-title {
        font-size: 32px;
        line-height: 1.16;
    }

    .cinematic-desc {
        font-size: 15px;
        line-height: 1.85;
    }

    .cinematic-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
        min-width: 0;
    }

    .cinematic-visual {
        position: relative;
        z-index: 6;
        min-height: 420px;
        overflow: hidden;
        isolation: isolate;
        margin-top: 14px;
        width: 100%;
    }

    .card-main {
        position: relative;
        width: min(340px, 92%);
        padding: 24px 20px;
        border-radius: 24px;
        right: auto;
        left: 0;
        margin: 0 auto;
        /* 완벽한 중앙 정렬 보장 */
    }

    .card-main strong {
        font-size: 22px;
    }

    .card-sub {
        width: 210px;
        padding: 14px 15px;
        border-radius: 18px;
    }

    .card-top {
        top: 6%;
        right: 4%;
        /* 우측 빈 공간 유발 방지 */
    }

    .card-bottom {
        bottom: 8%;
        right: 4%;
        /* 우측 빈 공간 유발 방지 */
    }

    .scroll-cue {
        left: 18px;
        bottom: 16px;
    }
}

/* Keyframes */
@keyframes auroraMove1 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(40px, 20px, 0) scale(1.15);
    }
}

@keyframes auroraMove2 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(-30px, 25px, 0) scale(1.12);
    }
}

@keyframes auroraMove3 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(24px, -18px, 0) scale(1.18);
    }
}

@keyframes scrollLine {
    0% {
        transform: translateX(-100%);
    }

    55% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- [NEW] Youtube Ticker Styles --- */
.youtube-ticker-zone {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* 모바일: 전체 너비 */
    height: 50px;
    background: rgba(36, 31, 28, 0.85);
    /* 순흑색 대신 웜블랙(브라운 블랙)으로 가독성 확보 */
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    z-index: 20;
    /* 게이트보다 위에 보일지 아래 보일지 결정 (현재는 가장 위) */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    /* 처음엔 숨김 */
    transform: translateY(100%);
    /* 아래에서 올라오는 효과 */
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 2s;
    /* 모든 애니메이션 끝난 후 등장 */
}

/* Active 상태가 되면 등장 */
.hero-yon-section.active .youtube-ticker-zone {
    opacity: 1;
    transform: translateY(0);
}

.layout-grid-custom-swiper {
    align-items: flex-start;
}

/* 위 코드로 우측 카드 영역까지 위로 붙는 것이 신경 쓰인다면, col-info만 개별적으로 위로 정렬할 수 있습니다. */
.layout-grid-custom-swiper .col-info {
    align-self: flex-start;
}

.clinic-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.clinic-grid-container .slide-card .card-txt {
    height: 180px;
    /* 카드 높이 통일을 위해 동일하게 적용 */
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .clinic-grid-container {
        grid-template-columns: 1fr;
    }
}

/* 좌측 라벨 (고정) */
.ticker-label {
    background: var(--semantic-danger);
    /* 유튜브 레드 -> 시네마틱 톤다운 */
    color: #FCFBFA;
    font-size: 11px;
    font-weight: 700;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: var(--font-en);
    letter-spacing: 1px;
    z-index: 2;
}

/* 흐르는 영역 (Wrap) */
.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    /* 좌우 그라데이션 마스크 (부드럽게 사라짐) */
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}

/* 실제 움직이는 트랙 */
.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    /* 속도 조절: 숫자가 클수록 느림 */
}

/* 마우스 올리면 일시정지 */
.ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}

/* 개별 아이템 */
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding-right: 50px;
    /* 아이템 간 간격 */
    color: rgba(252, 251, 250, 0.9);
    font-size: 13px;
    font-weight: 300;
}

.ticker-item i {
    font-size: 16px;
    color: var(--semantic-danger);
    /* 아이콘 빨간색 -> 시네마틱 톤다운 */
    margin-right: 8px;
    transform: translateY(1px);
}

/* 애니메이션 키프레임 */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* 내용물 2배 복사했으므로 50% 이동 시 리셋 */
}


/* --- PC 화면: 좌측 60% 배치 --- */
@media (min-width: 992px) {
    .youtube-ticker-zone {
        width: 59.9%;
        /* 요청하신 좌측 60% */
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        /* 끝부분 경계선 */
    }

    /* 게이트(우측 40%)와 겹치지 않게 z-index 조정이 필요하다면 */
    /* 현재 게이트는 right:0, ticker는 left:0 이므로 물리적으로 겹치지 않습니다. */
}

/* --- [4] Text Highlight (Minimalist) --- */
.text-highlight-section {
    padding: 140px 0;
    text-align: center;
    background: var(--bg-ivory);
}

.highlight-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--text-primary);
    line-height: 1.6;
}


/* --- [7] Cross Animation Intro (Visual Cross) --- */
.relative-box {
    position: relative;
    padding: 60px 0;
}

.cross-shape {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
}

.c-line {
    background: var(--point-color);
    position: absolute;
    opacity: 0.4;
}

.v-line {
    width: 1px;
    height: 100%;
    left: 0;
    top: 0;
}

.h-line {
    height: 1px;
    width: 100%;
    top: 0;
    left: 0;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.tag-list li {
    background: transparent;
    border: 1px solid var(--border-line);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.image-frame-simple {
    border-radius: 4px;
    /* R값을 줄여서 더 모던하게 */
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--bg-sand);
    /* 그림자 대신 박스 데코 */
}

.layout-flex-split {
    display: flex;
    gap: 80px;
}

.layout-flex-split.align-center {
    align-items: center;
}

.col-image {
    flex: 1;
}

.col-text {
    flex: 1;
}

/* --- [8] Swiper Section (Refined) --- */
.layout-grid-custom-swiper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: center;
}

.col-swiper {
    width: 100%;
    min-width: 0;
}

.swiper-controls {
    display: flex;
    gap: 10px;
    margin-top: 50px;
}

.swiper-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-line);
    border-radius: 0;
    /* 사각형 버튼으로 변경하여 엣지 강조 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-size: 16px;
    color: var(--text-secondary);
}

.swiper-btn:hover {
    border-color: var(--point-color);
    color: var(--point-color);
}

.slide-card {
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-line);
    /* 아주 얇은 테두리 */
    height: 100%;
}

.card-img {
    height: 240px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.slide-card:hover .card-img img {
    transform: scale(1.03);
}

.card-txt {
    padding: 30px;
}

.card-head {
    font-family: var(--font-serif);
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* --- [9] Recommendation Grid (Clean Lines) --- */
.grid-4-divider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    border-top: 1px solid var(--border-line);
    border-bottom: 1px solid var(--border-line);
    padding: 60px 0;
}

.grid-item {
    padding: 0 25px;
    position: relative;
    text-align: center;
}

.grid-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border-line);
}

.case-badge {
    display: inline-block;
    color: var(--point-color);
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--point-color);
    padding-bottom: 2px;
}

.case-desc {
    font-weight: 400;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
}

/* --- [10] Core Philosophy (Hover Reveal with Luxury Tone) --- */
.grid-2-gap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.hover-reveal-card {
    position: relative;
    height: 380px;
    border-radius: 0;
    /* No radius */
    overflow: hidden;
    cursor: pointer;
    background: #2A2623;
}

.reveal-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.reveal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.6s;
    filter: grayscale(40%) sepia(15%);
}

.hover-reveal-card:hover .reveal-img img {
    transform: scale(1.05);
    opacity: 0.5;
    filter: grayscale(0%) sepia(5%);
}

.reveal-txt {
    position: absolute;
    z-index: 2;
    padding: 40px;
    transition: 0.5s;
    color: #FCFBFA;
}

.default-txt {
    bottom: 0;
    left: 0;
}

.default-txt h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin: 5px 0 10px;
}

.card-sub {
    font-family: var(--font-en);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(252, 251, 250, 0.7);
}

.hover-txt {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
}

.hover-reveal-card:hover .default-txt {
    opacity: 0;
    transform: translateY(20px);
}

.hover-reveal-card:hover .hover-txt {
    opacity: 1;
}

.curtain-x {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--point-dark);
    opacity: 0.9;
    z-index: 1;
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-reveal-card:hover .curtain-x {
    width: 100%;
}

.curtain-y {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--point-dark);
    opacity: 0.9;
    z-index: 1;
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-reveal-card:hover .curtain-y {
    height: 100%;
}

/* --- [11] Parallax --- */
.parallax-section {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    filter: brightness(0.6);
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* --- [12] Process Grid (Table Style) --- */
.col-fixed-tit {
    width: 280px;
    padding-top: 30px;
}

.col-grid-area {
    flex: 1;
    border-top: 1px solid var(--text-primary);
}

.grid-2-border {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.process-box {
    padding: 50px 40px;
    transition: background 0.3s;
}

.process-box:hover {
    background: var(--bg-white);
}

.border-r {
    border-right: 1px solid var(--border-line);
}

.border-b {
    border-bottom: 1px solid var(--border-line);
}

.step-badge {
    display: inline-block;
    font-family: var(--font-en);
    color: var(--point-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 13px;
    letter-spacing: 1px;
}

.process-box h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.process-box p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* --- [13] 3-Card Programs (Minimal) --- */
.grid-3-gap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.overlay-card {
    position: relative;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    inset: 0;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.7s ease;
}

.overlay-card:hover .card-bg img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.card-content-default {
    position: absolute;
    bottom: 0;
    padding: 35px;
    color: #FCFBFA;
    background: linear-gradient(to top, rgba(32, 27, 21, 0.6), transparent);
    transition: 0.4s;
    width: 100%;
}

.card-content-default h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 5px;
    font-weight: 500;
}

.card-content-default p {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 300;
}

.card-content-hover {
    position: absolute;
    inset: 0;
    background: rgba(148, 124, 104, 0.92);
    /* point-color with opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: 0.5s;
    color: #FCFBFA;
    padding: 20px;
}

.overlay-card:hover .card-content-default {
    opacity: 0;
}

.overlay-card:hover .card-content-hover {
    opacity: 1;
}

.card-content-hover h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 10px;
}

.card-content-hover p {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 300;
}

/* --- [14] FAQ --- */
.layout-sidebar-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
}

.simple-accordion {
    border-top: 1px solid var(--text-primary);
}

.acc-item {
    border-bottom: 1px solid var(--border-line);
}

.acc-header {
    width: 100%;
    padding: 30px 10px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
    color: var(--text-primary);
}

.acc-header:hover {
    color: var(--point-color);
}

.acc-header::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
}

.acc-item.active .acc-header::after {
    content: '-';
    color: var(--point-color);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--bg-white);
}

.acc-body p {
    padding: 0 10px 30px 10px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* --- [15] Footer --- */
.main-footer {
    padding: 80px 0;
    border-top: 1px solid var(--border-line);
    background-color: var(--bg-ivory);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-left strong {
    font-size: 18px;
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-serif);
    color: var(--text-primary);
}

.footer-left p {
    margin: 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.copyright {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 20px;
    display: block;
    font-family: var(--font-en);
    opacity: 0.6;
}

.footer-right {
    display: flex;
    gap: 25px;
}

.footer-right a {
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.footer-right a:hover {
    border-color: var(--text-secondary);
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .section-container {
        padding: 80px 0;
    }

    .header-inner,
    .layout-flex-split,
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .layout-grid-custom-swiper,
    .grid-4-divider,
    .grid-2-gap,
    .grid-3-gap {
        grid-template-columns: 1fr;
    }

    .layout-sidebar-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-slider-section {
        height: 450px;
    }

    .main-hero-title {
        font-size: 32px;
    }

    .hero-caption {
        left: 20px;
        bottom: 30px;
    }

    .grid-item:not(:last-child)::after {
        display: none;
    }

    .grid-item {
        margin-bottom: 50px;
        text-align: center;
        border-bottom: 1px solid var(--border-line);
        padding-bottom: 40px;
    }

    .grid-item:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-list li a {
        padding: 10px 0;
        font-size: 14px;
    }

    .process-box {
        border-right: none !important;
        padding: 30px;
    }

    .col-fixed-tit {
        width: 100%;
        padding-top: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .swiper-controls {
        justify-content: center;
    }
}

/* =========================================
   [1] 프리미엄 패키지 카드 스타일
   ========================================= */
.premium-package-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.premium-package-card {
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(51, 47, 44, 0.04);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-line);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(51, 47, 44, 0.08);
}

@media (min-width: 992px) {
    .premium-package-card {
        flex-direction: row;
    }

    /* 짝수 번째 카드는 좌우 반전 배열 */
    .premium-package-card:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.premium-package-img {
    width: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 992px) {
    .premium-package-img {
        width: 45%;
        min-height: 100%;
    }
}

.premium-package-content {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .premium-package-content {
        width: 55%;
        padding: 50px;
    }
}

.premium-package-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.premium-package-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.premium-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-feature-item {
    background: var(--bg-ivory);
    /* 따뜻한 톤 적용 */
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-line);
    display: flex;
    align-items: center;
}

.premium-feature-item .highlight-badge {
    color: var(--point-dark);
    /* 톤다운된 포인트 컬러 */
    font-weight: 700;
    margin-right: 10px;
}

/* =========================================
   [2] 칼럼 / 저널 인용(Quote) 강조 스타일
   ========================================= */
.quote-story-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.quote-story-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-line);
    position: relative;
    box-shadow: 0 10px 30px rgba(51, 47, 44, 0.02);
    transition: transform 0.3s ease;
}

.quote-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(51, 47, 44, 0.05);
}

.quote-mark {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    line-height: 1;
    font-family: var(--font-en);
    color: rgba(148, 124, 104, 0.15);
    /* 테마 포인트 컬러 기반 투명도 */
    font-weight: bold;
}

.quote-highlight {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    word-break: keep-all;
}

.quote-body {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    word-break: keep-all;
}

.quote-author {
    font-size: 14px;
    color: var(--point-dark);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.quote-author::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--point-color);
    vertical-align: middle;
    margin-right: 10px;
}

/* PC 버전 3단 그리드 */
@media (min-width: 768px) {
    .quote-story-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .quote-story-card {
        padding: 60px 35px 40px;
    }

    .quote-mark {
        top: 10px;
        left: 20px;
        font-size: 100px;
    }

    .quote-highlight {
        font-size: 20px;
    }
}

/* Floating Buttons */
.sns-floating {
    position: fixed;
    right: 16px;
    bottom: 172px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Draft 5 테마 변수 재선언 (bootstrap 등에서 사용하기 위함) */
:root {
    --font-kr: 'Noto Sans KR', sans-serif;
    --font-serif: 'Noto Serif KR', serif;
    --font-en: 'Cormorant Garamond', serif;
    /* 하단에 중복 선언되어 있던 컬러도 시네마틱 톤으로 맞춤 */
    --point-color: #D48D78;
    --text-primary: #332F2C;
}

/* Bootstrap Navbar를 Draft 5 느낌으로 커스텀 */
.navbar {
    font-family: var(--font-kr);
    background-color: rgba(252, 251, 250, 0.95);
    /* 시네마틱 웜톤 배경색 */
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border-line);
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.navbar-brand .logo-text {
    height: 26px;
    margin-left: 8px;
}

.navbar-brand .logo-icon {
    height: 38px;
}

.nav-link {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.show {
    color: var(--point-color) !important;
}

/* 드롭다운 메뉴 스타일 */
.dropdown-menu {
    border: 1px solid var(--border-line);
    box-shadow: 0 10px 30px rgba(51, 47, 44, 0.05);
    /* 웜톤 그림자 */
    border-radius: 8px;
    background-color: var(--bg-white);
}

.dropdown-item {
    font-size: 15px;
    padding: 8px 20px;
    color: var(--text-secondary);
}

.dropdown-item:hover {
    background-color: var(--bg-ivory);
    color: var(--point-color);
}

/* 플래시 메시지 위치 */
.flash-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
}

/* 본문 상단 여백 (Fixed Navbar 때문에 필요) */
body {
    padding-top: 80px;
}