/* ================================
   NQM Quiz Category Archive
   Mobile First Approach
   ================================ */

.content-area #post-home .inside-article {
    padding: 4px 20px;
}

@media (max-width: 768px) {
    .separate-containers .site-main .inside-article {
        padding: 20px 15px;
    }
}

/* Base Styles (Mobile: 320px+) */
.nqm-topics-archive {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

.nqm-category-header {
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.nqm-category-header .breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

.nqm-category-header .breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.nqm-category-header .breadcrumb .separator {
    margin: 0 0.25rem;
}

.nqm-category-header .category-title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: #222;
}

.nqm-category-header .category-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0.5rem;
}

.nqm-category-header .category-stats {
    font-size: 0.85rem;
    color: #888;
}

/* Quiz Grid - Mobile */
.nqm-quiz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}


.nqm-card-warpper {
    margin: 12px 0;
    container-type: inline-size;
    container-name: card-grid-container;
    width: 100%;
}

.nqm-card-warpper .nqm-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@container card-grid-container (min-width: 600px) {
    .nqm-card-warpper .nqm-card-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@container card-grid-container (min-width: 900px) {
    .nqm-card-warpper .nqm-card-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nqm-card-warpper .nqm-card-item {
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.nqm-card-warpper .card-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: #fde6d2;
    overflow: hidden;
    display: flex;
}

.nqm-card-warpper .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nqm-card-warpper .card-thumbnail img:hover {
    transform: scale(1.05);
}

.nqm-card-warpper .card-title {
    padding: 10px 6px;
    font-size: 14px;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.nqm-card-warpper.sidebar {
    margin: 0;
    padding: 4px 0;
}

.nqm-card-warpper.sidebar .nqm-card-list {
    gap: 18px 12px;
}

.nqm-card-warpper.sidebar .nqm-card-item {
    height: auto;
}

.nqm-card-warpper.sidebar .card-thumbnail {
    aspect-ratio: 3 / 4;
}

.nqm-card-warpper.sidebar .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    padding: 20px 4px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    border: none;
    z-index: 2;
}


.nqm-recent-quizzes {
    margin:0.8rem 0;
}

.nqm-recent-quizzes .nqm-quiz-grid {
    display: grid;
    gap: 0.8rem 0.6rem;
    margin-bottom: 2rem;
}

.nqm-recent-quizzes .nqm-quiz-grid .nqm-quiz-card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.nqm-recent-quizzes .nqm-quiz-grid .nqm-quiz-card .quiz-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.1rem;
    padding: 0.3rem 0.2rem;
}
.nqm-recent-quizzes .nqm-quiz-grid .nqm-quiz-card .quiz-title {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}
.nqm-recent-quizzes .nqm-quiz-grid .nqm-quiz-card .quiz-title a {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
    text-decoration: none;
}
.nqm-recent-quizzes .nqm-quiz-grid .nqm-quiz-card .quiz-thumbnail {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.nqm-recent-quizzes .nqm-quiz-grid .nqm-quiz-card .quiz-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nqm-recent-quizzes {
    container-type: inline-size;
    container-name: card-container;
    width: 100%;
}

@container card-container (min-width: 400px) {
    .nqm-quiz-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nqm-quiz-card .quiz-thumbnail {
        height: 180px;
    }

    .nqm-quiz-card .quiz-title {
        font-size: 1.2rem;
    }
}

@container card-container (min-width: 600px) {
    .nqm-quiz-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 0.8rem;
    }

    .nqm-quiz-card .quiz-thumbnail {
        height: 200px;
    }

    .nqm-quiz-card .quiz-title {
        font-size: 1.3rem;
    }
}

@container card-container (min-width: 900px) {
    .nqm-quiz-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


.nqm-quiz-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nqm-quiz-card:active {
    transform: scale(0.98);
}

.nqm-quiz-card .quiz-thumbnail {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.nqm-quiz-card .quiz-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nqm-quiz-card .quiz-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.1rem;
    padding: 0.75rem;
}

.nqm-quiz-card .quiz-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4em;
}

.nqm-quiz-card .quiz-title a {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
    text-decoration: none;
}

.nqm-quiz-card .quiz-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    line-clamp: 2;
    box-orient: vertical;
}

.nqm-quiz-card .quiz-excerpt:empty::after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 1.5em;
}

@supports not ((-webkit-line-clamp: 2) or (line-clamp: 2)) {
    .nqm-quiz-card .quiz-excerpt {
        display: block;
        text-overflow: ellipsis;
    }

    .nqm-quiz-card .quiz-excerpt::after {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0;
        background: white;
        padding-left: 5px;
    }
}

