html,
body {
    width: 100%;
    height: 100%;
}
#wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main {
    width: 100%;
    padding: 80px 0 120px;
    flex: 1 0 auto;
}
/* container */
.container {
    max-width: 1030px;
    margin: 0 auto;
    padding: 0 10px;
}
/* container */

/* header */
#header {
    background: var(--color-white);
    border-bottom: 1px solid #e1e1e1;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #121212;
}
.logo .tit_h1 {
    background: url(../_img/common/h_logo.svg) no-repeat center / cover;
    height: 28px;
    width: 100px;
}
.gnb {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gnb li {
    position: relative;
}
.gnb .sub_menu {
    position: absolute;
    top: calc(100% - 15px);
    left: 0;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    min-width: 180px;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.gnb > li:hover .sub_menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub_menu li a {
    display: block;
    padding: 14px 20px 14px 14px !important;
    border-radius: 4px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
}
.sub_menu li a:hover {
    background: #f5f5f5;
    color: #003CFF;
}

.gnb li a {
    display: block;
    padding: 30px 13px;
    font-size: 18px;
    font-weight: 500;
}
.header_right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header_right input[type="text"] {
    border-radius: 999px;
}

/* search */
.search_area input {
    width: 100%;
    font-size: 14px;
    padding: 13px 36px 13px 15px !important;
    text-align: left;
}
.search_area {
    max-width: 170px;
    width: 100%;
    position: relative;
}
.search_icon {
    background: url(../_img/icon/icon_search.svg) no-repeat center center / contain;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/* search */


.header_btn {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
}
.btn_mypage_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}
.btn_mypage_icon img {
    width: 18px;
    height: 18px;
}
/* header */


/* footer */
#footer {
    flex-shrink: 0;
    background: #202020;
}
.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 50px 0;
}
.footer_left {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}
.footer_logo .tit_h1 {
    background: url(../_img/common/f_logo.svg) no-repeat center;
    height: 28px;
    width: 100px;
}
.footer_info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.footer_info .footer_link {
    display: flex;
    align-items: center;
    gap: 20px;
}
.footer_info .footer_link li a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.compant_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.compant_info ul {
    display: flex;
    align-items: center;
    gap: 8px;
}
.compant_info ul li {
    color: #999;
    font-size: 16px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}
.compant_info ul li span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.compant_info ul li span::after {
    content: '';
    display: block;
    width: 2px;
    height: 2px;
    background: #999;
    border-radius: 999px;
}
.copyright {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}
.footer_right {
    display: flex;
    align-items: center;
    gap: 25px;
}
.footer_sns_link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer_sns_link li {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #373737;
    width: 40px;
    height: 40px;
    border-radius: 999px;
}
.footer_sns_link .facebook a {
    display: block;
    background: url(../_img/icon/icon_footer_facebook.svg) no-repeat center;
    width: 100%;
    height: 100%;
}
.footer_sns_link .insta a {
    display: block;
    background: url(../_img/icon/icon_footer_insta.svg) no-repeat center;
    width: 100%;
    height: 100%;
}
.footer_sns_link .youtube a {
    display: block;
    background: url(../_img/icon/icon_footer_youtube.svg) no-repeat center;
    width: 100%;
    height: 100%;
}
.select_family_site {
    -o-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 180px;
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 10px 15px;
    background: url(../_img/icon/icon_footer_familySite.svg) no-repeat center right 16px / 16px;;
    color: #fff;
}
.select_family_site option {
    background: #fff;
    color: #111;
}
/* footer */


/* 모바일 네비 / 알람*/
/* 모바일 헤더 버튼 영역 */
.mo_header {
    display: none;
    align-items: center;
    gap: 8px;
}
.mo_header input[type="text"] {
    border-radius: 999px;
}

