* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/*----------------------------------------*/
/*  01. Theme default CSS
/*----------------------------------------*/
*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    line-height: 24px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    visibility: visible;
    font-family: "Open Sans", Roboto;
    color: #242424;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    margin-top: 0;
}

h1 {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
}

h2 {
    font-size: 36px;
    line-height: 36px;
}

h3 {
    font-size: 30px;
    line-height: 30px;
}

h4 {
    font-size: 16px;
    line-height: 19px;
    font-weight: 700;
}

h5 {
    font-size: 14px;
    line-height: 18px;
}

h6 {
    font-size: 12px;
    line-height: 14px;
}

p:last-child {
    margin-bottom: 0;
}

a,
button {
    color: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

a,
button,
img,
input,
span {
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

button {
    border: none;
    background-color: white;
}

*:focus {
    outline: none !important;
}

a:focus {
    color: inherit;
    outline: none;
    text-decoration: none;
}

button,
input[type="submit"] {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    padding: 0;
    margin: 0;
}

figure {
    padding: 0;
    margin: 0;
}

label {
    margin-bottom: 0.5rem;
}

.notification {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 16px;
    padding: 15px 25px;
    background-color: #638c29;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hidden state */
.notification.hidden {
    opacity: 0;
    pointer-events: none;
}

.page-section-2 {
    background-color: rgb(218, 217, 217);
    height: auto;
}

.page-one-top-section {
    color: white;
}

.top-content-section {
    background-color: black;
}

.top-section {
    display: flex;
}

.top-section p {
    font-weight: 600;
    font-size: 19px;
}

.top-section span {
    font-size: 19px;
    padding-left: 5px;
}

.page-one-top-content {
    display: inline;
    background-color: #050505;
}

.time-icon {
    font-size: 44px;
}

.finish-button {
    background-color: #f7d68c;
    color: black;
    padding: 10px 30px;
    border-radius: 14px;
    font-weight: 600;
}

.test-section-one {
    /* display: flex;
    justify-content: space-between; */
    background-color: #638c29;
    padding: 5px;
}

.fotter-area-question1 {
    padding: 10px;
    background-color: #050505;
    border-top: 5px solid #638c29;
}

.Next-btn {
    background-color: #638c29 !important;
    padding: 10px 15px;
    border-radius: 13px;
    font-size: 17px;
    font-weight: 600;
    color: white;
}

.foter-inner-area {
    display: flex;
    justify-content: space-between;
}

.setting-icon {
    font-size: 29px;
}

.Back-btn {
    background-color: #638c29 !important;
    padding: 10px 15px;
    border-radius: 13px;
    font-size: 17px;
    font-weight: 600;
    color: #777474;
}

#myTab .nav-tabs {
    flex-direction: column;
    /* Makes the tabs appear in a column */
}

.numbering-part {
    width: 120px;
    border: 0 !important;
}

.content-container .nav {
    height: 0 !important;
}

.nav-item {
    font-size: 20px;
    overflow: hidden;
    width: 100%;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
    /* Number of lines to show */
    line-clamp: 2;
    /* For future-proofing as it becomes standardized */
}

.truncate-text {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
}

.nav-link {
    text-align: left;
    /* background-color: rgb(236, 232, 232);  */
    color: black !important;
    border: none;
    /* border-radius: 5px; */
    padding: 10px 16px;
    /* margin-bottom: 5px; */
    display: flex;
    align-items: center;
    /* height: 100px; */
    justify-content: space-between;
    position: relative;
    width: 100%;
}

#myTab .nav-link.active {
    background-color: #638c29 !important;
    /* Red color when active */
    color: white !important;
}

#myTab .active-bar {
    height: 100%;
    width: 8px;
    background-color: #638c29;
    position: absolute;
    left: 0;
    top: 0;
    /* border-radius: 4px; */
    display: none;
    /* Hidden by default */
}

#myTab .nav-link.active .active-bar {
    display: block;
    /* Show only on active tab */
}

.numbering-part-1 {
    /* display: inline; */
    width: 64px;
    margin: 10px;
    color: white;
    position: relative;
    background-color: #638c29;
    padding: 5px 22px;
}

.numbering-part-1::after {
    position: absolute;
    height: 0;
    width: 0;
    top: 0;
    left: 100%;
    transform: rotate(90deg);
    border: 17px solid transparent;
    border-bottom-color: #638c29;
    content: "";
}

.numbering-part-other {
    margin: 10px;
    color: white;
    width: 64px;
    position: relative;
    background-color: #638c29;
    padding: 4px 22px;
}

.question-container {
    background-color: #e9f7ff;
    padding: 10px;
    border-radius: 10px;
    color: black;
    font-size: 22px;
    font-weight: 500;
    margin: 30px;
}

.cartoon-img-container {
    padding-left: 20px;
}

