/* 언어설정 */
@charset 'utf-8';

@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KCCHyerim-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 전체설정 */
* {
    margin: 0;
    padding: 0;
    font-family: 'SUIT-Regular';
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;


}

.body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    /* 스크롤 막기 */
    touch-action: none;
    /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

/* 상세설정 ---------------------------------------------------------------------------- */

.success-section {
    position: relative;
    height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
    /* 내부가 잘려보이지 않도록 대응 */
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #e9f3fa;
    background-size: cover;
    background-position: center;
    opacity: 1;
    /* ✅ 투명도 조절 */
    z-index: -1;
}

.inner_txt{
    width: 100%;
}

.success-section .inner_txt {
    max-width: 91rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    width: 100%;
}

.success-sub-title{
    font-size: 16px;
}

.success-section .inner_txt .success-title {
    font-size: 2.5875rem;
    color: #333;
    font-weight: bold;
    display: inline-block;
    padding: 0.3125rem 0;
    text-align: left;
    /* ← 추가 */
    width: 12%;
    /* ← 전체 너비 차지 */
}

.success-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    max-width: 91rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}


.success_left img {
    width: auto;
    height: 100%;
    max-height: 34.375rem;
    /* 세로 길이 조절 가능 */
    display: block;
    border: #C4E5FF 0.625rem solid;
    margin-left: -3.125rem;
}

.success_right {
    display: flex;
    flex-direction: column;
}

.success-button {
    display: flex;
    margin-bottom: 2.5rem;
    justify-content: space-between;
    align-items: center;
}

.success-button .arrow-buttons {}

.success-button .arrow-buttons .arrow {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin-right: 0.9375rem;
    color: var(--main-white);
    font-size: 1.5625rem;
    font-weight: bold;
}

.success-button .arrow-buttons .left {
    background-color: #2883C9;
}

.success-button .arrow-buttons .right {
    background-color: #08426E;
}

.success-button .more {
    margin-right: auto;  /* ✅ 오른쪽 끝으로 보냄 */
}

.more-btn {
    display: inline-block;
    padding: 0.625rem 1.5625rem;
    border: 0.125rem solid var(--main-navi);
    /* 네이비색 테두리 */
    border-radius: 1.875rem;
    /* 둥근 형태 */
    color: var(--main-navi);
    font-weight: bold;
    font-size: 1.0rem;
    background-color: var(--main-white);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 5rem;
}
.category-buttons {
    display: flex;
    flex-direction: row; /* ← ✅ 가로 정렬 */
    flex-wrap: wrap;     /* ← ✅ 너비 넘칠 때 줄바꿈 허용 */
    gap: 1rem;
    margin-top: 1.6rem;    /* ← ✅ 성공사례 제목 밑으로 띄우기 */
    margin-left: 0;      /* ← ✅ 가운데 정렬 */
    justify-content: flex-start; /* 왼쪽 정렬 (center도 가능) */
}
.category-btn {
    display: block;         /* 또는 생략해도 됨 */
    padding: 0.625rem 1.5625rem;
    border: 0.125rem solid var(--main-navi);
    border-radius: 1.875rem;
    color: var(--main-navi);
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.category-btn:hover{
    background-color: var(--main-navi);
    color: #f0f0f0;
}

.more-btn:hover {
    background-color: var(--main-navi);
    color: white;
}


.success-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    width: 75.0rem;
    overflow: hidden;
    position: relative;
    max-height: none;
    margin-left: -3.375rem;
    box-sizing: border-box;
    padding-left: 0;  /* 👈 여유 공간 추가 */
    padding-right: 1.25rem;
}

.success-list, .success-card {
    box-sizing: border-box;
}

.success-list {
    display: flex;
    gap: 1.25rem;
    transform: translateX(0);
    transition: transform 0.4s ease;
    will-change: transform;
    padding-left: 0;
}
.success-list .success-card {
    background-color: #ffffff;
    /* 연한 파랑 배경 */
    border: 0.0625rem solid #c5dbe7;
    padding: 1.5rem;
    height: 20rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    color: #333;
    line-height: 1.2;
    transition: transform 0.3s ease;
    position: relative;
    /* ✅ z-index를 적용하려면 필요 */
    flex: 0 0 calc((100% - 2.5rem) / 3); /* 👉 gap이 1.25rem이므로 총 gap 2개 = 2.5rem */
    max-width: calc((100% - 2.5rem) / 3);
    min-width: calc((100% - 2.5rem) / 3); /* ✅ 추가 */
    flex-shrink: 0;
    display: block;
    margin-top: 10px;
}

.success-card:hover {
    transform: translateY(-0.25rem);
    z-index: 2;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.625rem;
    color: var(--main-navi);
}

