/* Base Reset & Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Noto+Sans+KR:wght@300;400;700&display=swap');

:root {
    --primary-bg: #f8fafc;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    /* 3D 캐릭터 테마 */
    --accent-indigo: #4f46e5;
    /* 자동화 테마 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --img-border: #3b82f6;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --grain-opacity: 0.03;
    --nav-height: 70px;
}

/* Course Theme Extensions */
body.theme-uiux {
    --accent-main: var(--accent-blue);
}

body.theme-3d {
    --accent-main: var(--accent-purple);
}

body.theme-digital {
    --accent-main: var(--accent-emerald);
}

body.theme-automation {
    --accent-main: var(--accent-indigo);
}

.bg-gradient-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

/* Portal Navigation */
.portal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent-blue);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Portal Grid Styles */
.portal-section {
    padding: 100px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.tag-employed {
    background: #dcfce7;
    color: #15803d;
}

.tag-jobseeker {
    background: #dbeafe;
    color: #1d4ed8;
}

.course-card img {
    width: 100%;

    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.course-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    min-height: 2.6rem;
    /* 두 줄 기준 높이 확보 */
    display: flex;
    align-items: center;
}

.course-card .eco-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    min-height: 4.5rem;
    /* 세 줄 정도의 공간 확보 */
    margin-bottom: 1rem;
}

.course-card .detail-list {
    list-style: none;
    padding: 0;
    min-height: 6rem;
    /* 리스트 항목들을 위한 일정한 공간 */
}

.course-card .detail-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    opacity: 0.8;
}

.course-card .detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-main, var(--accent-blue));
    font-weight: bold;
}

.course-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Roadmap Styles */
.roadmap-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.roadmap-step {
    flex: 1;
    position: relative;
    padding-top: 3rem !important;
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--accent-blue);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.roadmap-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, transparent, transparent 10px, var(--glass-border) 10px, var(--glass-border) 20px);
    z-index: 0;
}

/* Track Focus Labels */
.track-focus {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
}

.focus-logic {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.focus-art {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.focus-content {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
}

@media (max-width: 768px) {
    .scroll-indicator-mobile {
        display: block;
    }

}

/* Hero Container Responsive */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }

    .hero-left {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-left h1 {
        font-size: 2.2rem !important;
        text-align: center !important;
        width: 100%;
    }

    .hero-left p {
        text-align: center !important;
    }

    .hero-left .magnetic-wrap {
        justify-content: center !important;
    }

    .hero-right {
        order: -1;
        /* 이미지를 텍스트 위로 올리고 싶을 경우 */
    }
}

/* Image Placeholder Style */
.img-placeholder {
    width: 100%;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.03);
    border: 2px dashed var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: "돌려보기";
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--accent-main, var(--accent-blue));
    opacity: 0.5;
}

.img-placeholder.sq {
    aspect-ratio: 1;
    min-height: auto;
}

.img-placeholder.wide {
    aspect-ratio: 16/9;
    min-height: auto;
}

.img-placeholder.tall {
    aspect-ratio: 3/4;
    min-height: auto;
}

@media (max-width: 768px) {
    .roadmap-container {
        flex-direction: column;
    }

    .roadmap-container::before {
        display: none;
    }
}

.btn-view {
    padding: 0.6rem 1.2rem;
    background: var(--text-main);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--text-main);
}

.btn-view:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Informographic Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233b82f6' fill-opacity='0.4'%3E%3Cpath d='M10 10h2v2h-2zm20 5h1v1h-1zm40-10h2v2h-2zm30 15h1v1h-1zM5 50h2v2H5zm70 5h1v1h-1zm-40 40h2v2h-2zm50-10h1v1h-1z'/%3E%3Ctext x='10' y='40' font-family='monospace' font-size='8'%3EAI%3C/text%3E%3Ctext x='80' y='20' font-family='monospace' font-size='8'%3EUI%3C/text%3E%3Ctext x='40' y='100' font-family='monospace' font-size='8'%3EFIGMA%3C/text%3E%3Ctext x='90' y='110' font-family='monospace' font-size='8'%3EUX%3C/text%3E%3Crect x='60' y='60' width='10' height='10' stroke='%233b82f6' fill='none' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='70' r='3' stroke='%233b82f6' fill='none' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 240px 240px;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    z-index: 10000;
    box-shadow: 0 0 15px var(--accent-cyan);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Intro Star Trek Animation Overlay */
