/*
Theme Name: Storefront Child
Theme URI: https://www.dump4pass.com/
Description: A child theme for Storefront
Author: IT
Author URI: https://www.dump4pass.com/
Template: storefront
Version: 1.0
*/

@import url("../storefront/style.css");

.exam-quiz-wrapper {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* Question Block Styling */
/*.question-block {
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
 background-image: url('123.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 140px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}
*/

/* Question Header */
.question-block p:first-child {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

/* Question Text */
.question-block p:nth-child(2) {
    margin: 8px 0 16px;
    font-size: 16px;
    color: #222;
    line-height: 1.5;
}

/* Answer Options */
/* Desktop */
.question-block label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #444;
}

/* Mobile */
@media (max-width: 600px) {
  .question-block label {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
  }
}

/* Input Styling */
.question-block input[type="radio"] {
    margin-right: 8px;
    /* Optional: visually distinguish radio buttons */
}

.question-block input[type="checkbox"] {
    margin-right: 8px;
    /* Optional: visually distinguish checkboxes */
}

/* Explanation Box */
.explanation {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 8px;
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

/* Responsive tweaks for mobile devices */
@media (max-width: 600px) {
    .question-block {
        padding: 16px;
        background-size: 100px; /* Smaller watermark */
    }

    .question-block p:first-child {
        font-size: 16px; /* Slightly smaller header */
    }

    .question-block p:nth-child(2) {
        font-size: 15px;
    }

   /* Inline layout for answer options */
.question-block label {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}

    .question-block input[type="radio"],
    .question-block input[type="checkbox"] {
        transform: scale(1.2); /* Easier to tap */
        margin-right: 10px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    /* Optional: sticky CTA for mobile */
    .sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #17a2b8;
        color: white;
        text-align: center;
        padding: 12px;
        font-weight: bold;
        z-index: 999;
    }
}

/*  */
.test-engine-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
}

.breadcrumb a {
  font-size: 14px;
  color: #0073aa;
}
.test-meta {
  margin-bottom: 20px;
}

#quiz-content {
  display: block;
}

.hotspot-image.active,
.hotarea-image.active {
  visibility: visible !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1;
}

/* ✅ Canvas Container 
.hotspot-canvas-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: auto;
  overflow: visible;
  display: inline-block;
}

*/

.hotspot-canvas-container img {
  max-width: none;
  width: auto;
}

/*
.hotspot-canvas {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  border: 1px solid #ccc;
  background-color: transparent !important;
  position: relative !important;
  z-index: 1 !important;
}
*/

.hotspot-delete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allows canvas interaction */
  z-index: 20;
}


/* ✅ Region Container — FIXED */
.hotspot-regions {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  z-index: 9999;
}

.hotspot-regions img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*.hotspot.selected {
  pointer-events: auto;
  background-color: rgba(40, 167, 69, 0.4);
border-color: #28a745;
}
*/

/* Hot Area selected region */
.hotspot.selected {
  background-color: rgba(0, 86, 179, 0.7); /* deeper blue for contrast */
  border: 3px dashed #004085; /* dashed border for visual distinction */
  box-shadow: 0 0 12px rgba(0, 86, 179, 0.6); /* stronger glow */
  transform: scale(1.05);
  z-index: 10;
  transition: all 0.2s ease;
}

/* Optional: unselected regions */
.hotspot:not(.selected) {
  opacity: 0.4;
  transition: opacity 0.2s ease;
}


/* ✅ Clear Selection Button */
.clear-selection-btn {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 30;
  background-color: #ffffff;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ✅ Label styling */
.hotspot-label {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
}

.hotspot:hover {
  background-color: rgba(0,123,255,0.4);
}



/* ============================
   Web-Based Test Engine Styles
   ============================ */
  body {
    margin: 0;
    background: #f4f4f4;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
  }
  .logo {
    margin: 30px auto 10px;
  }
  .logo img {
    width: 140px;
  }
  .exam-title {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0;
  }
  .test-meta {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .test-engine-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }
  .timer-display {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
  }
  .loading-spinner {
    display: none;
    margin: 20px 0;
  }
  .quiz-content .question-block {
    display: block;
    margin-bottom: 20px;
  }
  .submit-quiz {
    margin-top: 20px;
  }
  .results-page {
    display: none;
    margin-top: 30px;
  }
  .retake-options button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
  }

.hotspot-delete-btn {
  position: absolute;
  pointer-events: auto;
  z-index: 5;
}

.hotspot-container {
  position: relative;
    z-index: 1;
}

.hotarea-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #000;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 5px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 10;
}

.hotarea {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  border: 2px dashed #28a745;
  background-color: rgba(40, 167, 69, 0.3);
  z-index: 9999;
}
.hotarea.selected {
  background-color: rgba(40, 167, 69, 0.5);
  border-color: #218838;
}

