/* ==========================================================================
   [1] 기본 설정 및 변수
   ========================================================================== */
:root {
    --main-blue: #003366;
    --point-pink: #ff4785;
    --login-blue: #2b66ff;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   [2] 헤더 및 네비게이션 (Layout 관련) - 기존 코드 유지
   ========================================================================== */
.main-logo {
    max-height: 55px;
    width: auto;
}

/* [수정] 개강일자 박스 내부의 굵은 선 스타일 변경 */

/* 추가 팁: 개강일자 박스 자체의 테두리도 너무 진하다면 여기서 조절하세요 */
.opening-date-box {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 7px 22px;
    border-radius: 50px;
    border: 1px solid #f0f0f0; /* 테두리를 더 연하게 수정 */
    font-size: 0.85rem;
    white-space: nowrap;
}
.date-label{
    margin-right : 10px;
}

.opening-icon {
    color: #666;
    margin-right: 10px;
    font-size: 1rem;
}


.date-highlight {
    color: var(--point-pink);
    font-weight: 700;
}

.contact-label {
    font-size: 0.75rem;
    color: #999;
    display: block;
    line-height: 1;
}

.contact-number {
    font-size: 1.5rem;
    color: var(--main-blue);
    font-weight: 800;
    line-height: 1.2;
}

.header-icon-menu .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    border-radius: 50%;
    color: #555;
    font-size: 1.15rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

    .header-icon-menu .icon-btn:hover {
        background-color: var(--main-blue);
        border-color: var(--main-blue);
        color: #fff;
    }

    .header-icon-menu .icon-btn.lms {
        background-color: #f0f4ff;
        color: #0056b3;
        border-color: #d0e0ff;
    }

.bg-main-blue {
    background-color: var(--main-blue) !important;
}

.navbar-nav .nav-link {
    font-size: 1.05rem !important;
    padding: 0.8rem 0.6rem !important;
    font-weight: 500;
    transition: background-color 0.3s;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color : #ffffff;
        border-radius: 100px;
    }

/* ==========================================================================
   [3] 메인 비주얼 섹션 (슬라이더 + 로그인) - 기존 코드 유지
   ========================================================================== */
.main-visual-section {
    background-color: #f8fbff;
    padding: 30px 0;
}

.visual-combined-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 520px;
    box-shadow: none !important;
    position: relative;
}

.slider-box {
    flex: 3.5;
    height: 100%;
    min-width: 0;
    z-index: 1;
}

.mainSwiper {
    width: 100%;
    height: 100%;
    border-radius: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

    .mainSwiper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.login-box-area {
    flex: 0.8;
    min-width: 320px;
    height: auto;
    min-height: 380px;
    background-color: #fff;
    padding: 50px 45px;
    margin-left: -80px;
    border-radius: 40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 20px 20px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.02);
}

.login-header p.mb-1 {
    margin-bottom: 12px !important;
}

.btn-login-main {
    height: 52px;
    background-color: var(--login-blue) !important;
    font-size: 1.05rem;
    width: 100%;
    margin: 15px auto 20px auto;
    border: none;
    border-radius: 8px;
}


/* 섹션 상단 헤더 영역 */
.story-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 1.5rem; /* mb-4 */
    padding-bottom: 0.5rem; /* pb-2 */
    border-bottom: 1px solid #ddd; /* 이미지의 연한 선 느낌 */
}

/* 메인 타이틀 (900 두께) */
.story-title {
    margin: 0;
    margin-right: 1rem; /* me-3 */
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    font-size: 2rem; /* 필요에 따라 크기 조절 */
}

    /* 첫 글자 포인트 컬러 (Pink) */
    .story-title .point-color {
        color: #ff3377; /* Curriculum 이미지의 핑크색 */
        font-size: 2.0em;
    }

/* 보조 설명 문구 */
.story-desc {
    margin: 0;
    padding-bottom: 0.25rem;
    color: #6c757d;
    /* [수정 포인트] */
    font-size: 1rem; /* 0.85rem에서 1rem 정도로 키움 (원하는 크기로 조절) */
    font-weight: 500; /* 글자가 커진 만큼 두께도 살짝 주면 더 잘 보입니다 */
    flex-grow: 1; /* 공간을 차지하여 오른쪽 끝으로 밀어내는 역할 보조 */
}



