/*---------- Modal - 검색, 회원 로그인 모달 ----------*/
.modal-box {
    width: 100%;
    height: 100%;
    background: #fff
}

.modal-box .modal-content {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 200px;
    border: 0 none;
    box-shadow: 0 0 0 #fff
}

.modal-box .member-contnets-bottom {
    position: fixed;
    top: 25px;
    right: 60px
}

.modal-box .member-contnets-bottom button {
    border: 0 none;
    font-size: 12px;
    line-height: 14px;
    padding: 8px 15px;
    background: #707070;
    color: #fff;
    border-radius: 15px !important
}

.modal-box .member-contnets-bottom button:hover {
    background: #333
}

.search-contents-modal .modal-box .modal-content {
    position: relative;
    top: 45%;
    max-width: 90%;
    padding-top: 0
}

.search-contents-modal .input-button {
    position: relative
}

.search-contents-modal .input-button input[type="text"] {
    width: 100%;
    padding: 6px 12px;
    border: 0 none;
    border-bottom: 2px solid #909090;
    color: #909090;
    height: 60px;
    font-size: 20px
}

.search-contents-modal .input-button .button {
    position: absolute;
    right: 1px;
    top: 10px;
    padding: 0 20px;
    font-size: 24px;
    height: 40px;
    background: none;
    border: 0 none
}

.search-contents-modal .input-button .button input {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    font-size: 12px;
    line-height: 40px;
    opacity: 0;
    cursor: pointer
}

@media (max-width:767px) {
    .modal-box .modal-content {
        padding-top: 150px
    }

    .modal-box .member-contnets-bottom {
        right: 25px
    }
}

/* ==========================================================================
   PC 환경 전체 메뉴 내려오기 (Mega Menu) 및 레이아웃 재배치
   ========================================================================== */
@media screen and (min-width: 769px) {

    /* 1. 헤더 레이아웃 재배치 (로고:좌, 메뉴:정중앙, 유틸:우) */
    #mainskin header .header-wrapper {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #mainskin header .header-main-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex: 1;
        gap: 0 16px;
    }

    #mainskin header .header-main-wrapper .navigation {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0;
        margin: 0;
        z-index: 100;
    }

    /* 고정 헤더 상태일 때 메뉴 세로 정렬 보정 */
    #mainskin header .header-main.header-fixed .header-main-wrapper .navigation {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* 2. 메가메뉴 서브메뉴 제어 (마우스 호버 시 동시에 표시) */
    #mainskin header .header-main .edugate-dropdown-menu-1 {
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        top: 100px !important;
        /* 기본 헤더 높이에 맞춤 */
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 140px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 15px 0 !important;
        margin: 0 !important;
        z-index: 1000 !important;
        transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out, top 0.25s ease-in-out;
    }

    /* 고정 헤더일 때 서브메뉴 상단 위치 조정 */
    #mainskin header .header-main.header-fixed .edugate-dropdown-menu-1 {
        top: 60px !important;
    }

    /* 헤더 전체 호버 시 서브메뉴 노출 */
    #mainskin header .header-main:hover .edugate-dropdown-menu-1 {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 3. 전체 너비 하향 배경 판넬 구현 (가상 요소) */
    #mainskin header .header-main:before {
        content: '';
        position: absolute;
        top: 100px;
        /* 기본 헤더 높이 */
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        border-bottom: 2px solid var(--accent-normal, #50bcb6);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), top 0.25s ease-in-out;
        z-index: 99;
        pointer-events: none;
        /* 뒤쪽 클릭 이벤트 유지 */
        opacity: 0;
        visibility: hidden;
    }

    /* 고정 헤더 상태에서 가상 배경 판넬의 top 위치 변경 */
    #mainskin header .header-main.header-fixed:before {
        top: 60px;
    }

    /* 헤더 호버 시 판넬 노출 및 높이 지정 */
    #mainskin header .header-main:hover:before {
        height: 240px;
        /* 서브메뉴 높이에 따른 여유 있는 크기 */
        opacity: 1;
        visibility: visible;
    }

    /* 4. 서브메뉴 개별 정렬 및 텍스트 스타일 */
    #mainskin header .header-main .navigation .nav-links li.dropdown {
        position: relative !important;
    }

    #mainskin header .header-main .edugate-dropdown-menu-1 li {
        width: 100% !important;
        text-align: center !important;
        background: transparent !important;
    }

    #mainskin header .header-main .edugate-dropdown-menu-1 li a {
        font-size: 14px !important;
        color: var(--secondary-strong, #333333) !important;
        font-weight: 400 !important;
        padding: 8px 10px !important;
        display: block !important;
        background: transparent !important;
        transition: color 0.15s ease-in-out;
    }

    /* 서브메뉴 호버 시 포인트 색상 변경 */
    #mainskin header .header-main .edugate-dropdown-menu-1 li a:hover {
        color: var(--accent-normal, #50bcb6) !important;
        font-weight: 600 !important;
    }
}

/* ==========================================================================
   기타 스타일 오버라이드 (글로벌 index.css 대응)
   ========================================================================== */
#mainskin .main__section .interior--info--list dl .color--statis--destructive,
#mainskin .main__section .interior--info--list dl .color--statis--command {
    opacity: 0.5;
}