/* main 공통 */
.m_main {
    background: #f5f5f7;
}

#mainIcon,
#mainBest_package,
#mainLecture,
#mainBoards {
    background-color: #fff;
    margin: 0 20px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#mainIcon,
#mainLecture,
#mainBoards {
    padding: 24px 16px;
}

/* mainSlide */
#mainSlide {
    overflow: hidden;
    position: relative;
    margin-bottom: -4px;
    padding: 10px 20px;
}

#mainSlide .main_slide {
    width: 100%;
}

#mainSlide .main_slide a {
    display: block;
    width: 100%;
    border-radius: 5%;
    overflow: hidden;
}

#mainSlide .main_slide img {
    width: 100%;
}

#mainSlide .slick-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    font-size: 0;
}

#mainSlide .slick-dots li + li {
    margin-left: 5px;
}
#mainSlide .slick-dots button {
    font-size: 0;
    margin: 0;
    width: 10px;
    height: 4px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, .5);
    transition: margin .2s linear, border .2s linear, width .2s linear;
}

#mainSlide .slick-dots li.slick-active button {
    background: #E0473C;
    width: 46px;
}

/* mainBand */
#mainBand {
    color: #fff;
    display: flex;
    align-items: center;
}

#mainBand .wrap {
    margin: 0 20px 10px;
    padding: 18px 15px 15px;
    width: 100%;
    background: url(/mobi/img/bg/main_bg_01.png) 0 0 no-repeat;
    background-size: cover;
    overflow: hidden;
    border-radius: 4%;
}

#mainBand .mainBand_title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    text-align: inherit;
    gap: 3px;
}

#mainBand .mainBand_title span {
    font-size: 13px;
    font-weight: 400;
}

#mainBand .mainBand_title span+span {
    font-size: 24px;
    font-weight: 500;
}

#mainBand .mainBand_text {
    margin: 15px 0 0;
    font-weight: bold;
    font-size: 15px;
}

#mainBand .mainBand_text span span {
    font-weight: 500;
    margin-right: 3px;
}

#mainBand .mainBand_text span+span {
    display: block;
    margin-top: 3px;
}

#mainBand .wrap a {
    display: block;
    text-align: center;
    color: #fff;
    background-color: #B92530;
    font-size: 21px;
    padding: 14px 0;
    margin-top: 25px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* mainIcon */
#mainIcon {
    display: flex;
    text-align: center;
    gap: 10px;
}

#mainIcon .icon_list {
    display: inline-block;
    width: 100%;
}

#mainIcon .icon_list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #000;
}

#mainIcon .icon_box {
    max-width: 64px;
    padding: 6px 0;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow: 4px 4px 8px #d9d9d9, -4px -4px 8px #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

#mainIcon .icon_list img {
    width: 80%;
}

#mainIcon .icon_list p {
    margin: 0;
    font-size: 14px;
    letter-spacing: -1px;
    width: max-content;
}

/* mainBest */
#mainBest_package {
    width: auto;
    padding: 24px 0;
}

#mainBest_package {
    box-sizing: border-box;
}

#mainBest_package h2 {
    margin: 0 16px 16px;
    text-align: left;
    font-size: 20px;
}

#mainBest_package .mySwiper {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

#mainBest_package .swiper-button-next::after,
#mainBest_package .swiper-button-prev::after {
    display: none;
}

#mainBest_package ul {
    width: 100%;
}

#mainBest_package ul li {
    width: 100%;
    height: 217px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #eee;
    position: relative;
    padding: 16px;
    box-sizing: border-box;
    transition: all .3s;
}

#mainBest_package ul li a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#mainBest_package .sale_label {
    top: 16px;
    left: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    width: auto;
    height: auto;
    font-size: 12px;
    background-color: var(--main-bg);
    font-weight: bold;
    color: #fff;
    box-sizing: border-box;
    position: absolute;
    display: inline-block;
}

#mainBest_package .mainBest_title {
    line-height: 1.2;
    margin: 38px 0 0;
    text-align: left;
}

#mainBest_package .mainBest_title strong {
    display: block;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.mainBest_title .sub_title {
    color: #7b7b7b;
    display: block;
    margin-top: 9px;
    font-size: 15px;
    font-weight: 400;
}

