/* Swiper 기본 스타일 */
.swiper-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* 네비게이션 버튼 공간 확보 */
}

/* Swiper Navigation 스타일 */
.swiper-navigation {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.swiper-button-next, .swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
}

.swiper-button-next img, .swiper-button-prev img {
    width: 20px;
    height: auto;
}

.swiper-button-next:after, .swiper-button-prev:after {
    display: none;
}

.swiper-pagination {
    display: none;
}

/* Swiper Slide 스타일 */
.swiper-slide {
    display: flex;
    align-items: flex-start; /* 내용이 상단에 맞춰지도록 설정 */
    justify-content: center;
    min-height: 300px; /* 기본 최소 높이 설정 */
    box-sizing: border-box;
    overflow: hidden; /* 콘텐츠가 넘치지 않도록 설정 */
}

.swiper-slide .box {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #ddd; 
    background-color: #fff;
    box-sizing: border-box;
}

.swiper-slide .top_img {
    width: 100%; 
    height: auto;  
}

.swiper-slide .main_icon1 {
    width: 15%; 
    height: auto;    
    background-color: #f36523;
    padding: 10px; 
}

.swiper-slide .main_icon2 {
    width: 15%; 
    height: auto;    
    background-color: #4d3437;
    padding: 10px; 
}

.swiper-slide .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swiper-slide .text_box {
    height: 212px;
    display: flex;
    flex-direction: column;
    padding: 15px 15px 0;
}

.swiper-slide .title {
    margin-top: 10px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* 헤더 스타일 */
.header_index {
    position: relative;
    display: inline-block;
}

.header_index .banner {
    display: block;
    width: 100%;
    height: auto;
}

.header_index .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
}

.header_index .text-overlay .back {
    position: absolute;
    top: 50%;
    left: 150px;
    transform: translateY(-50%);
    z-index: 10;
}

.header_index .text-overlay .text-content {
    position: relative;
    display: inline-block;
    color: #fff;
}

.header_index .text-overlay span {
    font-size: 18px;
    font-family: 'GmarketSansLight';
    color: #fff;
    font-weight: 800;
    padding: 10px 35px;
    background-color: #f36523;
    display: inline-flex;
    border-radius: 30px;
    align-items: center;
    margin-bottom: 10px;
}

.header_index .text-overlay p {
    font-size: 22px;
    font-family: 'GmarketSansLight';
    color: #fff;
    font-weight: 800;
    display: block;
    margin-top: 20px;
    line-height: 1.5;
}

/* 섹션 스타일 */
.section1 {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
    position: relative;
}

.section1 .title {
    font-size: 20px;
    font-weight: 600;
}

.section1 pre {
    font-size: 18px;
    line-height: 1.3;
}

.section1 h2 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #f36523;
    margin-bottom: 30px;
    padding: 0 60px;
}

.section2 {
    position: relative;
}

.section2 .banner {
    width: 100%;
    height: auto;
}

.section2 .text-overlay {
    position: absolute;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    margin: 50px 0;
    padding: 20px 0;
    box-sizing: border-box;
}

.section2 .btn_wrap {
    display: flex;
    gap: 20px;
}

.section2 .s_banner_wrap {
    position: relative;
    width: 100%;
}

.section2 .s_banner {
    width: 100%; 
    height: auto;
}