/* 모바일 간격 조정 */
@media (max-width: 991px) {
    .testimonial-list {
        margin-bottom: 40px;
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .board-item .title {
        max-width: 100%;
        margin-bottom: 5px;
    }

    .board-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}




/* ==========================================================================
   [6] 반응형 미디어 쿼리 - 기존 코드 유지
   ========================================================================== */
@media (max-width: 991px) {
    .visual-combined-wrapper {
        flex-direction: column;
        height: auto;
    }

    .slider-box {
        width: 100%;
        height: 320px;
    }

    .login-box-area {
        width: 100%;
        margin-left: 0;
        margin-top: -30px;
        padding: 40px 30px;
    }

    .curr-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-c {
        font-size: 3rem;
    }
}




/* ==========================================================================
   메가 메뉴 고급화 커스텀 스타일
   ========================================================================== */

/* 메가 메뉴 기본 래퍼 (화면 전체 너비) */
.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.has-mega:hover .mega-menu-wrapper {
    display: block;
    animation: megaFadeIn 0.3s ease-out;
}

.mega-menu-inner {
    width: 100%;
    min-height: 380px; /* 높이를 충분히 키워 퀄리티 확보 */
}

/* ==========================================================================
   [최종] 메가 메뉴 고급화 및 마우스 이탈 방지 스타일
   ========================================================================== */

/* 1. 상위 메뉴 항목 설정 */
.has-mega {
    position: static; /* 전체 너비 확장을 위해 필수 */
}

/* 2. 메가 메뉴 전체 래퍼 (안정화 로직 포함) */
.mega-menu-wrapper {
    position: absolute;
    top: 100%; /* 네비바 바로 아래 붙음 */
    left: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    /* [중요] 마우스 이동 시 사라짐 방지 로직 */
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.2s, opacity 0.2s linear; /* 마우스 나갈 때 0.2초 대기 */
}

/* 마우스 올렸을 때 즉시 나타남 */
.has-mega:hover .mega-menu-wrapper {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
    animation: megaFadeIn 0.3s ease-out;
}

/* [중요] 네비바와 서브메뉴 사이의 투명 브릿지 (마우스 이탈 방지) */
.mega-menu-wrapper::before {
    content: "";
    position: absolute;
    top: -30px; /* 위로 30px 투명 영역 확장 */
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
    z-index: 10;
}

.mega-menu-inner {
    width: 100%;
    min-height: 380px;
    display: flex;
}

/* 3. 왼쪽 타이틀 영역 (이미지 배경 적용) */
.mega-title-side.designer-bg {
    flex: 0 0 38%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #fff;
    position: relative;
    /* 배경 이미지 설정 */
    background-image: url('../images/sub_background.jpg'); /* .png로 확장자 확인 필요 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #001a33;
}

    /* 배경 왼쪽 끝까지 확장 */
    .mega-title-side.designer-bg::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 3000px;
        height: 100%;
        background-image: inherit;
        background-size: inherit;
        background-position: inherit;
        background-repeat: inherit;
        background-color: inherit;
        z-index: -2;
    }

    /* 이미지 위 은은한 덮개 (글자 가독성) */
    .mega-title-side.designer-bg::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 35, 75, 0.5); /* 투명도 0.5로 살짝 조절 */
        z-index: -1;
    }

/* 4. 왼쪽 콘텐츠 (텍스트/아이콘) 스타일 */
.title-content-wrapper {
    padding-right: 100px;
    text-align: right;
    position: relative;
    z-index: 1;
}

.title-icon-box {
    font-size: 2.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.title-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.main-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.sub-desc {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
    word-break: keep-all;
}

/* 5. 오른쪽 서브메뉴 리스트 영역 */
.mega-content-side {
    flex: 1;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 60px 100px;
}

.mega-submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 80px;
}

    .mega-submenu-list li a {
        text-decoration: none;
        color: #333;
        font-size: 1.25rem;
        font-weight: 600;
        transition: 0.3s;
        display: block;
    }

        .mega-submenu-list li a:hover {
            color: #004595;
            transform: translateX(10px);
        }

/* 애니메이션 */
@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================================================
   서브 페이지 공통 및 OA과정 스타일
   ========================================================================== */

/* 서브 비주얼 영역 */
.sub-visual {
    background-image: url('/images/sub_background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    .sub-visual::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 35, 75, 0.7); /* 메인 색상 톤의 반투명 덮개 */
        z-index: 1;
    }

    .sub-visual .container {
        position: relative;
        z-index: 2;
    }

/* 커리큘럼 아코디언 스타일 */
.curriculum-box .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.curriculum-box .accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem;
    border: none;
}

    .curriculum-box .accordion-button:not(.collapsed) {
        background-color: #f8faff;
        color: #004595;
        box-shadow: none;
    }

/* 우측 사이드바 스티키 설정 */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
}

/* 퀵 정보 바 스타일 */
.quick-info-bar {
    margin-top: -40px; /* 슬라이더 위에 살짝 걸치게 하여 입체감 부여 (선택사항) */
    position: relative;
    z-index: 20;
    padding-bottom: 50px;
}