.intro-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
}

.intro-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    background: #000;
}

.intro-text-wrap {
    position: relative;
    width: 100%;
    text-align: center;
    transform-style: preserve-3d;
}

/* 스크롤 잠금용 */
body.scroll-lock {
    overflow: hidden;
    height: 100vh;
}

.intro-msg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-2000px);
    width: 80%;
    /* 화면 여백 확보 */
    max-width: 900px;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    /* 최대 크기 제한 */
    font-weight: 800;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    line-height: 1.5;
    word-break: keep-all;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    text-align: center;
}

/* 텍스트 강조 */
.intro-msg b {
    color: var(--accent-blue);
    display: block;
    font-size: 1.25em;
    margin-bottom: 0.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: auto;
    /* 기본값을 auto로 변경하여 불필요한 공백 제거 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0;
    /* 패딩을 넉넉히 주어 섹션 구분감 확보 */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Hero 섹션 등 주요 강조 섹션에만 Full-screen 적용 */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0f172a 30%, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero .badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-emerald);
    border-radius: 999px;
    color: var(--accent-emerald);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    background: rgba(16, 185, 129, 0.1);
}

.hero p {
    font-size: 1.5rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
}


/* Glass Cards */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* AI Glitch Animation - PC Stability Fix */
.glitch {
    position: relative;
    display: inline-block;
    z-index: 1;
    color: var(--text-main);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    visibility: visible;
    text-align: inherit;
    -webkit-text-fill-color: transparent;
    /* 텍스트 채우기를 투명하게 하여 그림자만 보이게 함 */
    display: block;
    z-index: -1;
}

.glitch::before {
    text-shadow: -2px 0 #ff00c1;
    /* 마젠타 색상으로 강조 */
    clip-path: inset(50% 0 30% 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    text-shadow: 2px 0 #00fff0;
    /* 사이언 색상으로 강조 */
    clip-path: inset(10% 0 80% 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

/* Figma Design System Overlays */
.figma-spec {
    position: relative;
}

.figma-spec::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(245, 78, 96, 0.3);
    /* 피그마 레드 가이드선 */
    display: block;
}

.figma-spec::after {
    content: "P: 80px";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(245, 78, 96, 0.6);
    font-family: monospace;
}

/* Container Spec */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    border-left: 1px dashed rgba(59, 130, 246, 0.2);
    border-right: 1px dashed rgba(59, 130, 246, 0.2);
}

.container::before {
    content: "W: 1200px";
    position: absolute;
    top: 10px;
    left: -60px;
    font-size: 10px;
    color: rgba(59, 130, 246, 0.4);
    transform: rotate(-90deg);
}

/* Card Spec Helper */
.glass-panel {
    position: relative;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 32px;
    pointer-events: none;
}

.glass-panel::after {
    content: "gap: 32px";
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 10px;
    color: rgba(16, 185, 129, 0.4);
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(10% 0 80% 0);
    }

    20% {
        clip-path: inset(62% 0 32% 0);
    }

    40% {
        clip-path: inset(16% 0 78% 0);
    }

    60% {
        clip-path: inset(58% 0 12% 0);
    }

    80% {
        clip-path: inset(85% 0 5% 0);
    }

    100% {
        clip-path: inset(2% 0 80% 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(65% 0 10% 0);
    }

    20% {
        clip-path: inset(10% 0 85% 0);
    }

    40% {
        clip-path: inset(45% 0 15% 0);
    }

    60% {
        clip-path: inset(80% 0 10% 0);
    }

    80% {
        clip-path: inset(25% 0 65% 0);
    }

    100% {
        clip-path: inset(95% 0 5% 0);
    }
}

/* Magnetic Button Wrapper */
.magnetic-wrap {
    display: inline-block;
    position: relative;
    padding: 20px;
    margin: -20px;
}

/* Ecosystem Section Enhancements */
.ecosystem-container {
    padding: 6rem 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.03), transparent);
}

.ecosystem-slider {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 5%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.ecosystem-slider:active {
    cursor: grabbing;
}

.ecosystem-slider::-webkit-scrollbar {
    display: none;
}

.eco-card {
    flex: 0 0 85%;
    max-width: 400px;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.4s ease;
}

@media (min-width: 1024px) {
    .eco-card {
        flex: 0 0 400px;
    }
}

.eco-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
}

