.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* 배경 어두운 투명도 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@media screen and (max-width: 1220px) {
    .pagination_container {bottom: 30px !important;}
    .all-menu {
        height: 66rem !important;

        .nav-wrap {}

        nav {
            left: 0 !important;

            ul {
                display: grid !important;
                grid-template-columns: 1fr 1fr;
                width: 67% !important;

                li {
                    width: 100% !important;
                }
            }
        }
    }

    .current-status {
        & .board {

            & li {
                .count {
                    width: auto !important;
                }
            }
        }
    }
   
    /* .new-pic, .new-video, .new-update {flex-direction: column; gap: 10px;} */
}
@media screen and (max-width: 1500px) {
    .new-update {
        & .info {
            p {
                width: min-content !important;
            }}}
}
.all-menu {
    position: absolute;
    top: 0;
    left: 0;

    background-repeat: no-repeat;
    background-color: #fff;
    width: 100%;
    height: 420px;

    button.closebtn {
        position: absolute;
        top: 40px;
        right: 38px;
        z-index: 1;

    }

    .nav-wrap {
        .title {
            width: 174px;
        }
    }

    nav {
        position: absolute;
        left: 12%;
        width: 100%;
        justify-content: center;
        padding-top: 90px;

        &>ul {
            margin-left: 60px;
            display: flex;
            gap: 40px;
            width: 100%;
        }

        &>ul>li {
            width: 18%;
            z-index: 2;
            height: 237px;
            padding: 0;
            border-radius: 30px;
            background-color: #fbf3f4;
            position: relative;
            min-width: 17rem;

            h6 {
                font-size: 24px;
                text-align: center;
                line-height: 70px;
                height: 70px;
                background-image: linear-gradient(#fff, #fff),
                    linear-gradient(-45deg, #ca3e49, #3d355d);
                background-origin: border-box;
                background-clip: content-box, border-box;
                border: 3px solid transparent;
                border-radius: 15px;
                font-family: "Pretendard-SB";
                white-space: nowrap;
                /* 줄바꿈 금지 */
                overflow: hidden;
                /* 넘치는 텍스트 숨김 */
                text-overflow: ellipsis;


            }

        }
    }

    .submenu {
        /* padding-top: 40px; */
        padding: 40px 30px;


        p {
            position: relative;
            padding-left: 10px;
            font-size: 20px;
            color: #c23d4a;

            a {
                display: contents;
                font-family: "Pretendard-M";
            }
        }

        p:hover a,
        .point-menu a {
            color: #c23d4a;
            font-family: "Pretendard-B";

        }

        p:hover a::after,
        .point-menu a::after {
            content: '';
            background-image: url(../../images/hover.png);
            background-repeat: no-repeat;
            width: 27px;
            height: 27px;
            position: absolute;
            right: 10px;
        }
    }



}

.all-menu::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    background-image: url(../../images/allmenu-bg.png);
    height: 420px;
    width: 100%;
    background-repeat: no-repeat;
}

.visual {
    position: relative;

    .swiper-play-pause-btn {
        color: #fff;
        font-size: 20px;
        display: flex;

        .page-count {
            color: #fff;
        }

        button .anticon {
            font-size: 20px;
            color: #fff;

            svg {
                color: #fff;

                path {
                    color: #fff;
                }
            }

        }

        .anticon svg path {
            color: #fff;
            font-weight: bold;
        }
    }
    /* 셀렉트박스 */
    .custom-select {
        position: relative;
        width: 145px;
        font-size: 20px;
        font-family: "Pretendard-L";
        color: #555;
        cursor: pointer;
      }
      
      .selected-option {
        padding: 10px 15px;
        background: #fff url(../../images/icon/select.png) no-repeat right center;
        background-size: 17px;
      }
      
      .select-options {
        position: absolute;
        width: 100%;
        border: 1px solid #ccc;
        background: #fff;
        max-height: 165px;
        overflow-y: auto;
        z-index: 10;
        top: 42px;
      }
      
      .select-options li {
        padding: 10px 15px;
        cursor: pointer;
      }
      
      .select-options li:hover {
        background-color: #f0f0f0;
      }
}

.search-wrap {
    position: absolute;
    bottom: 174px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 20px;

    .search-area {
        padding-left: 40px;
        display: flex;
        align-items: center;
        gap: 25px;
        background-color: #fff;
        width: 687px;
        height: 76px;
        border-radius: 38px;
        position: relative;

        .search-btn {
            position: absolute;
            right: -1px;
            top: 0;
        }
    }

    .line {
        width: 2px;
        height: 20px;
        background-color: #cccccc;
    }

    input {
        font-size: 20px;
        font-family: "Pretendard-L";
    }

    input::placeholder {
        color: #555;
    }

    .total-btn {
        border-radius: 37.5px;
        width: 150px;
        height: 75px;
        background: linear-gradient(-45deg, #1865c8, #4037aa);

        font-family: "Pretendard-B";
        color: #fff;
        font-size: 20px;

    }

}

.current-status {
    background: linear-gradient(45deg, rgba(50, 52, 94, 0.05), rgba(223, 63, 70, 0.05));
    border-top-right-radius: 80px;
    border-bottom-left-radius: 80px;
    padding: 30px 0;

    .board {
        position: relative;

        background-color: #fff;
        border-radius: 50px;
        display: flex;
        justify-content: space-between;

        ul {
            padding: 49px 0px;
            display: flex;
            margin: 0 37px;
            width: -webkit-fill-available;
            justify-content: space-between;
        }

        li {
            cursor: pointer;

            .labeling {
                display: flex;
                align-self: center;
                justify-content: center;
                margin-bottom: 14px;
            }

            .count {
                font-family: "Pretendard-EB";
                font-size: 32px;
                background-color: #f6f6f6;
                border-radius: 15px;
                width: 150px;
                height: 70px;
                line-height: 70px;
                text-align: center;
            }

        }

        li:hover .count {
            background-color: #fbefef;
            color: #dd1b1b;
        }

        .line {
            width: 2px;
            height: 110px;
            background-color: #eeeeee;
        }

        span {
            font-size: 22px;
            font-family: "Pretendard-SB";
        }

        img {
            margin-right: 10px;
            object-fit: contain;
        }
    }

    .current-banner {
        width: 375px;
        background: linear-gradient(45deg, #32345e, #df3f46);
        border-radius: 50px;

        div {
            position: absolute;
            top: 40px;
            left: 60px;
            display: flex;
            align-items: center;
            gap: 40px;

            span {
                font-family: "MIWON";
                font-size: 30px;
                color: #fff;
            }
        }
    }

    .current-banner::before {
        content: '';
        background-image: url(../../images/direct-btn-bg.png);
        background-repeat: no-repeat;
        position: absolute;
        width: 246px;
        height: 152px;
        top: 101px;
        left: 67px;
    }
}

.new-update {
    .tabs {
        ul {
            display: flex;
            justify-content: center;

            li:first-child::after {
                content: '';
                width: 3px;
                height: 30px;
                background-color: rgba(173, 176, 177, 0.2);
                margin: 0 38px 0 25px;

            }
        }

        .tab-title {
            display: flex;
            align-items: center;
            gap: 13px;

            p {
                cursor: pointer;
                font-family: "HAPPINESS-SANS-REGULAR";
                color: #cccccc;
                font-size: 26px;

                b {
                    color: #cccccc;
                }
            }

        }

        .tab-title.active p {
            color: #000;

            b {
                color: #ff4141;
            }

        }

        .tab-content {
            .content-wrap {
                margin-top: -23px;
            }

            .box-wrap {
                width: 30%;
                height: 370px;

                .box {
                    background-image: linear-gradient(#fff, #fff),
                        linear-gradient(-45deg, #fff, #fff);
                    background-origin: border-box;
                    background-clip: content-box, border-box;
                    border: 3px solid transparent;
                    border-radius: 32px;
                    cursor: pointer;
                }

                .box:hover {
                    background-image: linear-gradient(#fff, #fff),
                        linear-gradient(-45deg, #ca3e49, #3d355d);
                }

                .tab-image {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 30px;
                }

                .img-area {
                    height: 297px;
                }

            }

        }

    }

    .title {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;

        h4 {
            font-family: "HAPPINESS-SANS-title";
            ;
            font-size: 26px;
        }
    }

    .info {
        padding: 24px;
        display: flex;
        justify-content: space-between;

        p {
            width: 250px;
            font-family: "Pretendard-M";
            font-size: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        span {
            width: 115px;
            font-family: "Pretendard-L";
            font-size: 16px;
            color: #666666;
            padding-left: 25px;
            position: relative;
        }

        span::before {
            content: '';
            background-image: url(../../images/icon/date.png);
            display: block;
            width: 19px;
            height: 19px;
            position: absolute;
            left: 0;
        }
    }

    .gopage {
        font-family: "Pretendard-M";
        font-size: 18px;
        text-align: right;

    }

    .gopage::after {
        content: '\002B';
        font-size: 18px;
    }

    .new-pic,
    .new-video {
        display: flex;
        justify-content: space-between;
        margin-top: 50px;

    }

    .media-wrap {
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    .media-box {
        width: 50%;
        border: 1px solid #eeeeee;
        border-radius: 22px;
        cursor: pointer;

        .img-area {
            height: 231px;
        }

        .media-image {
            width: 100%;
            height: 100%;
            border-radius: 22px;
        }
    }

    .new-bodo {
        width: 560px;
        margin-left: 70px;

        .info {
            padding: 18px 7px;
            border-top: 1px solid #eeeeee;
            align-items: center;
            cursor: pointer;

            &:last-child {
                border-bottom: 1px solid #eeeeee;
            }

            p {
                width: 412px;
            }

            span::before {
                background-image: none;
            }
        }
    }
}





/* swiper */

.swiper {
    width: inherit;
    height: 100%;
}

@media screen and (max-width: 1500px) {}

@media screen and (max-width: 1220px) {
    .search-wrap {
        bottom: 20% !important;
        .search-area {
            width: auto;
        }
    }
}

.swiper-wrapper {
    width: inherit !important;
    margin: 0 auto;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: inherit;
    height: 100%;
    object-fit: cover;
}

.swiper-horizontal>.swiper-pagination-progressbar,
.swiper-pagination-progressbar.swiper-pagination-horizontal {
    width: 30rem !important;
    position: initial;
}

.swiper-pagination-progressbar {
    background-color: #fff !important;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background-color: #4557a4 !important;
}

.swiper-button-prev {
    background-image: url(../../images/prev-btn.png);
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    box-shadow: 1px 2px 8px 1px rgba(0, 0, 0, 0.08);
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-prev:after {
    content: '' !important;
}

.swiper-button-next {
    background-image: url(../../images/next-btn.png);
    width: 70px !important;
    height: 70px !important;
    right: 66px;
    border-radius: 50%;
    box-shadow: 1px 2px 8px 1px rgba(0, 0, 0, 0.08);
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    content: '' !important;
}

.slide-index {
    position: absolute !important;
    top: 400px !important;
    left: 814px !important;
    width: 22px !important;
    transform: none !important;

    span {
        font-size: 20px;
        color: #fff;
        font-family: "Pretendard-B";
    }
}

.swiper-pagination-fraction {
    width: fit-content !important;
    font-size: 20px;
    color: #fff !important;
    font-family: "Pretendard-B";
    margin-right: 10px;

    span {
        font-size: 20px;
        color: #fff;
        font-family: "Pretendard-B";
    }
}

.pagination_container {
    display: flex;
    align-items: center;
    gap: 25px;
    position: absolute;
    bottom: 107px;
    left: 50%;
    transform: translateX(-67%);
    z-index: 50;
}