/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 필기 홈: 정보처리기사 필기 줄·영역 미표시 */
body.page-cert-engineer-written .cert-page-identity {
    display: none !important;
}

/* 필기 홈: 네비와 바로 아래 패딩 줄임 */
body.page-cert-engineer-written main {
    margin-top: 56px;
}
body.page-cert-engineer-written .hero-section {
    padding-top: 0.5rem;
}

/* 모바일: 필기 홈 네비~본문 여백 최소화(네비만 겹치지 않도록) */
@media (max-width: 768px) {
    body.page-cert-engineer-written main {
        margin-top: 48px;
    }
    body.page-cert-engineer-written .hero-section {
        padding-top: 0;
    }
}

/* 자격증 페이지 상단 현재 위치 표시 (상단 중앙) - 실기 등에서 사용 */
.cert-page-identity {
    margin-top: 56px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.625rem 0;
    text-align: center;
}

.cert-page-identity .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-page-identity-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* 광고 영역 - 자연스러운 배치용 */
.ad-slot {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    margin: 0;
}

.ad-slot-inline {
    padding: 0.2rem 0;
}

/* 쿠팡 추천 도서 배너 */
.affiliate-banner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
}

/* 쿠팡 배너 광고 (캐러셀 iframe) */
.coupang-banner-slot {
    padding: 1rem 0;
}
.coupang-banner-wrap {
    position: relative;
    width: 100%;
    max-width: 1310px;
    margin: 0 auto;
    min-height: 120px;
    aspect-ratio: 1310/216;
}
.coupang-banner-wrap iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border: 0;
}
.coupang-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.affiliate-banner {
    display: inline-block;
    line-height: 0;
}

/* 학습 기능 그리드 내 배너 카드 (빨간 테두리 위치) */
.feature-card-banner.affiliate-banner-card {
    display: block;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}
.feature-card-banner:hover {
    transform: none;
    box-shadow: var(--shadow-xl);
}
.affiliate-banner-card .affiliate-banner-img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    vertical-align: top;
}

.affiliate-banner img {
    display: block;
    max-width: 120px;
    height: auto;
    width: 120px;
    object-fit: contain;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .affiliate-banner img {
        max-width: 100px;
        width: 100px;
    }
}

/* 쿠팡 파트너스 안내 문구 */
.affiliate-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 1rem 1.5rem 1.5rem;
    margin: 0;
    line-height: 1.5;
}


:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* Secondary Colors */
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors */
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #0cebeb 0%, #20e3b2 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-purple: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* Buttons */
.btn-icon {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.btn-outline {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-primary {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gray-50);
}

a.btn-secondary {
    text-decoration: none;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* 필기 홈: identity 바 없으므로 네비 아래부터 시작 (실기는 identity 바가 있어 제외) */
main > .cert-home:first-child {
    padding-top: 56px;
}

/* Hero Section - 파란 영역 위아래 패딩 약간 넓게 */
.hero-section {
    position: relative;
    padding: 2rem 0 1.5rem;
    overflow: hidden;
    margin-top: 0;
}
.cert-home .hero-section { padding: 1.75rem 0 0.6rem; }

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2%, transparent 0%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2%, transparent 0%);
    background-size: 60px 60px;
}

