.main {
    padding-top: 120px; /* Increased space for sticky header */
}

.quiz-container {
    padding-right: 15px;
    padding-left: 15px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.quiz-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.quiz-col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .quiz-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .quiz-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.quiz-mb-4 {
    margin-bottom: 1.5rem !important;
}

.quiz-h-100 {
    height: 100% !important;
}

.quiz-card {
    background-color: rgba(14, 162, 189, 0.05);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(14, 162, 189, 0.1);
    overflow: hidden;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(14, 162, 189, 0.2);
}

.quiz-card-body {
    padding: 1.25rem;
    flex: 1 1 auto;
    background: linear-gradient(to bottom, rgba(14, 162, 189, 0.05) 0%, rgba(14, 162, 189, 0.1) 100%);
    display: flex;
    flex-direction: column;
}

.quiz-flex {
    display: flex !important;
}

.quiz-items-center {
    align-items: center !important;
}

.quiz-mb-3 {
    margin-bottom: 0.75rem !important;
}

.quiz-card-image {
    position: relative;
    margin-right: 1rem;
}

.quiz-card-image img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    border: 2px solid #fff;
    transition: all .3s ease;
    margin-left: 1rem;
}

.quiz-card:hover .quiz-card-image img {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(0,0,0,.18);
}

.quiz-card-title {
    color: #1a1f36;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.25rem 0;
    text-decoration: none;
    transition: color .3s ease;
    flex: 1;
}

.quiz-rating-section {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
    padding: 0.5rem;
    background-color: rgba(255,255,255,.5);
    border-radius: 8px;
    justify-content: space-between;
}

.quiz-rating-number {
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.quiz-rating {
    direction: ltr;
    display: flex;
    align-items: center;
}

.quiz-rating i {
    font-size: 16px;
}

.quiz-star-fill {
    color: #ffd700;
    margin-right: 3px;
    text-shadow: 0 1px 3px rgba(255,215,0,.3);
}

.quiz-star-half {
    color: #ffd700;
    margin-right: 3px;
    text-shadow: 0 1px 3px rgba(255,215,0,.3);
}

.quiz-star {
    color: #e4e5e9;
    margin-right: 3px;
}

.quiz-card-text {
    margin-top: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: rgba(255,255,255,.7);
    padding: 0.5rem;
    border-radius: 10px;
    flex: 1 1 auto;
}

.quiz-card-text p {
    text-align: justify;
    text-align-last: right;
    line-height: 1.8;
    margin-bottom: 0;
}

.quiz-justify-between {
    justify-content: space-between !important;
}

.quiz-card-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    margin-top: auto;
}

.quiz-question-count {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(0,0,0,.03);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.quiz-card:hover .quiz-question-count {
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.quiz-question-count-icon {
    color: #64748b;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.quiz-question-count-title {
    color: #475569;
    font-size: 0.9rem;
}

.quiz-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0ea2bd 0%, #0891a7 100%);
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
}

.quiz-link:hover {
    background: linear-gradient(135deg, #0891a7 0%, #0ea2bd 100%);
}

.quiz-link-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.quiz-page-title {
    font-family: 'Vazir', sans-serif;
    color: #1a1f36;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.quiz-page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #0ea2bd 0%, #0891a7 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .quiz-card-body {
        padding: 1rem;
    }
    
    .quiz-card-image img {
        width: 60px;
        height: 60px;
    }
    
    .quiz-card-title {
        font-size: 1rem;
    }
    
    .quiz-card-text {
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.quiz-col:nth-child(1) .quiz-card { animation-delay: 0.1s; }
.quiz-col:nth-child(2) .quiz-card { animation-delay: 0.2s; }
.quiz-col:nth-child(3) .quiz-card { animation-delay: 0.3s; }
.quiz-col:nth-child(4) .quiz-card { animation-delay: 0.4s; }
.quiz-col:nth-child(5) .quiz-card { animation-delay: 0.5s; }
.quiz-col:nth-child(6) .quiz-card { animation-delay: 0.6s; } 