/* ================================
   Objectiva Core Wrapper
================================ */

.objectiva-test {
    width: 100%;
    margin: 20px auto;
    position: relative;
}

.objectiva-error,
.objectiva-question-placeholder {
    padding: 16px;
    border-radius: 10px;
    background: #f8f7ff;
    border: 1px solid #d9d5f0;
    color: #333;
    margin-bottom: 16px;
}


/* ================================
   Objectiva User Settings Panel
================================ */

.objectiva-user-settings {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 80;
}

.objectiva-settings-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(31, 93, 168, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #1f5da8;
    box-shadow: 0 5px 16px rgba(0,0,0,0.14);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.objectiva-settings-toggle:hover {
    background: #f5f8ff;
    transform: translateY(-1px) rotate(18deg);
    box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

.objectiva-settings-toggle:active {
    transform: scale(0.96);
}

.objectiva-settings-icon svg {
    display: block;
    fill: currentColor;
}

.objectiva-muted .objectiva-settings-toggle {
    background: #fff4f4;
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.2);
}

.objectiva-settings-panel {
    position: absolute;
    top: 50px;
    right: 0;
    width: 285px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #d9e7ff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    z-index: 90;
    backdrop-filter: blur(8px);
}

.objectiva-settings-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2ff;
}

.objectiva-settings-panel h4 {
    margin: 0;
    color: #1f2a44;
    font-size: 16px;
    font-weight: 800;
}

.objectiva-settings-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.objectiva-settings-close:hover {
    background: #ffecec;
    color: #b42318;
}

.objectiva-settings-row {
    display: block;
    margin-bottom: 15px;
    font-weight: 800;
    color: #344054;
    font-size: 13px;
}

.objectiva-settings-row span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.objectiva-settings-row input[type="range"] {
    width: 100%;
    accent-color: #1f5da8;
}

.objectiva-settings-row em {
    font-style: normal;
    color: #1f5da8;
    background: #eef4ff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.objectiva-settings-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 15px;
    font-weight: 800;
    color: #344054;
    font-size: 13px;
}

.objectiva-settings-check input[type="checkbox"] {
    transform: scale(1.05);
}

.objectiva-fullscreen-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #1f5da8;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 93, 168, 0.22);
}

.objectiva-fullscreen-btn:hover {
    background: #174a88;
}

.objectiva-test:fullscreen {
    background: #ffffff;
    overflow: auto;
    padding: 20px;
}


/* ================================
   Objectiva Modes
================================ */

.objectiva-mode-slide .objectiva-ntp-status-row,
.objectiva-mode-slide .objectiva-mcq-status-row {
    display: none !important;
}

.objectiva-mode-slide .objectiva-ntp-resume-box {
    display: none !important;
}

