.section1 {
    position: relative;
    margin: auto;
}

.section1 .banner {
    width: 100%;
    height: auto;
}

.section1 .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%; /* 왼쪽에서 중앙으로 위치 */
    transform: translate(-50%, -50%); /* 수직, 수평 중앙 정렬 */
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    text-align: left; /* 텍스트를 왼쪽으로 정렬 */
}

.section1 .text-overlay p {
    color: white;
    font-size: 22px;
    margin-bottom: 15px;
}

.section1 .text-overlay pre {
    color: white;
    font-size: 18px;
    line-height: 1.3;
}
.section2 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}
.section2 .top{
    margin-bottom: 30px;
}
.section2 .top h2{
    font-size: 22px;
    font-weight: 600;

}
.section2 .swiper {
    width: 100%;
    height: 100%;
    overflow: unset !important;
    z-index: 0;
}

.section2 .swiper-slide {
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: 1px solid #eeeeee;
    border-radius: 20px;
    position: relative; /* 자식 요소를 절대 위치로 설정하기 위해 */
    background-repeat: no-repeat;
    background-position: bottom right; /* 오른쪽 아래에 위치 */
    background-size: 20% auto; /* 이미지 크기 조정 */
    background-color: #f4f7fa; /* 기본 배경색 */
    background-position: calc(100% - 20px) calc(100% - 20px); 
    height: 250px;
    z-index: 1; 
    transition: background-color 0.3s; /* 부드러운 전환 효과 */
}

.section2 .swiper-slide:hover {
    background-color: #1b62a3; /* 호버 시 배경 색상 */
    color: white; /* 텍스트 색상 변경 (선택 사항) */
}

.section2 .swiper-slide a {
    padding: 20px;
    width: 100%;
    height: 100%;
    text-align: center;
}
.section2 .swiper-slide a img{
    width:30%;
    margin-bottom: 10px;
}
.section2 .swiper-slide a span {
    font-size: 16px;
    color: #939393;
    margin-bottom: 10px;
    display: block;
}

.section2 .swiper-slide a p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section2 .swiper-slide:hover a span{
    color: #99bad6; /* 호버 시 글자 색상 변경 */
}

.section2 .swiper-slide:hover a p {
    color: #fff; /* 호버 시 글자 색상 변경 */
}

.section2 .list_wrap {
    display: flex;
    flex-wrap: wrap; /* 다음 줄로 자동 배치 */
}

.section2 .list {
    width: 50%; /* 두 개씩 배치 */
    box-sizing: border-box; /* 패딩 및 보더 포함 */
}


.section2 .swiper-horizontal>.swiper-pagination-bullets, .section2 .swiper-pagination-bullets.swiper-pagination-horizontal, .section2 .swiper-pagination-custom, .section2 .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, -40px);
    top: var(--swiper-pagination-top, auto);
    left: unset;
    width: unset;
    right: 10px !important;
}
.section2 .swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1);
    background: #1b62a3 !important;
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 30px)) !important;
    border-radius: 10px !important;
}

.section2 .swiper-pagination-bullet {
     width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 15px)) !important;
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 15px)) !important;
    display: inline-block;
    border:1px solid #1b62a3 !important;
    border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
    background: #ffffff !important;
    opacity: unset !important;
}
.section3 {
    background-color: #f4f7fa; 
    margin : 50px 0;
    overflow: hidden;
}
.section3 .contents {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap; /* 다음 줄로 자동 배치 */
    justify-content: space-between; /* 요소 간의 간격 조정 */
    opacity: 0; /* 초기 상태에서 투명하게 설정 */
    transform: translateY(20px); /* 아래로 이동 */
    animation: slide-up 2.2s forwards; 
}

@keyframes slide-up {
    to {
        opacity: 1; /* 완전히 불투명 */
        transform: translateY(0); /* 원래 위치로 이동 */
    }
}
.section3 .box {
    width: calc(33.33% - 10px); /* 3개씩 배치 */
    margin-bottom: 20px; /* 하단 여백 */
    box-sizing: border-box; /* 패딩 및 보더 포함 */
    background-color: #fff;
    box-shadow: rgb(109 129 210 / 20%) 0px 2px 8px 0px;
    border-radius: 20px;
    transition: color 0.3s;
    
}