.region-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  .hotarea {
    border-width: 3px;
    background-color: rgba(40, 167, 69, 0.4);
  }
}

@media (max-width: 600px) {
  .hotspot-canvas {
    width: 100% !important;
    height: auto !important;
  }
}


.dragdrop-canvas {
  position: relative;
  z-index: 1;
}

.drop-zone {
  position: absolute !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  background-color: rgba(0, 255, 0, 0.4) !important;
  border: 2px dashed green !important;
  width: 100px !important;
  height: 50px !important;
  transition: background-color 0.2s ease;
}

.drop-zone:hover {
  background-color: rgba(0, 255, 0, 0.5) !important;
  cursor: pointer;
}

.dragdrop-canvas-container {
  position: relative !important;
  overflow: visible !important;
   z-index: 9999;
  pointer-events: auto;
}

.dragdrop-canvas {
  position: relative;
  z-index: 1;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 400px; /* or dynamically set via JS */
  max-width: 600px;
}

.draggable-region {
  cursor: grab;
}

@media (max-width: 600px) {
  canvas {
    height: auto !important;
    max-height: 80vw;
  }
}

@media (max-width: 600px) {
  .hotspot-canvas-container {
    max-width: 100%;
    height: auto;
  }
}

.hotspot-image,
.hotarea-image {
  display: none !important;
}


canvas {
  pointer-events: auto;
  z-index: 1; /* or higher than overlays */
}


/* ✅ Circular CSS Spinner - Replaces missing spinner.gif */
.quiz-loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Light grey background ring */
    border-top: 5px solid #007bff; /* Quiz Blue - the spinning part */
    border-radius: 50%;
    display: inline-block;
    animation: quiz-spin 1s linear infinite;
}

@keyframes quiz-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-spinner {
    text-align: center; /* 🛠 Fixed typo: was 'text-allign' */
    padding: 40px;
    display: block;    /* Ensures it takes up its own line */
    width: 100%;
}

/* Optional: styling for the loading text inside the spinner container */
#loading-spinner p {
    color: #666;
    font-weight: bold;
    margin-top: 15px;
}

/* Split Screen Case Study Styles */
.casestudy-container {
    display: flex;
    height: 80vh; /* Limits height to fit the screen */
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.casestudy-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fdfdfd;
    border-right: 2px solid #eee;
}

.cs-header {
    padding: 12px 20px;
    background: #343a40;
    color: #fff;
    font-weight: bold;
}

.cs-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.casestudy-question-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #fff;
}

/* Make images inside case study responsive */
.cs-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border: 1px solid #ddd;
}

/* Container for Previous/Next buttons */
.quiz-navigation {
    display: flex;
    justify-content: flex-end; /* ✅ Moves buttons to the right */
    gap: 15px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
}

.quiz-navigation button {
    min-width: 100px;
}

.cs-body {
    padding: 25px;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 15px;
    color: #333;
}

/* ✅ Ensures bold text from the editor shows up */
.cs-body b, 
.cs-body strong {
    font-weight: bold !important;
}

/* ✅ Ensures spacing between paragraphs */
.cs-body p {
    margin-bottom: 1.5em;
}

/* ✅ Fixes table formatting if you paste tables */
.cs-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cs-body td, .cs-body th {
    border: 1px solid #ddd;
    padding: 8px;
}

/* ✅ Global Quiz Watermark Container */
#quiz-content {
    position: relative;
    background-color: #fff;
    z-index: 1;
}

/* ✅ The Watermark Layer */
#quiz-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Repeating SVG background */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='250' height='150'><text x='50%' y='50%' fill='rgba(0,0,0,0.03)' font-size='22' font-family='Arial' font-weight='bold' text-anchor='middle' transform='rotate(-30, 125, 75)'>Dump4Pass</text></svg>");
    background-repeat: repeat;
    pointer-events: none; 
    z-index: 10; /* ❗ Increased z-index to sit on top of panes */
}

/* ✅ Ensure ALL case study containers are transparent */
.question-block, 
.casestudy-container, 
.casestudy-pane, 
.casestudy-question-area,
.cs-body {
    background: transparent !important; 
}

/* ✅ Ensure text and interactive elements stay ABOVE the watermark */
.cs-body, 
.question-text, 
.choice-option, 
.dragdrop-container,
.hotspot-container,
.question-number {
    position: relative;
    z-index: 11; /* Sits above the z-index 10 watermark */
}

/* Keep the Case Study Header solid for readability */
.casestudy-pane > div:first-child {
    position: relative;
    z-index: 12;
    background: #343a40 !important;
}

/* --- Case Study Filter UI --- */
#case_study_only + span, 
label[for="case_study_only"] {
    color: #d9534f;
    font-weight: bold;
}

