/* 컴퓨터활용능력 2급 실기 - 그린 테마 */
:root {
    --cs2-primary: #10b981;
    --cs2-primary-dark: #059669;
    --cs2-primary-light: #34d399;
    --cs2-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --cs2-gradient-light: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: var(--space-3xl) 0;
    background: var(--cs2-gradient-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
}

.page-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--cs2-gradient);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.page-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.page-stats .stat {
    text-align: center;
}

.page-stats .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cs2-primary);
}

.page-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Exam Section */
.exam-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--text-secondary);
}

/* Exam Files Grid */
.exam-files-grid {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.exam-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.exam-card:hover {
    border-color: var(--cs2-primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.exam-card-header {
    padding: var(--space-lg);
    background: var(--cs2-gradient-light);
    border-bottom: 1px solid var(--border-color);
}

.exam-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--cs2-gradient);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.exam-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exam-card-body {
    padding: var(--space-lg);
}

.exam-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.exam-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.exam-meta .meta-item {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.exam-card-actions {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--cs2-primary);
    background: transparent;
    color: var(--cs2-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--cs2-primary);
    color: white;
}

.action-btn.view-pdf {
    background: var(--cs2-gradient);
    border-color: transparent;
    color: white;
}

.action-btn.view-pdf:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Info Box */
.info-box {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--cs2-primary);
    border-radius: var(--radius-md);
}

.info-box .info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-box .info-content h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.info-box .info-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Article Section */
.article-section {
    margin-bottom: var(--space-2xl);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Info Card Grid - 시험 개요 */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--cs2-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.info-card .info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.info-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Article Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
}

.article-table th,
.article-table td {
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-table th {
    background: var(--cs2-gradient-light);
    font-weight: 600;
    color: var(--text-primary);
}

.article-table td {
    color: var(--text-secondary);
}

.article-table tr:hover td {
    background: rgba(16, 185, 129, 0.05);
}

/* Function Grid */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.function-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.function-card h4 {
    font-weight: 700;
    color: var(--cs2-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--cs2-primary);
}

.function-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.function-card li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

/* Timeline - 합격 전략 */
.timeline {
    position: relative;
    padding-left: var(--space-3xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--cs2-gradient);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-3xl) + 3px);
    width: 28px;
    height: 28px;
    background: var(--cs2-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--cs2-primary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--cs2-primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cs2-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Content - 관련 콘텐츠 */
.related-content-section {
    margin-bottom: var(--space-2xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.related-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--cs2-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.related-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.related-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.related-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* PDF Modal */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdf-modal.active {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--cs2-gradient);
    color: white;
}

.pdf-modal-title {
    font-weight: 700;
}

.pdf-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .info-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: var(--space-xl);
    }

    .exam-section {
        padding: var(--space-lg);
    }

    .exam-card-actions {
        flex-direction: column;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
    }

    .info-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .info-card {
        padding: var(--space-lg);
    }

    .info-card .info-icon {
        font-size: 2rem;
    }

    /* Table to Card - Mobile */
    .article-table {
        display: block;
    }

    .article-table thead {
        display: none;
    }

    .article-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .article-table tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: var(--space-md);
    }

    .article-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-sm) 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
    }

    .article-table td:last-child {
        border-bottom: none;
    }

    .article-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-primary);
        margin-right: var(--space-md);
    }

    /* Timeline - Mobile */
    .timeline {
        padding-left: var(--space-2xl);
    }

    .timeline::before {
        left: 10px;
        width: 2px;
    }

    .timeline-marker {
        left: calc(-1 * var(--space-2xl) - 3px);
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    /* FAQ - Mobile */
    .faq-section {
        padding: var(--space-lg);
    }

    .faq-question {
        padding: var(--space-md);
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* Related Grid - Mobile */
    .related-grid {
        grid-template-columns: 1fr;
    }

    .pdf-modal-content {
        width: 95%;
        height: 85vh;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }

    .page-stats {
        gap: var(--space-md);
    }

    .info-card-grid {
        gap: var(--space-sm);
    }

    .info-card {
        padding: var(--space-md);
    }

    .info-card .info-icon {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .info-card h3 {
        font-size: 0.85rem;
    }

    .info-card p {
        font-size: 0.95rem;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .function-grid {
        grid-template-columns: 1fr;
    }

    .function-card {
        padding: var(--space-md);
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .related-card {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .related-icon {
        font-size: 1.5rem;
    }

    .related-info h3 {
        font-size: 1rem;
    }
}