.tag {
    display: inline-block;
    background-color: #204B62;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.card-divider {
    border: none;
    border-top: 0.0625rem solid #ccc;
    margin: 0.9375rem 0;
    width: 100%;
}


.card-summary {
    font-size: 1.0rem;
    color: #333;
    line-height: 1.5625rem;
}

.success-cards-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-cards-wrapper {
    overflow: hidden;
    width: 100%;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background-color: #204B62;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    cursor: pointer;
}

.arrow.left {
    left: -3.5rem;
}

.arrow.right {
    right: -3.5rem;
}

/* 미디어 쿼리 구간------------------------------------------------------------------------------------- */


/* PC 전용 */
@media screen and (min-width: 90.0rem) {
    .success-sub-title{
        text-decoration: none;
        margin-left: 15px;
    }

    .success-section .inner_txt{
        padding: 6.5rem 1.25rem;
    }

    .mobile-more-arrows{
        display: none;
    }
}

/* 노트북 전용 */

@media screen and (min-width: 64rem) and (max-width: 89.9375rem) {
    .success-section {
        height: auto;
        padding: 1rem 0;
    }

    .success-section .inner_txt .success-title {
        width: auto;
        font-size: 1.6rem;
        margin-left: 0;
    }

    .success-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-left: 0;
    }

    .success-sub-title {
        font-size: 0.75rem;
        text-decoration: none;
    }

    .success-content {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .success_right {
        height: auto;
        margin-top: 0;
    }

    .success-cards-container {
        position: relative;
        width: 100%;
    }

    .success-cards-wrapper {
        overflow-x: hidden;
        position: relative;
        margin: 0 auto;
        width: 100%;
    }

    .success-list {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.4s ease;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .success-list .success-card {
        flex: 0 0 33%;
        max-width: 33%;
        min-width: 33%;
        margin: 0 auto;
        height: 18rem;
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid #c5dbe7;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        scroll-snap-align: center;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .card-summary {
        font-size: 0.8rem;
        line-height: 1.3;
        max-height: 4rem;
        width: 100%;
        text-overflow: ellipsis;
    }

    .arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
        z-index: 10;
    }

    .arrow.left {
        left: -1rem;
    }

    .arrow.right {
        right: 22.8rem;
    }

    .more-btn {
        display: none;
    }

    .category-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .category-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .success_left img {
        height: auto;
        max-width: 100%;
    }

    .review-list-wrap {
        margin: 0 10px;
        padding-bottom: 1.875rem;
    }

    /* ✅ 기존 화살표 숨기기 (모바일 전용) */
    .success-cards-container .arrow {
        display: none;
    }

    /* ✅ 모바일용 화살표 + 더보기 버튼 */
    .mobile-more-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .mobile-more-arrows .mobile-arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
        border-radius: 50%;
        border: none;
        background-color: #204B62;
        color: white;
        cursor: pointer;
    }

    .mobile-more-arrows .mobile-more-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        white-space: nowrap;
        border: 0.125rem solid;
        border-radius: 40px;
        color: var(--main-navi);
        font-weight: bold;
    }
}

/* 태블릿 전용 */
@media screen and (min-width: 48rem) and (max-width: 63.9375rem) {
    .success-section {
        height: auto;
        padding: 1rem 0;
    }

    .success-section .inner_txt .success-title {
        width: auto;
        font-size: 1.6rem;
        margin-left: 0;
    }

    .success-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-left: 0;
    }

    .success-sub-title {
        font-size: 0.75rem;
        text-decoration: none;
    }

    .success-content {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .success_right {
        height: auto;
        margin-top: 0;
    }

    .success-cards-container {
        position: relative;
        width: 100%;
    }

    .success-cards-wrapper {
        overflow-x: hidden;
        position: relative;
        margin: 0 auto;
        width: 100%;
    }

    .success-list {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.4s ease;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .success-list .success-card {
        flex: 0 0 50%;
        max-width: 50%;
        min-width: 50%;
        margin: 0 auto;
        height: 16rem;
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid #c5dbe7;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        scroll-snap-align: center;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .card-summary {
        font-size: 0.8rem;
        line-height: 1.3;
        max-height: 4rem;
        width: 100%;
        text-overflow: ellipsis;
    }

    .arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
        z-index: 10;
    }

    .arrow.left {
        left: -1rem;
    }

    .arrow.right {
        right: 22.8rem;
    }

    .more-btn {
        display: none;
    }

    .category-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .category-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .success_left img {
        height: auto;
        max-width: 100%;
    }

    .review-list-wrap {
        margin: 0 10px;
        padding-bottom: 1.875rem;
    }

    /* ✅ 기존 화살표 숨기기 (모바일 전용) */
    .success-cards-container .arrow {
        display: none;
    }

    /* ✅ 모바일용 화살표 + 더보기 버튼 */
    .mobile-more-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .mobile-more-arrows .mobile-arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
        border-radius: 50%;
        border: none;
        background-color: #204B62;
        color: white;
        cursor: pointer;
    }

    .mobile-more-arrows .mobile-more-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        white-space: nowrap;
        border: 0.125rem solid;
        border-radius: 40px;
        color: var(--main-navi);
        font-weight: bold;
    }
}