/* --- Resizer Bar Styling --- */
.cs-resizer {
    width: 12px !important;
    background: #f1f1f1;
    transition: background 0.3s;
    flex-shrink: 0; /* Prevents the bar itself from shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-resizer:hover,
.cs-resizer:active {
    background: #007bff !important; /* Blue highlight on hover */
    transition: background 0.2s;
}

.cs-resizer span {
    font-size: 18px;
    font-weight: bold;
    user-select: none;
    pointer-events: none; /* Icon won't block the mouse click */
}

/* --- Dragging State Protections --- */
/* Prevents text selection globally while dragging the splitter */
body.resizing-active {
    user-select: none !important;
    -webkit-user-select: none !important;
    cursor: col-resize !important;
}

/* Disable pointer events on content so images/tables don't "mess" with the drag */
body.resizing-active * {
    pointer-events: none !important;
}

/* Re-enable pointer events ONLY for the resizer and container so dragging works */
body.resizing-active .cs-resizer, 
body.resizing-active .casestudy-container,
body.resizing-active .casestudy-container * {
    pointer-events: auto !important;
}

/* --- Layout Engine Fixes --- */
.casestudy-container {
    display: flex;
    flex-wrap: nowrap;
    user-select: none; 
}

.casestudy-pane {
    flex: none !important; /* Forces JS to have total control over width % */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.casestudy-question-area {
    flex: 1 1 0%; /* Automatically fills the remaining space */
    min-width: 0;
    overflow-y: auto;
}

/* --- Content Content Alignment --- */
.cs-body, 
.casestudy-question-area {
    user-select: text; /* Re-enables reading/selection once drag stops */
}

/* Ensure images and tables scale proportionally as the pane shrinks */
.cs-body img {
    max-width: 100%;
    height: auto;
    display: block;
    user-drag: none; /* Prevents images from ghosting during drag */
    -webkit-user-drag: none;
}

.cs-body table {
    width: 100% !important;
    table-layout: auto;
    border-collapse: collapse;
}

/* --- ENHANCED PROFESSIONAL STRIPE --- */
.exam-header-stripe {
    background-color: #0A2540; /* UPDATED: Deep Navy Blue - professional & better contrast */
    color: #ffffff;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 12px 40px;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 3px solid #ff9900;
    font-family: 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-height: 85px; 
}

/* --- LEFT BLOCK: Logo Badge --- */
.exam-stripe-left {
    flex: 1; 
    display: flex;
    align-items: center;
}

.exam-stripe-logo {
    height: 65px !important;
    width: auto;
    background: transparent !important; /* Confirmed: Transparent */
    padding: 0;                         
    border-radius: 0;                   
    filter: none !important;
    box-shadow: none;                   
    transition: transform 0.2s ease;
}

.exam-stripe-logo:hover {
    transform: scale(1.05);
}

/* --- CENTER BLOCK: Dynamic Title --- */
.exam-info-center {
    flex: 2; 
    text-align: center;
}

.exam-main-title {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff !important; /* Forced White text */
}

/* --- RIGHT BLOCK: Timer --- */
.exam-meta-right {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
}

.exam-timer-container {
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent background fits any header color */
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid #ff9900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: bold;
    color: #ffffff;
}

.timer-countdown {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
    color: #ff9900;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .exam-header-stripe {
        padding: 10px 20px;
    }
    .exam-main-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .exam-header-stripe {
        flex-direction: column; 
        gap: 10px;
        padding: 15px;
    }
    .exam-stripe-logo {
        height: 45px !important;
    }
    .exam-info-center {
        order: -1; 
    }
}

/* --- UNIVERSAL TYPOGRAPHY UPGRADE --- */
body, .question-text, .choice-text, .cs-body {
    font-family: 'Aptos', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px; 
    line-height: 1.6; 
    color: #333333;
}

