
.category-quiz-wrapper {
    position: relative;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-quiz-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-quiz-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.category-quiz-wrapper:hover .category-quiz-bg {
    transform: scale(1.05);
}

.category-quiz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.category-quiz-inner {
    position: relative;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.category-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 12px;
    backdrop-filter: blur(5px);
}

.category-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-stats-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 12px;
    text-align: center;
}

.category-stats-number {
    display: block;
    color: #FFD700; /* Golden color for emphasis */
    font-weight: 700;
    font-size: 1.2rem;
}

.category-stats-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.category-quiz-info {
    color: #fff;
}

.category-quiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF; /* Pure white for better visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-quiz-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.category-difficulty,
.category-duration {
    color: #E0E0E0; /* Light gray for secondary information */
}

.category-quiz-meta i {
    margin-right: 5px;
    color: #FFD700; /* Golden color for icons */
}

.category-start-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 12px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-start-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.category-btn-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.category-start-btn:hover .category-btn-icon {
    transform: translateX(5px);
}


/*category language modal*/

.category-lang-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1050;
    animation: categoryFadeIn 0.3s ease;
}

.category-lang-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: categorySlideUp 0.4s ease;
}

.category-lang-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-lang-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.category-lang-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.category-lang-close:hover {
    transform: rotate(90deg);
}

.category-lang-options {
    padding: 20px;
}

.category-lang-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-lang-option:last-child {
    margin-bottom: 0;
}

.category-lang-option:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.category-lang-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-lang-info {
    flex: 1;
}

.category-lang-info h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.category-lang-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.category-lang-arrow {
    color: #666;
    margin-left: 15px;
}

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

@keyframes categorySlideUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}