.info-wrapper {
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 30px 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

/* 아이콘 공통 스타일 및 색상 */
.info-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.info-icon.gray { background-color: #f8f9fa; color: #666; }
.info-icon.pink { background-color: #fff0f5; color: #ff4785; }
.info-icon.blue { background-color: #f0f4ff; color: #2b66ff; }
.info-icon.green { background-color: #f0fff4; color: #28a745; }

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2px;
}

.info-desc {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 세로 구분선 */
.info-divider {
    width: 1px;
    height: 40px;
    background-color: #eee;
}

/* 모바일 대응 */
@media (max-width: 991px) {
    .quick-info-bar { margin-top: 20px; }
    .info-wrapper { flex-wrap: wrap; padding: 10px; }
    .info-item { flex: 0 0 50%; padding: 20px; justify-content: flex-start; }
    .info-divider { display: none; }
}

/* ==========================================================================
   [5] 커리큘럼 섹션 (이미지 효과 및 가독성 최적화)
   ========================================================================== */
.curriculum-section {
    padding: 40px 0 100px 0;
    background-color: #fff;
}

.curr-header-wrapper {
    display: flex;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 20px;
    position: relative;
}

.curr-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.highlight-c {
    color: var(--point-pink);
    font-size: 3.8rem;
    margin-right: -2px;
    font-family: 'Montserrat', sans-serif;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #ddd, transparent);
    margin-left: 10px;
    margin-bottom: 12px;
}

/* 카드 컨테이너 */
.curr-card {
    position: relative;
    width: 100%;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 25px; /* 이미지처럼 더 둥글게 */
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* [앞면] */
.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.curr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 0.5s ease;
}

.card-text-basic {
    position: absolute;
    top: 25px;
    left: 25px;
    color: #fff;
    z-index: 3;
}

.card-text-basic .en-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3px;
}

.card-text-basic .ko-title {
    font-size: 1.3rem;
    font-weight: 700;
}

/* [뒷면] */
.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply; /* 회색과 이미지를 자연스럽게 합성 */
    background-color: #3c3c3c;
}

/* 상단 30% 영역 블랙 레이어 */
.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: #000000;
    z-index: 0;
}

.back-text-basic, .back-content-box {
    position: relative;
    z-index: 1;
}

.back-text-basic .en-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 2px;
}

.back-text-basic .ko-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #6CFCDD; /* 민트색 계열 포인트 */
    margin-top: 3px;
}

.back-content-box {
    flex: 1;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.desc-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    word-break: keep-all;
}

.view-more-btn {
    display: inline-flex;
    padding: 8px 22px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 0.85rem;
    border-radius: 30px;
    transition: 0.3s;
    text-decoration: none;
}

.view-more-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* 호버 동작 */
.col:hover .card-front { transform: rotateY(-180deg); }
.col:hover .card-back { transform: rotateY(0deg); }
.col:hover .curr-img { transform: scale(1.1); }

/* ==========================================================================
   [6] Notice & Story 섹션 스타일
   ========================================================================== */

/* 포인트 컬러 정의 */
.text-orange { color: #ff6a00 !important; }
.bg-orange { background-color: #ff6a00 !important; }

/* 타이틀 헤더 라인 */
.story-header {
    border-bottom: 2px solid #333 !important;
    display: flex;
    align-items: flex-end;
    padding-bottom: 10px;
}

.story-title {
    margin: 0;
    flex-grow: 1;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

.story-title .point-color {
    color: #ff3377; /* 로고와 통일된 핑크 포인트 */
    font-size: 1.2em;
}

.story-desc {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

/* 수강생 후기 카드 */
.review-card {
    padding: 18px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.review-card .plus-box {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.review-card.bg-orange .plus-box {
    border-color: rgba(255,255,255,0.4);
}

.review-card .card-msg {
    font-size: 0.9rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 12px 0;
}

/* 우측 공지사항 게시판 */
.board-item {
    transition: background 0.2s;
    position: relative;
}

.board-item:hover {
    background-color: #f9f9f9;
}

.board-item .title {
    font-size: 1rem;
    color: #333;
    transition: color 0.2s;
}

.board-item:hover .title {
    color: #ff6a00;
}

.notice-badge {
    background-color: #fffaf5 !important;
    color: #ff6a00 !important;
    border: 1px solid #ff6a0040;
    font-weight: 400;
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 991px) {
    .testimonial-list {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .board-item .title {
        max-width: 100%;
        margin-bottom: 5px;
        white-space: normal; /* 모바일에서 제목 줄바꿈 허용 */
    }

    .board-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
    }
}