* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", Arial, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 공통 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 헤더 */
.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    height: 88px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #1d3557;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logo span {
    color: #3aa0ff;
}

.main-nav {
    height: 100%;
}

.gnb {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.gnb > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb > li > a {
    display: flex;
    align-items: center;
    height: 88px;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    transition: color 0.2s ease;
}

.gnb > li > a:hover {
    color: #2f80ed;
}

/* 고객센터 드롭다운 */
.submenu {
    display: none;
    position: absolute;
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
    background: #fff;
    border-top: 2px solid #2f80ed;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 6px 0;
}

.submenu li a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.submenu li a:hover {
    background: #f4f8ff;
    color: #2f80ed;
}

.has-submenu:hover .submenu {
    display: block;
}

/* 메인 히어로 */
.hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #08142f 0%, #121c3b 100%);
    color: #fff;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-right img {
    max-height: 520px;
    object-fit: contain;
}

.hero-sub {
    font-size: 22px;
    margin-bottom: 16px;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badges span {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 14px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero h1 span {
    color: #2fb2ff;
}

.hero-desc {
    font-size: 24px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-main {
    display: inline-block;
    padding: 14px 28px;
    background: #2f80ed;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
}

.btn-main:hover {
    background: #1668d1;
}

/* 일반 섹션 */
.section {
    padding: 80px 0;
}

.section-light {
    background: #f7f9fc;
}

.section h2,
.container h2 {
    font-size: 36px;
    margin-bottom: 36px;
    text-align: center;
}

/* 카드 */
.card-grid,
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card,
.teacher-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.card h3,
.teacher-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.card p,
.teacher-card p {
    color: #555;
}

.teacher-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* 고객센터 내부 페이지용 */
.page-hero {
    padding: 60px 0 30px;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-hero p {
    color: #666;
    font-size: 18px;
}

.page-section {
    padding: 30px 0 80px;
}

.page-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* 반응형 */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-right {
        justify-content: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .card-grid,
    .teacher-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 16px 20px;
        flex-direction: column;
        gap: 14px;
    }

    .gnb {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gnb > li > a {
        height: auto;
        padding: 8px 0;
    }

    .submenu {
        top: calc(100% + 8px);
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-sub {
        font-size: 18px;
    }

    .hero-desc {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2,
    .container h2 {
        font-size: 28px;
    }
}


.auth-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-btn {
    border: none;
    background: none;
    cursor: pointer;
}

.my-class {
    padding: 8px 14px;
    background: #ddd;
    border-radius: 6px;
}

.my-class.active {
    background: #4da3ff;
    color: #fff;
}

.modal {
    display: none;
}

.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    width: 300px;
}

.modal-box input {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}

.modal-box button {
    width: 100%;
    background: #4da3ff;
    color: #fff;
    border: none;
    padding: 10px;
}


.my-class {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

/* 로그인 상태 (파랑) */
.my-class.active {
    background: #4da3ff;
    color: #fff;
}

/* 비로그인 상태 (회색) */
.my-class.disabled {
    background: #ccc;
    color: #666;
    cursor: pointer;
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.my-class {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-sizing: border-box;
}

.my-class.active {
    background: #4da3ff;
    color: #fff;
}

.my-class.disabled {
    background: #ccc;
    color: #666;
    cursor: pointer;
}

.my-class.disabled:hover {
    background: #bdbdbd;
}

.my-class.admin-btn {
    background: #2f80ed;
    color: #fff;
}

.welcome-text {
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.login-btn,
.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 로그인 버튼 */
.login-btn {
    border: 1px solid #4da3ff;
    background: #fff;
    color: #4da3ff;
}

.login-btn:hover {
    background: #eef6ff;
}

/* 로그아웃 버튼 */
.logout-btn {
    border: 1px solid #d0d7e2;
    background: #fff;
    color: #333;
}

.logout-btn:hover {
    background: #f5f7fa;
    border-color: #b8c2d1;
}

/* 관리자 버튼 */
.admin-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: #2f80ed;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

/* 유저 이름 */
.user-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: #eef3fb;
    color: #2a4f77;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #d0d7e2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: #dbeafe;
    border-color: #a8c9f0;
}