/* ===== CSS 변수 ===== */
:root {
    --red: #e8192c;
    --red-dark: #c01020;
    --red-light: #ff3347;
    --green: #4ade80;
    --green-dark: #22c55e;
    --black: #111111;
    --text-main: #111827;
    --text-sub: #6b7280;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 28px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.13);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 리셋 & 기본 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-main);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 헤더 ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    transition: var(--transition);
}

.logo-icon { font-size: 24px; }
.logo-accent { color: var(--red); }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-sub);
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.nav a:hover { color: var(--red); }
.nav a:hover::after { width: 100%; }

.btn-consult {
    background: var(--red);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-consult:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,25,44,0.3);
}

/* ===== 히어로 (밝은 톤) ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f4 35%, #fff5f5 65%, #f0fdf4 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,25,44,0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(74,222,128,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(232,25,44,0.12);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { opacity: 0.9; }
    100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-content { flex: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,25,44,0.07);
    border: 1px solid rgba(232,25,44,0.15);
    color: var(--red);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--red);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 36px;
}

.hero-sub strong {
    color: var(--text-main);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px 28px;
    width: fit-content;
    box-shadow: var(--shadow-sm);
}

.stat-item { text-align: center; }
.stat-num {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: var(--red);
}
.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 2px;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(232,25,44,0.25);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(232,25,44,0.35);
}

.btn-ghost {
    background: var(--white);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 히어로 비주얼 */
.hero-visual {
    flex: 0 0 400px;
    position: relative;
    height: 480px;
}

.hero-circle-main {
    width: 260px; height: 260px;
    background: linear-gradient(135deg, rgba(232,25,44,0.08), rgba(74,222,128,0.08));
    border: 2px solid rgba(232,25,44,0.15);
    border-radius: 50%;
    position: absolute;
    top: 38%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.hero-circle-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 12px;
}
.hero-big-num {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.15;
    white-space: nowrap;
}
.hero-big-tilde {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-sub);
    line-height: 1;
}
.hero-big-num2 {
    display: block;
    font-size: 34px;
    font-weight: 900;
    color: var(--red);
    line-height: 1.15;
    white-space: nowrap;
}
.hero-big-label {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 6px;
    white-space: nowrap;
}

.hero-card-float {
    position: absolute;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    animation: floatCard 4s ease-in-out infinite;
    box-shadow: var(--shadow);
}

.hero-card-float i {
    font-size: 18px;
    color: var(--red);
}

.card-1 { top: 10px; left: 10px; animation-delay: 0s; }
.card-2 { bottom: 10px; left: 50%; transform: translateX(-50%); animation-delay: 1.3s; }
.card-3 { top: 10px; right: 10px; animation-delay: 2.6s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-2 {
    animation: floatCard2 4s ease-in-out infinite;
    animation-delay: 1.3s;
}
@keyframes floatCard2 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 3;
}
.hero-wave svg { width: 100%; display: block; }

/* ===== 섹션 공통 ===== */
section { padding: 90px 0; }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    background: rgba(232,25,44,0.08);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.section-tag.white {
    background: rgba(255,255,255,0.18);
    color: var(--white);
}

.section-header h2 {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-sub);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.75); }

/* ===== 소개 섹션 ===== */
.intro { background: var(--bg-main); }

.intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.intro-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.intro-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232,25,44,0.2);
}

.intro-icon {
    width: 64px; height: 64px;
    background: rgba(232,25,44,0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: var(--red);
    transition: var(--transition);
}

.intro-card:hover .intro-icon {
    background: var(--red);
    color: var(--white);
}

.intro-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.intro-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===== 과정 섹션 ===== */
.courses { background: var(--white); }

.course-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-sub);
    transition: var(--transition);
    background: var(--white);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(232,25,44,0.22);
}

/* 과정 카드 그리드 */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.course-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(16px);
    overflow: hidden;
}

.course-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
    transform: scaleX(0);
    transition: var(--transition);
}