.objectiva-mode-slide .objectiva-ntp-game,
.objectiva-mode-slide .objectiva-mcq-card {
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.objectiva-mode-practice .objectiva-ntp-game,
.objectiva-mode-practice .objectiva-mcq-card {
    border-color: #d9e7ff;
}

.objectiva-mode-arcade .objectiva-ntp-game,
.objectiva-mode-arcade .objectiva-mcq-card {
    border-color: #b9d2ff;
    box-shadow: 0 10px 30px rgba(31, 93, 168, 0.12);
}

.objectiva-mode-exam .objectiva-ntp-game,
.objectiva-mode-exam .objectiva-mcq-card {
    border-color: #d0d5dd;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}


/* ================================
   Core Mobile
================================ */

@media (max-width: 768px) {
    .objectiva-user-settings {
        top: 8px;
        right: 8px;
    }

    .objectiva-settings-toggle {
        width: 36px;
        height: 36px;
    }

    .objectiva-settings-panel {
        width: min(270px, calc(100vw - 24px));
        right: 0;
        top: 44px;
        border-radius: 16px;
    }
}
.objectiva-question-flow-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.objectiva-flow-prev,
.objectiva-flow-next {
    border: 0;
    border-radius: 999px;
    background: #1f5da8;
    color: #ffffff;
    font-weight: 800;
    padding: 10px 18px;
    cursor: pointer;
}

.objectiva-flow-prev:disabled,
.objectiva-flow-next:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.objectiva-flow-status {
    font-weight: 800;
    color: #1f2a44;
}

.objectiva-final-result {
    max-width: 900px;
    margin: 24px auto;
}

.objectiva-final-result-card {
    border: 1px solid #cfe0ff;
    border-radius: 18px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(31, 93, 168, 0.08);
    text-align: center;
}

.objectiva-final-result-card h3 {
    margin-top: 0;
    color: #002147;
    font-size: 24px;
}

.objectiva-final-score-line,
.objectiva-final-percent-line {
    font-size: 18px;
    font-weight: 800;
    color: #002147;
    margin: 8px 0;
}

.objectiva-final-message {
    margin: 14px auto;
    font-weight: 800;
    color: #1f5da8;
}

.objectiva-toggle-review {
    border: 0;
    border-radius: 999px;
    background: #1f5da8;
    color: #ffffff;
    padding: 11px 18px;
    font-weight: 900;
    cursor: pointer;
}

.objectiva-review-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.objectiva-review-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.objectiva-review-table th,
.objectiva-review-table td {
    border: 1px solid #d9e7ff;
    padding: 10px;
    vertical-align: top;
}

.objectiva-review-table th {
    background: #f8fbff;
    color: #002147;
    font-weight: 900;
}

.objectiva-review-status {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 900;
}

.objectiva-review-correct {
    background: #ecfdf3;
    color: #067647;
}

.objectiva-review-wrong {
    background: #fff1f1;
    color: #b42318;
}

@media (max-width: 640px) {
    .objectiva-review-table,
    .objectiva-review-table thead,
    .objectiva-review-table tbody,
    .objectiva-review-table th,
    .objectiva-review-table td,
    .objectiva-review-table tr {
        display: block;
    }

    .objectiva-review-table thead {
        display: none;
    }

    .objectiva-review-table tr {
        border: 1px solid #d9e7ff;
        border-radius: 14px;
        margin-bottom: 12px;
        overflow: hidden;
    }

    .objectiva-review-table td {
        border: 0;
        border-bottom: 1px solid #eef4ff;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .objectiva-review-table td::before {
        content: attr(data-label);
        font-weight: 900;
        color: #002147;
    }
}
.objectiva-review-unanswered {
    background: #fff8e7;
    color: #b54708;
}
.objectiva-submit-paper-wrap {
    max-width: 900px;
    margin: 24px auto;
    text-align: center;
}

.objectiva-submit-paper-btn {
    border: 0;
    border-radius: 999px;
    background: #1f5da8;
    color: #ffffff;
    font-weight: 900;
    padding: 13px 24px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(31, 93, 168, 0.18);
}

.objectiva-submit-paper-btn:hover {
    filter: brightness(0.96);
}

.objectiva-submit-paper-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* ================================
   Objectiva Submit Paper
================================ */

.objectiva-submit-paper-wrap {
    max-width: 900px;
    margin: 26px auto;
    text-align: center;
}

.objectiva-submit-paper-btn {
    border: 0;
    border-radius: 999px;
    background: #1f5da8;
    color: #ffffff;
    font-weight: 900;
    padding: 13px 26px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(31, 93, 168, 0.18);
}

.objectiva-submit-paper-btn:hover {
    filter: brightness(0.96);
}

.objectiva-submit-paper-btn.is-disabled,
.objectiva-submit-paper-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* ================================
   Objectiva Arcade Global Timer
================================ */

.objectiva-global-timer-box {
    max-width: 900px;
    margin: 18px auto 22px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.objectiva-global-timer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: #0f376f;
    margin-bottom: 10px;
}

.objectiva-global-time-left {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 6px 12px;
    color: #1f5da8;
}

.objectiva-global-timer-bar {
    height: 10px;
    background: #dbeafe;
    border-radius: 999px;
    overflow: hidden;
}

.objectiva-global-timer-fill {
    height: 100%;
    width: 100%;
    background: #1f5da8;
    border-radius: 999px;
    transition: width 0.25s linear;
}

.objectiva-global-timer-box.is-warning {
    border-color: #f59e0b;
    background: #fff8e7;
}

.objectiva-global-timer-box.is-danger {
    border-color: #ef4444;
    background: #fff1f2;
}

.objectiva-global-timer-box.is-danger .objectiva-global-time-left {
    color: #b91c1c;
    border-color: #fecaca;
}
.objectiva-global-attempts-box {
    max-width: 900px;
    margin: -10px auto 22px;
    padding: 10px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #f8fbff;
    color: #0f376f;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.objectiva-global-attempts-left {
    display: inline-flex;
    min-width: 34px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #ffffff;
    color: #1f5da8;
}

.objectiva-global-attempts-box.is-warning {
    border-color: #f59e0b;
    background: #fff8e7;
}

.objectiva-global-attempts-box.is-danger {
    border-color: #ef4444;
    background: #fff1f2;
    color: #b91c1c;
}

.objectiva-global-attempts-box.is-danger .objectiva-global-attempts-left {
    border-color: #fecaca;
    color: #b91c1c;
}

/* =========================================================
   VISUAL MCQ - COMPACT 2 COLUMN GRID
========================================================= */

.objectiva-visual-mcq-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 14px !important;
}

.objectiva-visual-mcq-grid .objectiva-visual-mcq-option {
    min-height: 190px !important;
    max-height: 230px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.objectiva-visual-mcq-grid .objectiva-visual-mcq-image-wrap {
    width: 100% !important;
    height: 130px !important;
    max-height: 130px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}

.objectiva-visual-mcq-grid .objectiva-visual-mcq-image-wrap img {
    width: auto !important;
    height: auto !important;
    max-width: 125px !important;
    max-height: 125px !important;
    object-fit: contain !important;
    display: block !important;
}

.objectiva-visual-mcq-grid .objectiva-mcq-option-label {
    margin: 0 0 4px 0 !important;
}

.objectiva-visual-mcq-grid .objectiva-visual-mcq-label {
    width: 100% !important;
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
.objectiva-visual-mcq-answer-text {
    display: none !important;
}
/* =========================================================
   VISUAL MCQ - NAMING PANEL
========================================================= */

.objectiva-visual-name-panel {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
}

.objectiva-visual-name-panel h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
}

.objectiva-visual-name-fields {
    display: grid;
    gap: 10px;
}

.objectiva-visual-name-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    align-items: center;
}

.objectiva-visual-name-row label {
    font-weight: 800;
}

.objectiva-visual-name-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #1f5fae;
    font-weight: 900;
}