/* 마지막 항목이 홀수일 때 오른쪽 여백 추가 */
.section3 .contents .box:nth-last-child(1) {
    margin-right: calc(33.33% - -5px); /* 오른쪽 여백 조정 */
}
.section3 .box:hover {
    color: #1b62a3; /* 호버 시 텍스트 색상 변경 */
}

.section3 .box p {
    padding: 40px 40px 20px;
    font-size: 20px;
    font-weight: 600;
}

.section3 .box pre {
    padding: 0 40px 20px;
    font-size: 18px;
    line-height: 1.3;
    color: inherit; /* 상속된 색상 사용 */
}

.section3 .box:hover p,
.section3 .box:hover pre {
    color: #1b62a3; /* 호버 시 텍스트 색상 변경 */
}
.section3 .box .plus{
    display: flex;
    text-align: right;
    justify-content: flex-end;
}
.section3 .box .plus img{
    
    border-bottom-right-radius: 20px;
    background-color: #1b62a3;
}


.section4 .swiper {
    width: 100%;
    height: 100%;
  }

  .section4 .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .section4 .swiper-slide .banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .section4 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}
.section4 .top{
    margin-bottom: 30px;
}
.section4 .top h2{
    font-size: 22px;
    font-weight: 600;

}
.section4 .swiper {
    width: 100%;
    height: 100%;
    overflow: unset !important;
    z-index: 0;
}


.section4 .swiper-horizontal>.section4 .swiper-pagination-bullets, .section4 .swiper-pagination-bullets.swiper-pagination-horizontal, .section4 .swiper-pagination-custom, .section4 .swiper-pagination-fraction {
    bottom: unset !important;
    left: unset !important;
    top: var(--swiper-pagination-top, -10%)!important;
    right: 10px!important;
    width: fit-content !important;
    display: flex;
}

.section4 .swiper-slide a {
    padding: 20px;
    width: 100%;
    height: 100%;
}
.section4 .swiper-slide a span{
    font-size: 16px;
    color: #939393;
    margin-bottom: 10px;
    display: block;
}
.section4 .swiper-slide a p{
    font-size: 20px;
    font-weight: 600;
}

.section4 .swiper-pagination-bullet {
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 15px)) !important;
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 15px)) !important;
    display: inline-block;
    border:1px solid #1b62a3 !important;
    border-radius: var(--swiper-pagination-bullet-border-radius, 50%);
    background: #ffffff !important;
    opacity: unset !important;
} 

.section4 .swiper-pagination-bullet-active {
    background: #1b62a3 !important;
    width: 30px !important;
    border-radius: 15px
}
.section2 .swiper-pagination-bullet-active {
    background: #1b62a3 !important;
    width: 30px !important;
    border-radius: 15px
}
.section4 .text-overlay {
    position: absolute;
    top: 50%;
    left: 50%; /* 왼쪽에서 중앙으로 위치 */
    transform: translate(-50%, -50%); /* 수직, 수평 중앙 정렬 */
    max-width: 1200px;
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    text-align: left; /* 텍스트를 왼쪽으로 정렬 */
}

.section4 .text-overlay a {
    color: white;
    font-size: 18px;
    margin-top: 15px;
    background-color: #1b62a3;
    padding: 10px 15px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 17%;
}
.section4 .text-overlay a img{
    width: 15%;
}
.section4 .text-overlay pre {
    color: white;
    font-size: 22px;
    line-height: 1.3;
}
@keyframes slideInUp {
    from {
        transform: translateY(50px); /* 아래에서 시작 */
        opacity: 0; /* 투명도 0 */
    }
    to {
        transform: translateY(0); /* 원래 위치 */
        opacity: 1; /* 완전히 보임 */
    }
}
.section5 {
    background-color: #f4f7fa;
    margin: 50px 0;
}
.section5 .contents {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    gap: 10px;
    opacity: 0; /* 초기 투명도 0 */
    transform: translateY(50px); /* 초기 위치 설정 */
    animation: none; /* 애니메이션 초기화 */
    transition: opacity 0.5s ease, transform 0.5s ease; /* 부드러운 전환 효과 */
}
.section5.visible .contents {
    opacity: 1; /* 완전히 보임 */
    transform: translateY(0); /* 원래 위치로 돌아옴 */
    animation: slideInUp 1.5s forwards; /* 애니메이션 적용 */
}
.section5 .contents a {
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.3s ease; /* 부드러운 변화를 위해 전환 추가 */
}

