/* ============================================================
   SINGLE PYQ STYLESHEET (Final Premium V8.0)
   Designed for: Pariksha Taiyari
   Updates: Open Layout Optimized (No Sticky Footer, Cleaner Spacing)
   ============================================================ */

/* 2. LAYOUT VARIABLES (page-specific dimensions only)
   All color variables come from pyq-design-tokens.css */
:root {
    --pt-container-w: 750px;
    --pt-col-marker: 40px;
    --pt-col-status: 30px;
    --pt-btn-pad-x: 12px;
}

/* 3. BASE STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--pt-bg-page);
    font-family: var(--theme-font-family, inherit);
    /* Use Blocksy's CSS variable */
    color: var(--pt-text);
    line-height: 1.6;
    margin: 0;
}

/* Main Container (Optimized for No Sticky Footer) */
.pt-main-container {
    max-width: var(--pt-container-w, 750px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* Updated Padding: Removed extra bottom space */
    padding: 20px 16px 40px 16px;
    font-family: inherit;
    width: 100%;
}

/* 4. LANGUAGE TOGGLE LOGIC */
[data-lang="en"] .pt-show-hi {
    display: none !important;
}

[data-lang="hi"] .pt-show-en {
    display: none !important;
}

/* 5. COMPONENTS: BREADCRUMBS */
.pt-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--pt-text-light);
    font-weight: 500;
    margin-bottom: 0 !important;
}

.pt-bread-link {
    text-decoration: none;
    color: var(--pt-primary);
    transition: color 0.2s;
}

.pt-bread-link:hover {
    color: var(--pt-primary);
}

.pt-sep {
    margin: 0 2px;
    opacity: 0.5;
    font-size: 10px;
}

.pt-bread-current {
    color: var(--pt-text);
    font-weight: 600;
}

/* 6. COMPONENTS: CARD (Common) */
.pt-card, 
.pt-ans-strip, 
.pt-solution-card,
.pt-related-section {
    max-width: var(--pt-container-w, 750px);
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    background: var(--pt-bg-card);
    border-radius: 6px; /* Reverted to 6px */
    box-shadow: none;
    border: 1px solid var(--pt-border);
    margin-bottom: 16px;
    overflow: hidden;
}



/* Question card — blue top accent bar */
.pyq-single-article {
    border-top: 3px solid var(--pt-primary);
}

/* 6.1 Specific Card Types */
.pt-answer-card {
    border: 1px solid #e2e8f0;
}

.pt-solution-card {
    border: 1px solid #e2e8f0;
}

/* 7. CARD HEADER */
.pt-card-header {
    padding: 16px 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid var(--pt-border);
}

.pt-breadcrumb-row {
    width: 100%;
}

.pt-breadcrumb-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.pt-breadcrumbs {
    margin-bottom: 0 !important;
    /* Override breadcrumb margin since it's now in a flex row */
    flex: 1;
    overflow: hidden;
}

/* Consolidated below */

.pt-breadcrumb-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-meta-row {
    width: 100%;
    padding-bottom: 4px;
}

.pt-q-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--pt-text);
    text-transform: none;
    letter-spacing: 0.5px;
}

.pt-header-actions {
    display: none;
    /* moved to question body row */
}

/* Q.No + Actions — same row inside question body */
.pt-q-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

/* Removed: Moved to header */

.pt-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pt-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--pt-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.pt-action-btn:hover {
    background: var(--pt-bg-page);
    color: var(--pt-primary);
}

/* Action Tools Layout */
.pyq-action-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pt-divider {
    height: 1px;
    background: var(--pt-border);
    width: 100%;
    margin: 15px 0;
}


/* 8. QUESTION BODY & COMPONENTS */
.pt-question-body {
    padding: 20px 24px 5px 24px !important;
    font-size: 17px;
    font-weight: 500;
    color: var(--pt-text);
    line-height: 1.6;
}

/* --- Standardize Module Gaps (Dynamic & Professional) --- */
.pt-q-stem-row,
.pt-passage-box,
.pt-assertion-reason-box,
.pt-diagram-container,
.pt-q-image-container,
.pt-stmt-list,
.pt-table-responsive,
.pt-howmany-wrap,
.pt-chrono-list,
.pt-sub-question-box,
.pt-question-intro,
.pt-question-outro,
.pt-sol-content {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: var(--pt-main-gap, 16px);
}

/* Specific left indent for all components when Q number exists */
.has-qno .pt-q-stem-text,
.has-qno .pt-passage-box,
.has-qno .pt-assertion-reason-box,
.has-qno .pt-diagram-container,
.has-qno .pt-q-image-container,
.has-qno .pt-stmt-list,
.has-qno .pt-table-responsive,
.has-qno .pt-howmany-wrap,
.has-qno .pt-chrono-list,
.has-qno .pt-sub-question-box,
.has-qno .pt-question-intro,
.has-qno .pt-question-outro,
.has-qno .pt-sol-content {
    margin-left: 44px;
}

