/* CSS 변수 정의 */
:root {
    --primary-color: #004ea2;
    --secondary-color: #1473e6;
    --accent-color: #ff6b35;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 메인 배너 */
.main-banner {
    height: 360px;
    position: relative;
    overflow: hidden;
}

.banner-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.banner-image {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner-image.slide-1 { background-image: url('/images/web/main-visual.png'); }
.banner-image.slide-2 { background-image: url('/images/web/main-visual2.png'); }
.banner-image.slide-3 { background-image: url('/images/web/main-visual3.png'); }
.banner-image.slide-4 { background-image: url('/images/web/main-visual4.png'); }

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.banner-arrow {
    width: 50px;
    height: 50px;
    background-color: #4D4D4D;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    position: relative;
}

.banner-arrow:hover {
    background-color: #666666;
}

/* 화살표: CSS 의사요소로 구현 */
.banner-arrow::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}
.prev-arrow::before {
    transform: rotate(-135deg);
}
.next-arrow::before {
    transform: rotate(45deg);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.banner-text {
    flex: 1;
    max-width: 500px;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: white;
    margin-bottom: 10px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #8B5CF6;
}

.banner-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 40px;
}

.students-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.student {
    width: 50px;
    height: 70px;
    background-color: white;
    border-radius: 25px 25px 0 0;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.student::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-color: #FFB6C1;
    border-radius: 50%;
    border: 2px solid white;
}

.student-1 { height: 60px; }
.student-2 { height: 75px; }
.student-3 { height: 65px; }
.student-4 { height: 80px; }
.student-5 { height: 70px; }
.student-6 { height: 55px; }
.student-7 { height: 65px; }

/* 메인 콘텐츠 */
.main-content {
    padding: 48px 0 60px 0;
    width: 100%;
    margin: 0 auto;
}

.content-container {
    display: flex;
    flex-direction: row;
    gap: 120px;
    align-items: flex-start;
}

/* 섹션 공통 스타일 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.more-btn {
    width: 32px;
    height: 32px;
    background-color: #4D4D4D;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.more-btn:hover {
    background-color: #666666;
}

/* 공지사항 섹션 */
.notice-section {
    background-color: white;
    width: 488px;
    flex-shrink: 0;
}
.notice-section .section-header {
    margin-bottom: 5px;
}

.notice-list {
    display: flex;
    flex-direction: column;
}

.notice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    height: 52px;
}

.notice-item:hover {
    background-color: #f8f8f8;
}

/* 공지 hover 하단 8px 라인 */
.notice-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 8px;
    background-color: #D3EBF4;
    transition: width 0.2s ease;
}
.notice-item:hover::after {
    width: 100%;
}

.notice-content {
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
}

.new-badge {
    background-color: #004ea2;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 16px;
    text-align: center;
}

.notice-date {
    font-size: 18px;
    color: #000;
    white-space: nowrap;
    text-align: right;
}

/* 일정표 섹션 */
.schedule-section {
    background-color: white;
    width: 297px;
    flex-shrink: 0;
}

.schedule-list {
    display: flex;
    flex-direction: column;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: var(--transition);
}

.schedule-item:first-child {
    padding-top:0;
}
.schedule-item:hover {
    background-color: #f8f8f8;
}

.region-badge {
    background-color: #E1E1E1;
    color: #333;
    padding: 6px 12px;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    width: 72px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.schedule-content {
    font-size: 18px;
    line-height: 1.4;
    flex: 1;
    text-align: right;
    color: #333;
}

/* 액션 섹션 */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 36%;
}

.action-section  .action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px 20px 35px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    text-align: left;
    width: 100%;
    height: 74px;
    min-width: 290px;
}

.action-btn:hover {
    opacity: 0.9;
}

.login-action {
    background-color: #398CFF;
}

.login-action .btn-icon {
    background-image: url('/images/web/ic-m1.png');
    background-repeat: no-repeat;
    background-position: center;
}

.action-btn .btn-text {
    font-size: 18px;
    font-weight: 700;
}

.application-action {
    background-color: #1473E6;
}

.application-action .btn-icon {
    background-image: url('/images/web/ic-m2.png');
    background-repeat: no-repeat;
    background-position: center;
}

.school-action {
    background-color: #00AFEC;
}