.section5 .contents a:hover {
    transform: scale(1.05); /* 5% 커지는 효과 */
}

.section5 .contents .left{
    width: 50%;
    display: flex;
    gap: 10px;
}
.section5 .contents .left a{
    width: 50%;
    
    box-sizing: border-box; 
    background-color: #fff;
    box-shadow: rgb(109 129 210 / 20%) 0px 2px 8px 0px;
    border-radius: 10px;
    padding: 20px;
    background-repeat: no-repeat; /* 반복하지 않도록 설정 */
    background-position: calc(100% - 20px) calc(100% - 20px); /* 오른쪽 아래에서 20px 떨어진 위치 */
    background-size: 20% auto; /* 이미지 크기 조정 (너비 20px, 높이는 비율에 따라) */
}
.section5 .contents .left a:first-child {
    background-image: url('../img/main-btn-icon-1.png'); 
}
.section5 .contents .left a:nth-child(2) {
    background-image: url('../img/main-btn-icon-2.png'); 
}

.section5 .contents .right{
    width: 50%;
    display: flex;
    gap: 10px;
}
.section5 .contents .right .r_left{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
}
.section5 .contents .right .r_left a{
    width: 100%;
    box-sizing: border-box; 
    background-color: #fff;
    box-shadow: rgb(109 129 210 / 20%) 0px 2px 8px 0px;
    border-radius: 10px;
    padding: 20px;
    background-repeat: no-repeat; /* 반복하지 않도록 설정 */
    background-position: calc(100% - 20px) calc(100% - 40px); /* 오른쪽 아래에서 20px 떨어진 위치 */
    background-size: 20% auto; 
}
.section5 .contents .right .r_left a:first-child {
    background-image: url('../img/main-btn-icon-3.png'); 
}
.section5 .contents .right .r_left a:nth-child(2){
    background-image: url('../img/main-btn-icon-4.png');
}
.section5 .contents .right .btn3{
    width: 50%;
    box-sizing: border-box; 
    background-color: #fff;
    box-shadow: rgb(109 129 210 / 20%) 0px 2px 8px 0px;
    border-radius: 10px;
    padding: 20px;
    background-image: url('../img/main-btn-icon-5.png');  background-repeat: no-repeat; /* 반복하지 않도록 설정 */
    background-position: calc(100% - 20px) calc(100% - 20px); /* 오른쪽 아래에서 20px 떨어진 위치 */
    background-size: 20% auto; /* 이미지 크기 조정 (너비 20px, 높이는 비율에 따라) */
}
.section5 .contents a {
    font-size: 20px;
    font-weight: 600;
}

.section5 .contents pre {
    font-size: 18px;
    line-height: 1.3;
    display: block;
    margin-top: 20px;
}

.section6 {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
}
.section6 ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: rgb(109 129 210 / 20%) 0px 1px 15px 0px;
    border-radius: 10px;
    padding: 30px 0;
}

.section6 li {
    display: flex;
    width: 20%;
    text-align: center;
    border-right: 1px solid #f3f6f9;
    /* border-right: 1px solid #ddd; */
    justify-content: center;
}
.section6 li:last-child {
    border-right: none;
}
.section6 a {
    margin: 5px;
    box-sizing: border-box;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

.section6 a p {
    font-size: 20px;
    font-weight: 600;
}

.section6 a pre {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.3;
}

.section6 a:hover p,
.section6 a:hover pre {
    color: #1b62a3; /* 호버 시 텍스트 색상 변경 */
}

.section6 a img {
    width:32%;
    margin-bottom: 20px;
}
.section7 {
    
    background-color: #f3f6f9;
}
.section7 .contents {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    padding: 50px 0;
    margin: 0 auto;
}

.section7 h3 {
    width: 100%; 
    margin: 20px 0 10px; 
    font-size: 22px;
    font-weight: 600;
}

.section7 .ul_wrap {
    width: 20%;
}
.section7 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 200px; 
    display: flex; 
    flex-direction: column; 
}
.section7 ul li a {
    padding:10px 0 ;
    display: block;
    font-size: 18px;
}
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 2px) !important;
}
.banner_mo {
    display: none;
}