/* Master Gap between all main modules */
.pyq-question-section > [class^="pt-"] {
    margin-bottom: var(--pt-main-gap, 16px);
}

.pyq-question-section > *:last-child {
    margin-bottom: 0px !important;
}

/* Paragraph Margin Reset (Variable Driven) */
.pt-question-body p,
.pt-passage-box p,
.pt-assertion-reason-box p,
.pt-stmt-list p,
.pt-chrono-list p {
    margin-top: var(--pt-p-margin, 0px);
    margin-bottom: var(--pt-p-margin, 0px);
}

/* Specific left indent for all components when Q number exists */

.pt-qno {
    font-weight: 700;
    color: var(--pt-primary);
    white-space: nowrap;
}

.pt-q-stem-text {
    flex: 1;
}

/* Hanging Indent Layout (when Q number exists) */
.has-qno {
    position: relative;
}

.has-qno .pt-q-stem-row {
    display: block; /* Override flex */
}

.has-qno .pt-qno {
    position: absolute;
    left: 24px;
    top: 20px;
}

/* Base Options Margin (Indented visually like rest of content) */
.pt-options-section.has-qno .pt-options-list,
.pt-options-section.has-qno .pt-matrix-codes-table {
    margin-left: 44px;
}

@media (max-width: 640px) {
    .has-qno .pt-qno {
        position: static;
        display: inline-block;
        margin-right: 8px;
        margin-bottom: 6px;
    }
    .has-qno .pt-q-stem-text,
    .has-qno .pt-passage-box,
    .has-qno .pt-assertion-reason-box,
    .has-qno .pt-diagram-container,
    .has-qno .pt-q-image-container,
    .has-qno .pt-stmt-list,
    .has-qno .pt-table-responsive,
    .has-qno .pt-howmany-wrap,
    .has-qno .pt-chrono-list,
    .has-qno .pt-sol-content {
        margin-left: 0;
    }
    .pt-options-section.has-qno .pt-options-list,
    .pt-options-section.has-qno .pt-matrix-codes-table {
        margin-left: 0;
    }
}

/* Base Section Padding */
.pyq-section,
.pt-options-section {
    padding: 0 24px 16px 24px;
}

/* Meta Header (QID/QNo) */
.pt-q-meta-header {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

/* Passage / Comprehension */
.pt-passage-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 15px;
    color: var(--pt-text);
}

/* Assertion-Reason */
.pt-assertion-reason-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    color: var(--pt-text);
}

.pt-assertion-row,
.pt-reason-row {
    margin-bottom: var(--pt-inner-gap, 6px);
    line-height: normal;
}

.pt-assertion-row strong,
.pt-reason-row strong {
    color: var(--pt-text);
    margin-right: 5px;
}

/* Statements & Chronology Lists */
.pt-stmt-list,
.pt-chrono-list {
    display: flex;
    flex-direction: column;
    gap: var(--pt-inner-gap, 6px);
}

.pt-stmt-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: var(--pt-inner-gap, 6px);
}

.pt-stmt-item:last-child {
    margin-bottom: 0;
}

.pt-stmt-num {
    font-weight: 700;
    color: var(--pt-text);
    min-width: 20px;
}

.pt-stmt-text {
    flex: 1;
}

/* Sub-Question / Instruction Box */
.pt-sub-question-box {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
}

/* Media Containers */
.pt-diagram-container,
.pt-main-container .pt-diagram-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
}

.pt-main-container .pt-question-img {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 15px auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Option Images */
.pt-opt-image {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
    /* Default left align text-base, but center the image if needed? */
}

.pt-opt-image img {
    max-width: 180px;
    /* Keep it compact */
    max-height: 120px;
    /* Prevent it from being too tall */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}


/* Rich Content Formatting */
.pyq-rich-content p {
    margin-top: 0;
    margin-bottom: 0.8em;
}

.pyq-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.pyq-rich-content ul,
.pyq-rich-content ol {
    margin-bottom: 1rem;
    padding-left: 20px;
}

/* Exam Badge */
.pt-exam-badge-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 8px 20px;
}

.pt-exam-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pt-warning-bg);
    color: #c2410c;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.pt-instruction {
    padding: 0 24px;
    margin: 0 0 12px 0;
    font-size: 10px;
    color: var(--pt-text-light);
    font-style: italic;
}