.school-action .btn-icon {
    background-image: url('/images/web/ic-m3.png');
    background-repeat: no-repeat;
    background-position: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    flex-shrink: 0;
}

.btn-text {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-align: right;
    width: 100%;
}

/* 1400px 이하 디자인 -메인*/
@media (min-width: 601px) and (max-width: 1400px) {
    
    .content-container {
        flex-direction: column;
        gap: 40px;
    }

    .notice-item:first-child {
        padding-top:0px;
    }
    
    .notice-section,
    .schedule-section,
    .action-section {
        width: 100%;
        max-width: 100%;
    }
    
    .action-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
        max-width: none;
        position: relative;
        justify-content: center;
    }
    
    .action-btn .btn-icon {
        position: absolute;
        left: 30%;
        transform: translateX(-50%);
    }
    
    .action-btn .btn-text {
        text-align: center;
        margin-right: 0;
    }
    
}
/* 반응형 디자인 */
@media (min-width: 601px) and (max-width: 834px) {
    .banner-image.slide-1 { background-image: url('/images/web/main-visual-834.png'); }
    .banner-image.slide-2 { background-image: url('/images/web/main-visual2-834.png'); }
    .banner-image.slide-3 { background-image: url('/images/web/main-visual3-834.png'); }
    .banner-image.slide-4 { background-image: url('/images/web/main-visual4-834.png'); }
    
    .content-container {
        flex-direction: column;
        gap: 40px;
    }

    .notice-item:first-child {
        padding-top:0px;
    }
    
    .notice-section,
    .schedule-section,
    .action-section {
        width: 100%;
        max-width: 100%;
    }
    
    .action-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-btn {
        width: 100%;
        max-width: none;
        position: relative;
        justify-content: center;
    }
    
    .action-btn .btn-icon {
        position: absolute;
        left: 30%;
        transform: translateX(-50%);
    }
    
    .action-btn .btn-text {
        text-align: center;
        margin-right: 0;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .students-group {
        gap: 10px;
    }
    
    .student {
        width: 40px;
        height: 60px;
    }
    
    .student::before {
        width: 30px;
        height: 30px;
        top: -12px;
    }
    .notice-content {
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 400px;
        display: block;
    }
}

@media (min-width: 835px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .students-group {
        gap: 10px;
    }
    
    .student {
        width: 40px;
        height: 60px;
    }
    
    .student::before {
        width: 30px;
        height: 30px;
        top: -12px;
    }
}

@media (max-width: 600px) {
    .main-banner {
        background-size: 100% 100%;
        width: 100%;
        height: 270px;
        margin-top: 46px;
    }
    .banner-image.slide-1 { background-image: url('/images/web/main-visual-428.png'); }
    .banner-image.slide-2 { background-image: url('/images/web/main-visual2-428.png'); }
    .banner-image.slide-3 { background-image: url('/images/web/main-visual3-428.png'); }
    .banner-image.slide-4 { background-image: url('/images/web/main-visual4-428.png'); }
    
    .banner-controls {
        display: none;
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-subtitle {
        font-size: 12px;
    }
    
    .students-group {
        gap: 5px;
    }
    
    .student {
        width: 30px;
        height: 45px;
    }
    
    .student::before {
        width: 20px;
        height: 20px;
        top: -8px;
    }
    
    .content-container {
        flex-direction: column;
        gap: 0px;
    }
    
    .notice-section,
    .schedule-section,
    .action-section {
        width: 100%;
    }
    
    .schedule-section {
        margin-top: 74px;
    }
    
    .action-section {
        margin-top: 68px;
    }
    
    .action-btn {
        padding: 20px 45px 20px 40px;
        text-align: center;
        width: 100%;
        height: 74px;
        position: relative;
        justify-content: center;
        gap: 0px;
    }
    
    .action-btn .btn-icon {
        position: static;
        transform: none;
        width: 40px;
        height: 40px;
        margin-right: 20px;
    }
    
    .btn-text {
        font-size: 18px;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .notice-content {
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 250px;
        display: block;
    }
    
    .schedule-content {
        font-weight: 700;
    }
}

/* 닫기 버튼 */
.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    width: 24px;
    height: 24px;
}

.close-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* X 모양을 위한 CSS */
.close-menu-btn::before,
.close-menu-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
    transform-origin: center;
}

.close-menu-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