.eco-img-box {
    width: 100%;
    height: 220px;
    background: #000;
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.eco-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.eco-card:hover .eco-img-box img {
    transform: scale(1.1);
    opacity: 1;
}

.eco-card h4 {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.eco-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    min-height: 5em;
}

.eco-tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.eco-tool-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 600;
}

/* Target Users Grid */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.target-card {
    text-align: center;
    padding: 3rem 2rem;
}

/* New: Content Enhancement Styles */
.image-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
    border: 2px dashed var(--img-border);
    /* 대쉬 형태의 굵은 테두리로 이미지 자리 표시 */
    position: relative;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
}

.image-container:hover {
    border-color: var(--accent-cyan);
    background: rgba(15, 23, 42, 0.9);
}

.placeholder-img {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
    color: #e2e8f0;
    /* 글자 밝게 */
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
}

.icon-glow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-glow.blue {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.icon-glow.green {
    background: rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.icon-glow.cyan {
    background: rgba(6, 182, 212, 0.2);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    color: #06b6d4;
}

/* Curriculum Timeline */
.timeline {
    position: relative;
    margin-top: 4rem;
}

.step-item {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateX(-50px);
}

.step-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;

}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.step-title {
    font-size: 2rem;
}

.step-details {
    color: #94a3b8;
    margin-left: 3.5rem;
    font-size: 1.1rem;
}

/* Call to Action */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
}

/* Scroll Indicator */
.scroll-hint {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

section h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

/* Countdown Timer */
.countdown-container {
    background: #1e293b;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 20px;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-num {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Instructor Section */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.instructor-card {
    text-align: center;
    padding: 3rem 2rem;
}

.instructor-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: #e2e8f0;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.instructor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.instructor-card .position {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    padding: 2.5rem;
    background: white;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-main);
    position: relative;
    z-index: 1;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 5rem;
    color: rgba(59, 130, 246, 0.1);
    font-family: serif;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.student-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-cyan);
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-name {
    font-weight: 700;
}

.student-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.8rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1.8rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.8rem;
    max-height: 300px;
}

.faq-toggle {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Comparison Table */
.comparison-section {
    padding: 6rem 0;
}

.compare-container {
    position: relative;
    overflow-x: auto;
    margin-top: 3rem;
    background: #ffffff;
    border-radius: 24px;
    /* 테두리는 유지하되 내부 그리드가 넘치지 않게 */
    border: 1px solid var(--glass-border);
    -webkit-overflow-scrolling: touch;
}

.compare-grid {
    display: grid;
    grid-template-columns: 100px repeat(3, 340px);
    background: var(--glass-border);
    gap: 1px;
    width: max-content;
    /* 콘텐츠 너비만큼 늘어나야 sticky가 끝까지 작동 */
}

/* Sticky Column Logic for 4-column grid */
.compare-grid>*:nth-child(4n+1) {
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    z-index: 20;
    /* 다른 셀보다 확실히 위로 */
    background: #f8fafc !important;
    /* 투명도 없는 확실한 배경색 */
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    /* 레이어 강제 생성 */
}

.compare-head {
    background: #f1f5f9;
    /* 라벨 열은 배경을 조금 더 어둡게 하여 고정된 느낌 부여 */
    padding: 2rem 1rem;
    font-weight: 800;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.compare-label {
    background: #f1f5f9;
    padding: 1.5rem 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
}

.compare-cell {
    background: #ffffff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.compare-cell b {
    color: var(--text-main);
}

.compare-cell.current {
    background: rgba(59, 130, 246, 0.03);
    position: relative;
}

.compare-cell.current::after {
    content: "현재 과정";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 0 0 8px 8px;
    font-weight: 800;
}

/* Worknet Job Section Styling (Common) */
.job-container {
    margin-top: 3rem;
    width: 100%;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .job-grid {
        grid-template-columns: 1fr;
    }
}

.job-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    text-align: left;
    background: var(--glass-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-emerald);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-title {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2rem;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 0.5rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-item .label {
    color: var(--text-muted);
}

.detail-item .value {
    font-weight: 600;
    color: var(--text-main);
}

.job-link {
    display: inline-block;
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin-top: auto;
    padding-top: 0.5rem;
}

.job-link:hover {
    color: var(--accent-emerald);
    text-decoration: underline;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px dashed var(--glass-border);
}