.tests-header {
    text-align: center;
    margin-bottom: 2rem;
}
.tests-header h1 {
    color: var(--primary-dark);
    font-size: 2rem;
}
.tests-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
.tests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.test-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--primary-light);
    cursor: pointer;
}
.test-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.test-number {
    background: var(--primary-gradient);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.3rem;
    font-weight: bold;
}
.test-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.test-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.test-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--primary-light);
}
.test-card a {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}
.test-card a:hover {
    background: var(--accent);
    color: var(--primary-dark);
}
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-card);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.quiz-header {
    text-align: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.quiz-header h1 {
    color: var(--primary-dark);
}
.quiz-info {
    display: flex;
    justify-content: space-between;
    background: var(--bg-card-hover);
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-weight: bold;
    flex-wrap: wrap;
}
.timer {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
}
.question-box {
    background: var(--bg-card-hover);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border-right: 4px solid var(--primary-light);
}
.question-text {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}
.options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--bg-card);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border-light);
}
.option:hover {
    background: var(--bg-example);
}
.option input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.submit-btn {
    background: var(--primary-gradient);
    color: var(--text-white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}
.result-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.result-modal-content {
    background: var(--bg-card);
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
}
.result-detail {
    background: var(--bg-card-hover);
    padding: 1rem;
    border-radius: 15px;
    margin: 1rem 0;
    text-align: right;
}
.correct-answer {
    color: green;
    font-weight: bold;
}
.wrong-answer {
    color: red;
    font-weight: bold;
}
.close-result, .restart-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    margin: 0.5rem;
    border: none;
}
.close-result {
    background: var(--primary-dark);
    color: var(--text-white);
}
.restart-btn {
    background: var(--accent);
    color: var(--primary-dark);
}
@media (max-width: 992px) {
    .tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .tests-grid {
        grid-template-columns: 1fr;
    }
    .quiz-container {
        padding: 1rem;
    }
}