.nqm-quiz-card .btn {
    display: block;
    align-self: flex-start;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #007cba;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.nqm-recommend-wrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    container-name: recommend-section;
    width: 100%;
}

.nqm-recommend-wrapper .recommend-header {
    padding: 0 6px;
    border-bottom: 3px solid #e6e6e6;
    font-size: 22px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    color: #1f2937;
}

.nqm-recommend-wrapper .recommend-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0 0 0;
}

.nqm-recommend-wrapper .recommend-content::-webkit-scrollbar {
    width: 6px;
}
.nqm-recommend-wrapper .recommend-content::-webkit-scrollbar-thumb {
    border-radius: 3px;
}


.nqm-recommend-wrapper .quiz-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@container recommend-section (min-width: 700px) {
    .nqm-recommend-wrapper .quiz-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 25px;
    }
}

@container recommend-section (min-width: 1000px) {
    .nqm-recommend-wrapper .quiz-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 25px;
    }
}

.nqm-recommend-wrapper .quiz-item {
    display: flex;
    gap: 12px;
    padding: 10px 6px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
    margin-bottom: 4px;
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.nqm-recommend-wrapper .quiz-item:hover {
    background-color: #ebf0f6;
    text-decoration: none;
}

.nqm-recommend-wrapper .quiz-img-wrapper {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background-color: #f3f4f6;
}

.nqm-recommend-wrapper .quiz-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.35)
    );
    pointer-events: none;
}

.nqm-recommend-wrapper .quiz-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    filter: grayscale(40%) blur(0px);
    transition: all 0.4s ease;
}

.nqm-recommend-wrapper .quiz-item .quiz-img-wrapper img:hover {
    opacity: 1;
    filter: grayscale(0%) blur(0px);
    transform: scale(1.08);
}

.nqm-recommend-wrapper .quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.nqm-recommend-wrapper .quiz-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    max-height: 2.8em;
}

.nqm-recommend-wrapper .quiz-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nqm-recommend-wrapper .quiz-tag {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    flex-shrink: 0;
    display: inline-block;
    margin-right: 6px;
}

.nqm-recommend-wrapper .quiz-item .quiz-tag:hover {
    transform: scale(1.03);
}

.nqm-recommend-wrapper .quiz-action {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e8e8eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.nqm-recommend-wrapper .quiz-item:hover .quiz-action {
    background-color: #847fef;
    color: #fff;
}

/* Pagination - Mobile */
.nqm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 2rem 0;
}

.nqm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    color: #007cba;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.nqm-pagination .page-numbers:hover {
    background: #f5f5f5;
}

.nqm-pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.nqm-pagination .page-numbers.prev,
.nqm-pagination .page-numbers.next {
    font-size: 0.85rem;
}

/* No quizzes message - Mobile */
.no-quizzes {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 2rem 1rem;
}

/* ================================
   Tablet Styles (768px+)
   ================================ */
@media (min-width: 768px) {
    .nqm-topics-archive {
        padding: 1.5rem 1rem;
    }

    .nqm-category-header {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .nqm-category-header .breadcrumb {
        font-size: 0.9rem;
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .nqm-category-header .category-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .nqm-category-header .category-description {
        font-size: 1rem;
        max-width: 700px;
        margin: 0 auto 0.75rem;
    }

    .nqm-category-header .category-stats {
        font-size: 0.9rem;
    }

    .nqm-quiz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nqm-quiz-card .quiz-thumbnail {
        height: 180px;
    }

    .nqm-quiz-card .quiz-title {
        font-size: 1.2rem;
    }

    .nqm-quiz-card .quiz-meta {
        font-size: 0.85rem;
    }

    .nqm-quiz-card .btn {
        width: auto;
        display: inline-block;
        padding: 0.5rem 1.5rem;
    }

    .nqm-pagination {
        gap: 0.5rem;
    }

    .nqm-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}

/* ================================
   Desktop Styles (1024px+)
   ================================ */
@media (min-width: 1024px) {
    .nqm-topics-archive {
        padding: 2rem 1rem;
        max-width: 1200px;
    }

    .nqm-quiz-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .nqm-quiz-card .quiz-thumbnail {
        height: 200px;
    }

    .nqm-quiz-card .quiz-title {
        font-size: 1.3rem;
    }

    .nqm-quiz-card .quiz-meta {
        font-size: 0.9rem;
    }

    .nqm-pagination .page-numbers:hover {
        background: #007cba;
        color: #fff;
        border-color: #007cba;
    }
}

/* ================================
   Large Desktop Styles (1280px+)
   ================================ */
@media (min-width: 1280px) {
    .nqm-quiz-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nqm-embla-wrapper {
    width: 100%;
    min-width: 240px;
    margin: 1rem auto;
    position: relative;
}

.embla {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f4f4f4;
    position: relative;
}

.embla__container {
    display: flex;
    height: 100%;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin-left: 0;
}

.embla__dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.embla__dot {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.embla__dot--selected {
    background-color: #fff;
    transform: scale(1.1);
}

.embla__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.nqm-quiz-hero-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.embla__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: none;
    max-height: none;
    min-width: 100%;
    min-height: 100%;
}

.nqm-quiz-hero-card img {
    transition: transform 0.6s ease;
}
.nqm-quiz-hero-card:hover img {
    transform: scale(1.1);
}

.quiz-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0) 70%);
    padding: 60px 20px 30px 20px;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
}

