/* 인트로 */
.cbi-intro,
.cbi-intro * {
    box-sizing: border-box;
}

.cbi-intro {
    position: relative;

    width: 100%;
    height: 100vh;
    min-height: 700px;

    overflow: hidden;

    color: #fff;

    font-family:
        "Pretendard",
        "Noto Sans KR",
        sans-serif;

    background: #000;
}

.cbi-intro a {
    color: inherit;
    text-decoration: none;
}

.cbi-intro-bg {
    position: absolute;

    inset: 0;

    z-index: 0;

    overflow: hidden;
}


.cbi-intro-bg-item {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 0;

    transform: scale(1.015);

    animation:
        cbi-intro-background 30s infinite;
}

.cbi-intro-bg-item--01 {
    background-image: url("/images/layout/intro_bg01.jpg");

    animation-delay: 0s;
}

.cbi-intro-bg-item--02 {
    background-image: url("/images/layout/intro_bg02.jpg");

    animation-delay: 5s;
}

.cbi-intro-bg-item--03 {
    background-image: url("/images/layout/intro_bg03.jpg");

    animation-delay: 10s;
}

.cbi-intro-bg-item--04 {
    background-image: url("/images/layout/intro_bg04.jpg");

    animation-delay: 15s;
}

.cbi-intro-bg-item--05 {
    background-image: url("/images/layout/intro_bg05.jpg");

    animation-delay: 20s;
}

.cbi-intro-bg-item--06 {
    background-image: url("/images/layout/intro_bg06.jpg");

    animation-delay: 25s;
}

@keyframes cbi-intro-background {

    0% {
        opacity: 0;
        transform: scale(1.015);
    }

    2% {
        opacity: 1;
    }

    13% {
        opacity: 1;
        transform: scale(1);
    }

    20% {
        opacity: 0;
        transform: scale(1.015);
    }

    100% {
        opacity: 0;
        transform: scale(1.015);
    }
}

.cbi-intro-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background: rgba(0, 0, 0, 0.4);
}

.cbi-intro-guides {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;
}


.cbi-intro-guide {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 1px;

    background: rgba(255, 255, 255, 0.05);
}

.cbi-intro-guide--01 {
    left: 40%;
}

.cbi-intro-guide--02 {
    left: 60%;
}

.cbi-intro-guide--03 {
    left: 80%;
}


.cbi-intro-welcome {
    position: absolute;

    top: 0;
    left: 0;

    width: 40%;
    height: 100%;

    z-index: 5;

    pointer-events: none;
}


.cbi-intro-welcome-inner {
    position: absolute;

    left: 20.8%;

    top: 50%;

    transform: translateY(-50%);
}


.cbi-intro-brand {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 34px;
}


.cbi-intro-brand-symbol {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 230px;
    height: auto;
}


.cbi-intro-brand-symbol img {
    display: block;

    width: 100%;
    height: auto;
}

.cbi-intro-welcome-title {
    margin: 0;

    font-size: clamp(38px, 3vw, 58px);

    color: #FFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.40);
    font-family: Pretendard;
    font-size: 46px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: -1.84px;

    white-space: nowrap;
}

.cbi-intro-sites {
    position: absolute;

    top: 0;
    right: 0;

    width: 60%;
    height: 100%;

    z-index: 10;

    display: flex;
}

.cbi-intro-site {
    position: relative;

    flex: 0 0 33.333333%;

    width: 33.333333%;
    height: 100%;

    border-left: 1px solid rgba(255, 255, 255, 0.05);

    background: transparent;

    transition:
        background-color 0.45s ease;
}

.cbi-intro-site:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.cbi-intro-site:hover {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(4px);
}

.cbi-intro-site-inner {
    position: absolute;

    left: 0;
    right: 0;

    top: 50%;

    width: 100%;

    padding: 0 48px;

    transform: translateY(-50%);
}

.cbi-intro-site-line {
    display: block;

    width: 48px;
    height: 3px;

    margin-bottom: 32px;

    background: #a1987f;

    transition:
        width 0.35s ease,
        margin-bottom 0.35s ease;
}


.cbi-intro-site:hover .cbi-intro-site-line {
    width: 44px;
}

.cbi-intro-site-title {
    margin: 0;

    color: #FFF;
    font-family: Pretendard;
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px;
    letter-spacing: -0.28px;

    white-space: nowrap;
}

.cbi-intro-site-eng {
    margin: 16px 0 0;

    color: #FFF;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; 
    opacity: 0.6;
}

.cbi-intro-site-detail {
    max-height: 0;

    margin-top: 0;

    overflow: hidden;

    opacity: 0;

    transform: translateY(18px);

    transition:
        max-height 0.55s ease,
        margin-top 0.45s ease,
        opacity 0.35s ease,
        transform 0.55s ease;
}

.cbi-intro-site:hover .cbi-intro-site-detail {
    max-height: 260px;

    margin-top: 45px;

    opacity: 1;

    transform: translateY(0);
}

.cbi-intro-site-description {
    margin: 0;

    color: #FFF;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px; 
    opacity: 0.8;
}

.cbi-intro-site-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 148px;
    height: 48px;

    margin-top: 80px;

    background: #87806B;
    color: #fff;

    text-align: center;

    font-family: Pretendard;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;

    text-decoration: none;

    overflow: hidden;

    transition:
        background-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.cbi-intro-site-button > span {
    transition: transform 0.35s ease;
}