.objectiva-visual-name-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    box-sizing: border-box;
    font-weight: 700;
}

.objectiva-visual-name-input:focus {
    outline: none;
    border-color: #2563eb;
}

@media (max-width: 600px) {
    .objectiva-visual-name-row {
        grid-template-columns: 1fr;
    }
}
/* Visual MCQ review tick/cross */
.objectiva-answer-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 900;
    font-size: 13px;
}

.objectiva-answer-cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 900;
    font-size: 13px;
}
/* =========================================================
   JUMBLED WORD - FRONTEND RENDERING ONLY
========================================================= */

.objectiva-jumbled-question {
    margin: 18px 0;
}

.objectiva-jumbled-card {
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.objectiva-jumbled-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.objectiva-jumbled-score {
    padding: 8px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #f8fbff;
    font-weight: 800;
}

.objectiva-jumbled-question-text {
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.objectiva-jumbled-tiles,
.objectiva-jumbled-answer-boxes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0;
}

.objectiva-jumbled-tile {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #0b3475;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 4px 0 #061f45;
}

.objectiva-jumbled-gap,
.objectiva-jumbled-answer-gap {
    width: 30px;
    height: 8px;
    display: inline-block;
}

.objectiva-jumbled-answer-box {
    width: 48px;
    height: 48px;
    border: 2px solid #93c5fd;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    background: #f8fbff;
}

.objectiva-jumbled-answer-box:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
}

.objectiva-jumbled-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.objectiva-jumbled-check-btn,
.objectiva-jumbled-hint-btn,
.objectiva-jumbled-reset-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
}

.objectiva-jumbled-check-btn {
    background: #1f66b2;
    color: #ffffff;
}