/* Make Question Titles slightly larger and bolder */
.question-number {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Enhance Choice Options for a modern "Card" look */
.choice-option {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box !important; /* Ensures the rectangle stays perfectly within the margins */
}

.choice-option:hover {
    border-color: #007bff;
    background-color: #f0f7ff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

/* --- FIX CONTENT ALIGNMENT (Centers the layout) --- */
main, #content, .entry-content {
    max-width: 1200px !important;   /* Limits the width so it doesn't stretch too wide */
    margin: 0 auto !important;      /* MAGICAL LINE: This pushes it to the center */
    padding: 40px 20px !important;  /* Adds breathing room (Top/Bottom: 40px, Left/Right: 20px) */
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Optional: Ensure the question text specifically isn't too close to the edge */
.question-content-wrapper, .wpProQuiz_content {
    margin-left: auto;
    margin-right: auto;
}

/* --- PROFESSIONAL RESULT CARD (Targeted Fix) --- */

/* 1. The White "Report Card" Box */
.exam-summary {
    background-color: #ffffff !important;
    border: none !important;  /* Removes the grey border from inline style */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Adds a soft 3D shadow */
    padding: 40px !important; /* Adds breathing room */
    max-width: 600px;
    margin: 40px auto !important; /* Centers the card */
    font-family: 'Segoe UI', Roboto, sans-serif;
    text-align: center !important;
}

/* 2. The Title "EXAM COMPLETED" */
.exam-summary h3 {
    color: #0A2540 !important; /* Deep Navy */
    font-size: 28px !important;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 25px !important;
    letter-spacing: 1px;
    border-bottom: 3px solid #ff9900; /* Orange Accent Line */
    display: inline-block;
    padding-bottom: 10px;
}

/* 3. The Text Lines (Total, Correct, Wrong) */
.exam-summary p {
    font-size: 16px !important;
    color: #444;
    margin: 12px 0 !important;
    line-height: 1.6;
}

/* 4. The SCORE - Make it HUGE */
/* We target the paragraph with the inline font-size: 20px */
.exam-summary p[style*="font-size: 20px"], 
.exam-summary p:nth-of-type(4) { 
    font-size: 36px !important; /* Much bigger than 20px */
    font-weight: 900 !important;
    color: #0A2540 !important;
    margin: 25px 0 !important;
    display: block;
}

/* 5. The STATUS (Pass/Fail) */
.exam-summary p:last-of-type {
    font-size: 18px !important;
    font-weight: bold;
    text-transform: uppercase;
    background: #f1f3f5;
    padding: 8px 25px;
    border-radius: 50px;
    display: inline-block;
    color: #333;
}

/* --- THE BUTTONS (Targeting #retake-options) --- */
#retake-options {
    text-align: center !important;
    margin-top: 30px !important;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Button Styling */
#retake-options input[type="button"], 
#retake-options button, 
.wpProQuiz_button {
    background-color: #0A2540 !important; /* Deep Navy */
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px !important;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover Effect */
#retake-options input[type="button"]:hover, 
#retake-options button:hover {
    background-color: #ff9900 !important; /* Orange on hover */
    transform: translateY(-3px);
}

/* Special Color for "Review Incorrect" */
#retake-options input[value*="Incorrect"] {
    background-color: #d63384 !important; /* distinct dark pink/red */
}

/* --- STYLISH EXAM FOOTER (STRONGER VERSION) --- */

/* 1. VIEW ANSWER BUTTON (The Green Pill) */
/* Targeted specifically by the 'value' attribute */
input[value="View Answer"], 
input.wpProQuiz_button[value="View Answer"] {
    background-color: #28a745 !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
    margin-top: 10px; /* Separates it from options */
}

/* 2. NAVIGATION BUTTONS (Previous / Next) */
/* We target the specific ID 'pagination-controls' and ANY button inside it */
#pagination-controls button,
#pagination-controls input[type="button"],
#pagination-controls .wpProQuiz_button {
    border-radius: 8px !important;
    padding: 12px 35px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    text-transform: capitalize !important; /* Fixes uppercase if theme forces it */
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    margin: 0 10px !important; /* Force spacing between them */
}

/* Specific Style for NEXT (Blue) */
#pagination-controls button:last-child, /* Usually Next is the last button */
#pagination-controls input[value="Next"] {
    background-color: #0A2540 !important; /* Navy */
    color: #ffffff !important;
}

/* Specific Style for PREVIOUS (Grey) */
#pagination-controls button:first-child, /* Usually Previous is the first button */
#pagination-controls input[value="Previous"] {
    background-color: #e2e6ea !important; /* Light Grey */
    color: #495057 !important;
}

/* Hover Effects */
#pagination-controls input[value="Next"]:hover {
    background-color: #003366 !important;
    transform: translateY(-2px);
}
#pagination-controls input[value="Previous"]:hover {
    background-color: #dbe2e8 !important;
    color: #000 !important;
}

/* 3. SUBMIT EXAM BUTTON (The Orange Giant) */
/* Your existing code for this works, but we include it here to keep things together */
#submit-quiz input[type="button"],
#submit-quiz button {
    background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%) !important;
    color: white !important;
    font-size: 18px !important;
    padding: 16px 60px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(255, 119, 0, 0.3) !important;
    margin-top: 20px !important;
    display: inline-block !important;
}

/* ✅ FIX: The "Container" Gap & Side Margins */
.question-block {
    padding: 25px 20px !important; /* Top/Bottom: 25px, Left/Right: 20px */
    box-sizing: border-box !important;
    margin-bottom: 30px;
}

/* ✅ FIX: Ensure the Question Text doesn't touch the top */
.question-text {
    margin-top: 10px !important;
    display: block;
}

.config-nav a:hover {
    color: #004d7a !important;
}

.config-nav a .dashicons {
    transition: transform 0.2s ease;
}

.config-nav a:hover .dashicons {
    transform: translateX(-3px);
}