@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Title styles with adjustable margins */
.quiz-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    float: left;
    clear: both;
    width: 100%;
    color: black;
}

/* Common styles */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #ffffff;
    padding-top: 0px !important;
}

.header {
    background-color: #e7f4fd;
    height: 55px;
    width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    border-radius: 10px;
    border: 1px solid #B9DEF5;
    margin-bottom: 10px;
    font-weight: bold;
    margin-left: 20px !important;
    float: left !important;
}

.header .title {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header .buttons {
    display: flex;
    gap: 10px;
}

.button {
    background-color: white;
    padding: 5px 10px;
    border-radius: 10px;
    border: 0.8px solid #C1C1C1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
}

.button-timer, .timer-button {
    width: 133px;
    height: 40px;
    border: 0.8px solid #C1C1C1;
    border-radius: 10px;
    background: #FFF;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timer-button .timer-display {
    color: #A7A7A7;
    font-family: Inter, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: normal;
    width: 80px;
    text-align: center;
    margin-right: 6px;
}

.reset-button {
    border-radius: 10px;
    border: 0.8px solid #C1C1C1;
}

.solution-button {
    border-radius: 10px;
    border: 0.8px solid #C1C1C1;
}

.main-content {
    background-color: #ffffff;
    width: 1000px;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    margin-left: 20px !important;
    margin-right: auto !important;
    float: left !important;
    clear: both !important;
}

.question {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    text-align: justify;
    float: left !important;
    margin-left: 20px !important;
}

.question-image-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    padding: 5px;
    border-radius: 8px;
    background-color: #ffffff;
}

.question-image {
    max-width: 1000px;
    max-height: 400px;
    border-radius: 5px;
}

/* MCQ specific styles */
.row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    float: left !important;
    margin-left: 20px !important;
    width: 100%;
}

.red-box {
    background-color: white;
    height: auto;
    flex: 1;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 10px 10px 10px 40px;
    color: black;
    font-weight: 400;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
    transition: background-color 0.3s;
}

.red-box:hover {
    background-color: #E3F3FF;
}

.red-box.correct {
    background-color: #4caf50;
    color: white;
}

.red-box.wrong {
    background-color: #f44336;
    color: white;
}

.small-blue {
    width: 30px;
    height: 30px;
    background-color: #629cff;
    border-radius: 10px;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* TITA specific styles */
.answer-display {
    height: 50px;
    width: 1000px;
    background-color: white;
    border-radius: 10px;
    margin-top: 0px;
    clear: both;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: #808080;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
    transition: background-color 0.3s;
    float: left !important;
    margin-left: 20px !important;
    position: relative;
    clear: both;
}

.answer-display.correct {
    background-color: #4caf50;
    color: white;
    font-size: 16px;
    font-weight: 400;
}

.answer-display.wrong {
    background-color: #f44336;
    color: white;
    font-size: 16px;
    font-weight: 400;
}

.numeric-keypad {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 80px;
    width: 210px;
    margin-left: 440px;
    margin-right: auto;
    clear: both;
}

.numeric-keypad .row {
    display: flex;
    justify-content: center;
    gap: 5px;
    float: none !important;
    margin-left: 0 !important;
    width: auto;
    margin: 0 auto;
}

.numeric-keypad button {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #629cff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.24);
}

.numeric-keypad button:active {
    background: #f0f0f0;
}

/* Solution styles */
.solution-container {
    display: none;
    width: 1000px;
    margin-top: 0px;
    padding: 0px;
    background: white;
    border-radius: 10px;
    float: left !important;
    margin-left: 20px !important;
}

.solution-container button {
    background-color: #3E85FF;
    color: white;
    font-weight: 400;
    font-size: 14px;
    border: none;
    border-radius: 16px;
    padding: 4px 12px;
    height: 28px;
    width: auto;
    min-width: 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
}

.solution-container button:hover {
    background-color: #336CCF;
}

.main-content .question,
.question,
div.question,
p.question,
.question p,
.question div,
[class*="question"] {
    text-align: justify !important;
    width: 1000px !important;
    max-width: 1000px !important; 
    box-sizing: border-box !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin-bottom: 15px !important;
    float: left !important;
    margin-left: 20px !important;
}

/* Increase width of MCQ containers */
.mcq-container,
.quiz-options,
.quiz-question-options,
div[class*="mcq"],
div[class*="option"] {
    text-align: justify !important;
    width: 1000px !important;
    margin-left: 0px !important;
    margin-right: auto !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin-bottom: 15px !important;
    float: left !important;
}

/* MCQ option alignment */
.mcq-option,
.quiz-option,
.option {
    width: 100% !important;
    display: block !important;
    margin-bottom: 10px !important;
    float: left !important;
    margin-left: 0px !important;
}

/* Left alignment styles */
.quiz-container {
    margin: 0 !important;
    max-width: 100% !important;
    margin-left: 20px !important;
    float: left !important;
    clear: both !important;
    display: block !important;
}

body.wp-admin .quiz-container,
body.wp-admin .main-content,
.wp-block-custom-html .quiz-container,
.wp-block-custom-html .main-content {
    margin-left:0px !important;
    float: left !important;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}

.elementor-section.elementor-top-section:first-child {
    margin-top: 88px !important;
}

/* --- PAGINATION BAR STYLES (deduplicated, clean) --- */
.pagination-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
    gap: 8px;
}

.pagination-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-bar {
    min-width: 174px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 25px;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
    gap: 30px;
}

.page-btn-custom {
    background: transparent;
    border: none;
    outline: none;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.page-btn-custom.selected {
    color: #0D99FF !important;
}

/* Remove extra hover/active colors */
.page-btn-custom:hover,
.page-btn-custom:active,
.page-btn-custom:focus {
    color: #0D99FF !important;
    background: transparent !important;
    box-shadow: none !important;
}