#mainBest_package .list-bottom {
    display: flex;
    justify-content: end;
}

#mainBest_package .price_wrap {
    text-align: right;
}

#mainBest_package .price_wrap span {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

#mainBest_package .price {
    font-size: 24px;
    color: #DE4949;
    margin: 3px 0 0;
    font-weight: 600;
    line-height: 1.2;
}

#mainBest_package .price strong {
    font-size: 29px;
    font-weight: 900;
}


/* mainLecture */
#mainLecture {
    text-align: center;
}

#mainLecture h2 {
    margin: 0 0 16px;
    text-align: left;
    font-size: 20px;
}

#mainLecture ul {
    font-size: 0;
}

#mainLecture .mL_box {
    display: inline-block;
    width: calc(48% - 5px);
    height: 48px;
    line-height: 46px;
    font-size: 15px;
    letter-spacing: -1px;
    margin: 6px 0;
    background-color: #f5f5f7;
    border-radius: 8px;
}

#mainLecture .mL_box:nth-child(2n-1) {
    margin-right: 15px;
}

#mainLecture .mL_box a {
    color: #444;
    font-weight: 500;
}

#mainLecture .mL_box.hot a::after {
    content: "HOT";
    background-color: #DE4949;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px 2px 5px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: bottom;
}

#mainLecture .more_lecture {
    display: none;
}

#mainLecture .btn_more {
    background: #de4949;
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: max-content;
    margin: 10px auto 0;
    padding: 10px 20px;
    border-radius: 20px;
}

#mainLecture .btn_more em {
    font-style: normal;
    font-size: 8px;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

#mainLecture .btn_more em.rotate {
    transform: rotate(180deg);
}



/* mainBoards */
#mainBoards h2 {
    font-size: 20px;
    margin: 0 0 15px;
}

#mainBoards .tab_menu {
    min-height: 37px;
}

#mainBoards .tab_btn {
    display: inline-block;
    line-height: 37px;
    font-size: 16px;
    color: #888;
    font-weight: 500;
    margin: 0 -6px -10px 0;
    padding: 0 6px;
}

#mainBoards .tab_btn+.tab_btn {
    margin-left: 16px;
}

#mainBoards .tab_btn.on {
    background: none;
    color: #333;
    font-weight: 700;
    border-bottom: 2px solid #333;
}

#mainBoards .tab_more {
    display: none;
    float: right;
    font-size: 14px;
    color: #646464;
    margin-top: -42px;
    font-weight: normal;
}

#mainBoards .tab_more.on {
    display: block;
}

#mainBoards .board_list {
    margin-top: 8px;
}

#mainBoards .board_list a {
    display: flex;
    justify-content: space-between;
    color: #646464;
    font-size: 15px;
    line-height: 32px;
}

#mainBoards .board_list span:not(.date) {
    width: calc(100% - 80px);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

#mainBoards .board_list span:not(.date) span {
    display: none;
}

#mainBoards .board_list .date {
    float: right;
    font-size: 14px;
    color: #999;
}

/* logo_mark */
.logo_mark {
    background: #f5f5f6;
    text-align: center;
    padding: 20px 0;
}

.logo_mark img {
    width: 150px;
}

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* 모달 컨테이너 */
.modal-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    /* 이미지 슬라이드 시 넘치는 부분 숨김 */
}

/* 닫기 버튼 */
.modal-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

/* 이미지 캐러셀 */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    /* 모바일 크기에 맞게 조절 */
    margin: 0 auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images a {
    width: 100%;
    flex-shrink: 0;
    display: block;
    /* 링크도 블록 요소로 만들어 이미지 전체를 감싸게 함 */
}

.carousel-images img {
    width: 100%;
    display: block;
}

/* 캐러셀 인디케이터 (하단 점들) */
.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #717171;
}

/* 오늘하루 보이지 않기 체크박스 */
.modal-footer {
    margin-top: 15px;
    text-align: right;
}

.modal-footer label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

@media screen and (max-width:350px) {
    #mainIcon {
        flex-wrap: wrap;
        justify-content: center;
    }

    #mainIcon .icon_list {
        width: 40%;
    }

    #mainIcon .icon_list img {
        width: 70%;
    }
}