@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

.section-widget {
    max-width: 1400px;
    margin: 30px auto;
}

.widget-box {
    gap: 36px;
    display: flex;
    justify-content: space-between;
    flex-direction: row;

    .widget-banner {
        width: 556px;
        height: 500px;
    }
    
    .widget-notice {
        width: calc(100% - 556px);
        /* background-color: #9F8B86;; */
        /*background-color: rgb(218 140 36);*/
        background-color: #1A3A6B;
        border-radius: 30px;
        padding: 30px 45px;
    }
}

.widget-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: GMarketSans, sans-serif;

    ul {
        display: flex;
        gap: 10px;
        align-items: center;

        li {
            font-size: 20px;
            line-height: 26px;
            cursor: pointer;
            padding: 4px 15px;
            border-radius: 56px;
            font-weight: 600;

            a {
                color: #fff;
                font-size: 18px;
            }

            &.active {
                background-color: #fff;
                font-weight: bold;

                a {
                    /* color: #91675D; */
                    color: #1A3A6B;
                    line-height: 26px;
                }
            }
        }
    }

    h1 {
        font-size: 24px;
        margin-right: 32px;
        line-height: 46px;
        color: #fff;
    }

    .more {
        display: flex;
        align-items: center;
        margin-left: auto;
        color: #fff;
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .widget-head ul li a {
        color: #fff;
        font-size: 14px;
    }

}

.widget-banner {
    border-radius: 30px;
    overflow: hidden;
}

.widget-board ul li:first-child {
    border-radius: 12px;
    background: #fff;
    padding: 25px 30px;
    overflow: hidden;

    a {
        font-size: 23px;
        font-weight: 600;
        line-height: 26px;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;

        span {
            display: inline-block;
            font-size: 18px;
            line-height: 28px;
            padding: 0 10px;
            margin-right: 10px;
            background-color: #fff;
            color: #e89513;
            border: 1px solid #e89513;
            border-radius: 6px;;
        }
    }

    p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .date {
        font-size: 16px;
        color: #999;;

        span {
            font-size: 16px;;
        }
    }
}

.widget-board ul li:not(:first-child) p {
    display: none;
}

.widget-board ul li:not(:first-child) {
    display: flex;
    padding: 24px 0;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #fff;;

    a {
        display: block;
        font-size: 20px;
        font-weight: 600;
        line-height: 28px;
        color: #fff;
        width: 85%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        span {
            display: inline-block;
            font-size: 18px;
            line-height: 28px;
            padding: 0 10px;
            margin-right: 10px;
            background-color: #fff;
            color: #e89513;
            border: 1px solid #e89513;
            border-radius: 6px;
            vertical-align: middle;
            flex-shrink: 0;
        }
    }

    .date {
        display: flex;
        align-items: center;
        font-size: 16px;
        line-height: 18px;
        color: #fff;
        gap: 5px;;
    }
}

.mainBannerSwiper {
    width: 100%;
    height: 100%;
}


#main .sec-2 .mainBannerSwiper {
    width: 445px;
    height: 458px;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
}

#main .sec-2 .mainBannerSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev,
.swiper-button-next {
    margin-top: 0 !important;
    transform: translateY(-50%);
}

.swiper-button-prev img,
.swiper-button-next img {
    width: 24px;
}

.mainBannerSwiper .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mainBannerSwiper .swiper-slide img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.banner_control {
    height: 50px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0 20px;
}

.banner_control .swiper-pagination {
    position: relative;
    font-size: 1em;
}

.banner_control .swiper-button-next,
.banner_control .swiper-button-prev {
    width: 30px !important;
    height: 30px !important;
    border-radius: 30px;
    border: 1px solid #ddd;
}