.cartoon-img-container img {
    height: 160px;
}

.answer-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    /* height: 40px; */
    margin: 10px;
    border-radius: 10px;
    background-color: #f9f9f9;
    /* Default background */
    font-size: 20px !important;
    font-weight: bold;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Hide radio button */
.answer-box .answer-input {
    display: none;
}

.answer-image  {
    height: 200px !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.answer-image img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    border-radius: 5px;
    padding: 10px !important;
}

/* Default span styles */
.answer-box span {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border: 2px solid #050505;
    /* Default border */
    transition: all 0.3s ease-in-out;
}

/* Active state (when radio is selected) */
.answer-input:checked+span {
    background-color: #fdeada;
    /* Active background color */
    color: black;
    /* Active text color */
    border: 2px solid #c87f42;
    /* Active border color */
}

.answer-box div {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border: 2px solid #050505;
    /* Default border */
    transition: all 0.3s ease-in-out;
}

.answer-input:checked+div {
    background-color: #fdeada;
    /* Active background color */
    color: black;
    /* Active text color */
    border: 2px solid #c87f42;
    /* Active border color */
}

.answer-container {
    padding: 30px;
}

.radio-label {
    display: block;
    text-align: center;
}

.answer-box img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* custom css  */
/* General Styles */
body {
    font-family: "Arial", sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.notification {
    background-color: #ffc107;
    color: #000;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.top-content-section {
    margin-bottom: 20px;
}

.top-section p {
    margin-bottom: 0;
    font-weight: bold;
}

.finish-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.finish-button:hover {
    background-color: #c82333;
}

.test-section-one {
    margin-bottom: 20px;
}

.nav-tabs {
    border-bottom: none;
}

.nav-link {
    color: #333;
    border: none;
    padding: 10px;
    text-align: left;
}

.nav-link.active {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

.tab-content {
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.question-container {
    font-size: 18px;
    margin-bottom: 20px;
}

.cartoon-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.answer-container {
    margin-top: 20px;
}

.answer-box {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
}

.answer-box:hover {
    background-color: #e9ecef;
}

.answer-input {
    margin-right: 10px;
}

.footer-area-question1 {
    /* 20px border on top of this div */
    border-top: 20px solid #638c29;
    /* padding: 10px; */
    background-color: #000;
}

.footer-inner-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-icon {
    font-size: 24px;
    cursor: pointer;
}

.Back-btn,
.Next-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.Back-btn:hover,
.Next-btn:hover {
    background-color: #0056b3;
}

/* arrow like buttons inside the tab */
.arrow-btn {
    background-color: #5b8525 !important;
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 4.5rem;
    /* Increased padding */
    min-width: 3rem;
    /* Added minimum width */
    width: auto;
    /* Allow button to grow */
    border: none;
    position: relative;
    cursor: pointer;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    display: inline-block;
    /* Ensure proper sizing */
}


.arrow-btn:hover {
    background-color: #4a7320 !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

.arrow-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 4.5rem;
    /* Match the button padding */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.2) 100%);
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    z-index: -1;
}

.rectangle {
    background-color: #9ddb60 !important;
    /* Green color */
    color: white !important;
    border: none;
    padding: 10px 2rem;
    clip-path: none;
    /* Ensure normal rectangle shape */
}

.rectangle-visited {
    background-color: #5b8525 !important;
    /* Green color */
    color: white !important;
    border: none;
    padding: 10px 2rem;
    clip-path: none;
    /* Ensure normal rectangle shape */
}

.visited {
    background-color: #ffffff !important;
    color: black !important;
}

/* arrow like buttons inside the tab */
/* active tabs */
#examTabs .nav-link.active {
    background-color: #638c29 !important;
    /* Green background */
    color: white !important;
    /* White text */
    border-color: #638c29 !important;
}

/* active tabs */
.option-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-hover:hover {
    background-color: #e0f2fe;
    transform: scale(1.02);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* question image */
.question-image {
    max-width: 100%;
    width: 500px !important;
    /* Set desired width */
    height: auto;

    object-fit: cover;
}

/* Sidebar styles */
#examTabs {
    height: 100vh;
    /* Full viewport height */
    position: sticky;
    top: 0;
    padding: 0;
}

#examTabs .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    /* Match sidebar width */
    padding: 10px 15px;
    font-size: 14px;
    /* Slightly smaller font */
    text-align: left;
    display: block;
    width: 100%;
    height: 150px;
}

/* Adjust the container column width */
.col-md-2 {
    max-width: 80px;
    /* Match the sidebar width */
    padding: 0;
    /* Remove padding */
}

.col-md-10 {
    width: calc(100% - 150px);
    /* Adjust main content width */
}

.question_inner_title,
.question_text2,
.question_text2 * {
    font-size: 20px !important;
}