.cbi-intro-site-button > i {
    position: absolute;

    right: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    opacity: 0;

    transform: translateX(-8px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.cbi-intro-site-button > i svg {
    display: block;

    width: 17px;
    height: 17px;
}

.cbi-intro-site-button:hover {
    color: #fff;

    background: #686252;

    transform: translateY(-3px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}


.cbi-intro-site-button:hover > span {
    transform: translateX(-7px);
}


.cbi-intro-site-button:hover > i {
    opacity: 1;

    transform: translateX(0);
}

/* =========================================
   반응형
========================================= */

/* 태블릿 */
@media (max-width: 1200px) {

    .cbi-intro-welcome-inner {
        left: 10%;
    }

    .cbi-intro-brand-symbol {
        width: 190px;
    }

    .cbi-intro-welcome-title {
        font-size: 38px;
    }

    .cbi-intro-site-inner {
        padding: 0 32px;
    }

    .cbi-intro-site-title {
        font-size: 28px;
    }

    .cbi-intro-site-description {
        font-size: 14px;
        line-height: 24px;
    }

    .cbi-intro-site-button {
        margin-top: 60px;
    }
}


/* 태블릿 세로 / 작은 태블릿 */
@media (max-width: 900px) {

    .cbi-intro {
        min-height: 600px;
    }

    .cbi-intro-welcome {
        width: 35%;
    }

    .cbi-intro-sites {
        width: 65%;
    }

    .cbi-intro-welcome-inner {
        left: 10%;
    }

    .cbi-intro-brand-symbol {
        width: 160px;
    }

    .cbi-intro-welcome-title {
        font-size: 32px;
        letter-spacing: -1.2px;
    }

    .cbi-intro-site-inner {
        padding: 0 24px;
    }

    .cbi-intro-site-line {
        width: 36px;
        margin-bottom: 24px;
    }

    .cbi-intro-site-title {
        font-size: 23px;
        line-height: 1.3;
    }

    .cbi-intro-site-eng {
        font-size: 12px;
    }

    .cbi-intro-site-detail {
        display: none;
    }

    .cbi-intro-site-button {
        width: 125px;
        height: 44px;
        margin-top: 40px;
    }
}


/* 모바일 */
@media (max-width: 767px) {

    .cbi-intro {
        height: 100svh;
        min-height: 640px;
    }

    /* 배경 */
    .cbi-intro-bg-item {
        background-position: center center;
    }

    /* 가이드 제거 */
    .cbi-intro-guides {
        display: none;
    }

    /* 좌측 Welcome 영역 */
    .cbi-intro-welcome {
        position: absolute;

        top: 0;
        left: 0;

        width: 100%;
        height: 38%;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cbi-intro-welcome-inner {
        position: static;

        width: 100%;

        padding: 0 24px;

        text-align: center;

        transform: none;
    }

    .cbi-intro-brand {
        justify-content: center;

        margin-bottom: 18px;
    }

    .cbi-intro-brand-symbol {
        width: 170px;
    }

    .cbi-intro-welcome-title {
        font-size: 28px;
        line-height: 1.3;
        letter-spacing: -1px;

        white-space: normal;
    }


    /* 사이트 영역 */
    .cbi-intro-sites {
        position: absolute;

        top: 38%;
        right: 0;

        width: 100%;
        height: 62%;

        display: flex;
        flex-direction: column;
    }

    .cbi-intro-site {
        flex: 1 1 auto;

        width: 100%;
        height: 33.333%;

        min-height: 0;

        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 0;
    }

    .cbi-intro-site:last-child {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* 모바일에서는 hover 배경 효과 제거 */
    .cbi-intro-site:hover {
        background: rgba(0, 0, 0, 0.2);

        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .cbi-intro-site-inner {
        position: relative;

        top: auto;
        left: auto;
        right: auto;

        height: 100%;

        padding: 20px 24px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        transform: none;
    }

    .cbi-intro-site-line {
        width: 30px;
        height: 2px;

        margin-bottom: 14px;
    }

    .cbi-intro-site-title {
        font-size: 21px;
        line-height: 1.3;

        white-space: normal;
    }

    .cbi-intro-site-eng {
        margin-top: 7px;

        font-size: 11px;
    }

    /* 모바일에서는 상세 설명 숨김 */
    .cbi-intro-site-detail {
        display: none;
    }

    .cbi-intro-site-button {
        width: 110px;
        height: 38px;

        margin-top: 14px;

        font-size: 12px;
    }

    .cbi-intro-site-button > i {
        display: none;
    }

    .cbi-intro-site-button:hover {
        transform: none;
        box-shadow: none;
    }

    .cbi-intro-site-button:hover > span {
        transform: none;
    }
}


/* 작은 모바일 */
@media (max-width: 480px) {

    .cbi-intro {
        min-height: 600px;
    }

    .cbi-intro-welcome {
        height: 35%;
    }

    .cbi-intro-sites {
        top: 35%;
        height: 65%;
    }

    .cbi-intro-brand-symbol {
        width: 145px;
    }

    .cbi-intro-welcome-title {
        font-size: 24px;
    }

    .cbi-intro-site-inner {
        padding: 16px 20px;
    }

    .cbi-intro-site-line {
        margin-bottom: 10px;
    }

    .cbi-intro-site-title {
        font-size: 18px;
    }

    .cbi-intro-site-eng {
        font-size: 10px;
    }

    .cbi-intro-site-button {
        width: 100px;
        height: 34px;

        margin-top: 10px;

        font-size: 11px;
    }
}