.hero-content {
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section - 위쪽 패딩 축소 (히어로~학습 기능 간격 절반) */
.features-section {
    padding: 0.2rem 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-primary:hover {
    border-color: var(--primary);
}

.card-success:hover {
    border-color: var(--success);
}

.card-warning:hover {
    border-color: var(--warning);
}

.card-info:hover {
    border-color: var(--info);
}

.card-purple:hover {
    border-color: var(--secondary);
}

.card-danger:hover {
    border-color: var(--danger);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
}

.card-success .feature-icon {
    background: var(--gradient-success);
}

.card-warning .feature-icon {
    background: var(--gradient-warning);
}

.card-info .feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-purple .feature-icon {
    background: var(--gradient-purple);
}

.card-danger .feature-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.meta-item i {
    color: var(--primary);
}

.feature-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-sizing: border-box;
}
a.feature-btn { border: none; }

.feature-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Schedule Section - 여백 축소 */
.schedule-section {
    padding: 1rem 0;
    background: var(--gray-100);
}

/* 시험일정 90% 크기 */
.schedule-section-compact .schedule-cards {
    transform: scale(0.9);
    transform-origin: top center;
}
.schedule-section-compact {
    padding: 0.75rem 0;
}

.schedule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.schedule-capture {
    margin-top: 3rem;
    text-align: center;
}

.schedule-capture-label {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.schedule-capture-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.schedule-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.schedule-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.round-badge {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
}

.schedule-status {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-active {
    background: var(--success);
    color: var(--white);
}

.status-upcoming {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.schedule-content {
    padding: 1.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
}

.schedule-label i {
    color: var(--primary);
    width: 20px;
}

.schedule-date {
    font-weight: 600;
    color: var(--gray-800);
}

.schedule-date.highlight {
    color: var(--primary);
    font-size: 1.125rem;
}

.schedule-btn {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.schedule-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

a.schedule-btn {
    text-decoration: none;
}

/* Statistics Section */
.statistics-section {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.icon-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.icon-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.icon-green {
    background: linear-gradient(135deg, #0cebeb 0%, #20e3b2 100%);
}

.icon-purple {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.stat-info {
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.trend-up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.chart-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Tips Section - 위쪽 패딩 대폭 축소 */
.tips-section {
    padding: 0.75rem 0 2.5rem;
    background: var(--gray-100);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.tip-card {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tip-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: var(--shadow-lg);
}

.tip-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.tip-content {
    color: var(--gray-600);
    line-height: 1.8;
}

/* CTA Section - 여백 축소 */
.cta-section {
    padding: 2.5rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2%, transparent 0%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2%, transparent 0%);
    background-size: 60px 60px;
}

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

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-desc {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-subtitle {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: 2rem 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.w-100 {
    width: 100%;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--gray-500);
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-300);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-kakao {
    background: #fee500;
    color: #000000;
}

.btn-kakao:hover {
    background: #fdd835;
}

.btn-naver {
    background: #03c75a;
    color: var(--white);
}

.btn-naver:hover {
    background: #02b351;
}

.btn-naver span {
    font-weight: 900;
    font-size: 1.25rem;
}

.btn-google {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-google:hover {
    background: var(--gray-50);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .schedule-cards,
    .stats-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.schedule-card,
.stat-card,
.tip-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========== 다크모드 (정보처리 필기/실기 페이지) ========== */
body.dark-mode .cert-home { background: var(--bg-page, #0f172a); }
body.dark-mode .hero-section { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
body.dark-mode .hero-bg { background: transparent; }
body.dark-mode .hero-pattern { opacity: 0.08; }
body.dark-mode .hero-badge { background: rgba(99, 102, 241, 0.3); color: #c7d2fe; }
body.dark-mode .hero-title { color: #f1f5f9; }
body.dark-mode .hero-title .highlight { color: #a5b4fc; }
body.dark-mode .hero-subtitle { color: #94a3b8; }
body.dark-mode .features-section { background: var(--bg-page, #0f172a); }
body.dark-mode .section-title { color: #e2e8f0; }
body.dark-mode .section-subtitle { color: #94a3b8; }
body.dark-mode .feature-card { background: var(--card-bg, #1e293b); border-color: #334155; color: #e2e8f0; }
body.dark-mode .feature-card .feature-title { color: #f1f5f9; }
body.dark-mode .feature-card .feature-description { color: #94a3b8; }
body.dark-mode .feature-card .feature-meta { color: #64748b; }
body.dark-mode .feature-card .feature-btn { color: #a5b4fc; }
body.dark-mode .feature-card:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4); }
body.dark-mode .schedule-section { background: var(--bg-page, #0f172a); }
body.dark-mode .schedule-card { background: var(--card-bg, #1e293b); border-color: #334155; color: #e2e8f0; }
body.dark-mode .schedule-header { border-bottom-color: #334155; }
body.dark-mode .schedule-label { color: #94a3b8; }
body.dark-mode .schedule-label i { color: #6366f1; }
body.dark-mode .schedule-date { color: #e2e8f0; }
body.dark-mode .schedule-date.highlight { color: #a5b4fc; }
body.dark-mode .schedule-btn { background: #6366f1; color: #fff; }
body.dark-mode .schedule-btn:hover { background: #4f46e5; }
body.dark-mode .stat-card { background: var(--card-bg, #1e293b); border-color: #334155; color: #e2e8f0; }
body.dark-mode .stat-card .stat-value { color: #f1f5f9; }
body.dark-mode .stat-card .stat-label { color: #94a3b8; }
body.dark-mode .tip-card { background: var(--card-bg, #1e293b); border-color: #334155; color: #e2e8f0; }
body.dark-mode .tip-card .tip-title { color: #f1f5f9; }
body.dark-mode .tip-card .tip-text { color: #94a3b8; }
body.dark-mode .cta-section { background: linear-gradient(135deg, #1e293b 0%, #312e81 100%); }
body.dark-mode .cta-title { color: #f1f5f9; }
body.dark-mode .cta-subtitle { color: #c7d2fe; }
body.dark-mode .affiliate-disclaimer { color: #64748b; }
body.dark-mode .feature-card-banner.affiliate-banner-card { background: #1e293b; }
body.dark-mode .ad-slot { background: #1e293b; }
body.dark-mode .round-badge { background: #334155; color: #e2e8f0; }
body.dark-mode .schedule-status { color: #94a3b8; }
body.dark-mode .schedule-status.status-active { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
body.dark-mode .schedule-status.status-upcoming { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
body.dark-mode .btn-large { color: #fff; }
body.dark-mode .btn-large.btn-white { background: #f1f5f9; color: #1e293b; }
body.dark-mode .btn-large.btn-white:hover { background: #e2e8f0; color: #0f172a; }
body.dark-mode .btn-large.btn-outline-white { color: #f1f5f9; border-color: #f1f5f9; }
body.dark-mode .btn-large.btn-outline-white:hover { background: #f1f5f9; color: #1e293b; }
body.dark-mode .btn-large.btn-secondary { background: #334155; color: #e2e8f0; border-color: #475569; }
body.dark-mode .btn-large.btn-secondary:hover { background: #475569; }
body.dark-mode .scrollbar-thumb { background: #475569; }
body.dark-mode ::-webkit-scrollbar-track { background: #1e293b; }