body {
    background-color: #f8f9fa;
}

/* Exam header styling */
.exam-header {
    background-color: #f8f9fa;
    padding: 15px 0; /* Reduced from 20px to 15px */
    margin-bottom: 30px;  /* Increased bottom margin */
    border-bottom: 1px solid #eee;
}

.exam-header h1 {
    margin: 0;
    font-size: 24px;
    color: #000000;
}

/* Timer visibility control */
.timer {
    font-size: 18px;
    font-weight: bold;
}

.question-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.options-list {
    margin: 20px 0;
}

.option-item {
    background-color: #f1f1f1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option-item:hover {
    background-color: #e2e6ea;
}

.option-item.selected {
    background-color: #007bff;
    color: #fff;
}

.next-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.next-btn:hover {
    background-color: #0056b3;
}

.prev-btn {
     background: #252525;
     color: #fff;
     padding: 10px 20px;
     border: none;
     border-radius: 4px;
     cursor: pointer;
}
.prev-btn:hover {
    background: #555;
}
.float-left {
    float: left;
}
.float-right {
    float: right;
}       
/* Mode buttons styling */
.mode-btn {
    padding: 12px 30px;  /* Slightly larger buttons */
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
   /*min-width: 160px;     Ensure consistent button width */
    text-align: center;
}

.mode-btn:hover {
    background: #e7f1ff;
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Mode selection styling */
.mode-selection {
    padding: 25px 0;  /* Increased padding */
    margin: 30px 0;   /* Added margin top and bottom */
    background: #fff;
}

.modes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;        /* Increased gap between buttons */
    max-width: 800px; /* Limit container width */
    margin: 0 auto;   /* Center the container */
}

/* Answer and rationale section */
.answer-rationale {
    border-left: 4px solid #28a745;
}

.correct-answer-text {
    color: #28a745;
    font-weight: bold;
}

.rationale-text {
    color: #6c757d;
}

/* Reduce spacing between sections */
.section {
    padding-top: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.section .container {
    padding: 0;
}

/* Timer styling */
.timer {
    font-size: 18px;
    font-weight: bold;
}

.timer .self-paced {
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
}

.timer .self-paced i {
    margin-right: 8px;
    font-size: 16px;
}
/* Subscription Notice Styling */
.subscription-notice {
    background-color: transparent;
    padding: 30px 0;
    margin: 20px auto;
    max-width: 800px;
}

.subscription-notice .container {
    padding: 0;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lock-icon {
    font-size: 40px;
    color: #007bff;
    padding: 20px;
    background: #e7f1ff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-text {
    flex: 1;
}

.notice-text h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.notice-text p {
    color: #666;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.features-list li {
    margin-bottom: 8px;
    color: #555;
}

.features-list li i {
    color: #28a745;
    margin-right: 10px;
}

.subscribe-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    color: white;
}

/* Modify common container width for questions and subscription sections */
.section, 
.subscription-notice {
    width: 100%;
    max-width: 1140px;  /* Standard Bootstrap container width */
    margin: 0 auto;
    padding: 30px 15px;
}

/* Reset container paddings */
.section .container,
.subscription-notice .container {
    padding: 0;
    width: 100%;
}

/* Correct answer highlighting */
.options-list.answered .option-item {
        pointer-events: none;
        cursor: default;
    }
    .option-item.correct {
        border: 2px solid #28a745 !important;
        background-color: #e9f7ef !important;
    }
    .option-item.correct label {
        color: #155724 !important;
        font-weight: bold;
    }
    .option-item.wrong {
        border: 2px solid #dc3545 !important;
        background-color: #fce8e6 !important;
    }
    .option-item.wrong label {
        color: #721c24 !important;
    }
    .feedback-text.correct-feedback {
        color: #28a745;
        font-weight: bold;
        font-size: 1.1em;
    }
    .feedback-text.wrong-feedback {
        color: #dc3545;
        font-weight: bold;
        font-size: 1.1em;
    }