.course-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.course-card:hover {
    border-color: rgba(232,25,44,0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.course-card:hover::after { transform: scaleX(1); }

/* 카드 배지 */
.card-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.card-badge.best { background: var(--red); color: var(--white); }
.card-badge.new { background: #3b82f6; color: var(--white); }
.card-badge.hot { background: #f97316; color: var(--white); }

/* 카드 아이콘 */
.card-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.card-icon {
    width: 76px; height: 76px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: var(--transition);
}

.course-card:hover .card-icon {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.card-tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    margin-bottom: 8px;
}

.tag {
    font-size: 12px;
    color: var(--text-sub);
    background: var(--bg-main);
    padding: 3px 12px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.course-card:hover .tag {
    background: rgba(232,25,44,0.06);
    color: var(--red);
    border-color: rgba(232,25,44,0.2);
}

/* 카드 화살표 */
.card-arrow {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 28px; height: 28px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-light);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.course-card:hover .card-arrow {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateX(2px);
}

/* ===== 수강 절차 (다크 유지 - 대비를 위해) ===== */
.process {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: -40%; right: -5%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,25,44,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.step {
    flex: 1;
    max-width: 230px;
    text-align: center;
    padding: 32px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(232,25,44,0.35);
    transform: translateY(-5px);
}

.step-num {
    font-size: 44px;
    font-weight: 900;
    color: rgba(255,255,255,0.07);
    line-height: 1;
    margin-bottom: 10px;
}

.step-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--red), #ff5e6d);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 20px;
    color: var(--white);
    box-shadow: 0 6px 18px rgba(232,25,44,0.3);
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    word-break: keep-all;
}

.step p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.step-arrow {
    display: flex;
    align-items: center;
    margin-top: 56px;
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== 혜택 섹션 (밝은 톤 + 이미지처럼 가로 레이아웃) ===== */
.benefits { background: var(--bg-main); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.benefit-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(16px);
}

.benefit-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232,25,44,0.18);
}

.benefit-icon {
    width: 46px; height: 46px;
    min-width: 46px;
    background: rgba(232,25,44,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--red);
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background: var(--red);
    color: var(--white);
}

.benefit-text { flex: 1; }

.benefit-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    word-break: keep-all;
}

.benefit-text p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===== FAQ ===== */
.faq { background: var(--white); }

.faq-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(8px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item.open {
    border-color: rgba(232,25,44,0.3);
    box-shadow: 0 4px 16px rgba(232,25,44,0.08);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    gap: 16px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-main);
}

.faq-item.open .faq-q {
    color: var(--red);
    background: rgba(232,25,44,0.03);
}

.faq-q i {
    font-size: 13px;
    color: var(--text-light);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-a p {
    padding: 14px 22px 18px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    border-top: 1px solid var(--border-light);
}

/* ===== CTA 섹션 ===== */
.cta-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #c01020 0%, var(--red) 50%, #ff4d5e 100%);
}

.cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 900;
    margin-bottom: 14px;
}

.cta-content p {
    font-size: 17px;
    opacity: 0.88;
    line-height: 1.8;
    margin-bottom: 32px;
}

.btn-cta {
    background: var(--white);
    color: var(--red);
    padding: 16px 44px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}

/* ===== 푸터 ===== */
.footer {
    background: #111827;
    color: rgba(255,255,255,0.65);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding: 56px 0 36px;
}

.footer-logo .logo-text {
    font-size: 21px;
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-logo p {
    font-size: 13px;
    opacity: 0.55;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 9px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--red); }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    margin-bottom: 9px;
}

.footer-contact i { color: var(--red); width: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 18px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.28);
}

/* ===== 모달 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 660px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.modal-close {
    position: sticky;
    top: 14px;
    float: right;
    margin: 14px 14px -40px 0;
    width: 34px; height: 34px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-sub);
    transition: var(--transition);
    z-index: 1;
    border: 1px solid var(--border);
}

.modal-close:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: rotate(90deg);
}

.modal-content { padding: 28px; }

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--border-light);
}

.modal-icon-wrap {
    width: 90px; height: 90px;
    background: #111;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.modal-title-area { flex: 1; }

.modal-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 5px;
}

.modal-badge.best { background: var(--red); color: var(--white); }
.modal-badge.new { background: #3b82f6; color: var(--white); }
.modal-badge.hot { background: #f97316; color: var(--white); }

.modal-title-area h2 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-sub);
}

.modal-desc {
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.modal-desc p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-sub);
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.modal-section h3 i { color: var(--red); font-size: 14px; }

.target-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border-light);
}

.target-list li:last-child { border-bottom: none; }
.target-list li i { color: var(--green-dark); font-size: 14px; }

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.outcome-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: var(--transition);
}

.outcome-card:hover {
    background: rgba(232,25,44,0.04);
    border-color: rgba(232,25,44,0.2);
}

.outcome-icon {
    width: 36px; height: 36px;
    background: rgba(232,25,44,0.08);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--red);
    margin-bottom: 9px;
}

.outcome-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.outcome-card p {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
}

.curriculum-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.curriculum-tag {
    background: var(--bg-main);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.curriculum-tag:hover {
    background: rgba(232,25,44,0.06);
    border-color: rgba(232,25,44,0.3);
    color: var(--red);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid var(--border);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.info-label {
    font-size: 11px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-label i { color: var(--red); }

.info-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-cta {
    text-align: center;
}

.btn-modal-consult {
    background: var(--red);
    color: var(--white);
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(232,25,44,0.25);
}

.btn-modal-consult:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232,25,44,0.35);
}

/* ===== 상담 모달 ===== */
.consult-modal {
    max-width: 460px;
}

