.path-mod-fillintheblanks .draggable img {
    position: unset;
    width: auto;
    display: inherit;
}

.path-mod-fillintheblanks .draggable p,
.path-mod-fillintheblanks .element_dragged p {
    display: inline-block;
}

#page-mod-fillintheblanks-view .intro {
    margin-bottom: 20px;
}

.fill-in-the-blanks .question-part-one,
.fill-in-the-blanks .answer-field {
    display: inline-block;
}

.path-mod-fillintheblanks .questions h1,
.path-mod-fillintheblanks .questions h2,
.path-mod-fillintheblanks .questions h3,
.path-mod-fillintheblanks .questions h4,
.path-mod-fillintheblanks .questions h5,
.path-mod-fillintheblanks .questions h6 {
    margin: 0;
    display: inline;
}
    
.path-mod-fillintheblanks .questions {
    border-radius: 10px;
    padding: 20px;
    min-width: 80%;
    width: fit-content;
}

.path-mod-fillintheblanks .generic-input-component .generic-input-container {
    margin-top: 10px;
}

@media only screen and (max-width: 767px) {
    .fill-in-the-blanks .questions {
        width: 100%;
    }
}

.fill-in-the-blanks .questions .single-question {
    margin-bottom: 20px;
}

.dir-rtl .path-mod-fillintheblanks .incorrect,
.dir-rtl .path-mod-fillintheblanks .correct {
    margin-left: 10px;
}

.path-mod-fillintheblanks .image-correct-incorrect {
    width: 20px;
}

.path-mod-fillintheblanks .text_to_html {
    display: contents;
}

.fill-in-the-blanks .question-part-wrapper {
    display: inline;
}

.fill-in-the-blanks-drop-down .question-part-wrapper {
    display: inline;
}

.fill-in-the-blanks .single-question p {
    width: 95%;
}

.fill-in-the-blanks-drag-drop .question-part-one {
    display: inline-block;
    margin-top: 10px;
}

.fill-in-the-blanks-drag-drop .droppable {
    min-height: 52px;
    min-width: 188px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 0px 3px;
    display: inline-block;
    float: none;
    position: relative;
    top: 20px;
}

.fill-in-the-blanks-drag-drop .ui-droppable .draggable {
    margin-right: 0px !important;
}

.fill-in-the-blanks-drag-drop .drag-elements {
    background: #ffffff;
    box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 4px 16px rgba(0, 0, 0, 0.13);
    border-radius: 10px;
    padding: 20px;
}

.fill-in-the-blanks-drag-drop .question-part-wrapper {
    display: inline;
    line-height: 2.2;
}

.fill-in-the-blanks-drag-drop .question-part-two {
    line-height: 2.5;
}

.fill-in-the-blanks-drag-drop .drag-elements {
    margin-top: 40px;
}

.fill-in-the-blanks-drag-drop .single-question {
    margin-bottom: 15px;
}

.fill-in-the-blanks-drag-drop .question-last-text {
    line-height: 2.7;
}

.fill-in-the-blanks-drag-drop .draggable {
    width: auto;
    min-width: 182px;
    min-height: 42px;
    margin-top: 4px;
    z-index: 10;
}

.fill-in-the-blanks-drag-drop .element_dragged {
    width: auto;
    min-width: 182px;
    min-height: 42px;
    margin-top: 4px !important;
    position: absolute;
    z-index: 5;
}

.fill-in-the-blanks-drag-drop .drag-elements .ui-draggable-dragging {
    transform: rotate(8deg);
    border-left: 0.25rem solid #f3728a !important;
}

.fill-in-the-blanks-drop-down .answer_options {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    min-width: 180px;
}

.fill-in-the-blanks-drop-down .single-question {
    margin-bottom: 20px;
}

.path-mod-fillintheblanks.dir-rtl .retries {
    margin-left: 20px;
    float: left;
    margin-top: 15px;
}

.path-mod-fillintheblanks .question-part p {
    display: contents;
}

.fib-correct-answer-span {
    white-space: pre;
    display: inline-flex;
    align-items: center;
    top: 8px;
    position: relative;
}

.fib-correct-answer-before-shape {
    content: "";
    border-right: 10px solid #27ae60;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.fib-correct-answer-content {
    background-color: #27ae60;
    width: auto;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    padding-left: 4px;
    padding-right: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.path-mod-fillintheblanks .droppable .is_dragged {
    margin-top: 3px;
}

.path-mod-fillintheblanks .droppable .is_dragged .text_to_html {
    display: inline-flex;
}

.fill-in-the-blanks .questions .single-question:last-child {
    margin-bottom: 0px;
}

.path-mod-fillintheblanks.dir-rtl .question-no {
    margin-left: 12px;
    font-size: 18px;
    font-weight: 500;
}

.path-mod-fillintheblanks.dir-ltr .question-no {
    margin-right: 12px;
    font-size: 18px;
    font-weight: 500;
}

/* Reset Select2 styling completely */
.path-mod-fillintheblanks .select2-container {
    box-sizing: border-box;
}

.path-mod-fillintheblanks .select2-container .select2-selection--single {
    height: 50px !important;
    border: 1px solid #e8e8e8; 
    border-radius: 8px !important;
    padding: 10px 15px !important;
    margin-left: 10px !important;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
}

.path-mod-fillintheblanks .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    padding-right: 30px;
    color: #212121;
    font-weight: normal;
    font-size: 14px;
}
html[lang="ur"] .path-mod-fillintheblanks .select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 22px;
}

.path-mod-fillintheblanks .select2-container .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%);
    width: 16px;
    height: 12px;
    pointer-events: none; /* Prevent arrow from interfering */
}

.path-mod-fillintheblanks .select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #e8e8e8;
    z-index: 9999;
}

.path-mod-fillintheblanks .select2-results {
    background-color: lightgrey;
}

/* Remove the default search input field */
.path-mod-fillintheblanks .select2-search--dropdown {
    display: none;
}

/* Move Select2 dropdown slightly upward */
.path-mod-fillintheblanks .select2-dropdown.select2-dropdown--below {
    margin-top: -5px;
    margin-left: 10px;
    border-radius: 10px;
    width: 170px !important;
}

.path-mod-fillintheblanks .select2-results__option--highlighted[aria-selected] {
    background-color: #e8e8e8;
    color: #333;
}

.path-mod-fillintheblanks .select2-results__option[aria-selected="true"] {
    background-color: #e8e8e8; 
    color: #333;
}

/* Add padding to options to maintain alignment */
.path-mod-fillintheblanks .select2-container--default .select2-results__option {
    padding: 5px 10px 5px 20px;
    font-size: 1rem;
    color: #212121;
}
html[lang="ur"]  .path-mod-fillintheblanks .select2-container--default .select2-results__option {
    font-size: 22px;
}

/* Style for the checkmark icon */
.path-mod-fillintheblanks .tick-icon {
    margin-right: 8px;
    font-size: 14px;
    left: 18px;
}

.path-mod-fillintheblanks .tick-container {
    width: 20px;
}

.path-mod-fillintheblanks .fill-in-the-blanks-drop-down-form math-field {
    all: unset;
    display: inline;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    box-shadow: unset;
    box-shadow: inset 0px 0px 0px #DDDDDD !important;
}

.path-mod-fillintheblanks .fill-in-the-blanks-drop-down-form math-field:focus {
    outline: none;
}

.mainclass {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.mainclass::before {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    opacity: var(--bg-image-opacity, 1);
    z-index: -1;
}