.objectiva-jumbled-hint-btn,
.objectiva-jumbled-reset-btn {
    background: #eef4ff;
    color: #00315f;
}

@media (max-width: 600px) {
    .objectiva-jumbled-tile,
    .objectiva-jumbled-answer-box {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .objectiva-jumbled-gap,
    .objectiva-jumbled-answer-gap {
        width: 18px;
    }
}
/* Jumbled Word feedback */
.objectiva-jumbled-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 900;
    text-align: center;
}

.objectiva-jumbled-feedback.is-correct {
    background: #dcfce7;
    color: #15803d;
}

.objectiva-jumbled-feedback.is-wrong {
    background: #fee2e2;
    color: #b91c1c;
}

.objectiva-jumbled-answer-box.is-correct {
    border-color: #16a34a;
    background: #dcfce7;
    color: #14532d;
}

.objectiva-jumbled-answer-box.is-wrong {
    border-color: #dc2626;
    background: #fee2e2;
    color: #7f1d1d;
}

.objectiva-jumbled-hint,
.objectiva-jumbled-explanation {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #f8fbff;
}

.objectiva-jumbled-hint strong,
.objectiva-jumbled-explanation strong {
    display: block;
    margin-bottom: 6px;
}
/* =========================================================
   JUMBLED WORD LAYOUT FIX
========================================================= */

.objectiva-jumbled-question {
    margin: 0 auto 28px;
    width: 100%;
    box-sizing: border-box;
}

.objectiva-jumbled-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px 20px 24px;
    border: 1px solid #c7d8ff;
    border-radius: 18px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
}

/* Keep score away from settings gear */
.objectiva-jumbled-card .objectiva-question-score,
.objectiva-jumbled-card .objectiva-score-box,
.objectiva-jumbled-card .objectiva-score-pill {
    margin-right: 56px !important;
}

/* If your question heading row is flex, this helps spacing */
.objectiva-jumbled-card .objectiva-question-head,
.objectiva-jumbled-card .objectiva-question-top,
.objectiva-jumbled-card .objectiva-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Jumbled content centered nicely */
.objectiva-jumbled-card .objectiva-jumbled-display-row,
.objectiva-jumbled-card .objectiva-jumbled-answer-row,
.objectiva-jumbled-card .objectiva-jumbled-actions {
    justify-content: center;
}

/* Settings gear should stay above but not crush layout */
.objectiva-test .objectiva-settings-toggle,
.objectiva-test .objectiva-test-settings-toggle,
.objectiva-test .objectiva-settings-btn,
.objectiva-test .objectiva-settings-button {
    z-index: 50;
}
/* Jumbled Word status row */
.objectiva-jumbled-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 16px;
}

.objectiva-jumbled-status-card {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #f8fbff;
    font-weight: 900;
}

.objectiva-jumbled-attempts-box {
    border-color: #f59e0b;
    background: #fffbeb;
}