.consult-header {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    padding: 28px 28px 24px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    color: var(--white);
}

.consult-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.consult-header p {
    font-size: 13px;
    opacity: 0.85;
}

.consult-form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    background: var(--white);
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(232,25,44,0.08);
}

.form-group textarea { resize: vertical; }

.btn-submit {
    background: var(--red);
    color: var(--white);
    padding: 13px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    transition: var(--transition);
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(232,25,44,0.22);
}

.btn-submit:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232,25,44,0.3);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.consult-success {
    padding: 52px 36px;
    text-align: center;
}

.success-icon {
    font-size: 54px;
    color: var(--green-dark);
    margin-bottom: 18px;
}

.consult-success h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.consult-success p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 8px;
}

.success-major span {
    color: var(--red);
    font-weight: 700;
}

.btn-success-close {
    margin-top: 18px;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.btn-success-close:hover {
    background: var(--border);
}

/* ===== 플로팅 버튼 ===== */
.floating-btns {
    position: fixed;
    bottom: 28px; right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: var(--transition);
}

.floating-btns.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.float-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.float-btn.phone {
    background: var(--red);
    color: var(--white);
    animation: ringPulse 2.5s infinite;
}

@keyframes ringPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(232,25,44,0.3); }
    50% { box-shadow: 0 4px 22px rgba(232,25,44,0.55), 0 0 0 7px rgba(232,25,44,0.08); }
}

.float-btn.top {
    background: var(--white);
    color: var(--text-sub);
    border: 1.5px solid var(--border);
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

/* ===== 학위 취득 안내 박스 ===== */
.degree-info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 44px;
    flex-wrap: wrap;
}

.degree-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 180px;
}

.degree-info-item:hover {
    border-color: rgba(232,25,44,0.25);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.degree-info-item.gray {
    border-color: var(--border);
    background: var(--bg-main);
}

.degree-info-item.gray .degree-icon {
    background: rgba(156,163,175,0.15);
    color: var(--text-light);
}

.degree-info-item.gray h4 { color: var(--text-sub); }
.degree-info-item.gray p { color: var(--text-light); }

.degree-icon {
    width: 48px; height: 48px;
    background: rgba(232,25,44,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--red);
    flex-shrink: 0;
}

.degree-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 3px;
}

.degree-text p {
    font-size: 12px;
    color: var(--text-sub);
    white-space: nowrap;
}

.degree-arrow {
    color: var(--text-light);
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== 모달 학위 안내 ===== */
.modal-notice {
    background: rgba(232,25,44,0.04);
    border: 1px solid rgba(232,25,44,0.18);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-notice i {
    color: var(--red);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 15px;
}

.modal-notice-text {
    display: block;
    line-height: 1.75;
}

.modal-notice strong { color: var(--text-main); font-weight: 700; }

/* ===== 모달 info-grid 2열로 축소 (비용 제거 후) ===== */
.modal-info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* 취득기간 두 줄 표시 */
.period-value {
    display: inline-block;
    line-height: 1.7;
    font-size: 13px;
}

/* ===== 푸터 링크 ===== */
.footer-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover { color: var(--red); }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
    .intro-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { flex: 0 0 280px; height: 380px; }
    .hero-circle-main { width: 200px; height: 200px; }
    .hero-big-num { font-size: 28px; }
    .hero-big-num2 { font-size: 28px; }
    .hero-big-label { font-size: 11px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .btn-consult { padding: 8px 16px; font-size: 13px; }

    .hero .container {
        flex-direction: column;
        gap: 32px;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-visual { display: none; }

    .hero-stats {
        gap: 14px;
        padding: 14px 18px;
    }

    .stat-num { font-size: 20px; }

    .course-grid { grid-template-columns: repeat(2, 1fr); }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step { max-width: 100%; width: 100%; }
    .step-arrow { transform: rotate(90deg); }

    .benefits-grid { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }

    .outcomes-grid { grid-template-columns: 1fr; }
    .modal-info-grid { grid-template-columns: 1fr; }
    .modal-header { flex-direction: column; align-items: flex-start; }
    .modal-icon-wrap { width: 72px; height: 72px; }
}

@media (max-width: 480px) {
    .course-grid { grid-template-columns: 1fr; }
    .intro-grid { grid-template-columns: 1fr; }

    .hero-title { font-size: 30px; }
    .hero-sub { font-size: 15px; }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    .stat-divider { width: 60px; height: 1px; }

    .consult-header { padding: 20px 20px 18px; }
    .consult-form { padding: 18px 20px 22px; }

    .benefits-grid { grid-template-columns: 1fr; }
}
