.quiz-answers {
    margin-top: 20px;
}

.answer-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.question-options {
    margin: 15px 0;
}

.option {
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #dee2e6;
}

.option.correct {
    background: #e8f5e9;
    border-color: #4caf50;
}

.option.selected {
    background: #e3f2fd;
    border-color: #2196F3;
}

.profile-container {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    align-items: start;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.quiz-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.quiz-answers {
    margin-top: 20px;
}

.answer-item {
    padding: 15px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 4px;
}

.answer-item.correct {
    border-color: #4caf50;
}

.answer-item.incorrect {
    border-color: #f44336;
}

.profile-sidebar {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.avatar-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-role {
    color: #666;
    font-size: 0.9em;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    margin-left: 0 !important;
}

.profile-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.profile-menu li.active a,
.profile-menu li a:hover {
    background: #f0f7ff;
    color: #2196F3;
}

.profile-menu li a i {
    width: 20px;
    margin-right: 10px;
}

/* Content Styles */
.profile-content {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.profile-content h2 {
    margin-bottom: 40px;
    font-weight: 600;
    color: black;
    text-align: center;
}

.content-header {
    margin-bottom: 30px;
}

.course-filters {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.course-status-filter {
    padding: 8px 15px;
    border: 1px solid rgba(0, 6, 61, 0.97);
    border-radius: 5px;
    min-width: 150px;
}

.course-search input {
    padding: 8px 15px;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
    border-radius: 5px;
    width: 250px;
}

/* Course Grid Styles */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    position: relative;
    height: 180px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.course-status.completed {
    background: #4CAF50;
}

.course-status.in-progress {
    background: #2196F3;
}

.course-content {
    padding: 20px;
}

.progress-wrapper {
    margin: 15px 0;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #2196F3;
    border-radius: 3px;
    transition: width 0.3s;
}

.course-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
    margin: 15px 0;
}

.btn-continue {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 6, 61, 0.97) !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-continue:hover {
    background: white !important;
    color: rgba(0, 6, 61, 0.97) !important;
    transition: all 0.3s;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2196F3;
    outline: none;
}

.btn-submit {
    padding: 4px 25px;
    background: rgba(0, 6, 61, 0.97) !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
}

.btn-submit:hover {
    background: white !important;
    color: rgba(0, 6, 61, 0.97) !important;
}

.quiz-attempt-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.quiz-meta {
    display: flex;
    /* gap: 20px; */
    margin-top: 10px;
    color: #666;
}

.quiz-score {
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 15px;
}

.quiz-score.high {
    background: #e8f5e9;
    color: #2e7d32;
}

.quiz-score.medium {
    background: #fff3e0;
    color: #f57c00;
}

.quiz-score.low {
    background: #ffebee;
    color: #c62828;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }

    .profile-sidebar {
        flex: none;
        width: 100%;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-filters {
        flex-direction: column;
    }

    .course-search input {
        width: 100%;
    }

    .question-text {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .question-options {
        margin: 10px 0;
    }

    .option {
        padding: 8px 12px;
        margin: 5px 0;
        border-radius: 4px;
        background: #f5f5f5;
    }

    .option.correct {
        background: #e8f5e9;
        border-left: 4px solid #4caf50;
    }

    .option.selected {
        background: #e3f2fd;
        border-left: 4px solid #2196F3;
    }

    .quiz-attempt-item {
        display: block;
    }

    .profile-content {
        box-shadow: none;
        padding: 0px;
        width: 100%;
    }

    .btn-view-detail {
        margin-top: 10px;
    }
}

.btn-view-detail {
    display: block;
    text-transform: none !important;
    color: rgba(0, 6, 61, 0.97);
    font-weight: 500;
    margin-bottom: 0 !important;
    padding: 0 15px;
    border: 1px solid rgba(0, 6, 61, 0.97);
    border-radius: 9999px;
}

.btn-view-detail:hover {
    background: rgba(0, 6, 61, 0.97);
    color: white;
    transition: all 0.3s ease-in-out;
}




.avatar-upload {
    text-align: center;
    margin-bottom: 30px;
}

.current-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar-edit input[type="file"] {
    display: none;
}

.btn-upload {
    color: black;
    margin-top: 4px;
    cursor: pointer;
}

.btn-upload:hover {
    color: rgba(0, 6, 61, 0.97);
}

.form-group input:focus {
    border-color: rgba(0, 6, 61, 0.97);
    outline: none;
}

.form-group span {
    color: #c62828;
    font-size: 14px;
}

.form-group input {
    margin-bottom: 0 !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

#user_avatar {
    display: none;
}

.avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
}

.form-group input {
    border-radius: 5px !important;
    border: 1px solid #ccc !important;
    padding: 10px !important;
    box-shadow: none !important;
}

.lessons-count {
    white-space: nowrap;
}

.quizzes-count {
    white-space: nowrap;
}

.wpProQuiz_button {
    background-color: rgba(0, 6, 61, 0.97) !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.wpProQuiz_button:hover {
    background-color: white !important;
    color: rgba(0, 6, 61, 0.97) !important;
    transition: all 0.3s;
}

.ld-breadcrumbs {
    border: 1px solid rgba(0, 6, 61, 0.97);
    background: none !important;
}


.learndash-wrapper .wpProQuiz_content form[name=uploadEssay] {
    background: none !important;
    border: 1px solid rgba(0, 6, 61, 0.97);
}

.learndash-wrapper .wpProQuiz_content form[name=uploadEssay] input[type=submit] {
    background: rgba(0, 6, 61, 0.97) !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.learndash-wrapper .wpProQuiz_content form[name=uploadEssay] input[type=submit]:hover {
    background: white !important;
    color: rgba(0, 6, 61, 0.97) !important;
    transition: all 0.3s;
}

.wpProQuiz_upload_essay::-webkit-file-upload-button {
    background: rgba(0, 6, 61, 0.97) !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
    border-radius: 4px;
    padding: 4px 10px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 14px;
}

.wpProQuiz_upload_essay::-webkit-file-upload-button:hover {
    background: white !important;
    color: rgba(0, 6, 61, 0.97) !important;
    transition: all 0.3s;
}

.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem p {
    font-size: 14px;
    color: #c62828;
}

.learndash-wrapper .wpProQuiz_graded_points,
.learndash-wrapper .wpProQuiz_points {
    background: none !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
    color: rgba(0, 6, 61, 0.97) !important;
}

.wpProQuiz_content .wpProQuiz_question_text {
    font-size: 20px;
    color: rgba(0, 6, 61, 0.97) !important;
    font-weight: 600;
}

.learndash-wrapper .wpProQuiz_content .wpProQuiz_questionListItem label {
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled {
    background: none !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.learndash-wrapper:not(.ld-registration__outer-wrapper) #btn-join,
.learndash-wrapper:not(.ld-registration__outer-wrapper) .btn-join {
    background: rgba(0, 6, 61, 0.97) !important;
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
    color: white !important;
}

.learndash-wrapper:not(.ld-registration__outer-wrapper) #btn-join:hover,
.learndash-wrapper:not(.ld-registration__outer-wrapper) .btn-join:hover {
    background: white !important;
    color: rgba(0, 6, 61, 0.97) !important;
    transition: all 0.3s;
}

.learndash-wrapper .ld-item-list .ld-item-list-item {
    border: 1px solid rgba(0, 6, 61, 0.97) !important;
}

.logout_q a {
    color: #c62828 !important;
    display: block !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: 600;
}

.post-sidebar #block-4 {
    display: none !important;
}

.bg_gr {
    position: relative;
    overflow: hidden;
}

.bg_gr:before {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    right: 0;
    content: '';
    background: linear-gradient(90deg, rgba(0, 6, 61, 0.95) 0%, rgba(0, 6, 61, 0.475) 50%, rgba(0, 6, 61, 0.95) 100%);

}

.ld-registration__form .ld-registration__forgot-password-form {
    padding: 30px 40px;
    border-radius: 30px;
    background: #5882c14d;
}


.ld-registration__form .ld-registration__forgot-password-form input {
    border-radius: 12px !important;
}

.ld-registration__form .ld-registration__forgot-password-form label {
    color: white !important;
}

.ld-registration__form .ld-registration__forgot-password-form input[type="submit"] {
    background: #ffc022 !important;
    color: white;
    opacity: 1 !important;
}

.ld-registration__forgot-password-container .ld-registration__heading {
    display: none;
}

.ld-registration__forgot-password a {
    color: red !important;
}
.ld-registration__forgot-password a:hover {
    color: white !important;
    transition: all 0.3s;
}
.quiz-container-wrapper{
    min-height: 80vh;
}
.prize .col{
    padding: 0 30px 30px !important;
}
@media screen and (max-width: 720px){
    .quiz-container-wrapper{
        display: block !important;
    
    }
    .quiz-main-content{
        margin-top: 20px;
    }
    .quiz-sidebar{
        margin: 0 auto;
    }
}
.mega-menu-container {
    display: flex;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    max-height: 80vh; 
 
}

.mega-menu-classes {
    width: 250px;
    border-right: 1px solid #eee;
    background: #f8f9fa;
    overflow-y: auto;
}

.class-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.class-item {
    display: flex !important;
    align-items: center;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}
.class-item:hover {
    background: #f0f0f0;
}

.class-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-image-source: linear-gradient(to right, #ff512f, #dd2476);
    border-image-slice: 1;
}

.class-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-content {
    flex: 1;
    padding: 20px;
}

.class-content {
    display: none;
}

.class-content.active {
    display: block;
}

.course-grid-menu, .quiz-grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}
.quizzes-menu{
    margin-top: 20px;
}
.course-item-menu, .quiz-item-menu {
    display: flex;
    flex-direction: column;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.course-item-menu:hover, .quiz-item-menu:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-thumb-menu, .quiz-thumb-menu {
    max-width: 60px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.course-thumb-menu img, .quiz-thumb-menu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.courses-menu span, .quizzes-menu span {
    color: black !important;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    text-align: center;
    font-size: 14px;
}
.courses-menu a:hover, .quizzes-menu a:hover {
    color: #007bff;
}

.mega-menu-content h4 {
    margin-bottom: 15px;
    color: rgba(0, 6, 61, 0.97);
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    text-transform: uppercase;
}
.mega-menu-classes p{
    color: rgba(0, 6, 61, 0.97);
    font-size: 18px;
    padding-top: 20px;
    padding-bottom: 10px;
    padding-left: 30px;
    text-transform: uppercase;
    font-weight: 600;
}
.tax-document_category header .header-main {
    background: rgba(0, 6, 61, 0.97) !important;
}
.nav-sidebar-ul.sub-menu{
    box-shadow: none !important;
}

@media screen and (max-width: 850px){
    .header-block{
     justify-content: center;
    }
    .header-block .user-header-container{
        margin-top: 20px;
    }
}

.pagination_document_posts{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0px;
    gap: 16px;
}
.pagination_document_posts .page-numbers.current{
    background: rgba(0, 6, 61, 0.97) !important;
    color: white;
    font-weight: 600;
}
.pagination_document_posts .page-numbers{
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 6, 61, 0.97);
    color: rgba(0, 6, 61, 0.97);
    font-weight: 600;
}
.pagination_document_posts .page-numbers:hover{
    background: rgba(0, 6, 61, 0.97) !important;
    color:white ;
    transition: all 0.3s ease-in-out;
}