.banner_control .swiper-stop-pause {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner_control .swiper-stop-pause.swiper_play .btn_play {
    display: none;
}

.banner_control .swiper-stop-pause.swiper_pause .btn_pause {
    display: none;
}


.banner_control .material-symbols-outlined {
    font-variation-settings: 'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}


.banner_control {
    display: flex;
    align-items: center;
}

.banner_control .swiper-button-next,
.banner_control .swiper-button-prev {
    position: static;
    transform: none;
    width: auto;
    height: auto;
}

.banner_control .swiper-pagination {
    position: static;
    left: auto;
    bottom: auto;
}

.banner_control .swiper-pagination-fraction {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner_control .swiper-pagination-fraction::after {
    content: "";
    display: block;
    width: 1px;
    height: 15px;
    background: #ddd;
    position: absolute;
    top: 50%;
    left: 45%;
    transform: skew(-20deg) translate(-50%, -50%);
}

.banner_control .swiper-pagination-fraction .fraction_num::before {
    content: "0";
    display: inline-block;
}

.banner_control .swiper-pagination-fraction .swiper-pagination-current {
    position: relative;
}

.banner_control .swiper-pagination-fraction .swiper-pagination-total {
    color: #ccc;
}

.banner_control .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    opacity: 1 !important;
    background: #eee;
}

.banner_control .swiper-pagination-bullet-active {
    background: #111;
}

.banner_control .more_title_wrap {
    margin-bottom: 0;
}

.banner_control .swiper-button-lock {
    display: flex !important;
}

.banner_control .swiper-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 50px;
    margin-right: 10px;
}


.banner_control .box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 65px;
    gap: 0 5px;
    margin-right: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #111;
}

/* 반응형 - 위젯 */
@media (max-width: 1024px) {
    .section-widget {
        padding: 0 40px;
    }

    .widget-box {
        gap: 24px;
    }

    .widget-box .widget-banner {
        width: 400px;
        height: 420px;
    }

    .widget-box .widget-notice {
        width: calc(100% - 400px);
        padding: 24px 30px;
    }

    .widget-head ul li {
        font-size: 18px;
        padding: 8px 14px;
        margin-right: 10px;
    }

    .widget-head h1 {
        margin-right: 20px;
        font-size: 22px;
    }

    .widget-board ul li:first-child a {
        font-size: 18px;
    }

    .widget-board ul li:not(:first-child) a {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .section-widget {
        padding: 0 24px;
    }

    .widget-box {
        flex-direction: column;
        gap: 24px;
    }

    .widget-box .widget-notice {
        width: 100%;
        padding: 24px 24px;
        border-radius: 20px;
    }

    .widget-box .widget-banner {
        width: 100%;
        height: 360px;
        border-radius: 20px;
    }

    .widget-head {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }

    .widget-head h1 {
        font-size: 20px;
        margin-right: 16px;
        line-height: 36px;
    }

    .widget-head ul li {
        font-size: 15px;
        line-height: 20px;
        padding: 7px 12px;
        margin-right: 6px;
    }

    .widget-head .more {
        font-size: 28px;
    }

    .widget-board ul li:first-child {
        padding: 18px 20px;
    }

    .widget-board ul li:first-child a {
        font-size: 16px;
        line-height: 22px;
    }

    .widget-board ul li:first-child a span {
        font-size: 14px;
        line-height: 22px;
    }

    .widget-board ul li:first-child .date {
        font-size: 13px;
    }

    .widget-board ul li:first-child .date span {
        font-size: 13px;
    }

    .widget-board ul li:not(:first-child) {
        padding: 16px 0;
    }

    .widget-board ul li:not(:first-child) a {
        font-size: 15px;
        line-height: 22px;
    }

    .widget-board ul li:not(:first-child) a span {
        font-size: 13px;
        line-height: 22px;
        padding: 0 6px;
        margin-right: 6px;
    }

    .widget-board ul li:not(:first-child) .date {
        display: none;
    }

    .banner_control {
        bottom: 10px;
        padding: 0 12px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    .section-widget {
        padding: 0 20px;
        margin: 20px auto;
    }

    .widget-box .widget-notice {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .widget-box .widget-banner {
        height: 300px;
        border-radius: 16px;
    }

    .widget-head h1 {
        display: flex;
        align-items: center;
        font-size: 18px;
        margin-right: 10px;
    }

    .type-B .footer {
        margin: 0;
    }

    .widget-head a.more {
        display: none;
    }

    .widget-board ul li:first-child p {
        font-size: 12px;
    }

    .widget-head ul li {
        font-size: 13px;
        line-height: 18px;
        padding: 6px 10px;
        margin-right: 4px;
    }

    .widget-board ul li:first-child {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .widget-board ul li:first-child a {
        font-size: 14px;
        line-height: 20px;
    }

    .widget-board ul li:first-child a span {
        font-size: 12px;
        line-height: 20px;
    }

    .widget-board ul li:not(:first-child) a {
        font-size: 14px;
        line-height: 20px;
    }

    .widget-board ul li:not(:first-child) a span {
        font-size: 12px;
        padding: 0 5px;
        margin-right: 4px;
    }

    .banner_control {
        height: 36px;
        padding: 0 10px;
    }

    .banner_control .swiper-pagination {
        width: 40px;
        font-size: 12px;
    }
}
