@charset "utf-8";

/* --- [Modern Reset & Variables] --- */
:root {
    --primary: #00c7ae;
    --primary-dark: #009e8a;
    --secondary: #2c3e50;
    --bg-body: #f8f9fa;
    --bg-white: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --text-light: #999999;
    --text-footer: #bdc3c7;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 32px rgba(0,199,174,0.15);
    --radius-md: 12px;
    --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* --- [Glassmorphism Header] --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.logo span { color: var(--primary); }

/* --- [Desktop GNB] --- */
.gnb-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.gnb { display: flex; gap: 50px; }
.gnb > li { position: relative; padding: 28px 0; }
.gnb > li > a { font-weight: 700; font-size: 17px; color: var(--secondary); position: relative; }
.gnb > li > a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0%; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.gnb > li:hover > a { color: var(--primary); }
.gnb > li:hover > a::after { width: 100%; }

.submenu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white); min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px;
    padding: 10px 0; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999; border: 1px solid rgba(0,0,0,0.05);
}
.gnb > li:hover .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu li a { display: block; padding: 10px 20px; font-size: 14px; color: var(--text-sub); font-weight: 500; white-space: nowrap; }
.submenu li a:hover { background: #f0fffd; color: var(--primary-dark); }

.auth-buttons { display: flex; gap: 12px; z-index: 2; }
.btn-login { padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 14px; color: var(--text-sub); border: 1px solid #ddd; }
.btn-login:hover { border-color: var(--text-main); color: var(--text-main); }
.btn-signup { padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 14px; background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(0, 199, 174, 0.3); }
.btn-signup:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* --- [Mobile Menu Sidebar] --- */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-sidebar {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
    background: white; z-index: 2001; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu-sidebar.active { right: 0; }

.m-header {
    padding: 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.m-close-btn { font-size: 24px; color: #333; }

.m-body { flex: 1; overflow-y: auto; padding: 20px 0; }
.m-menu-list > li { border-bottom: 1px solid #f5f5f5; }

.m-menu-title {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; font-weight: 700; font-size: 16px; color: var(--secondary);
    cursor: pointer;
}
.m-menu-title.active { color: var(--primary); }
.m-arrow { transition: 0.3s; font-size: 12px; }
.m-menu-title.active .m-arrow { transform: rotate(180deg); }

.m-submenu { display: none; background: #f9f9f9; padding: 10px 0; }
.m-submenu.active { display: block; }
.m-submenu li a { display: block; padding: 10px 30px; font-size: 14px; color: #666; }
.m-submenu li a:hover { color: var(--primary); }

.m-footer { padding: 20px; border-top: 1px solid #eee; }
.m-auth-btn { width: 100%; padding: 12px; border-radius: 8px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.m-login { border: 1px solid #ddd; color: #666; }
.m-signup { background: var(--primary); color: white; }

/* --- [Hero Section] --- */
.hero {
    padding: 100px 20px 160px;
    background: linear-gradient(120deg, #f0fffd 0%, #ffffff 100%);
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content { max-width: 800px; position: relative; z-index: 2; }

/* Hero Background Floating Icons */
.hero-bg-icon {
    position: absolute; color: var(--primary); opacity: 0.1; pointer-events: none; z-index: 1;
    animation: floatIcon 6s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
.icon-leaf-1 { top: 10%; left: 5%; width: 80px; height: 80px; animation-duration: 8s; }
.icon-leaf-2 { bottom: 15%; right: 8%; width: 100px; height: 100px; animation-duration: 7s; animation-delay: 1s; opacity: 0.08; }
.icon-house { top: 15%; right: 15%; width: 60px; height: 60px; animation-duration: 9s; animation-delay: 2s; opacity: 0.12; }
.icon-wind { bottom: 20%; left: 10%; width: 70px; height: 70px; animation-duration: 10s; animation-delay: 0.5s; }
.icon-sun { top: 20%; right: 5%; width: 50px; height: 50px; animation-duration: 6s; animation-delay: 3s; color: #f1c40f; opacity: 0.15; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.hero-badge { display: inline-block; background: rgba(0, 199, 174, 0.1); color: var(--primary-dark); padding: 6px 16px; border-radius: 30px; font-weight: 700; font-size: 14px; margin-bottom: 24px; animation-delay: 0.2s; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.3; margin-bottom: 24px; color: var(--secondary); animation-delay: 0.4s; }
.hero h1 .highlight { color: var(--primary); position: relative; display: inline-block; }
.hero h1 .highlight::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 12px; background: rgba(0, 199, 174, 0.2); z-index: -1; transform: rotate(-2deg); }
.hero p { font-size: 18px; color: var(--text-sub); margin-bottom: 40px; word-break: keep-all; animation-delay: 0.6s; }
.cta-group { display: flex; justify-content: center; gap: 16px; animation-delay: 0.8s; }

.btn-cta, .btn-outline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-cta { padding: 16px 40px; border-radius: 12px; font-size: 18px; font-weight: 700; background: var(--secondary); color: white; box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2); }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(44, 62, 80, 0.3); }
.btn-outline { padding: 16px 40px; border-radius: 12px; font-size: 18px; font-weight: 700; background: white; border: 1px solid #ddd; color: var(--text-main); }
.btn-outline:hover { border-color: var(--secondary); background: #f8f9fa; }

/* --- [Notice Section] --- */
.notice-container {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    position: relative; z-index: 20; margin-top: -60px; margin-bottom: 60px;
}
.notice-box {
    background: white; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px; display: flex; align-items: flex-start; gap: 40px;
    border: 1px solid rgba(0,0,0,0.03);
}
.notice-title-area { min-width: 120px; display: flex; flex-direction: column; gap: 8px; }
.notice-title-area h3 { font-size: 20px; font-weight: 800; color: var(--secondary); margin: 0; }
.notice-more { font-size: 13px; color: var(--text-light); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.notice-more:hover { color: var(--primary); }
.notice-list { flex: 1; display: flex; flex-direction: column; gap: 15px; border-left: 1px solid #f0f0f0; padding-left: 40px; }
.notice-item { display: flex; align-items: center; gap: 15px; font-size: 15px; color: var(--text-main); padding: 4px 0; }
.notice-item:hover { color: var(--primary); }
.notice-item:hover .notice-text { text-decoration: underline; }
.notice-tag { font-size: 11px; font-weight: 700; color: white; background: #bdc3c7; padding: 3px 8px; border-radius: 4px; min-width: 45px; text-align: center; }
.notice-tag.new { background: var(--primary); }
.notice-tag.event { background: #ff9f43; }
.notice-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-date { font-size: 13px; color: var(--text-light); min-width: 80px; text-align: right; }

/* --- [Course Section] --- */
.section-container { max-width: 1280px; margin: 0 auto 100px; padding: 0 20px; position: relative; z-index: 10; }
.section-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; padding: 0 10px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--secondary); }
.section-title span { color: var(--primary); }
.view-all { font-size: 14px; font-weight: 600; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.view-all:hover { color: var(--primary); }

.course-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .course-grid { grid-template-columns: repeat(4, 1fr); } }

.course-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.card-thumb { width: 100%; aspect-ratio: 16 / 9; background-color: #eee; position: relative; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.course-card:hover .card-thumb img { transform: scale(1.05); }
.play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.course-card:hover .play-overlay { opacity: 1; }
.play-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transform: scale(0.8); transition: transform 0.3s; }
.course-card:hover .play-icon { transform: scale(1); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.tag.primary { background: #e0fbf8; color: var(--primary-dark); }
.tag.secondary { background: #f0f0f0; color: #666; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text-main); flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; font-size: 12px; color: var(--text-light); }
.author { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-sub); }
.author-avatar { width: 24px; height: 24px; background: #ddd; border-radius: 50%; }

/* --- [Footer] --- */
footer { background-color: var(--secondary); color: var(--text-footer); padding: 60px 20px 80px; margin-top: auto; font-size: 14px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.footer-left { flex: 1; min-width: 300px; }
.footer-links { display: flex; gap: 20px; margin-bottom: 30px; font-weight: 600; }
.footer-links a { color: #fff; opacity: 0.9; }
.footer-links a:hover { text-decoration: underline; opacity: 1; }
.footer-info p { margin-bottom: 8px; line-height: 1.6; }
.footer-info span { margin-right: 15px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; }
.footer-logo { font-size: 28px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; opacity: 0.8; margin-bottom: 10px; }

/* Mobile Menu Toggle */
.mobile-toggle { display: none; font-size: 24px; color: var(--text-main); }

/* --- [Quick Menu] --- */
.quick-menu {
    position: fixed; bottom: 30px; right: 30px; z-index: 990;
    display: flex; flex-direction: column; gap: 12px;
}
.quick-btn {
    width: 50px; height: 50px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.3s;
    cursor: pointer; border: 1px solid #eee; color: #333;
}
.quick-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); }
.quick-btn.kakao { background: #FAE100; color: #3C1E1E; border-color: #FAE100; }
.quick-btn.top { background: var(--secondary); color: white; border-color: var(--secondary); }

/* --- [Responsive] --- */
@media (max-width: 1024px) {
    .gnb-wrapper { display: none; }
    .auth-buttons { display: none; }
    .mobile-toggle { display: block; margin-left: auto; }
    .hero h1 { font-size: 36px; }
    .section-container { margin-top: 0; }
    .quick-menu { display: none; }
}
@media (max-width: 900px) {
    .notice-box { flex-direction: column; gap: 20px; padding: 20px; }
    .notice-list { border-left: none; padding-left: 0; width: 100%; }
    .notice-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}
@media (max-width: 768px) {
    .footer-inner { flex-direction: column; }
    .footer-right { align-items: flex-start; margin-top: 20px; }
    .hero { padding: 60px 20px 80px; }
    .hero-bg-icon { display: none; }
    .notice-container { margin-top: -40px; margin-bottom: 40px; }
	.footer-right { display: none; }
}
