/* General Quiz Page Styling */
body {
    background-color: #f4f7f9;
}

.quiz-header {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e6e8;
    margin-bottom: 40px;
}

.quiz-header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #2c3e50;
}

.quiz-header p {
    font-size: 1.2em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 10px auto 0;
}

/* Quiz Grid */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Quiz Card */
.quiz-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.quiz-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #ecf0f1; /* Placeholder color */
}

.quiz-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quiz-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.4em;
    color: #2c3e50;
}

.quiz-card-content p {
    margin: 0 0 20px;
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.quiz-card-link {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Aligns button to the bottom */
}

.quiz-card-link:hover {
    background-color: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-header h1 {
        font-size: 2em;
    }
    .quiz-grid {
        grid-template-columns: 1fr;
    }
} 