/* Tutorials Page Styles */

:root {
    --primary-color: #009922;
    --secondary-color: #00cc2d;
    --text-color: #000000;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --beginner-color: #3b82f6;
    --intermediate-color: #f97316;
    --advanced-color: #8b5cf6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.tutorials-main {
    margin-top: 80px;
}

/* Hero Section */
.tutorials-hero {
    position: relative;
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    padding: 0;
    overflow: hidden;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorials-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.4;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.breadcrumb span {
    color: #ffffff;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-search {
    max-width: 550px;
    margin: 0 auto;
    position: relative;
}

.hero-search i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.4);
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.3rem 1rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.hero-search input:focus {
    outline: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Learning Paths Section */
.path-section {
    padding: 6rem 8rem;
    background: #ffffff;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.6);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
}

.path-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    will-change: transform;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: all 0.4s ease;
}

.path-card.beginner::before {
    background: var(--beginner-color);
}

.path-card.intermediate::before {
    background: var(--intermediate-color);
}

.path-card.advanced::before {
    background: var(--advanced-color);
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.path-card.beginner:hover {
    background: rgba(59, 130, 246, 0.03);
}

.path-card.intermediate:hover {
    background: rgba(249, 115, 22, 0.03);
}

.path-card.advanced:hover {
    background: rgba(139, 92, 246, 0.03);
}

.path-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.beginner .path-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--beginner-color);
}

.intermediate .path-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--intermediate-color);
}

.advanced .path-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--advanced-color);
}

.path-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.path-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 2rem;
}

.path-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.path-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
}

.path-stats .stat i {
    color: var(--primary-color);
}

.path-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.path-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

/* Tutorials List */
.tutorials-list {
    padding: 6rem 8rem;
    background: var(--bg-light);
}

.tutorials-list.alternate {
    background: #ffffff;
}

.list-header {
    margin-bottom: 3rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.level-badge.beginner {
    background: var(--beginner-color);
    color: #ffffff;
}

.level-badge.intermediate {
    background: var(--intermediate-color);
    color: #ffffff;
}

.level-badge.advanced {
    background: var(--advanced-color);
    color: #ffffff;
}

.list-header p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 0.5rem;
}

.tutorial-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.tutorial-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    will-change: transform;
}

.tutorial-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tutorial-item:hover {
    background: rgba(0, 153, 34, 0.02);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tutorial-item:hover::before {
    transform: scaleY(1);
}

.tutorial-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 153, 34, 0.15);
    line-height: 1;
    min-width: 80px;
}

.tutorial-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
}

.tutorial-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.difficulty {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.difficulty.beginner {
    background: rgba(59, 130, 246, 0.1);
    color: var(--beginner-color);
}

.difficulty.intermediate {
    background: rgba(249, 115, 22, 0.1);
    color: var(--intermediate-color);
}

.difficulty.advanced {
    background: rgba(139, 92, 246, 0.1);
    color: var(--advanced-color);
}

.tutorial-content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 1rem;
}

.tutorial-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.tutorial-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.tutorial-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Resources Section */
.resources-section {
    padding: 6rem 8rem;
    background: #ffffff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.05), rgba(0, 204, 45, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover::before {
    opacity: 1;
}

