/* 리셋 CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    font-display: swap; /* 폰트 로딩 최적화 */
}

/* FOUC 방지 추가 스타일 */
body:not(.loaded) {
    visibility: hidden !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* 공통 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 헤더 스타일 */
.header {
    height: 100px;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 61px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
    color: #2c3e50;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    padding: 3px 10px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2c3e50;
}

/* 헤더의 관리자 콘솔 버튼 */
.admin-console-btn {
    background-color: #dc3545;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.admin-console-btn:hover {
    background-color: #c82333;
    color: #fff;
    text-decoration: none;
}

/* 햄버거 버튼 스타일 */
.hamburger-btn {
    background: none;
    border: none;
    font-size: 32px;
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    line-height: 1;
    margin-left: 20px;
}

.hamburger-btn.active {
    color: #ffffff;
}

/* 고정 X 버튼 (오버레이 활성화 시 표시) */
.fixed-close-btn {
    position: fixed;
    top: 30px;
    right: calc((100vw - 1200px) / 2 + 1rem);
    background: none;
    border: none;
    font-size: 32px;
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
    z-index: 10001;
    display: none;
    line-height: 1;
    transition: all 0.3s ease;
}

.fixed-close-btn.active {
    display: block;
}

/* 1200px 이하에서 고정 X 버튼 위치 조정 */
@media (max-width: 1200px) {
    .fixed-close-btn {
        right: calc(1rem + 20px);
    }
}

/* 모바일 전용 햄버거 메뉴 스타일 */
.mobile-hamburger-btn {
    display: none;
    position: fixed;
    top: 7px;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
    line-height: 1;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-close-btn {
    position: absolute;
    top: 15px;
    left: calc(20% - 40px);
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    color: white;
    z-index: 10000;
    line-height: 1;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-logo {
    width: 140px;
    height: auto;
}

.mobile-menu-section {
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-item {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #f8f8f8;
    text-decoration: none;
    color: #333;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-class-section {
    background-color: #f1f1f1;
}

.mobile-class-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.2s ease;
}

.mobile-class-item:hover {
    background-color: #f8f8f8;
    text-decoration: none;
    color: #333;
}

.mobile-class-item:last-child {
    border-bottom: none;
}

.mobile-class-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #345f53;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.mobile-class-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    margin-left: 12px;
}

.mobile-class-code {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

/* 모바일 관리자 섹션 */
.mobile-admin-section {
    background-color: #345f53;
    border-top: 1px solid #e5e5e5;
}

.mobile-admin-section .mobile-menu-item {
    color: white;
    background-color: #345f53;
    font-weight: 500;
    border-bottom: none;
}

.mobile-admin-section .mobile-menu-item:hover {
    background-color: #2d5147;
    color: white;
}

.mobile-admin-section .mobile-menu-item i {
    margin-right: 8px;
    color: #a8d4c9;
}

/* 클래스 메뉴 오버레이 */
.class-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
}

.class-menu-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.class-menu-container {
    background: white;
    border-radius: 12px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
    z-index: 10000;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 기존 close-btn 스타일 제거 */
.close-btn {
    display: none;
}

.class-menu-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.class-menu-card {
    flex: 1;
    width: 16.66%;
    min-width: 150px;
    padding: 20px 10px;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
}

.class-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #345f53;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.class-menu-card .class-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0 0.5rem;
    color: #333;
    line-height: 1.4;
}

.class-subtitle {
    font-size: 0.95rem;
    color: #777;
    text-align: center;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.class-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.class-menu-links a {
    display: block;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.class-menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #345f53;
    transition: width 0.3s ease;
}

.class-menu-links a:hover {
    color: #345f53;
    font-weight: 500;
}

.class-menu-links a:hover::after {
    width: 100%;
}

.class-menu-links a:first-child {
    border-top: 2px solid #345f53;
}

.class-menu-links a:last-child {
    border-bottom: none;
}

/* Hero 섹션 */
.hero-section {
    width: 100%;
    background-color: #fff;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 1rem;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
}

.hero-text {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 32px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}

.hero-nav {
    width: 100%;
    background-color: #222;
    height: 70px;
}

.hero-nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1px;
    padding: 0 1rem;
}

.hero-nav-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #345f53;
    color: white;
    text-decoration: none;
    padding: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #345f53;
}

.hero-nav-btn:hover {
    background-color: #2a5449;
    border-color: #2a5449;
}

.nav-number-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-subject {
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* 플로팅 버튼들 */
.floating-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.floating-btn {
    width: 120px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #345f53;
    color: #fff;
    padding: 0 15px;
    position: relative;
    text-decoration: none;
}

.floating-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background-color: rgba(255, 255, 255, 1);
}

.floating-btn:last-child {
    border-bottom: none;
}

.floating-btn:last-child::after {
    display: none;
}

.floating-btn:hover {
    background-color: #2a5449;
}

.floating-btn i {
    font-size: 20px;
    width: 20px;
    text-align: center;
}

.floating-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.btn-text {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

/* 상담문의 모달 */
.consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.consultation-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.modal-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-phone {
    font-size: 32px;
    font-weight: 700;
    color: #f39c12;
    margin-bottom: 30px;
}

.modal-btn {
    background-color: #345f53;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-btn:hover {
    background-color: #2a5449;
}

/* 온율 강사 지원하기 버튼 */
.teacher-apply-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(220px);
    background-color: #4995dc;
    color: white;
    text-decoration: none;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.teacher-apply-btn:hover {
    background-color: #3a7bc8;
}

.teacher-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.apply-text {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* 로그인 모달 스타일 */
.login-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-header {
    position: relative;
    padding: 24px 24px 0 24px;
}

.login-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

/* 모달 탭 스타일 */
.modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
    margin-top: 20px;
}

.modal-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal-tab.active {
    color: #345f53;
    font-weight: 600;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #345f53;
}

.modal-tab:hover:not(.active) {
    color: #666;
    background-color: #f9f9f9;
}

.login-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-close-btn:hover {
    background-color: #f5f5f5;
    color: #666;
}

.login-form, .signup-form {
    padding: 0 24px 24px 24px;
}

/* 회원가입 폼 스타일 */
.signup-form {
    max-height: 60vh;
    overflow-y: auto;
}

.signup-form .form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.signup-form .form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.signup-form .form-section h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #345f53;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-form .checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.signup-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.signup-form .checkbox-group input[type="checkbox"] {
    margin-right: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: white;
}

.form-group select {
    cursor: pointer;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #345f53;
    box-shadow: 0 0 0 3px rgba(52, 95, 83, 0.1);
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
    min-height: 22px;
}

.checkbox-label input[type="checkbox"] {
    width: 12px;
    height: 12px;
    margin-right:4px;
    cursor: pointer;
}

.checkmark {
    display: none;
}

.login-submit-btn, .signup-submit-btn {
    width: 100%;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 로그인 버튼 기본 스타일 (비활성 탭일 때) */
.login-submit-btn {
    background: linear-gradient(135deg, #6b8e7f, #5a7a6d);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 회원가입 버튼 기본 스타일 (비활성 탭일 때) */
.signup-submit-btn {
    background: linear-gradient(135deg, #6b8e7f, #5a7a6d);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 로그인 탭이 활성화일 때 로그인 버튼 강조 */
#loginForm:not([style*="none"]) .login-submit-btn {
    background: linear-gradient(135deg, #345f53, #2a4d41);
    box-shadow: 0 4px 12px rgba(52, 95, 83, 0.3);
    animation: pulseGlow 2s infinite;
}

/* 회원가입 탭이 활성화일 때 회원가입 버튼 강조 */
#signupForm:not([style*="none"]) .signup-submit-btn {
    background: linear-gradient(135deg, #345f53, #2a4d41);
    box-shadow: 0 4px 12px rgba(52, 95, 83, 0.3);
    animation: pulseGlow 2s infinite;
}

/* 호버 효과 */
.login-submit-btn:hover, .signup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 95, 83, 0.4);
}

/* 활성 탭 버튼 호버 */
#loginForm:not([style*="none"]) .login-submit-btn:hover,
#signupForm:not([style*="none"]) .signup-submit-btn:hover {
    background: linear-gradient(135deg, #2a4d41, #1f3a30);
    box-shadow: 0 6px 20px rgba(52, 95, 83, 0.5);
}

/* 클릭 효과 */
.login-submit-btn:active, .signup-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-submit-btn:disabled, .signup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
}

/* 부드러운 반짝임 효과 */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(52, 95, 83, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(52, 95, 83, 0.5);
    }
}


/* 푸터 스타일 */
.footer {
    height: 90px;
    width: 100%;
    background-color: #222;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.footer-info {
    text-align: center;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 12px;
    font-weight: 400;
}

.footer-links a:hover {
    color: #fff;
}

.footer-text {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
}

.copyright {
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .header-container {
        padding: 10px 1rem 0 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .logo-img{
        width: 140px;
    }
    
    /* 클래스 메뉴 오버레이 반응형 */
    .class-menu-overlay {
        padding-top: 100px;
    }
    
    .class-menu-container {
        padding: 1.5rem;
        max-width: 95%;
        border-radius: 12px;
    }
    
    .class-menu-grid {
        gap: 1.5rem;
    }
    
    .class-menu-card {
        width: 30%;
        min-width: 120px;
        padding: 1.5rem 0.8rem;
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .class-menu-card .class-title {
        font-size: 1.2rem;
        margin: 0.8rem 0 0.4rem;
    }
    
    .class-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .class-menu-links a {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .class-menu-links a:last-child {
        border-bottom: none;
    }
    
    .hero-content {
        padding: 2.5rem 1rem;
    }
    
    .hero-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-nav-container {
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .hero-nav-btn {
        padding: 0.8rem 1.2rem;
        flex: 1;
        min-width: 120px;
    }
    
    .nav-number {
        font-size: 14px;
    }
    
    .nav-subject {
        font-size: 12px;
    }
    
    .floating-buttons {
        display: none;
    }
    
    .teacher-apply-btn {
        display: none;
    }
    
    .footer {
        height: auto;
        padding: 1rem 0;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-links a {
        margin: 0;
    }
    
    .nav-subject {
        font-size: 12px;
    }
    
    .class-number-icon {
        width: 20px;
        height: 20px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .header {
        height: 60px;
    }
  
    .logo-img {
        width: 140px;
        height: auto;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .hamburger-btn {
        display: none;
    }
    
    .mobile-hamburger-btn {
        display: block;
    }
    
    /* 클래스 메뉴 오버레이 모바일 */
    .class-menu-overlay {
        top: 0;
        height: 100vh;
        padding-top: 60px;
    }
    
    .class-menu-container {
        padding: 0.8rem;
        max-width: 95%;
        max-height: calc(100vh - 80px);
        border-radius: 0 0 12px 12px;
    }
    
    .class-menu-grid {
        gap: 0.8rem;
    }
    
    .class-menu-card {
        width: 100%;
        padding: 1rem;
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .class-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin: 0 auto 0.6rem;
    }
    
    .class-menu-card .class-title {
        font-size: 1rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .class-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .class-menu-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .class-menu-links a {
        flex: 1;
        min-width: 80px;
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
        border: 1px solid #eee;
        border-radius: 4px;
        border-bottom: 1px solid #eee;
        position: relative;
        overflow: hidden;
    }
    
    .class-menu-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #345f53;
        transition: width 0.3s ease;
    }
    
    .class-menu-links a:hover {
        color: #345f53;
        font-weight: 500;
    }
    
    .class-menu-links a:hover::after {
        width: 100%;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-logo-img {
        width: 70px;
        height: 70px;
    }
    
    .hero-text p {
        font-size: 15px;
    }
    
    .hero-nav {
        height: auto;
        min-height: 100px;
    }
    
    .hero-nav-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        padding: 0;
        height: auto;
    }
    
    .hero-nav-btn {
        width: 100%;
        justify-content: flex-start;
        min-height: 30px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
    }
    
    .nav-number-icon {
        width:24px;
        height:24px;
        margin-right: 0.5rem;
    }
    
    .nav-subject {
        font-size: 14px;
    }
    
    .floating-buttons {
        display: none;
    }
    
    .teacher-apply-btn {
        display: none;
    }
    
    .footer {
        height: auto;
        padding: 1rem 0;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-links a {
        margin: 0;
    }
    
    .login-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .login-modal-header {
        padding: 20px 20px 0 20px;
        margin-bottom: 20px;
    }
    
    .login-modal-header h2 {
        font-size: 20px;
    }
    
    .login-form {
        padding: 0 20px 20px 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .login-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
        left: 3px;
        top: 1px;
        width: 4px;
        height: 8px;
    }
    
    .mobile-class-number-icon {
        width: 18px;
        height: 18px;
    }
    
    .class-number-icon {
        width: 16px;
        height: 16px;
    }
    
    .nav-subject {
        font-size: 12px;
    }
}

/* 반응형 - 작은 모바일 */
@media (max-width: 480px) {
    .header {
        height: 60px;
    }
  
    .logo-img {
        width: 140px;
        height: auto;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* 클래스 메뉴 오버레이 작은 모바일 */
    .class-menu-overlay {
        top: 0;
        height: 100vh;
        padding-top: 60px;
    }
    
    .class-menu-container {
        padding: 0.8rem;
        max-width: 95%;
        max-height: calc(100vh - 80px);
        border-radius: 0 0 12px 12px;
    }
    
    .class-menu-grid {
        gap: 0.8rem;
    }
    
    .class-menu-card {
        width: 100%;
        padding: 1rem;
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .class-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin: 0 auto 0.6rem;
    }
    
    .class-menu-card .class-title {
        font-size: 1rem;
        margin: 0.5rem 0 0.3rem;
    }
    
    .class-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .class-menu-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .class-menu-links a {
        flex: 1;
        min-width: 80px;
        font-size: 0.85rem;
        padding: 0.4rem 0.2rem;
        border: 1px solid #eee;
        border-radius: 4px;
        border-bottom: 1px solid #eee;
        position: relative;
        overflow: hidden;
    }
    
    .class-menu-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: #345f53;
        transition: width 0.3s ease;
    }
    
    .class-menu-links a:hover {
        color: #345f53;
        font-weight: 500;
    }
    
    .class-menu-links a:hover::after {
        width: 100%;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .hero-text p {
        font-size: 14px;
    }
    
    .hero-nav-btn {
        padding: 0.8rem;
    }
    
    
    .nav-subject {
        font-size: 12px;
    }
    
    .floating-buttons {
        display: none;
    }
    
    .teacher-apply-btn {
        display: none;
    }
    
    .footer {
        height: auto;
        padding: 1rem 0;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-links a {
        margin: 0;
    }
}

/* 모바일 클래스 메뉴 번호 아이콘 스타일 */
.mobile-class-number-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 클래스별 히어로 번호 아이콘 스타일 */
.class-number-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
} 