/* S8. Introduce PhishingBlock 2 */

/* ============================================================
   DESKTOP
   ============================================================ */

/* 섹션 배경 */
.landing-section--introduce-2 {
    background-color: #fff;
    background-image: url('/images/landing/ko/08_introduce_phishingblock2/background.png');
    background-size: cover;
    background-position: center;
}

/* 섹션 내부 wrapper (세로 flex) */
.landing-section--introduce-2 .landing-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding-top: 120px;
    box-sizing: border-box;
}

/* 타이틀 wrapper (캐러셀 밖, 슬라이드 공통 헤더) */
.landing-introduce-2__header {
    text-align: center;
}

/* 타이틀 텍스트 */
.landing-introduce-2__title {
    font-size: 56px;
    font-weight: 800;
    color: #111;
    margin: 40px;
}

/* dot 페이지네이션 wrapper (캐러셀 밖, 슬라이드 공통) */
.landing-introduce-2__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 24px;
}

/* 캐러셀 뷰포트 (잘라내는 창) */
.landing-introduce-2__carousel {
    flex: 1;
    display: flex;
    overflow: hidden;
    width: 100%;
    min-height: 0;
}

/* 캐러셀 트랙 (슬라이드들을 옆으로 미는 실제 컨테이너) */
/* overflow:hidden(위)과 슬라이드를 미는 transform(아래)을 같은 엘리먼트에
   걸면, 슬라이드가 옆으로 밀릴 때 "잘라내는 창" 자체도 같이 밀려나서
   2번째 슬라이드부터는 아무것도 안 보이게 된다. 그래서 트랙을 따로 뺐다. */
.landing-introduce-2__track {
    --carousel-slide: 0;
    width: 100%; /* flex:1로 두면 슬라이드 min-width:100%와 서로 너비를 물어
                    순환 참조가 되어 track이 1920보다 넓게 계산 → 콘텐츠가
                    오른쪽으로 쏠린다. 부모 너비에 딱 고정한다. */
    height: 100%;
    display: flex;
    transform: translateX(calc(var(--carousel-slide) * -100%));
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 트랙 — 트랜지션 없이 즉시 이동시킬 때 */
.landing-introduce-2__track.is-instant {
    transition: none;
}

/* 슬라이드 1장 (텍스트 + 이미지) */
.landing-introduce-2__slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--landing-gutter);
    box-sizing: border-box;
    min-height: 0;
}

/* 텍스트 블록 wrapper (배지 + 설명) */
.landing-introduce-2__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-shrink: 0;
}

/* 배지 (알약 모양 라벨) */
.landing-introduce-2__badge {
    display: inline-block;
    background: #DFF2F6;
    color: #00A9D6;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
}

/* 설명 텍스트 */
.landing-introduce-2__desc {
    font-size: 20px;
    font-weight: 700;
    color: #8F9599;
    line-height: 1.5;
    margin: 0;
}

/* 이미지 wrapper — 남은 세로 공간 안에서 이미지가 비율 유지하며 맞춤 */
.landing-introduce-2__visual {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

/* 캐러셀 이미지 (carousel1/2/3.png) — 세로형(819×1125) 대응 */
.landing-introduce-2__visual img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

/* 개별 dot */
.landing-introduce-2__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* 활성 dot */
.landing-introduce-2__dot.is-active {
    background-color: #000;
}



/* ============================================================
   MOBILE — max-width 1139px (see landing_breakpoints.css)
   ============================================================ */

@media (max-width: 1139px) {
    /* 섹션 자체는 폭 전체를 채워서 배경이 화면 끝까지 이어지게 하고,
       콘텐츠(.inner)만 360px로 가운데 고정한다. */
    .landing-section--introduce-2 .landing-section__inner {
        width: 360px;
        margin: 0 auto;
    }

    .landing-introduce-2__carousel {
        flex: none;
        height: 568px;
        overflow: hidden;
    }

    /* 섹션 내부 wrapper — 상단 여백 축소 */
    .landing-section--introduce-2 .landing-section__inner {
        padding-top: 80px;
    }

    /* 타이틀 텍스트 — 폰트 축소 */
    .landing-introduce-2__title {
        color: #14171A;
        text-align: center;
        font-size: 32px;
        font-weight: 800;
        line-height: 1.5;
        margin-bottom: 24px;
        margin-top: 0;
    }

    /* 캐러셀 트랙 — 데스크탑은 JS가 --carousel-slide로 transform을 미는
       방식이지만, 모바일은 스와이프가 곧바로 스크롤이 되도록 네이티브
       scroll-snap-x에 맡긴다(core-common.js의 createCarouselModule이
       이 폭 기준으로 분기). */
    .landing-introduce-2__track {
        height: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transform: none;
    }

    /* 트랙 — 스크롤바 숨김 */
    .landing-introduce-2__track::-webkit-scrollbar {
        display: none;
    }

    /* 슬라이드 1장 — 슬라이드 폭을 트랙(뷰포트)에 고정하고 stretch로
       자식이 줄바꿈되게 함(align-items:center + min-width:100%만으로는
       자식이 max-content 폭으로 부풀어 슬라이드가 뷰포트를 넘쳐 오른쪽으로
       잘렸다). scroll-snap-align은 네이티브 스와이프가 슬라이드 경계에서
       멈추게 하는 지점. */
    .landing-introduce-2__slide {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        width: 100%;
        height: 100%;
        align-items: stretch;
        padding: 0 24px 0;
        min-height: 0;
        gap: 49px;
    }

    .landing-introduce-2__text {
        flex-shrink: 0;
    }

    /* 이미지 wrapper — 캐러셀 높이에서 텍스트 영역을 뺀 나머지에 맞춤 */
    .landing-introduce-2__visual {
        flex: 1;
        min-height: 0;
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    /* 캐러셀 이미지 — 세로형(819×1125) 대응 */
    .landing-introduce-2__visual img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: bottom;
    }

    /* dot 페이지네이션 wrapper */
    .landing-introduce-2__pagination {
        padding-bottom: 24px;
    }

    /* 배지 (알약 모양 라벨) */
    .landing-introduce-2__badge {
        color: #00A9D6;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.5;

        justify-content: center;
        align-items: center;
        border-radius: 8px;
        background: #DFF2F6;
    }

    /* 설명 텍스트 */
    .landing-introduce-2__desc {
        color: #8F9599;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.6;
        padding: 0 16px 0;
    }
}
