/* Baseline & Reset */
:root {
    --primary-color: #004a99;
    --primary-dark: #003366;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover { color: var(--primary-color); }

/* Home Hero with Cards */
.home-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.hero-text {
    max-width: 700px;
    margin: 0 auto 50px;
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}

.highlight { color: var(--primary-color); }

.home-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Cert Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.cert-card {
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.cert-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cert-tag.primary { background: #eff6ff; color: #1d4ed8; }
.cert-tag.danger { background: #fef2f2; color: #b91c1c; }
.cert-tag.success { background: #ecfdf5; color: #047857; }

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.cert-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    min-height: 60px;
}

.btn-cert {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-cert:hover { background: var(--primary-dark); }

.accent-card {
    border-top: 6px solid var(--accent-color);
}

/* Sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }

/* Roadmap */
.roadmap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.roadmap-item {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.roadmap-arrow {
    font-size: 1.5rem;
    color: var(--border-color);
}

.highlight-item {
    background: var(--primary-color);
    color: white;
    border: none;
}

.highlight-item h4 { color: white; }
.highlight-item p { color: rgba(255,255,255,0.8); }

/* Schedule Table */
.table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { padding: 20px; text-align: center; border-bottom: 1px solid var(--border-color); }
.schedule-table th { background: #f8fafc; font-weight: 700; color: var(--text-muted); }

.active-row { background: #f0f9ff; font-weight: 700; color: var(--primary-color); }

/* Footer */
.main-footer { padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
    .home-hero h1 { font-size: 2rem; }
    .roadmap { flex-direction: column; }
    .roadmap-arrow { transform: rotate(90deg); }
}