@media screen and (max-width: 767px) {
    .banner_mo {
        display: block;
        width: 100%;
        height: auto;
    }
    .section1 .banner {
        display: none;
    }
    .section2 {
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
        padding: 40px 0;
        position: relative;
        overflow: hidden;
    }
    .section2 .swiper-slide a {
        padding: 20px 0;
        width: 100%;
        height: 100%;
        text-align: center;
    }
    .section3 .contents {
        max-width: 100%;
        width: 90%;
        margin: 0 auto;
        padding: 30px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        opacity: 0;
        transform: translateY(20px);
        animation: slide-up 2.2s forwards;
    }
    .section3 .box {
        width: calc(50% - 8px);
        margin-bottom: 15px;
        border-radius: 15px;
        transition: color 0.3s;
    }
    .section2 .swiper-slide {
        font-size: 18px;
        border-radius: 15px;
    }
    .section2 .swiper-slide a p {
        font-size: 18px;
    }
    .section3 {
        margin: 20px 0;
    }
    .section3 .box p {
        padding: 15px 15px 15px;
        font-size: 18px;
    }
    .section3 .box pre {
        padding: 0 15px 15px;
        font-size: 16px;
        height: 100px;
    }
    .section4 {
        width: 90%;
        max-width: 100%;
        padding: 30px 0;
    }
    .section4 .top {
        margin-bottom: 20px;
    }
    .section4 .top h2 {
        font-size: 20px;
    }
    .section4 .banner {
        display: none !important;
    }
    .section4 .swiper-horizontal>.section4 .swiper-pagination-bullets, .section4 .swiper-pagination-bullets.swiper-pagination-horizontal, .section4 .swiper-pagination-custom, .section4 .swiper-pagination-fraction {
        top: var(--swiper-pagination-top, -25%) !important;
    }
    .section4 .text-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        width: 90%;
        padding: 0;
        border-radius: 10px;
        text-align: left;
    }
    .section4 .text-overlay pre {
        font-size: 17px;
    }
    .section4 .text-overlay a {
        color: white;
        font-size: 16px;
        margin-top: 15px;
        background-color: #1b62a3;
        padding: 5px 10px;
        border-radius: 25px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 60%;
    }
    .section5 {
        margin: 10px 0;
    }
    .section5 .contents {
        display: flex;
        flex-direction: column;
        width: 90%;
        max-width: 100%;
        margin: 0 auto;
        padding: 30px 0;
    }
    .section5 .contents .left {
        width: 100%;
    }
    .section5 .contents .right {
        width: 100%;
        flex-direction: row-reverse;
    }
    .section5 .contents .left a {
        padding: 20px 15px;
        background-position: calc(100% - 15px) calc(100% - 15px);
        background-size: 20% auto;
        height: 180px;
    }
    .section5 .contents .right .r_left a {
        padding: 20px 15px;
        background-position: calc(100% - 15px) calc(100% - 45px);
    }
    .section5 .contents a {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
    }
    .section5 .contents pre {
        font-size: 16px;
        line-height: 1.3;
        display: block;
        margin-top: 10px;
    }
    .section6 {
        width: 90%;
        max-width: 100%;
        margin: 30px auto;
    }
    .section6 ul {
        display: flex;
        flex-wrap: wrap; /* 줄 바꿈 허용 */
        list-style: none;
        padding: 0;
        margin: 0;
        box-shadow: rgb(109 129 210 / 20%) 0px 1px 15px 0px;
        border-radius: 10px;
        padding:0;
    }
    
    .section6 li {
        display: flex;
        width: 33.33%;
        text-align: center;
        justify-content: center;
        padding: 15px;
        align-items: center;
    }
    .section6 li:nth-child(3) {
        border-right: 0;
    }
    .section6 li:nth-last-child(-n+2) {
        width: 50%; /* 마지막 두 개는 각각 50% 차지 */
        border-top: 1px solid #f3f6f9;
    }
    .section6 a {
        margin: 0;
        box-sizing: border-box;
        background-color: #fff;
        padding: 0;
        border-radius: 10px;
        text-align: center;
        width: 100%;
    }
    .section6 a p {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 600;
    }
    .section6 a pre {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.2;
    }
    .section6 a img {
        width: 40%;
        margin-bottom: 10px;
    }
    .section7 {
        display: none;
    }
}