

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0055ff;
    --bg-dark: #060912;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: #b0b8c1;
    --accent-gold: #ffcc00;
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    background-color: #000;
}

/* 배경 레이어 */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(180deg, rgba(6, 9, 18, 0.5) 0%, rgba(6, 9, 18, 0.9) 100%),
                radial-gradient(circle at 50% 50%, rgba(6, 9, 18, 0.4) 0%, #060912 100%);
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    padding: 2vh 5vw;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 2vh;
    animation: fadeIn 0.8s ease-out forwards;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 85, 255, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

.main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    overflow: hidden;
    margin-bottom: 90px;
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    animation: fadeIn 1s ease-out 0.2s forwards;
    opacity: 0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.section-title i { margin-right: 12px; }

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
}

.curr-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s;
}

.curr-item:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--glass-border); }

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    flex: 1;
    backdrop-filter: blur(20px);
    animation: fadeIn 1s ease-out 0.4s forwards;
    opacity: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--accent-gold);
    margin-top: 4px;
    margin-right: 12px;
    font-size: 1rem;
}

/* 装饰图默认隐藏 (PC端) */
.mobile-deco-img { display: none; }

/* 모바일 최적화 */
@media (max-width: 768px) {
    body, html { overflow: hidden; position: fixed; width: 100%; height: 100%; }
    .container { padding: 10px 15px; height: 100vh; justify-content: flex-start; gap: 5px; }
    
    header { margin-bottom: 5px; }
    .badge { padding: 2px 10px; font-size: 0.7rem; margin-bottom: 2px; }
    h1 { font-size: 1.1rem; margin-bottom: 2px; }
    .subtitle { font-size: 0.68rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .main-grid { 
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 0;
        flex: 0 1 auto;
        overflow: hidden;
    }

    .content-card { padding: 10px; border-radius: 16px; flex: none; }
    .section-title { font-size: 0.85rem; margin-bottom: 6px; }

    .curriculum-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .curr-item { padding: 5px 8px; border-radius: 8px; }
    .curr-item .curr-desc { display: none; } /* 모바일에서 긴 설명 숨김 */
    .curr-item span:nth-child(2) { font-size: 0.72rem !important; margin-bottom: 0 !important; }

    .side-panel { gap: 5px; }
    .side-section { padding: 10px; border-radius: 16px; flex: none; }
    .side-section:last-child { display: none; } /* 모바일에서 커뮤니티 섹션 숨김 */
    
    .feature-item { margin-bottom: 4px; }
    .feature-item i { font-size: 0.75rem; margin-top: 2px; }
    .feature-text h4 { font-size: 0.78rem; }
    .feature-text p { font-size: 0.68rem; line-height: 1.2; }

    .mobile-deco-img {
        display: block;
        width: 100%;
        height: 200px;
        background: url('../images/mobile_deco.jpg') center/cover no-repeat;
        border-radius: 16px;
        border: 1px solid var(--glass-border);
        margin-top: 5px;
        animation: fadeIn 1s ease-out 0.5s forwards;
        opacity: 0;
    }

    .footer-links { bottom: 85px; gap: 10px; font-size: 0.62rem; position: fixed; width: 100%; left: 0; justify-content: center; }
    .cta-fixed-container { bottom: 20px; position: fixed; }
    .cta-button { height: 48px; font-size: 0.95rem; max-width: 90%; }
}

/* 针对极小高度屏幕 */
@media (max-height: 670px) and (max-width: 768px) {
    h1 { font-size: 1rem; }
    .badge { display: none; }
    .subtitle { -webkit-line-clamp: 1; line-clamp: 1; }
    .mobile-deco-img { height: 60px; }
}

/* 푸터 및 모달 */
.footer-links {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.75rem;
    color: var(--text-dim);
    z-index: 50;
}

.footer-links a { color: var(--text-dim); text-decoration: none; cursor: pointer; padding: 5px 10px; }
.footer-links a:hover { color: var(--primary-color); }

.cta-fixed-container { position: fixed; bottom: 25px; left: 0; width: 100%; display: flex; justify-content: center; padding: 0 20px; z-index: 100; animation: fadeIn 1s ease-out 0.6s forwards; opacity: 0; }
.cta-button { width: 100%; max-width: 450px; height: 60px; background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); border: none; border-radius: 30px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; font-weight: 800; box-shadow: 0 15px 35px rgba(21, 128, 61, 0.4); cursor: pointer; text-decoration: none; }
.cta-button img { width: 32px; height: 32px; margin-right: 15px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; padding: 20px; backdrop-filter: blur(10px); }
.modal-content { background: #1a1f2b; max-width: 600px; margin: 40px auto; padding: 30px; border-radius: 24px; max-height: 80vh; overflow-y: auto; position: relative; border: 1px solid var(--glass-border); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-dim); }