/* 9. OPTIONS GRID */
.pt-options-list {
    padding: 10px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 2-column layout — statement/short text types */
.pt-opts-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* Equal height rows in 2-col grid */
.pt-opts-2col .pt-option-btn {
    height: 100%;
}

.pt-opts-2col .pt-opt-layout {
    width: 100%;
    height: 100%;
}

/* Consolidated below */

.pt-option-btn {
    width: 100%;
    text-align: left;
    background: var(--pt-bg-subtle, #f8fafc);
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pt-option-btn:hover:not(:disabled) {
    background: var(--pt-primary-soft);
}

.pt-opt-layout {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pt-opt-marker {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--pt-border-light);
    border: 1.5px solid var(--pt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--pt-text-light);
    transition: all 0.2s;
}

.pt-opt-marker::before {
    content: "";
}

.pt-opt-marker::after {
    content: "";
}

.pt-opt-content {
    flex-grow: 1;
    font-size: 16px;
    color: var(--pt-text);
    line-height: 1.5;
    font-weight: 500;
    align-self: center;
}

.pt-opt-content p {
    margin: 0;
}

.pt-opt-status-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STATES: Correct & Wrong */
.pt-option-btn.pt-correct {
    background-color: var(--pt-success-bg) !important;
}

.pt-option-btn.pt-correct .pt-opt-marker {
    background: var(--pt-success);
    color: white;
    border-color: var(--pt-success);
}

.pt-option-btn.pt-correct .pt-opt-content {
    color: #064e3b;
    font-weight: 600;
}

.pt-option-btn.pt-wrong {
    background-color: var(--pt-error-bg) !important;
    animation: ptShake 0.4s ease-in-out;
}

.pt-option-btn.pt-wrong .pt-opt-marker {
    background: var(--pt-error);
    color: white;
    border-color: var(--pt-error);
}

/* 9b. EXAM BOX — "Previously Asked In" */
.pt-exam-box {
    margin: 16px 20px 20px 20px;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--pt-border, #e2e8f0);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: auto;
}

.pt-exam-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.pt-exam-box-label {
    font-size: 12px;
    color: var(--pt-text-muted, #64748b);
}

.pt-exam-sentence {
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-text, #0f172a);
    line-height: 1.5;
}

.pt-exam-sentence a {
    color: var(--pt-primary, #2563eb);
    text-decoration: none;
}

.pt-exam-sentence a:hover {
    text-decoration: underline;
}

.pt-exam-sep {
    color: var(--pt-text-muted, #94a3b8);
    font-weight: 400;
}

/* Removed placeholder footer */

.pt-exam-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pt-text-muted, #64748b);
    margin-top: 4px;
}

.pt-exam-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 140px;
}

.pt-exam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    width: 100%;
}

.pt-exam-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.pt-exam-btn-pdf {
    border: 1.5px solid #dc2626;
    color: #dc2626;
    background: #fff;
}

.pt-exam-btn-pdf:hover {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #b91c1c;
}

.pt-exam-btn-mock {
    background: #10b981;
    color: white;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: none;
}

.pt-exam-btn-mock:hover {
    background: #059669;
    color: #fff !important;
    box-shadow: none;
}

/* Disabled State for Actions */
.pt-btn-disabled {
    opacity: 0.5 !important;
    filter: grayscale(0.8);
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

.pt-btn-disabled:hover {
    background: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

.pt-exam-btn-mock:hover {
    background: #059669;
    box-shadow: none;
    transform: translateY(-1px);
}

/* Mobile Responsiveness for Exam Box */
/* Consolidated below */

/* 10. BUTTONS & UTILS (Reused for Navigation) */
/* Used for 'Next Question' button */
.pt-btn-soft {
    background: var(--pt-primary-soft);
    color: var(--pt-primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    box-shadow: none;
    text-decoration: none;
    /* Added for link compatibility */
}

.pt-btn-soft:hover {
    background: var(--pt-primary-hover);
    transform: translateY(-1px);
    box-shadow: none;
}

/* Used for 'Previous' and 'Full Paper' buttons */
.pt-btn-outline {
    text-decoration: none;
    color: var(--pt-primary);
    border: 1px solid var(--pt-primary);
    padding: 6px 14px;
    /* Slightly adjusted padding */
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
    display: inline-block;
}

.pt-btn-outline:hover {
    background: var(--pt-primary);
    color: white;
}


/* ============================================================
   10.5 CORRECT ANSWER STRIP (Premium Minimalist V4 - Green Theme)
   ============================================================ */
.pt-ans-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--pt-success-bg);
    border: 1px solid var(--pt-border, #e2e8f0);
    padding: 14px 20px;
    margin: 0 auto 16px auto;
    border-radius: 6px;
    animation: none;
}

.pt-ans-strip strong {
    color: var(--pt-success);
    font-size: 14px;
}



.pt-ans-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pt-text);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.pt-ans-badge svg {
    display: none !important;
    /* Removed SVG */
}


.pt-ans-label strong {
    color: var(--pt-primary, #10b981);
    font-size: 13px;
    font-weight: 600;
}

.pt-ans-body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.pt-ans-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.pt-ans-actions .pyq-action-tools {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pt-ans-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.pt-ans-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--pt-text, #1e293b);
    line-height: 1.5;
}

.pt-ans-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--pt-success);
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Mobile Adjustments */
/* Consolidated below */


/* 11. SOLUTION CARD */
/* .pt-solution-card - Placeholder removed to fix empty ruleset warning */

.pt-paper-header {
    padding: 8px 20px;
    /* Thinner header */
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.pt-sol-tabs {
    display: flex;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--pt-border);
    gap: 24px;
}

.pt-tab-btn {
    background: none;
    border: none;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-text-light);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.pt-tab-btn.active {
    color: var(--pt-primary);
    border-bottom-color: var(--pt-primary);
}

.pt-sol-meta {
    padding: 10px 20px;
    border-bottom: 1px solid var(--pt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.pt-ans-key {
    color: var(--pt-text);
}

.pt-badge-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--pt-success-bg);
    color: var(--pt-success);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pt-sol-content {
    padding: 16px 24px 24px;
    font-size: 16px;
    color: #334155;
    line-height: 1.5;
}

.pt-sol-content p {
    margin-bottom: 1rem;
    /* Standard paragraph gap */
    line-height: 1.6;
}

.pt-sol-content p:first-child {
    margin-top: 0 !important;
}

.pyq-explanation-box {
    word-break: break-word;
    color: #334155;
}

.pt-sol-content>*:first-child,
.pyq-explanation-box>*:first-child,
.pt-en-content>*:first-child,
.pt-hi-content>*:first-child {
    margin-top: 0 !important;
}

.pyq-rich-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pyq-rich-content p:first-child {
    margin-top: 0;
}

.pyq-explanation-box p:first-child {
    margin-top: 0;
}

.pyq-explanation-box strong {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--pt-text);
    font-weight: 700;
}

.pyq-explanation-box strong:first-child,
.pyq-explanation-box p:first-child strong {
    margin-top: 0;
}

.pt-sol-content p:last-child {
    margin-bottom: 0;
}

.pt-sol-footer {
    padding: 15px 0 0 0;
    /* Vertical spacing only, horizontal is inherited from parent */
    margin-top: 15px;
    background: none;
    border-top: 1px solid var(--pt-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pt-sol-voting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-voting-label {
    font-size: 11px;
    color: var(--pt-text-light);
    font-weight: 700;
    text-transform: normal;
    letter-spacing: 0.5px;
}

/* CLEANUP: Removing old voting button classes if still present */
.pt-btn-text {
    display: none !important;
}

/* 12. (Navigator removed) */

/* 14. MODAL UTILS */
.pt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-modal-box {
    background: white;
    width: 90%;
    max-width: 380px;
    border-radius: 16px;
    border: 1px solid var(--pt-border, #e2e8f0);
    box-shadow: none;
    overflow: hidden;
    animation: ptSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pt-modal-header {
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid var(--pt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pt-modal-header h3 {
    margin: 0;
    font-size: 15px;
    color: var(--pt-text);
}

.pt-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
}

.pt-modal-body {
    padding: 20px;
}

/* =========================================
   7. SMART STATEMENT LISTS
   ========================================= */
/* =========================================
   7. SMART STATEMENT LISTS & UNIVERSAL TABLE
   ========================================= */

/* UNIVERSAL TABLE (For Layout Only - No Visuals) */
.pt-universal-table {
    border: none !important;
    background: transparent !important;
}

.pt-universal-table th,
.pt-universal-table td {
    border: none !important;
    background: transparent !important;
    padding: 6px 15px !important;
    /* Increased horizontal padding for alignment */
    vertical-align: top;
}

.pt-universal-table tr {
    border: none !important;
    background: transparent !important;
}

/* SMART STATEMENT ITEMS */
.pt-stmt-item {
    display: flex;
    align-items: baseline;
    /* Better than flex-start for text */
    margin-bottom: 8px;
    line-height: 1.6;
    width: 100%;
    /* Force full width */
}

.pt-stmt-num {
    font-weight: 700;
    min-width: 28px;
    /* Slightly wider for double digits */
    color: var(--pt-text);
    /* Standard text color looks cleaner */
    flex-shrink: 0;
}

.pt-stmt-text {
    flex-grow: 1;
    /* Removed display: block to permit inline flow in PDF/mPDF */
}

/* Ensure no conflict (Fix "One Line" issue) */
.pt-universal-table .pt-stmt-item {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    gap: 0;
    /* Remove any accidental gap */
}

.pt-universal-table .pt-stmt-num {
    min-width: 20px !important;
    /* COMPACT: Bring numbers closer to text */
    margin-right: 2px;
}

.pt-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.pt-radio-label:has(input:checked) {
    border-color: var(--pt-primary);
    background: var(--pt-primary-soft);
    color: var(--pt-primary);
    font-weight: 600;
}

.pt-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    margin-top: 10px;
    font-family: inherit;
}

.pt-btn-submit {
    width: 100%;
    background: var(--pt-text);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Utilities */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Hide redundant Blocksy Theme elements on Single PYQ pages */
.single-pyq .hero-section,
.single-pyq .ct-post-meta,
.single-pyq .entry-meta {
    display: none !important;
}

.pt-paper-header {
    border-bottom: none;
    padding-bottom: 0;
}

@keyframes ptShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@keyframes ptSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---- Report Modal Form Groups ---------------------------- */
.pt-form-group {
    margin-bottom: 16px;
}

.pt-form-group > label:first-child {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-text, #1e293b);
    margin-bottom: 10px;
}

/* Dashicons inside buttons — standardize size */
.pt-btn-report .dashicons,
.pt-sol-footer .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Image Lightbox */
.pt-question-img.is-zoomed {
    position: relative;
    z-index: 1000;
    transform: scale(1.5);
    transition: transform 0.3s ease;
    cursor: zoom-out;
}

/* Image Load Error */
.pt-img-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 12px;
    padding: 20px;
}

.pt-img-error .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #cbd5e1;
}

/* Solution card header row */
.pt-sol-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Print Styles */
@media print {
    .print\:hidden {
        display: none !important;
    }

    .pt-main-container {
        padding: 0;
        max-width: 100%;
    }

    .pt-card {
        border: none;
        box-shadow: none;
        margin-bottom: 20px;
    }

    .pt-question-body {
        font-size: 14px;
        padding: 0;
    }

    .print\:block {
        display: block !important;
    }

    body {
        background: white;
    }
}



/* ============================================================
   UNIVERSAL TABLE ENGINE (For List-I vs List-II)
   ============================================================ */
.pt-question-intro {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--pt-text);
    line-height: 1.5;
}

.pt-table-responsive {
    width: 100%;
    max-width: 650px;
    /* COMPACT: Limit width to prevent over-stretching */
    margin: 16px auto 24px auto;
    /* Center the compact table */
    background: transparent;
    border-radius: 6px;
    border: none !important;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pt-universal-table {
    width: 100%;
    max-width: 550px;
    /* COMPACT: Matches the matrix table aesthetic */
    border-collapse: collapse;
    margin: 15px auto !important;
    /* Center the list table */
    border: none;
}

.pt-universal-table thead th {
    background: var(--pt-bg-subtle, #f8fafc) !important;
    color: var(--pt-text-light, #64748b);
    font-weight: 700;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    padding: 12px 20px;
    text-align: left;
    /* REVERTED to left for readability */
    border-bottom: 2px solid var(--pt-border) !important;
}

.pt-universal-table tbody td {
    padding: 10px 14px;
    /* Slightly tighter padding for compactness */
    border-bottom: 1px solid var(--pt-border-light, #f1f5f9) !important;
    color: var(--pt-text);
    font-size: 15px;
    /* Standardize font size */
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    vertical-align: top !important;
}

.pt-universal-table tr:last-child td {
    border-bottom: none !important;
}

.pt-universal-table th:first-child,
.pt-universal-table td:first-child {
    border-right: 2px solid var(--pt-border-light, #f1f5f9) !important;
    width: 50%;
}

.pt-universal-table th:last-child,
.pt-universal-table td:last-child {
    width: 50%;
    padding-left: 12px;
    /* REDUCED: Bring markers closer to the left border */
}

.pt-question-outro {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border: none !important;
    font-size: 16px;
    font-weight: 500;
    color: var(--pt-text);
}

/* Consolidated below */


.pt-btn-report {
    background: #fff5f5;
    /* Very Light Red */
    border: 1px solid #fee2e2;
    color: #ef4444;
    /* Red Text */
    padding: 4px 10px;
    /* Much smaller */
    border-radius: 4px;
    font-size: 11px;
    /* Smaller font */
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.pt-btn-report:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

.pt-btn-report .dashicons {
    color: #ef4444 !important;
    /* Red icon matches text */
}

/* Question Body Spacing */
/* .pyq-entry-content - Placeholder removed to fix empty ruleset warning */

/* Mnemonic / Memory Aid */

.pt-mnemonic-box {
    background: #fdf4ff;
    /* Light purple/lavender background */
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.pt-mnemonic-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #7c3aed;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Sources / References Box */
.pt-sources-box {
    background: #f8fafc;
    border: 1px solid var(--pt-border);
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.pt-sources-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pt-sources-list {
    margin: 0;
    padding: 0 0 0 16px;
    /* Indent for bullets */
    list-style: disc;
    display: block;
}

.pt-sources-list li {
    font-size: 13px;
    padding: 2px 0;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* Chronology List */
.pt-chrono-list {
    padding-left: 0;
}

.pt-chrono-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pt-chrono-step {
    font-weight: 700;
    color: var(--pt-text);
    min-width: 24px;
    flex-shrink: 0;
}

.pt-chrono-content {
    flex: 1;
}

/* Table Wrapping & Polishing */
.pt-universal-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9 !important;
    white-space: normal !important;
    /* Force wrap */
    word-break: break-word;
}

/* 15. PRINT OPTIMIZATIONS (Premium Export) */
@media print {

    /* Hide UI-only elements */
    .pt-header-actions,
    .pt-lang-switcher,
    .pt-sidebar,
    .pt-footer-actions,

    .pt-sol-tabs,
    .pt-btn-text,
    .pt-modal-overlay,
    .pt-breadcrumbs .pt-sep,
    .pt-breadcrumbs a:after,
    #header,
    #footer,
    .sidebar,
    .nav-links {
        display: none !important;
    }

    /* Reset Container for Print */
    .pt-main-container {
        display: block !important;
        padding: 0 !important;
        background: white !important;
    }

    .pt-card {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Force Solutions to Show on Print */
    .pt-solution-box,
    .pt-show-en,
    .pt-show-hi {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Keep Question and Options Together */
    .pt-question-body,
    .pt-options-list,
    .pt-solution-box {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Typography Polish */
    body {
        font-size: 12pt;
        color: black;
    }

    h1 {
        font-size: 18pt;
        margin-bottom: 20px;
    }

    .pt-q-meta-header {
        color: #666 !important;
        font-size: 9pt;
    }

    /* Branding Footer for Print */
    .pt-card:after {
        content: "Source: parikshataiyari.com | Educational Content for Competitive Exams";
        display: block;
        margin-top: 50px;
        font-size: 10pt;
        color: #999;
        text-align: center;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
}


/* ============================================================
   DESIGN SYSTEM UPGRADES — Professional UI
   ============================================================ */

/* --- VOTING BOX (Clean, no box) --- */
.pyq-voting-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pyq-voting-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
}

.pyq-vote-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0;
}

.pt-voting-label-full {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.pyq-vote-btn {
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    color: #94a3b8;
}

.pyq-vote-btn:hover {
    background: var(--pt-primary);
    color: white;
    transform: scale(1.1);
}

.pyq-vote-btn.voted {
    background: #16a34a;
    color: white;
    pointer-events: none;
}

.pyq-vote-count {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    min-width: 14px;
    text-align: center;
}

.pt-voting-label-short {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.pyq-vote-feedback {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    animation: ptFadeInUp 0.4s ease;
}

.pyq-vote-feedback .dashicons {
    color: #10b981;
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes ptFadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pt-vote-animate {
    animation: ptQuickScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ptQuickScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        color: #10b981;
    }

    100% {
        transform: scale(1);
    }
}

/* --- Q.1 + Question text --- */
.pt-q-stem-row {
    margin-bottom: 12px;
}

.pt-qno {
    font-weight: 700;
    color: var(--pt-primary);
    white-space: nowrap;
}

.pt-q-stem-text {
    flex: 1;
    min-width: 0;
}

.pt-q-stem-text p:first-child {
    margin-top: 0;
}

.pt-q-stem-text p:last-child {
    margin-bottom: 0;
}

/* Old QID/meta header — hidden (removed from template) */
.pt-q-meta-header {
    display: none;
}

.pt-qid {
    display: none;
}

/* --- META BADGES (Exam / Year / Subject / Difficulty) --- */
.pyq-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pyq-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--pt-border-light);
    border: 1px solid var(--pt-border);
    color: var(--pt-text-light);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--pt-radius-pill);
    text-decoration: none;
    line-height: 1;
}

.pyq-meta-item a {
    color: inherit;
    text-decoration: none;
}

.pyq-meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Exam badge — blue tint */
.pyq-tax-exam {
    background: var(--pt-primary-soft);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--pt-primary);
}

/* Difficulty badge — amber */
.pyq-tax-difficulty {
    background: var(--pt-warning-bg);
    color: #b45309;
    border-color: var(--pt-warning-border);
}

/* Year badge — subtle */
.pyq-tax-year {
    background: var(--pt-bg-subtle);
}


/* --- QID META HEADER CLEANUP (removed from template, kept hidden) --- */

/* --- SOLUTION CARD HEADER --- */
.pt-paper-header {
    border-bottom: 1px solid var(--pt-border) !important;
    background: var(--pt-bg-subtle) !important;
    padding: 12px 20px !important;
}

.pt-paper-header .pt-q-heading {
    color: var(--pt-text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}


/* ============================================================
   END DESIGN SYSTEM UPGRADES
   ============================================================ */

/* 2. MATCH MODE (Matrix) */
/* Container overrides */
.pt-options-list.mode-match {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Tighter gap for matrix rows */
}

/* Matrix Row Grid Layout (Used for both Header and Option Rows) */
.pt-match-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    width: 100%;
}

/* Matrix Number Styling (Clean Look - No BG/Border) */
.m-num {
    font-weight: 700;
    color: #334155;
    background: transparent;
    border: none;
    font-size: 15px;
    margin: 0;
    /* Align with headers */
}

/* Hover state: reset color inheritance */
.pt-option-btn:hover {
    color: inherit;
}

/* ============================================================
   MATCH TABLE HEADER (List-I / List-II column titles)
   ============================================================ */
.pt-match-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none !important;
}

.pt-match-header-row th {
    background: #f8fafc;
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    border: 1px solid #e2e8f0;
    width: 50%;
}

.pt-match-table tbody td {
    padding: 8px 15px;
    vertical-align: top;
    border: 1px solid #e2e8f0;
    width: 50%;
}

.pt-match-table tbody tr:last-child td {
    border-bottom: none;
}

/* Reset list/paragraph indent inside match table cells */
.pt-match-table tbody td ol,
.pt-match-table tbody td ul,
.pt-match-table tbody td .pt-en-content ol,
.pt-match-table tbody td .pt-hi-content ol,
.pt-match-table tbody td .pt-en-content ul,
.pt-match-table tbody td .pt-hi-content ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style-position: inside !important;
}

.pt-match-table tbody td p,
.pt-match-table tbody td .pt-en-content p,
.pt-match-table tbody td .pt-hi-content p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   MATRIX CODES TABLE (options as grid for match/matrix type)
   ============================================================ */
.pt-matrix-codes-table {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    border-collapse: collapse; /* Better for sharp grid lines */
    border: 1px solid #e2e8f0;
    border-radius: 0; /* Sharp corners */
    overflow: hidden;
    table-layout: auto;
    box-shadow: none !important;
}

.pt-matrix-codes-table thead th {
    background: #f8fafc; /* Restored background */
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 12px; /* Slightly smaller for sharper look */
    text-transform: uppercase;
    color: #64748b;
    border: 1px solid #e2e8f0; /* Thin sharp grid */
}

.pt-matrix-codes-table .pt-matrix-lbl-col {
    width: 70px;
    /* Slightly wider to fit label + icon */
}

.pt-matrix-codes-table td {
    padding: 10px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--pt-text);
    border: 1px solid #e2e8f0; /* Sharp grid on all sides */
}

.pt-matrix-codes-table tr:last-child td {
    border-bottom: none;
}

.pt-matrix-row-label {
    background: #f8fafc !important; /* Restored background */
    border-right: 1px solid #e2e8f0 !important;
    vertical-align: middle !important;
    /* Forces vertical centering in the row */
    text-align: center !important;
    /* Horizontal centering */
    padding: 0 !important;
    width: 65px;
}

.pt-matrix-lbl-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pt-primary);
    line-height: 1;
}

/* Mobile Adjustments for Matrix Table */
/* Consolidated below */

.pt-matrix-codes-table tr.pt-option-btn {
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--pt-border-light, #f1f5f9);
    background: transparent;
}

.pt-matrix-codes-table tr.pt-option-btn:last-child {
    border-bottom: none;
}

.pt-matrix-codes-table tr.pt-option-btn:hover {
    background: transparent;
    opacity: 0.8; /* Subtle hint on hover instead of solid bg */
}

.pt-matrix-codes-table tr.pt-option-btn.pt-correct {
    background: #f0fdf4 !important;
}

.pt-matrix-codes-table tr.pt-option-btn.pt-wrong {
    background: #fef2f2 !important;
}

/* ============================================================
   HOW MANY PAIRS — matching_rows two-column layout
   ============================================================ */
.pt-howmany-wrap {
    border: 1px solid var(--pt-border);
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0;
}

.pt-howmany-header,
.pt-howmany-row {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    align-items: baseline;
}

.pt-howmany-header {
    background: var(--pt-bg-subtle, #f8fafc);
    border-bottom: 2px solid var(--pt-border);
    font-weight: 700;
    font-size: 13px;
    color: var(--pt-text-light, #64748b);
}

.pt-howmany-header .pt-howmany-col-l,
.pt-howmany-header .pt-howmany-col-r {
    padding: 10px 14px;
}

.pt-howmany-row {
    border-bottom: 1px solid var(--pt-border-light, #f1f5f9);
}

.pt-howmany-row:last-child {
    border-bottom: none;
}

.pt-howmany-col-l,
.pt-howmany-col-r {
    padding: 8px 14px;
}

.pt-howmany-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pt-text-light, #64748b);
    font-weight: 700;
    font-size: 15px;
    padding: 4px 0;
}

.pt-howmany-lbl {
    font-weight: 700;
    margin-right: 5px;
}

/* ============================================================
   16. UNIFIED MOBILE RESPONSIVENESS (Consolidated V1.0)
   ============================================================ */

/* --- Tablet & Small Screens (600px) --- */
@media (max-width: 600px) {
    .pt-breadcrumb-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pt-breadcrumb-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .pt-exam-box {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin: 10px 20px;
    }

    .pt-exam-btns {
        width: 100%;
        min-width: 0;
        flex-direction: row;
    }

    .pt-exam-btn {
        flex: 1;
    }
}

/* --- Mobile Smartphones (480px) --- */
@media (max-width: 480px) {
    /* Unified Card Spacing: Ensure no clinging to edges */
    .pt-card,
    .pt-ans-strip,
    .pt-solution-card,
    .pt-exam-box,
    .pt-paper-box,
    .pt-passage-box,
    .pt-assertion-reason-box,
    .pt-table-responsive {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Question body & options — reduce side padding on small screens */
    .pt-question-body {
        padding: 16px 16px 5px 16px !important;
    }

    .pt-options-section,
    .pyq-section {
        padding: 0 16px 12px 16px;
    }

    /* Options Grid */
    .pt-opts-2col {
        grid-template-columns: 1fr;
    }

    /* Correct Answer Strip */
    .pt-ans-strip {
        padding: 12px 15px;
        margin-bottom: 16px;
        gap: 10px;
    }

    .pt-ans-badge {
        font-size: 13px;
    }

    .pt-ans-val {
        font-size: 16px;
    }

    .pt-ans-badge svg {
        width: 18px;
        height: 18px;
    }

    /* Solution Footer — wrap on very small screens */
    .pt-sol-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Tables (Universal & Matrix) */
    .pt-table-responsive {
        padding: 12px;
        margin: 10px 0 15px 0;
        border-radius: 6px;
    }

    .pt-universal-table thead th {
        font-size: 13px;
        padding-bottom: 8px;
    }

    .pt-universal-table tbody td {
        font-size: 15px;
        padding: 8px 5px 8px 0;
    }

    .pt-matrix-codes-table {
        margin: 15px auto;
        border-radius: 6px;
    }

    .pt-matrix-codes-table thead th {
        padding: 8px 4px;
        font-size: 12px;
    }

    .pt-matrix-codes-table td {
        padding: 8px 4px;
        font-size: 14px;
    }

    .pt-matrix-codes-table .pt-matrix-lbl-col {
        width: 50px;
    }

    .pt-question-intro,
    .pt-question-outro {
        font-size: 15px;
    }

    /* Exam buttons — side by side on mobile */
    .pt-exam-btns {
        flex-direction: row;
    }

    .pt-exam-btn {
        flex: 1;
    }
}

/* ============================================================
   17. PHASE 1 MOBILE BLOCKERS (HIGH priority audit fixes)
   Appended — do not edit; safe to remove as a block.
   ============================================================ */

/* HIGH #4: container max-width — full viewport on small phones */
/* HIGH #5: question images — never overflow viewport */
@media (max-width: 480px) {
    .pt-main-container {
        max-width: 100% !important;
        padding: 16px 12px 32px 12px !important;
    }

    .pt-main-container .pt-question-img {
        max-width: 100% !important;
        margin: 12px auto;
    }

    /* Q.No: a touch more breathing room (8px → 10px) */
    .has-qno .pt-qno {
        margin-right: 10px;
    }

    /* Breadcrumbs: don't truncate on mobile (was overflow:hidden via flex:1) */
    .pt-breadcrumbs {
        overflow: visible;
    }

    /* Touch targets — meet 44x44 minimum on key controls */
    .pt-action-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .pt-option-btn {
        min-height: 44px;
        padding: 10px 12px;
    }

    .pt-opts-2col .pt-option-btn {
        min-height: 44px;
    }
}

/* HIGH #3: matrix codes table — keep readable on iPhone SE / Galaxy S10 */
@media (max-width: 380px) {
    .pt-question-body {
        padding: 14px 12px 4px 12px !important;
        font-size: 16px;
    }

    .pt-options-section,
    .pyq-section {
        padding: 0 12px 10px 12px;
    }

    .pt-opt-content {
        font-size: 15px;
    }

    .pt-passage-box {
        font-size: 15px;
        line-height: 1.7;
    }

    .pt-matrix-codes-table {
        font-size: 12px;
    }

    .pt-matrix-codes-table thead th {
        padding: 6px 2px;
        font-size: 10px;
    }

    .pt-matrix-codes-table td {
        padding: 6px 2px;
        font-size: 12px;
    }

    .pt-matrix-codes-table .pt-matrix-lbl-col {
        width: 40px;
    }
}