.mo_search {
    background: url(../_img/icon/icon_search.svg) no-repeat center / contain;
    width: 22px;
    height: 22px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.mo_ham {
    background: none;
    border: none;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mo_ham img {
    width: 100%;
    height: 100%;
    display: block;
}

/* 알람 버튼 */
.btn_alram {
    background: url(../_img/icon/icon_alarm.svg) no-repeat center / contain;
    width: 22px;
    height: 22px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.btn_alram.not {
    background: url(../_img/icon/icon_alarm_not.svg) no-repeat center center / contain;
}
/* 알람 박스 */
.alram__area {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #e1e1e1;
    padding: 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alram__box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 400px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
    display: block !important;
    height: auto !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.alram__box.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.alram_tit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e1e1e1;
    font-size: 14px;
    font-weight: 600;
    color: #121212;
}
.all_delete {
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
}
.no_alram {
    padding: 30px 16px;
    text-align: center;
    font-size: 13px;
    color: #999;
}
.no_alram p {
    color: #767676;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
}

.alram_list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 400px;
    overflow-y: auto;
}
.alram_list li {
    width: 100%;
    border-bottom: 1px solid #e1e1e1;
}
.alram_list li:last-child {
    border: none;
}
.alram_list li a {
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
}
.alram_list li:hover a {
    background: #F5F5F5;
}
.alram_top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alram_top h2 {
    font-size: 16px;
    font-weight: 600;
}
.alram_list li.is-read .alram_top h2 {
    font-weight: 400;
}
.alram_text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.alram_text p {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    line-height: 1.5;
}
.alram_text .alram_date {
    font-size: 12px;
    color: #666;
    line-height: 1;
}
.alram_badge {
    padding: 5px 7px;
    border-radius: 4px;
    font-size: 12px;
}
.alram_badge.unread {
    background: #003CFF;
    color: #fff;
}
.alram_badge.read {
    background: #F1F1F1;
    color: #9CA3AF;
}


/* 마이페이지 드롭다운 */
.mypage__dropdown {
    position: relative;
}
.mypage__box {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 160px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mypage__dropdown.is-open .mypage__box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mypage__box ul {
    padding: 8px;
}
.mypage__box ul li a {
    display: block;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    white-space: nowrap;
}
.mypage__box ul li a:hover {
    background: #f5f5f5;
    color: #003CFF;
}


/* 로그인 상태 영역 */
.header_auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 모바일 네비 */
.mobile_nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
}
.mobile_nav.is_open {
    visibility: visible;
}
.mobile_nav_dim {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile_nav.is_open .mobile_nav_dim {
    opacity: 1;
}
.mobile_nav_panel {
    position: absolute;
    top: 0; right: 0;
    width: 80%;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile_nav.is_open .mobile_nav_panel {
    transform: translateX(0);
}
.mobile_nav_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e1e1e1;
    flex-shrink: 0;
}
.mobile_nav_close {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    flex-shrink: 0;
}
.mobile_nav_close::before,
.mobile_nav_close::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 2px;
    background: #333;
}
.mobile_nav_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.mobile_nav_close::after  {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 모바일 네비 인증 버튼 */
.mobile_nav_auth {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e1e1;
    flex-shrink: 0;
}
.mobile_nav_auth .header_btn {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

/* 모바일 gnb */
.mobile_gnb {
    flex: 1;
}
.mobile_gnb > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #121212;
    border-bottom: 1px solid #f0f0f0;
}
.mobile_gnb > li.has_sub > a::after {
    content: '';
    display: block;
    width: 8px; height: 8px;
    border-right: 2px solid #aaa;
    border-bottom: 2px solid #aaa;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: -4px;
}
.mobile_gnb > li.has_sub.is_open > a::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.mobile_sub_menu {
    display: none;
    background: #f9f9f9;
}
.mobile_gnb > li.is_open .mobile_sub_menu {
    display: block;
}
.mobile_sub_menu li a {
    display: block;
    padding: 13px 20px 13px 32px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    border-bottom: 1px solid #efefef;
}

/* 마이페이지 내 강의실 */
.classroom-section {
    padding: 10px 0;
}
.my_class_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.my_class_list li {
    border-radius: 4px;
    border: 1px solid #e5e5ec;
    padding: 16px;
}
.my_class_list li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.my_class_list .class_text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.my_class_list .txt {
    flex: 1;
    min-width: 0;
}
.my_class_list .txt h1 {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.my_class_list .txt .txt_tit {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    min-width: 0;
}
.my_class_list .txt .txt_tit h1 {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}
.my_class_list .txt .txt_tit .green_badge {
    flex-shrink: 0;
}
.my_class_list.answer .txt h1 {
    margin-bottom: 0;
}
.my_class_list .txt h2 {
    color: #767676;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
}
.my_class_list .txt h2.mb2 {
    margin-bottom: 2px;
}
.my_class_list .txt h2.mb3 {
    margin-bottom: 3px;
}
.my_class_list .txt.flex {
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}
.my_class_list .img_box {
    width: 120px;
    height: 68px;
    min-width: 120px;
    max-width: 120px;
    aspect-ratio: auto;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.my_class_list .img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.my_class_list .prog_box {
    max-width: 100px;
    width: 100%;
    text-align: center;
    flex-shrink: 0;
}
.my_class_list .prog_box p {
    color: #384046;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
}
.my_class_list .prog_box .blue_txt {
    color: #003CFF;
}
.my_class_list .class_actions {
    display: flex;
    gap: 8px;
    padding: 12px 0 0 0;
}
.my_class_list .class_actions button {
    flex: 1;
}

/* progress */
.prog_thin {
    width: 80%;
    height: 10px;
    border: 0;
    border-radius: 4px;
    background: #e5e5ec;
    overflow: hidden;
    appearance: none;
    vertical-align: middle;
    margin: 0;
}
.prog_thin::-webkit-progress-bar {
    background: #e5e5ec;
    border-radius: 4px;
}
.prog_thin::-webkit-progress-value {
    background: #003CFF;
    border-radius: 4px;
}
.prog_thin::-moz-progress-bar {
    background: #003CFF;
    border-radius: 4px;
}
.prog_thin.gray::-webkit-progress-value {
    background: #90979c;
    border-radius: 4px;
}
.prog_thin.gray::-moz-progress-bar {
    background: #90979c;
    border-radius: 4px;
}
.program_prog_box .prog_thin::-webkit-progress-value {
    background: #FF4D66;
    border-radius: 4px;
}
.program_prog_box .prog_thin::-moz-progress-bar {
    background: #FF4D66;
    border-radius: 4px;
}
.progress_area {
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 12px;
    max-width: 342px;
    width: 100%;
}
.progress_box {
    width: 161px;
    flex: 1;
    min-width: 161px;
}
.prog {
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 4px;
    background: #e5e5ec;
    overflow: hidden;
    appearance: none;
    vertical-align: middle;
    margin: 5px 0;
}
.prog::-webkit-progress-bar {
    background: #e5e5ec;
    border-radius: 4px;
}
.prog::-webkit-progress-value {
    background: #003CFF;
    border-radius: 4px;
}
.prog::-moz-progress-bar {
    background: #003CFF;
    border-radius: 4px;
}
.prog.gray::-webkit-progress-value {
    background: #384046;
    border-radius: 4px;
}
.prog.gray::-moz-progress-bar {
    background: #384046;
    border-radius: 4px;
}
.progress_box .txt {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.progress_box .txt h1 {
    color: #384046;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
}
.progress_box .txt b {
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
}
.progress_box .txt .blue_txt {
    color: #003CFF;
}
.progress_box .txt .gray_txt {
    color: #384046;
}


/* 반응형 */
@media screen and (max-width: 1100px) {
    .gnb li a {
        padding: 30px 6px;
    }
}

@media screen and (max-width: 1024px) {
    .gnb {
        display: none;
    }
    .header_right {
        display: none;
    }
    .mo_header {
        display: flex; 
        padding: 20px 0;
        gap: 10px;
    }
    .mobile_nav {
        display: block;
    }

    /* 푸터 */
    .footer__inner {
        flex-direction: column;
        gap: 30px;
    }
    .footer_left {
        flex-direction: column;
        gap: 20px;
    }
    .footer_right {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .search_area {
        max-width: 180px;
    }
}

@media screen and (max-width: 768px) {
    .main {
        padding: 30px 0 70px 0;        
    }

    .footer_info .footer_link {
        flex-wrap: wrap;
        gap: 10px;
    }
    .compant_info ul {
        flex-wrap: wrap;
        gap: 4px;
    }
    .compant_info ul li {
        font-size: 13px;
    }
    .copyright {
        font-size: 12px;
    }
    
}