.resource-card:hover {
    background: rgba(0, 153, 34, 0.05);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 153, 34, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.resource-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.resource-card p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.resource-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-arrow {
    transform: translateX(5px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* ===== TUTORIAL MODAL STYLES ===== */

/* Modal Overlay */
.tutorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter 제거 - 성능 개선 */
}

/* Modal Container */
.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.tutorial-modal.active .modal-container {
    transform: translate(-50%, -50%) scale(1);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.25rem;
    color: #333;
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    height: 90vh;
}

/* Modal Header */
.modal-header {
    padding: 30px 40px;
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    color: white;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 2rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.95;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    background: #f8f9fa;
}

/* Tutorial Step Styles */
.tutorial-step {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.step-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.step-content h4 {
    color: #009922;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.step-content p {
    margin: 15px 0;
}

.step-content ul, .step-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.step-content li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Content Styles */
.content-highlight {
    background: #f0f9ff;
    border-left: 4px solid #009922;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.content-highlight h4 {
    margin: 0 0 10px 0;
    color: #009922;
}

.quote-author {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.content-list li i {
    color: #009922;
    margin-top: 4px;
}

.content-info-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.content-info-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.content-info-box h4 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.code-header {
    background: #2d2d2d;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #888;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Grid Layouts */
.mechanism-grid, .reason-grid, .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.mechanism-card, .reason-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.mechanism-card:hover, .reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mechanism-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.mechanism-icon.primary {
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    color: white;
}

.mechanism-icon.success {
    background: linear-gradient(135deg, #00cc2d 0%, #00ff44 100%);
    color: white;
}

.mechanism-icon.warning {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
}

.reason-icon, .feature-icon {
    font-size: 2rem;
    color: #009922;
    margin-bottom: 10px;
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.process-flow.vertical {
    flex-direction: column;
    align-items: stretch;
}

.process-step {
    flex: 1;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 150px;
}

.process-arrow {
    font-size: 1.5rem;
    color: #009922;
    font-weight: bold;
}

.process-arrow-down {
    font-size: 2rem;
    color: #009922;
    text-align: center;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Tables */
.comparison-table, .specs-table {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
}

.comparison-table table, .specs-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th, .specs-table th {
    background: #009922;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td, .specs-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:last-child td, .specs-table tr:last-child td {
    border-bottom: none;
}

/* Formula Box */
.formula-box {
    background: #e7f5ff;
    border-left: 4px solid #009922;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.formula-box h5 {
    margin: 0 0 10px 0;
    color: #009922;
}

.formula-box code {
    display: block;
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.formula-example {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0 0 0;
}

/* ===== QUIZ STYLES ===== */

.tutorial-quiz {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 153, 34, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 35px;
    position: relative;
}

.quiz-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #009922 0%, #00cc2d 100%);
    border-radius: 2px;
}

.quiz-header i {
    font-size: 3.5rem;
    color: #009922;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

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

.quiz-header h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 15px 0;
    font-weight: 700;
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-header p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Quiz Questions */
.quiz-question {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e8eaed;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.quiz-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #009922 0%, #00cc2d 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-question:hover {
    border-color: #009922;
    box-shadow: 0 8px 24px rgba(0, 153, 34, 0.12);
    transform: translateX(4px);
}

.quiz-question:hover::before {
    transform: scaleY(1);
}

.question-number {
    display: inline-block;
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 153, 34, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.question-text {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    font-weight: 600;
    line-height: 1.6;
}

/* Quiz Options */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    background: #fafbfc;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.05) 0%, rgba(0, 204, 45, 0.05) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.quiz-option:hover {
    border-color: #009922;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 153, 34, 0.1);
    transform: translateX(4px);
}

.quiz-option:hover::before {
    transform: scaleX(1);
}

.quiz-option > * {
    position: relative;
    z-index: 1;
}

.quiz-option input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #009922;
    transition: transform 0.2s ease;
}

.quiz-option input[type="radio"]:checked {
    transform: scale(1.1);
}

.option-text {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

.option-check {
    display: none;
    color: #009922;
    font-size: 1.5rem;
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.quiz-option input[type="radio"]:checked ~ .option-check {
    display: block;
}

.quiz-option:has(input[type="radio"]:checked) {
    border-color: #009922;
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.08) 0%, rgba(0, 204, 45, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(0, 153, 34, 0.15);
}

.quiz-option:has(input[type="radio"]:checked) .option-text {
    color: #009922;
    font-weight: 600;
}

/* Quiz Result */
.quiz-result {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
}

.quiz-result.excellent {
    border: 3px solid #4ade80;
}

.quiz-result.excellent::before {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
}

.quiz-result.pass {
    border: 3px solid #60a5fa;
}

.quiz-result.pass::before {
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
}

.quiz-result.fail {
    border: 3px solid #f87171;
}

.quiz-result.fail::before {
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-result.excellent .result-icon {
    color: #4ade80;
    filter: drop-shadow(0 4px 12px rgba(74, 222, 128, 0.4));
}

.quiz-result.pass .result-icon {
    color: #60a5fa;
    filter: drop-shadow(0 4px 12px rgba(96, 165, 250, 0.4));
}

.quiz-result.fail .result-icon {
    color: #f87171;
    filter: drop-shadow(0 4px 12px rgba(248, 113, 113, 0.4));
}

.result-title {
    font-size: 2.25rem;
    color: #1a1a1a;
    margin: 20px 0;
    font-weight: 700;
    animation: fadeIn 0.8s ease-in-out 0.2s both;
}

.result-message {
    font-size: 1.15rem;
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-in-out 0.4s both;
}

.result-score {
    font-size: 1.5rem;
    color: #009922;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 153, 34, 0.05) 0%, rgba(0, 204, 45, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 153, 34, 0.2);
    animation: fadeIn 0.8s ease-in-out 0.6s both;
}

.result-score strong {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 40px;
    background: white;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.modal-footer button {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #009922 0%, #00cc2d 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 34, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .process-flow {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .mechanism-grid, .reason-grid {
        grid-template-columns: 1fr;
    }
}