.objectiva-jumbled-timer-track {
    width: 110px;
    height: 6px;
    margin-top: 7px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

.objectiva-jumbled-timer-fill {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: #1f66b2;
}
/* =========================================================
   JUMBLED WORD - WORD GROUP LAYOUT
========================================================= */

.objectiva-jumbled-tiles,
.objectiva-jumbled-answer-boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.objectiva-jumbled-word-group,
.objectiva-jumbled-answer-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Keep existing tile/box styling */
.objectiva-jumbled-tile {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #0b3475;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 4px 0 #061f45;
}

.objectiva-jumbled-answer-box {
    width: 48px;
    height: 48px;
    border: 2px solid #93c5fd;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    background: #f8fbff;
}

@media (max-width: 600px) {
    .objectiva-jumbled-word-group,
    .objectiva-jumbled-answer-group {
        gap: 7px;
    }

    .objectiva-jumbled-tile,
    .objectiva-jumbled-answer-box {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}
/* =========================================================
   JUMBLED WORD - LETTER REVEAL ANIMATION
========================================================= */

.objectiva-jumbled-answer-box.objectiva-letter-reveal {
    animation: objectivaLetterPop 0.28s ease-out;
}

.objectiva-jumbled-answer-box.objectiva-letter-shake {
    animation: objectivaLetterShake 0.35s ease-in-out;
}

@keyframes objectivaLetterPop {
    0% {
        transform: scale(0.85);
        opacity: 0.55;
    }

    60% {
        transform: scale(1.12);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes objectivaLetterShake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}
/* =========================================================
   SMART MATCH PAIR - FRONTEND RENDERING ONLY
========================================================= */

.objectiva-match-question {
    margin: 0 auto 28px;
    width: 100%;
    box-sizing: border-box;
}

.objectiva-match-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 22px 20px 24px;
    border: 1px solid #c7d8ff;
    border-radius: 18px;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.objectiva-match-question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.objectiva-match-score {
    padding: 8px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #f8fbff;
    font-weight: 900;
}

.objectiva-match-question-text {
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.objectiva-match-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.objectiva-match-column {
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 14px;
    background: #f8fbff;
}

.objectiva-match-column h4 {
    margin: 0 0 12px;
    color: #00315f;
}

.objectiva-match-item {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #ffffff;
    color: #001b3d;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.objectiva-match-item:hover {
    border-color: #2563eb;
    background: #eef6ff;
}

.objectiva-match-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.objectiva-match-reset-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    background: #eef4ff;
    color: #00315f;
    cursor: pointer;
}

@media (max-width: 700px) {
    .objectiva-match-board {
        grid-template-columns: 1fr;
    }
}
/* Smart Match Pair interaction states */
.objectiva-match-item.is-selected {
    border-color: #2563eb;
    background: #dbeafe;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.objectiva-match-item.is-matched {
    border-color: #16a34a;
    background: #dcfce7;
    color: #14532d;
    cursor: default;
}

.objectiva-match-item.is-wrong {
    border-color: #dc2626;
    background: #fee2e2;
    color: #7f1d1d;
    animation: objectivaMatchShake 0.35s ease-in-out;
}

@keyframes objectivaMatchShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-4px);
    }
}
/* =========================================================
   SMART MATCH PAIR - STATUS ROW
========================================================= */

.objectiva-match-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 16px;
}

.objectiva-match-status-card {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #f8fbff;
    font-weight: 900;
}

.objectiva-match-attempts-box {
    border-color: #f59e0b;
    background: #fffbeb;
}

.objectiva-match-timer-track {
    width: 110px;
    height: 6px;
    margin-top: 7px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

.objectiva-match-timer-fill {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: #1f66b2;
}
/* Smart Match Pair feedback */
.objectiva-match-feedback {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 900;
    text-align: center;
}

.objectiva-match-feedback.is-correct {
    background: #dcfce7;
    color: #15803d;
}

.objectiva-match-feedback.is-wrong {
    background: #fee2e2;
    color: #b91c1c;
}

.objectiva-match-item.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
}
.objectiva-jumbled-tile.is-used-letter {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
    transform: scale(0.96);
    opacity: 0.85;
}

.objectiva-jumbled-answer-box.objectiva-invalid-letter {
    animation: objectivaJumbledShake 0.26s ease;
    border-color: #dc2626;
    background: #fef2f2;
}

@keyframes objectivaJumbledShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}
/* =========================
   SMART MATCH PAIR - HINT UI
   ========================= */

/* Action row */
.objectiva-match-actions,
.objectiva-smart-match-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* Hint button */
.objectiva-match-hint-btn,
.objectiva-smart-match-hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 12px 22px;
    border: none;
    border-radius: 16px;
    background: #1f5fbf;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 95, 191, 0.22);
    transition: all 0.2s ease;
}

.objectiva-match-hint-btn:hover,
.objectiva-smart-match-hint-btn:hover {
    background: #174d9a;
    transform: translateY(-1px);
}

.objectiva-match-hint-btn:active,
.objectiva-smart-match-hint-btn:active {
    transform: translateY(0);
}