.quiz-hero-content a, .quiz-hero-content .quiz-hero-btn {
    pointer-events: auto;
}

.quiz-hero-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    display: block;
    margin-bottom: 10px;
}

.quiz-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

.quiz-hero-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,123,255,0.4);
}

@media (min-width: 768px) {
    .nqm-embla-wrapper {
        max-width: 1200px;
    }
}


.nqm-chart-card {
    background: #fff;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 6px;
}

.nqm-chart-card.bipolar {
    padding: 10px 12px;
}

.nqm-chart-row {
    margin-bottom: 10px;
}

.nqm-chart-row:last-child {
    margin-bottom: 0;
}

.nqm-row-title {
    text-align: center;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.nqm-row-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nqm-label {
    width: 80px;
    display: flex;
    flex-direction: column;
}

.nqm-label.left {
    text-align: left;
    align-items: flex-start;
}

.nqm-label.right {
    text-align: right;
    align-items: flex-end;
}

.nqm-type-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.nqm-type-value {
    font-size: 14px;
    color: #888;
    font-family: Arial, sans-serif;
}

.nqm-bar-container {
    flex: 1;
    height: 12px;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 15px;
}

.nqm-bar-segment {
    height: 100%;
}

@media (max-width: 768px) {
    .nqm-label {
        width: 60px;
    }

    .nqm-bar-container {
        margin: 0;
    }
}

.chart-c-g { color: #999; }
.chart-bg-g { background-color: #F0F2F5; }
.chart-c-0 { color: #9353d3; }
.chart-bg-0 { background-color: #9353d3; }
.chart-c-1 { color: #006fee; }
.chart-bg-1 { background-color: #006fee; }
.chart-c-2 { color: #f31260; }
.chart-bg-2 { background-color: #f31260; }
.chart-c-3 { color: #f5a524; }
.chart-bg-3 { background-color: #f5a524; }
.chart-c-4 { color: #17c964; }
.chart-bg-4 { background-color: #17c964; }
.chart-c-5 { color: #e2711d; }
.chart-bg-5 { background-color: #e2711d; }


.nqm-data-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 20px auto;
}

.nqm-data-table .table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    padding: 0;
}

.nqm-data-table.with-descr .table-row {
    grid-template-columns: 2fr 1fr 4fr;
}

.nqm-data-table .table-row.rank-1 .name, .nqm-data-table .table-row.top-1 .name,
.nqm-data-table .table-row.rank-n .name, .nqm-data-table .table-row.top-n .name,
.nqm-data-table .table-row.rank-1 .score .current-score, .nqm-data-table .table-row.top-1 .score .current-score,
.nqm-data-table .table-row.rank-n .score .current-score, .nqm-data-table .table-row.top-n .score .current-score {
    color: #c76c94ff;
    font-weight: 600;
}
.nqm-data-table .table-row.rank-2 .name, .nqm-data-table .table-row.top-2 .name,
.nqm-data-table .table-row.rank-2 .score .current-score, .nqm-data-table .table-row.top-2 .score .current-score {
    color: #fbba6aff;
    font-weight: 600;
}
.nqm-data-table .table-row.rank-3 .name, .nqm-data-table .table-row.top-3 .name,
.nqm-data-table .table-row.rank-3 .score .current-score, .nqm-data-table .table-row.top-3 .score .current-score {
    color: #3EBCB3;
    font-weight: 600;
}

.nqm-data-table.with-descr .score {
    color: #334155;
}

.nqm-data-table .table-row.header {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nqm-data-table .table-cell {
    padding: 4px 2px;
    font-size: 15px;
    color: #334155;
    text-align: center;
}

.nqm-data-table .table-cell.descr {
    text-align: left;
}

.nqm-data-table .score {
    font-weight: 600;
    color: #3b82f6;
    font-size: 16px;
}

.nqm-data-table .full-score {
    font-size: 16px;
}

.nqm-data-table .table-row.summary {
    border-bottom: none;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-top: 2px solid #a9acae;
    font-weight: 600;
}

.nqm-data-table .table-row.summary .table-cell:first-child {
    color: #0c4a6e;
}

.holland-recommend-list h4.recommend-head,
.report-list h4.item-head {
    margin-bottom: 8px;
}
.holland-recommend-list h4.recommend-head > span,
.report-list h4.item-head > span {
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #ccc;
    padding: 4px 0;
    display: inline-block;
}

.holland-recommend-list .recommend-item,
.report-list .report-item {
    padding-bottom: 10px;
}

.holland-recommend-list .recommend-tips {
    padding: 2px 0;
}

.holland-recommend-list .job-info {
    margin-bottom: 10px;
}

.score-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin-bottom: 6px;
}

.score-text .score-num {
    font-weight: 600;
}

.score-text .score-total {
    color: #999;
}

.score-text .score-percent {
    color: #999;
}

.score-progress-wrap .score-track {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
}

.score-progress-wrap .score-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #4DABF7;
}

.score-progress-wrap.grade-l .score-fill { background-color: #E599F7; }
.score-text.grade-l .score-num, .score-text.grade-l .score-grade, .table-row .table-cell .grade-l { color: #D678E8; }

.score-progress-wrap.grade-m .score-fill { background-color: #8FB599; }
.score-text.grade-m .score-num, .score-text.grade-m .score-grade, .table-row .table-cell .grade-m   { color: #6D9679; }

.score-progress-wrap.grade-h .score-fill { background-color: #91A7FF; }
.score-text.grade-h .score-num, .score-text.grade-h .score-grade, .table-row .table-cell .grade-h   { color: #748FFC; }

.table-row.item-gap {
    border-bottom: 8px solid #f8fafc;
}

.report-item.item-gap {
    margin-bottom: 20px;
}

.nqm-report-empty {
    padding: 30px 0 100px;
}

.nqm-report-table tr.report-row th,
.nqm-report-table tr.report-row td {
    text-align: center;
}

.nqm-report-table tr.report-row td {
    padding: 10px 6px;
}

.nqm-report-table tr.report-row td.col-name {
    text-align: left;
}

.nqm-report-table tr.report-row td.col-action {
    padding: 10px 0;
    font-size: 0.8rem;
}

.nqm-report-table tr.report-row td.col-action a {
    display: inline-block;
    padding: 2px 6px;
}

.entry-header.with-subhead {
    padding-bottom: 2px;
}

.entry-header.with-subhead .entry-title {
    margin-bottom: 6px;
}
.entry-header.with-subhead .subhead-name {
    text-align: center;
    font-size: 24px;
}

.nqm-results-statement {
    margin: 15px 0 5px;
}

.action-container {
    width: 100%;
    max-width: 600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 30px auto;
    padding: 0 20px;
}

.action-container .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-container .btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.action-container .btn:active {
    transform: scale(0.98);
}

.action-container .btn-retest { background: #6934f0; color: #fff; }
.action-container .btn-share-quiz { background: #3498db; color: #fff; }
.action-container .btn-share-report { background: #67c23a; color: #fff; }
.action-container .btn-save { background: #f39c12; color: #fff; }

@media (min-width: 768px) {
    .action-container { grid-template-columns: repeat(4, 1fr); }
}
/*share*/

.nqm-poster-wrapper {
    width: 375px;
    background: #ffffff;
    color: #333;
    text-align: left;
    box-shadow: none;
}

.nqm-poster-wrapper .poster-content {
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
}
.nqm-poster-wrapper .poster-title { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 15px; text-align: left; }
.nqm-poster-wrapper .poster-quote { font-size: 16px; color: #666; line-height: 1.6; text-align: left; margin-bottom: 20px; padding: 10px; background: #f9f9f9; border-left: 5px solid #007bff; border-radius: 4px; }

.nqm-poster-wrapper .poster-screenshot-area {
    width: 100%;
    min-height: 30px;
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}
.nqm-poster-wrapper .poster-screenshot-area img {
    width: 100%;
    height: auto;
    display: block;
}

.nqm-poster-wrapper .poster-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.nqm-poster-wrapper .poster-footer .poster-tips {
    text-align: left;
}

.nqm-poster-wrapper .poster-footer .poster-tips-go {
    font-size: 18px; font-weight: bold; color: #000;
}

.nqm-poster-wrapper .poster-footer .poster-tips-from {
    font-size: 14px; color: #888; margin-top: 5px;
}

.nqm-poster-wrapper .poster-footer .poster-qrcode img {
    width: 150px;
}

.nqm-results-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.nqm-results-footer .poster-tips {
    text-align: left;
    padding-right: 20px;
}

.nqm-results-footer .results-tips-from {
    font-size: 18px; font-weight: bold; color: #000;
}

.nqm-results-footer .results-tips-go {
    font-size: 14px; color: #888; margin-top: 5px;
}

.nqm-results-footer .results-tips-retest a {
    display: inline-block; padding: 4px 10px;
    margin-top: 10px;
    color:#fff;
    border-radius: 2px;
    font-size: 14px; background: #3498db;
}

.nqm-results-footer .results-tips-retest a:hover {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);
}

.nqm-results-footer .results-qrcode img {
    width: 150px;
}

.nqm-share-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nqm-share-modal .share-tips {
    color: #fff;
    padding: 20px 0;
    margin: 0;
    flex-shrink: 0;
}
.nqm-share-modal .img-scroll-wrap {
    position: relative;
    width: 80%;
    flex: 1;
    overflow-y: auto;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}
.nqm-share-modal img.final-img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}
.nqm-share-modal .scroll-hint {
    position: sticky;
    bottom: 12px;
    width: fit-content;
    margin: 0 auto;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nqm-share-modal .img-scroll-wrap::after {
    content: "";
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        rgba(0,0,0,0.85)
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nqm-share-modal .img-scroll-wrap.hide-fade::after {
    opacity: 0;
}
.nqm-share-modal button {
    margin: 20px 0 30px;
    padding: 6px 20px;
    background-color: #007bff;
    font-size: 0.8rem;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
}
.nqm-share-modal button:hover {
    background-color: #0056b3;
}

.nqm-share-modal .close-x {
    position: absolute;
    top: 0;
    right: 8px;
    color: #fff;
    font-size: 30px;
    font-weight: 100;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nqm-share-modal .close-x:hover {
    opacity: 1;
}

/*loading*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    display: none;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay .loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

/*toast*/
.toastify {
    padding: 12px 20px;
    color: #fff;
    display: inline-block;
    box-shadow:
        0 3px 6px -1px rgba(0, 0, 0, 0.12),
        0 10px 36px -4px rgba(77, 96, 232, 0.3);
    background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);
    background: linear-gradient(135deg, #73a5ff, #5477f5);
    position: fixed;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    max-width: calc(50% - 20px);
    z-index: 2147483647;
}
.toastify.on {
    opacity: 1;
}
.toast-close {
    background: 0 0;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    opacity: 0.4;
    padding: 0 5px;
}
.toastify-right {
    right: 15px;
}
.toastify-left {
    left: 15px;
}
.toastify-top {
    top: -150px;
}
.toastify-bottom {
    bottom: -150px;
}
.toastify-rounded {
    border-radius: 25px;
}
.toastify-avatar {
    width: 1.5em;
    height: 1.5em;
    margin: -7px 5px;
    border-radius: 2px;
}
.toastify-center {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
    max-width: -moz-fit-content;
}
@media only screen and (max-width: 360px) {
    .toastify-left,
    .toastify-right {
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        max-width: fit-content;
    }
}

/*modal*/
.nqm-modal {
  display: none;
}

.nqm-modal.is-open {
  display: block;
}
.nqm-modal .modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nqm-modal .modal__container {
  background-color: #fff;
  padding: 0;
  width: 350px;
  max-height: 100vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
}

.nqm-modal .modal__header {
  display: flex;
  padding: 4px 15px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
}

.nqm-modal .modal__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-bottom: 20px;
}

.nqm-modal .modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.25;
  box-sizing: border-box;
}

.nqm-modal .modal__close {
  background: transparent;
  color: #999;
  border: 0;
}

.nqm-modal .modal__header .modal__close:before { font-size: 1.5rem; color: #999; content: "\2715"; }

.nqm-modal .modal__content {
  margin: 30px 15px;
  line-height: 1.5;
  color: rgba(0,0,0,.8);
}

.nqm-modal .modal__footer .modal__btn {
  font-size: .875rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e6e6e6;
  color: rgba(0,0,0,.8);
  border-radius: .25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform .25s ease-out;
  transition: transform .25s ease-out;
  transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.nqm-modal .modal__footer .modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.nqm-modal .modal__footer .modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

.site-content.quiz-session .is-right-sidebar.sidebar {
	display: none;
}

@media (min-width: 768px) {
	body.wp-child-theme-gp-sain .site-content.quiz-session .content-area {
    	width: 85%;
        margin: 0 auto;
	}
}
