/* Quizerland template-1 quiz posters + ranking highlight chips */

.ql-t1-quiz-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ql-t1-quiz-item {
    min-width: 0;
    height: 100%;
}

/* Fill bootstrap cols + home/detail sliders */
.popular-quiz-slide .ql-t1-quiz-item,
.featured-quiz-slide .ql-t1-quiz-item,
.related-quiz-slide .ql-t1-quiz-item,
[class*="col-"] > .ql-t1-quiz-item {
    height: 100%;
}

.popular-quiz-slide .ql-t1-quiz-poster,
.featured-quiz-slide .ql-t1-quiz-poster,
.related-quiz-slide .ql-t1-quiz-poster {
    min-height: 400px;
}

.ql-t1-quiz-poster {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ql-t1-quiz-item:hover .ql-t1-quiz-poster {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.22);
}

.ql-t1-quiz-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ql-t1-quiz-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.ql-t1-quiz-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(var(--poster-wash), 0.45), transparent 42%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.88) 100%);
    pointer-events: none;
}

.ql-t1-quiz-top {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem;
}

.ql-t1-quiz-cat {
    display: inline-block;
    max-width: 70%;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(6px);
}

.ql-t1-quiz-cat:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff !important;
}

.ql-t1-quiz-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ql-t1-quiz-action {
    position: relative;
    z-index: 4;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.ql-t1-quiz-action:hover {
    transform: scale(1.06);
}

.ql-t1-quiz-action.is-liked,
.ql-quiz-like-btn.is-liked {
    color: #e11d48;
}

.ql-t1-quiz-footer {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 0.9rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ql-t1-quiz-title-block {
    position: relative;
    z-index: 4;
    text-decoration: none;
    color: inherit;
}

.ql-t1-quiz-domain {
    display: block;
    font-size: 0.68rem;
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

.ql-t1-quiz-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
}

.ql-t1-quiz-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ql-t1-quiz-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 600;
}

.ql-t1-quiz-publisher {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.ql-t1-quiz-publisher.is-static {
    pointer-events: none;
}

.ql-t1-quiz-publisher-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
}

.ql-t1-quiz-publisher-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ql-t1-quiz-published-by {
    font-size: 0.62rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ql-t1-quiz-publisher-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ql-t1-quiz-publisher:hover .ql-t1-quiz-publisher-name {
    text-decoration: underline;
}

.ql-t1-quiz-play {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    color: #111 !important;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ql-t1-quiz-play:hover {
    transform: translateY(-1px);
    background: #f3e8ff;
    color: #111 !important;
}

.ql-t1-quiz-play i {
    font-size: 1rem;
}

/* Ranking highlight chips */
.ql-t1-highlight-card {
    height: 100%;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    border-top: 4px solid var(--ql-highlight-accent, var(--ql-brand-primary, #7F22B6));
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ql-t1-highlight-link:hover .ql-t1-highlight-card {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.1);
}

.ql-t1-highlight-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.ql-t1-highlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--ql-brand-primary, #7F22B6), var(--ql-brand-accent, #450768));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.ql-t1-highlight-subject {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ql-t1-highlight-body {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ql-t1-highlight-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(127, 34, 182, 0.25);
}

.ql-t1-highlight-name {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ql-t1-highlight-meta {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Soften classic question/poll cards inside template-1 shell */
.work-force-main-section .ql-quiz-card {
    border-radius: 14px;
}

@media (max-width: 1199.98px) {
    .ql-t1-quiz-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ql-t1-quiz-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ql-t1-quiz-poster {
        min-height: 380px;
    }
}

@media (max-width: 575.98px) {
    .ql-t1-quiz-grid {
        grid-template-columns: 1fr;
    }
}