.objectiva-match-hint-btn:disabled,
.objectiva-smart-match-hint-btn:disabled,
.objectiva-match-hint-btn.disabled,
.objectiva-smart-match-hint-btn.disabled {
    background: #dfe8f6;
    color: #7a8ca8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

/* Hint box wrapper */
.objectiva-match-hint-box,
.objectiva-smart-match-hint-box {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #bfd3f3;
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 4px 14px rgba(24, 74, 147, 0.08);
    text-align: left;
}

/* Hint title */
.objectiva-match-hint-box .objectiva-hint-title,
.objectiva-smart-match-hint-box .objectiva-hint-title {
    display: block;
    margin-bottom: 10px;
    color: #0b3a78;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

/* Hint text */
.objectiva-match-hint-box .objectiva-hint-text,
.objectiva-smart-match-hint-box .objectiva-hint-text {
    color: #17324d;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

/* If plain p tag is used instead of dedicated hint text class */
.objectiva-match-hint-box p,
.objectiva-smart-match-hint-box p {
    margin: 0;
    color: #17324d;
    font-size: 18px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 767px) {
    .objectiva-match-hint-btn,
    .objectiva-smart-match-hint-btn {
        font-size: 16px;
        padding: 11px 18px;
        min-width: 84px;
    }

    .objectiva-match-hint-box,
    .objectiva-smart-match-hint-box {
        padding: 16px;
        border-radius: 16px;
    }

    .objectiva-match-hint-box .objectiva-hint-title,
    .objectiva-smart-match-hint-box .objectiva-hint-title {
        font-size: 20px;
    }

    .objectiva-match-hint-box .objectiva-hint-text,
    .objectiva-smart-match-hint-box .objectiva-hint-text,
    .objectiva-match-hint-box p,
    .objectiva-smart-match-hint-box p {
        font-size: 16px;
    }
}
/* =========================
   SMART MATCH PAIR - HINT UI
   ========================= */

/* Action row */
.objectiva-match-actions,
.objectiva-smart-match-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* Hint button */
.objectiva-match-hint-btn,
.objectiva-smart-match-hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 12px 22px;
    border: none;
    border-radius: 16px;
    background: #1f5fbf;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 95, 191, 0.22);
    transition: all 0.2s ease;
}

.objectiva-match-hint-btn:hover,
.objectiva-smart-match-hint-btn:hover {
    background: #174d9a;
    transform: translateY(-1px);
}

.objectiva-match-hint-btn:active,
.objectiva-smart-match-hint-btn:active {
    transform: translateY(0);
}

.objectiva-match-hint-btn:disabled,
.objectiva-smart-match-hint-btn:disabled,
.objectiva-match-hint-btn.disabled,
.objectiva-smart-match-hint-btn.disabled {
    background: #dfe8f6;
    color: #7a8ca8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

/* Hint box wrapper */
.objectiva-match-hint-box,
.objectiva-smart-match-hint-box {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #bfd3f3;
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 4px 14px rgba(24, 74, 147, 0.08);
    text-align: left;
}

/* Hint title */
.objectiva-match-hint-box .objectiva-hint-title,
.objectiva-smart-match-hint-box .objectiva-hint-title {
    display: block;
    margin-bottom: 10px;
    color: #0b3a78;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

/* Hint text */
.objectiva-match-hint-box .objectiva-hint-text,
.objectiva-smart-match-hint-box .objectiva-hint-text {
    color: #17324d;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

/* If plain p tag is used instead of dedicated hint text class */
.objectiva-match-hint-box p,
.objectiva-smart-match-hint-box p {
    margin: 0;
    color: #17324d;
    font-size: 18px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 767px) {
    .objectiva-match-hint-btn,
    .objectiva-smart-match-hint-btn {
        font-size: 16px;
        padding: 11px 18px;
        min-width: 84px;
    }

    .objectiva-match-hint-box,
    .objectiva-smart-match-hint-box {
        padding: 16px;
        border-radius: 16px;
    }

    .objectiva-match-hint-box .objectiva-hint-title,
    .objectiva-smart-match-hint-box .objectiva-hint-title {
        font-size: 20px;
    }

    .objectiva-match-hint-box .objectiva-hint-text,
    .objectiva-smart-match-hint-box .objectiva-hint-text,
    .objectiva-match-hint-box p,
    .objectiva-smart-match-hint-box p {
        font-size: 16px;
    }
}
/* =========================
   SMART MATCH - EXPLANATION BOX
   ========================= */

.objectiva-match-explanation-box {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #bcd5ff;
    border-left: 5px solid #1f5fbf;
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 8px 22px rgba(31, 95, 191, 0.08);
    text-align: left;
}

.objectiva-match-explanation-box strong {
    display: block;
    margin-bottom: 10px;
    color: #0b3a78;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.objectiva-match-explanation-box div {
    color: #17324d;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

.objectiva-match-explanation-box p {
    margin: 0 0 8px;
}

.objectiva-match-explanation-box p:last-child {
    margin-bottom: 0;
}

/* Explanation button */
.objectiva-match-explanation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    background: #1f5fbf;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 95, 191, 0.2);
    transition: all 0.18s ease;
}

.objectiva-match-explanation-btn:hover {
    background: #174d9a;
    transform: translateY(-1px);
}

.objectiva-match-explanation-btn:active {
    transform: translateY(0);
}

/* Keep Hint / Explanation / Reset aligned nicely */
.objectiva-match-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .objectiva-match-explanation-box {
        padding: 16px;
        border-radius: 16px;
    }

    .objectiva-match-explanation-box strong {
        font-size: 18px;
    }

    .objectiva-match-explanation-box div {
        font-size: 15px;
        line-height: 1.6;
    }

    .objectiva-match-explanation-btn {
        min-width: 112px;
        padding: 11px 16px;
        font-size: 15px;
    }
}
.objectiva-match-hint-box {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #bcd5ff;
    border-left: 5px solid #1f5fbf;
    border-radius: 18px;
    background: #f7fbff;
    box-shadow: 0 8px 22px rgba(31, 95, 191, 0.08);
    text-align: left;
}

.objectiva-match-hint-box strong {
    display: block;
    margin-bottom: 10px;
    color: #0b3a78;
    font-size: 20px;
    font-weight: 800;
}

.objectiva-match-hint-box div {
    color: #17324d;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}
/* =====================================================
   OBJECTIVA GLOBAL READABILITY FIX
   Prevent white text on pale hover/selected backgrounds
===================================================== */

.objectiva-test button:hover,
.objectiva-test .objectiva-question-card button:hover,
.objectiva-test .objectiva-match-item:hover,
.objectiva-test .objectiva-match-left-item:hover,
.objectiva-test .objectiva-match-right-item:hover,
.objectiva-test .objectiva-jumbled-tile:hover,
.objectiva-test .objectiva-mcq-option:hover,
.objectiva-test .objectiva-ntp-label:hover,
.objectiva-test .is-selected,
.objectiva-test .is-disabled {
    color: #0f2f57;
}

/* Correct / matched states */
.objectiva-test .is-correct,
.objectiva-test .is-matched {
    color: #14532d;
}

/* Wrong state */
.objectiva-test .is-wrong {
    color: #7f1d1d;
}

/* Keep primary action buttons white text */
.objectiva-test .objectiva-check-answer-btn,
.objectiva-test .objectiva-submit-paper-btn,
.objectiva-test .objectiva-next-btn,
.objectiva-test .objectiva-match-hint-btn,
.objectiva-test .objectiva-match-explanation-btn,
.objectiva-test .objectiva-jumbled-hint-btn,
.objectiva-test .objectiva-reset-btn:hover,
.objectiva-test .objectiva-match-reset-btn:hover {
    color: #ffffff;
}
.objectiva-test .objectiva-match-item:hover,
.objectiva-test .objectiva-match-left-item:hover,
.objectiva-test .objectiva-match-right-item:hover,
.objectiva-test .objectiva-jumbled-tile:hover,
.objectiva-test .objectiva-mcq-option:hover,
.objectiva-test .objectiva-ntp-label:hover,
.objectiva-test .is-selected,
.objectiva-test .is-disabled {
    color: #0f2f57 !important;
}

.objectiva-test .is-correct,
.objectiva-test .is-matched {
    color: #14532d !important;
}

.objectiva-test .is-wrong {
    color: #7f1d1d !important;
}