/* Hero Section Styles */
.quiz-hero {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 9rem 2rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1516116216624-53e697fedbea?ixlib=rb-1.2.1&auto=format&fit=crop&w=2850&q=80') center/cover;
    opacity: 0.1;
}

.quiz-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* Hero Text Styling */
.quiz-hero h1 {
    font-size: 3.5rem !important;  /* Increased font size for large screens */
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quiz-hero-subtitle {
    font-size: 1.5rem !important;  /* Increased font size for subtitle */
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Mobile Styles (Below 768px) */
@media (max-width: 768px) {
    .quiz-hero {
        padding: 2rem 1rem;
    }

    .quiz-hero h1 {
        font-size: 2.5rem !important;  /* Increased font size for mobile */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .quiz-hero-subtitle {
        font-size: 1.2rem !important;  /* Increased subtitle font size for mobile */
        margin-bottom: 1.5rem;
    }

    .quiz-container {
        margin: 1rem;
        padding: 1rem;
    }

    .quiz-option {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .quiz-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-controls button {
        width: 100%;
    }

    .quiz-result {
        padding: 1rem;
    }

    .quiz-score {
        font-size: 1.5rem;
    }
}

/* 3 Cards per row on larger screens */
@media (min-width: 1025px) {
    .quiz-categories {
        grid-template-columns: repeat(3, 1fr);  /* Display 3 cards in a row */
    }
}

/* Quiz Categories Grid */
.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Quiz Card Styling */
.quiz-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.quiz-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.quiz-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

/* Quiz Container Styling */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-question {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

/* Quiz Option Styling */
.quiz-option {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: #f3f4f6;
    border-color: #2563eb;
}

.quiz-option.selected {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.quiz-option.correct {
    background: #10b981;
    color: white;
    border-color: #10b981;
    animation: fadeIn 0.5s ease-in-out;
}

.quiz-option.wrong {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.quiz-option i {
    margin-left: 10px;
}

.quiz-option.selected {
    pointer-events: none;
}

/* Quiz Controls Styling */
.quiz-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quiz-button:hover {
    background: #1d4ed8;
}

.quiz-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Quiz Result Styling */
.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-score {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}