/* 모바일 전용 */
@media screen and (min-width: 30.0625rem) and (max-width: 47.9375rem) {
    .success-section {
        height: auto;
        padding: 1rem 0;
    }

    .success-section .inner_txt .success-title {
        width: auto;
        font-size: 1.6rem;
        margin-left: 0;
    }

    .success-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-left: 0;
    }

    .success-sub-title {
        font-size: 0.75rem;
        text-decoration: none;
    }

    .success-content {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .success_right {
        height: auto;
        margin-top: 0;
    }

    .success-cards-container {
        position: relative;
        width: 100%;
    }

    .success-cards-wrapper {
        overflow-x: hidden;
        position: relative;
        margin: 0 auto;
        width: 100%;
    }

    .success-list {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.4s ease;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .success-list .success-card {
        flex: 0 0 30%;
        max-width: 30%;
        min-width: 30%;
        margin: 0 auto;
        height: auto;
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid #c5dbe7;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        scroll-snap-align: center;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .card-summary {
        font-size: 0.8rem;
        line-height: 1.3;
        max-height: 4rem;
        width: 100%;
        text-overflow: ellipsis;
    }

    .arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
        z-index: 10;
    }

    .arrow.left {
        left: -1rem;
    }

    .arrow.right {
        right: 22.8rem;
    }

    .more-btn {
        display: none;
    }

    .category-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .category-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .success_left img {
        height: auto;
        max-width: 100%;
    }

    .review-list-wrap {
        margin: 0 10px;
        padding-bottom: 1.875rem;
    }

    /* ✅ 기존 화살표 숨기기 (모바일 전용) */
    .success-cards-container .arrow {
        display: none;
    }

    /* ✅ 모바일용 화살표 + 더보기 버튼 */
    .mobile-more-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .mobile-more-arrows .mobile-arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
        border-radius: 50%;
        border: none;
        background-color: #204B62;
        color: white;
        cursor: pointer;
    }

    .mobile-more-arrows .mobile-more-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        white-space: nowrap;
        border: 0.125rem solid;
        border-radius: 40px;
        color: var(--main-navi);
        font-weight: bold;
    }
}

/* 작은 모바일 전용 */
@media screen and (max-width: 30.0rem) and (orientation: portrait) {
    .success-section {
        margin-top: -5rem;
        height: auto;
        padding: 1rem 0;
    }

    .success-section .inner_txt .success-title {
        width: auto;
        font-size: 1.6rem;
        margin-left: 0;
    }

    .success-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-left: 0;
    }

    .success-sub-title {
        font-size: 0.75rem;
        text-decoration: none;
    }

    .success-content {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .success_right {
        height: auto;
        margin-top: 0;
    }

    .success-cards-container {
        position: relative;
        width: 100%;
    }

    .success-cards-wrapper {
        overflow-x: hidden;
        position: relative;
        margin: 0 auto;
        width: 100%;
    }

    .success-list {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.4s ease;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .success-list .success-card {
        flex: 0 0 48%;
        max-width: 48%;
        min-width: 48%;
        margin: 0 auto;
        height: auto;
        padding: 1rem;
        background-color: #ffffff;
        border: 1px solid #c5dbe7;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        scroll-snap-align: center;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .card-summary {
        font-size: 0.8rem;
        line-height: 1.3;
        max-height: 4rem;
        width: 100%;
        text-overflow: ellipsis;
    }

    .arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
        z-index: 10;
    }

    .arrow.left {
        left: -1rem;
    }

    .arrow.right {
        right: 22.8rem;
    }

    .more-btn {
        display: none;
    }

    .category-buttons {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .category-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .success_left img {
        height: auto;
        max-width: 100%;
    }

    .review-list-wrap {
        margin: 0 10px;
        padding-bottom: 1.875rem;
    }

    /* ✅ 기존 화살표 숨기기 (모바일 전용) */
    .success-cards-container .arrow {
        display: none;
    }

    /* ✅ 모바일용 화살표 + 더보기 버튼 */
    .mobile-more-arrows {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: -1.5rem;
    }

    .mobile-more-arrows .mobile-arrow {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
        border-radius: 50%;
        border: none;
        background-color: #204B62;
        color: white;
        cursor: pointer;
    }

    .mobile-more-arrows .mobile-more-btn {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
        white-space: nowrap;
        border: 0.125rem solid;
        border-radius: 40px;
        color: var(--main-navi);
        font-weight: bold;
    }
}