.section2 .text-overlay2 {
    position: absolute;
    top: 35%; /* 텍스트 오버레이를 이미지 하단에 위치시키기 */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    width: 100%; /* 텍스트 오버레이의 너비 설정 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.section2 .text-overlay p {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    font-family: 'GmarketSansLight' !important;
    margin-bottom: 50px;
}

.section2 .text-overlay2 span {
    color: #fff;
    line-height: 1.3;
    font-size: 20px;
}

.section2 .text-overlay2 img {
    width: 15%; 
    height: auto;    
    background-color: #f36523;
    padding: 10px; 
    margin-top: 30px;
}

.section3 {
    max-width: 1200px;
    width: 100%;
    margin: 50px auto;
    text-align: center;
}

.section3 span {
    font-size: 18px;
    font-family: 'GmarketSansLight' !important;
    color: #fff;
    font-weight: 600;
    padding: 10px 35px;
    background-color: #f36523;
    display: inline-flex;
    border-radius: 30px;
    align-items: center;
    margin-bottom: 10px;
}

.section3 p {
    font-size: 22px;
    font-family: 'GmarketSansLight' !important;
    font-weight: 600;
    display: block;
    margin-top: 20px;
    line-height: 1.3;
}

.section3 .btn_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.section3 .btn_wrap a {
    width: 50%;
    border: 1px solid #ddd;
    padding: 30px 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
}

.section3 .btn_wrap a img {
    width: 10%;
}

.header_index_mo {
    display: none;
}

.section2_mo {
    display: none;
}

/* 모바일 뷰 */
@media screen and (max-width: 767px) { 
    .swiper-container {
        padding: 0 40px;
        width: 100%;
    }
    .swiper-slide .flex {
        align-items: flex-start;
    }
    .swiper-slide {
        display: flex;
        align-items: flex-start; /* 상단 정렬 */
        justify-content: center;
        min-height: 300px; /* 기본 최소 높이 설정 */
        box-sizing: border-box;
        overflow: hidden; /* 콘텐츠가 넘치지 않도록 설정 */
    }

    .swiper-slide .box {
        width: 100%;
        height: 425px;
    }

    .swiper-slide .top_img {
        width: 100%; 
        height: auto;
    }

    .swiper-slide .main_icon1, .swiper-slide .main_icon2 {
        width: 20%; 
        padding: 3px;
    }

    .swiper-slide .text_box {
        height: unset; 
        padding: 5px 10px;
    }

    .section1 .title {
        font-size: 14px;
    }
    
    .swiper-slide .title {
        margin-top: 5px;
        align-items: center;
        padding: 5px 8px;
    }

    .section1 pre {
        font-size: 14px;
        line-height: 1.3;
    }

    .header_index {
        display: none;
    }

    .header_index_mo {
        display: block;
    }

    header .text-overlay p {
        font-size: 18px;
        margin-top: 10px;
    }

    header .text-overlay span {
        font-size: 16px;
        margin-bottom: 0px;
    }

    .section1 {
        max-width: 100%;
        width: 100%;
        margin: 30px auto;
    }

    .section1 h2 {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 0 40px;
    }

    .section2 {
        display: none;
    }

    .section2_mo {
        position: relative;
        display: block;
    }
    
    .section2_mo .banner {
        width: 100%;
        height: auto;
    }
    
    .section2_mo .text-overlay {
        position: absolute;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 100%;
        margin: 20px 0;
        padding: 20px 0;
        box-sizing: border-box;
    }
    
    .section2_mo .btn_wrap {
        display: flex;
        gap: 10px;
    }
    
    .section2_mo .s_banner_wrap {
        position: relative;
        width: 100%;
    }
    
    .section2_mo .s_banner {
        width: 105px; 
        height: auto;
    }
    
    .section2_mo .text-overlay2 {
        position: absolute;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        padding: 10px;
        text-align: center;
        border-radius: 5px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    
    .section2_mo .text-overlay p {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        font-family: 'GmarketSansLight' !important;
        margin-bottom: 20px;
    }

    .section2_mo .text-overlay2 span {
        color: #fff;
        line-height: 1.3;
        font-size: 13px;
    }

    .section2_mo .text-overlay2 img {
        width: 30%;
        height: auto;
        background-color: #f36523;
        padding: 3px;
        margin-top: 10px;
    }

    .section3 {
        max-width: 100%;
        width: 90%;
        margin: 40px auto;
        text-align: center;
    }

    .section3 span {
        font-size: 16px;
        margin-bottom: 0px;
    }

    .section3 p {
        font-size: 18px;
        margin-top: 20px;
    }

    .section3 .btn_wrap a img {
        width: 20%;
        height: auto;
    }

    .section3 .btn_wrap a {
        padding: 20px 10px;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
        line-height: 1.3;
        text-align: left;
    }

    .section3 .btn_wrap {
        align-items: stretch;
        gap: 8px;
        margin-top: 20px;
    }
}
