* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #000;
}

.title2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #666;
}

.section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

#exam-container, #result-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in;
}

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

.hidden {
    display: none;
}

.question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.question:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.question h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 600;
}

.options {
    margin-top: 1rem;
}

.options label {
    display: block;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.options label:hover {
    background: #f0f0f0;
    border-color: #0d6efd;
}

.options input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.options label:has(input[type="radio"]:checked) {
    font-weight: 600;
    color: #0d6efd;
    background: #e8f0fe;
    border-color: #0d6efd;
}

.short-answer {
    margin-top: 1rem;
}

.short-answer textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.short-answer textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.btn-primary {
    background: #0d6efd;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

#score-display {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0d6efd;
    text-align: center;
}

.feedback-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.feedback-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feedback-item.correct {
    border-left: 4px solid #198754;
    background: #d1e7dd;
}

.feedback-item.incorrect {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
}

.feedback-item h4 {
    margin-top: 0;
    color: #000;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feedback-item p {
    color: #555;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .title2 {
        font-size: 1.2rem;
    }
    
    #exam-container, #result-container {
        padding: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}