/* ==========================================================================
   [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; 
}

/* ==========================================================================
   [최종 밸런스 조정] 사라짐 딜레이 해결 및 이상적인 마우스 감도 세팅
   ========================================================================== */
.has-mega {
    position: static; 
}

.mega-menu-wrapper {
    position: absolute;
    top: 92% !important; /* 주메뉴와 서브메뉴판 틈새 밀착 밀어올림 유지 */
    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;
    pointer-events: none; 
    
    /* 
       [감도 황금 밸런스 튜닝] 
       기존의 굼뜨던 1.2초 딜레이를 지우고, 딱 '0.3초'로 슬림하게 압축했습니다!
       메뉴 고르러 내려갈 땐 틈새에 빠지지 않게 잡아주고, 
       마우스를 다른 데로 완전히 치우면 굼뜨지 않고 0.3초 만에 빠릿하고 깔끔하게 샥 사라집니다.
    */
    transition: visibility 0.2s linear 0.3s, opacity 0.3s ease-in-out 0.3s; 
}

/* 주메뉴에 마우스를 올릴 때는 대기 시간 전혀 없이 0초 만에 즉시 칼같이 표출 */
.has-mega:hover .mega-menu-wrapper {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; 
    
    transition: visibility 0s linear 0s, opacity 0.2s ease-out 0s; 
    animation: megaFadeIn 0.25s ease-out;
}

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

/* 상단 투명 자석 다리(브릿지)의 범위를 단단하게 유지하여 마우스 동선 보장 */
.mega-menu-wrapper::before {
    content: "";
    position: absolute;
    top: -90px; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1320px; 
    height: 90px;
    background: transparent;
    z-index: 10;
}

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

.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'); 
    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); 
    z-index: -1;
}

.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;
}

.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); }
}


/* ==========================================================================
   [모바일 전용 전면 수정] 991px 이하 모바일 서브메뉴 최적화 반응형 디자인
   ========================================================================== */
@media (max-width: 991px) {
    /* 모바일 네비바 스크롤 내부 확보 */
    .navbar-collapse {
        max-height: 75vh;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    /* 메가 메뉴 전체 래퍼를 모바일용 드롭다운 형태로 초기화 */
    .mega-menu-wrapper {
        position: static !important;
        width: 100% !important;
        margin-left: 0 !important;
        box-shadow: none !important;
        background-color: #f8f9fa !important; /* 서브메뉴 영역 구분을 위한 연한 배경 */
        
        /* 모바일에서는 기본적으로 열어두어 스크롤하며 볼 수 있게 변환 */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }

    /* 모바일에서 주메뉴 클릭/호버 시 서브메뉴 슬라이드 다운 */
    .has-mega:hover .mega-menu-wrapper,
    .has-mega:focus-within .mega-menu-wrapper {
        max-height: 1000px; /* 서브메뉴가 튀어나오도록 공간 확보 */
        transition: max-height 0.5s ease-in;
    }

    /* 마우스 이탈 방지용 가상 요소 모바일에서 제거 */
    .mega-menu-wrapper::before {
        display: none !important;
    }

    /* 레이아웃 분할 구조 해제 및 세로 정렬 */
    .mega-menu-inner {
        flex-direction: column !important;
        min-height: auto !important;
    }

    /* 모바일에서 불필요하고 공간 차지하는 왼쪽 이미지 설명 면적 숨김 */
    .mega-title-side {
        display: none !important;
    }

    /* 오른쪽 메뉴 리스트 영역을 모바일 맞춤 패딩으로 조절 */
    .mega-content-side {
        padding: 15px 20px !important;
        background-color: transparent !important;
    }

    /* 2열 구조 격자를 1열 리스트 구조로 변경하여 텍스트 짤림 방지 */
    .mega-submenu-list {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100%;
    }

    /* 모바일 가독성에 맞춘 서브메뉴 폰트 스케일 다운 */
    .mega-submenu-list li a {
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        padding: 6px 10px !important;
        color: #444 !important;
        border-left: 2px solid #ddd; /* 메뉴 계층 구조 인식을 돕는 미세 라인 */
        transition: all 0.2s ease;
    }

    .mega-submenu-list li a:hover {
        color: var(--point-pink) !important;
        border-left-color: var(--point-pink);
        transform: translateX(5px) !important;
    }
}


/* ==========================================================================
   서브 페이지 공통 및 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;
    }
}