/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.label__hot {
    font-size: 13px;
    line-height: 1;
    background-image: url(images/label-hot-2.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 52px;
    height: 42px;
    position: absolute;
    top: 3px;
    left: -3px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    letter-spacing: 1px;
    font-weight: bold;
    /*transform: rotate(270deg);*/
    z-index: 1;
}
/*.label__hot span {*/
/*    writing-mode: vertical-rl;*/
/*}*/

.post-item .box-blog-post .box-text {
    position: initial;
}

.off-canvas .sidebar-menu {
    padding: 30px 20px !important;
}
button.mfp-close.menu-close {
    position: relative;
    top: 0 !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    display: flex;
    align-items: center;
}
button.mfp-close.menu-close::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 100%;
    background: transparent;
    z-index: -1;
}
.toggle {
    opacity: 1;
}
.mfp-bg.mfp-ready {
    opacity: .9;
}
.off-canvas:not(.off-canvas-center) .nav-vertical li>a {
    padding-left: 0;
}
.mobile-sidebar .nav-slide{
    padding-top: 0;
}
.mobile-sidebar .sidebar-menu-top-content{
    margin-left: -10px;
}
.off-canvas .mobile-sidebar .nav-vertical>li>a{
    justify-content: space-between;
}

.nav-sidebar.nav-vertical>li.menu-item.active, .nav-sidebar.nav-vertical>li.menu-item:hover {
    background-color: transparent !important;
}
.mobile-sidebar .toggle{
    display: none;
}
.mobile-sidebar .sub-menu{
    position: initial;
    opacity: 0 !important;
    visibility: hidden !important;
    display: block;
    margin: 0;
    padding: 0;
    max-height: 0 !important;
}
.mobile-sidebar .menu-item-has-children.active > .sub-menu{
    border-top: 1px solid #ececec;
    max-height: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.mobile-sidebar .nav-vertical li li.menu-item-has-children {
    margin-bottom: 0;
}
.mobile-sidebar .nav-vertical li li.menu-item-has-children .submenu-toggle{
    position: absolute;
    right: 0;
    top: 0;
}
.mobile-sidebar .nav-dropdown>li.nav-dropdown-col {
    align-items: center;
    display: flex;
    flex-flow: row wrap;
}
.off-canvas .mobile-sidebar .nav-vertical li li>a {
    padding-bottom: 10px;
    padding-top: 10px;
    font-weight: normal;
    font-size: 13px;
    text-transform: initial;
    border: 0;
}

.off-canvas .mobile-sidebar .nav-vertical li+li {
    border-top: 1px solid #ececec;
}

.mobile-sidebar .sub-menu .sub-menu{
    margin-left: 10px;
}
.mobile-sidebar a > .icon-angle-down{
    display: none;
}
.mobile-sidebar .submenu-toggle {
    margin: 0 -10px 0 0;
    padding: 0 10px;
}
.menu-item-has-children.active > .submenu-toggle i {
    transform: rotate(180deg);
}
.mobile-sidebar .nav .nav-dropdown{
    background-color: transparent;
}



/*@font-face {*/
/*    font-family: 'Google Sans';*/
/*    src: url('./assets/fonts/nomal.woff2') format('woff2');*/
/*    font-weight: normal;*/
/*    font-weight: 400;*/
/*    font-style: normal;*/
/*}*/

/*@font-face {*/
/*    font-family: 'Google Sans';*/
/*    src: url('./assets/fonts/bold.woff2') format('woff2');*/
/*    font-weight: bold;*/
/*    font-weight: 700;*/
/*    font-style: normal;*/
/*}*/

/*@font-face {*/
/*    font-family: 'Google Sans';*/
/*    src: url('./assets/fonts/medium.woff2') format('woff2');*/
/*    font-weight: 500;*/
/*    font-style: normal;*/
/*}*/

.dnw-breadcrumb{
    padding: 10px 0;
    background: #edeaeacc;
}
.dnw-breadcrumb p{
    margin-bottom: 0;
}

.post-item .box .box-image{
    border-radius: 10px;
}
.post-item .blog-post-inner .post-title{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
}
.post-item .blog-post-inner .post-meta{
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #4e4e4e;
}
.post-item .blog-post-inner .post-meta svg{
    width: 14px;
    height: 14px;
}
.post-item .box .box-text{
    padding-bottom: 0;
}

.blog-archive .archive-page-header .text-center{
    padding-bottom: 10px;
    text-align: left;
}
.blog-archive .archive-page-header .page-title{
    font-size: 20px;
}

.box-list-menu-cat{
    margin-bottom: 30px;
}
.box-list-menu-cat ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: auto;
}
.box-list-menu-cat ul li{
    border-bottom: 1px solid rgb(153 153 153);
    padding: 10px 0;
    margin: 0;
    position: relative;
}
.box-list-menu-cat ul li a{
    display: block;
    margin: 0 20px;
    color: rgb(153 153 153);
    font-weight: bold;
    white-space: nowrap;
}
.box-list-menu-cat ul li.current-cat:before{
    content: '';
    height: 2px;
    width: 100%;
    position: absolute;
    bottom: 0;
    background-color: var(--primary-color);
}
.box-list-menu-cat ul li.current-cat a{
    color: var(--primary-color);
}

.single-post .post .article-inner {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
}
.single-post .post .entry-header-text{
    padding-top: 0;
}

.single-post .post .entry-header .entry-meta{
    margin-bottom: 15px;
}

.post-sidebar .widget{
    padding: 15px;
    background: #fff;
    border-radius: 10px;
}
.post-sidebar .widget-title{
    color : #000;
}

.single-post .blog-share{
    text-align: left;
}
.single-post .blog-share .is-divider{
    height: 1px;
    width: 100%;
    max-width: 100%;
}

.single-post .blog-share .social-icons:before{
    content: 'Chia sẻ: ';
    display: inline-block;
    margin-right: 10px;
    color: #000;
    font-weight: bold;
}

.single-post .navigation-post a{
    display: flex;
    gap: 15px;
    align-items: center;
}

.single-post .related-posts{
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
}
.single-post .related-posts .title-related-posts{
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}
.single-post .related-posts .is-divider{
    display: none;
}

.single-post  #comments .comment-respond{
    background: #fff;
    border-radius: 10px;
}

/***********************Dem nguoc ky thi****************************/
.countdown-container {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, #f7941d, #f26522);
    color: white;
    border-radius: 10px;
    padding: 20px;
    font-family: sans-serif;
    width: fit-content;
}

.countdown-title {
    background: #d35400;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    margin-right: 15px;
    line-height: 1.2;
}

.countdown-box {
    display: flex;
    gap: 10px;
}

.countdown-box div {
    background: white;
    color: #f26522;
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
    font-weight: bold;
}

.countdown-box span {
    font-size: 20px;
    display: block;
}

.countdown-box p {
    font-size: 12px;
    margin: 0;
}


/***************************************DNW social************************************/
.dnw-box-social a{
    display: flex;
    align-items: center;
    padding: 5.25px 0;
}
.dnw-box-social a img{
    width: 42px;
    height: 42px;
    border-radius: 100%;
}
.dnw-box-social a p{
    margin: 0;
}


/**********************************************dnw-blog-grid**********************************************/
.italic {
    font-style: italic;
}
.text-primary {
    color: var(--primary-color);
}
.dnw-blog-grid{
    padding: 20px 20px 0;
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 25px;
}
.dnw-blog-grid .col{
    padding-bottom: 20px;
}

.box-blog-title{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}
.box-blog-title .blog-title {
    font-size: 18px;
    line-height: 24px;
    margin: 0;
}
.box-blog-title p{
    margin: 0;
    white-space: nowrap;
    font-size: 16px;
    color: #f31515;
	
}
.box-blog-title p i{
    margin-left: 5px;
}

/**/
.blog-list-box .post-list-item{
    display: flex;
    align-items: flex-start;
    border-radius: 6px;
    padding: 10px 0;
}
.blog-list-box .post-list-item:first-child{
    padding-top: 0;
}
.blog-list-box .post-list-item img{
    width: 66.5px;
    height: 66.5px;
    border-radius: 7px;
    overflow: hidden;
    object-fit: cover;
}
.blog-list-box .box-content{
    display: flex;
    flex-direction: column;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 66.5px;
    margin-left: 14px;
}
.blog-list-box .box-content .post-title{
    margin: 0;
    font-size: 15px;
}
.blog-list-box .box-content .post-meta{
    display: flex;
    align-items: center;
    gap: 7px;
}
.blog-list-box .box-content .post-meta svg{
    width: 14px;
    height: 14px;
}

.post-time{
    color: rgb(151 151 151);
    font-size: 13px;
    margin: 0;
}


.home .page-wrapper{
    padding-bottom: 0;
}

.header-bottom-nav li:not(.header-search) .nav-dropdown-default{
    padding: 0;
}
@media (min-width: 850px){
    header#header .nav-dropdown {
        display: block;
    }
    header#header .nav-dropdown ul.sub-menu {
        position: absolute;
        left: 100%;
        top: 0;
        background: #fff;
        width: 250px;
        padding: 0;
        display: none !important;
        border-radius: 5px;
        -webkit-box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);
        box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);
    }
    header#header .nav-dropdown ul.sub-menu a {
        white-space: normal;
        margin: 0;
        padding: 10px 15px;
        border: 0;
        font-weight: 400;
    }
    header#header .nav-dropdown li:hover > ul.sub-menu{
        display: block !important;
    }
    header#header .nav-dropdown li {
        border-right: 0;
        white-space: normal;
        width: 100%;
        display: block;
        position: relative;
    }
    header#header .nav-dropdown li.menu-item-has-children > a {
        font-weight: 400;
        text-transform: none;
        color: #000;
        font-size: 100%;
        position: relative;
        padding-right: 15px;
    }
    header#header .nav-dropdown li.menu-item-has-children > a:after{
        content: "";
        font-family: fl-icons !important;
        font-style: normal !important;
        font-variant: normal !important;
        font-weight: 400 !important;
        line-height: 1.2;
        font-size: 16px;
        display: inline-block;
        position: absolute;
        right: 0;
        transform: rotate(270deg);
    }
    header#header .nav-dropdown li.active>a {
        color: var(--primary-color);
    }
}
/*************************************************************/
footer span.widget-title{
    color: #000;
}
footer img.size-full{
    margin-bottom: 0 !important;
}
footer p{
    margin-bottom: 15px;
}
@media (min-width: 850px){
    footer #nav_menu-2,
    footer #block_widget-2{
        padding-top: 50px;
    }
}

.tags-label {
  font-weight: bold;
  margin-right: 8px;
  color: #444;
}

.tags-links a {
  background-color: #f57224;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  margin-right: 6px;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  transition: 0.3s;
}

.tags-links a:hover {
  background-color: #d45b1d;
}

.btn-back-home {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffac48; /* màu tím giống như nút tìm kiếm cũ */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-back-home:hover {
    background-color: #ffac48;
}


/**************************************De thi**************************************/
.sidebar-de-thi{
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
    padding: 20px;
}
.box-search-de-thi{
    background-color: rgb(230 234 238 / 1);
    border-radius: .5rem;
    height: 3rem;
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}
.box-search-de-thi input{
    margin: 0;
    border: 0;
    background: transparent;
    height: 100%;
    padding: 0 15px;
}
.box-search-de-thi button:focus-visible, .box-search-de-thi input:focus-visible {
    outline: none;
}
.box-search-de-thi .search-icon{
    margin: 0;
    position: absolute;
    right: 0;
    padding: 0 10px;
    height: 3rem;
    line-height: 1rem;
    top: 0;
    display: flex;
    align-items: center;
}
.box-search-de-thi svg{
    width: 1.675rem;
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-header {
    font-weight: 500;
    margin-bottom: 8px;
}

.filter-type {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-type .filter-item{
    margin: 0 0 7px;
}
.filter-type input[type="radio"] {
    display: none; /* Ẩn checkbox */
}

.filter-type label {
    display: inline-block;
    background: #f1f3f5;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.filter-type input[type="checkbox"]:checked + label,
.filter-type input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: #fff;
}

.filter-type label:hover {
    background: #e9ecef;
}

.box-btn-filter{
    display: flex;
    gap: 15px;
}
.box-btn-filter button{
    padding: 0 15px;
    margin: 0;
    font-size: 14px;
    text-transform: initial;
    border-radius: 6px;
}

#btn-reset-filter:disabled,
#btn-confirm-filter:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.result-count-dethi{
    font-size: 18px;
    line-height: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dnw-box-title-dethi{
    font-size: 1.5rem;
    line-height: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.dnw-box-de-thi .de-thi-item{
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
    padding: 13px 16px;
}
.box-meta-dethi {
    display: flex;
    gap: .875rem;
}
.box-meta-dethi .meta-phanloai{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .875rem;
    padding-right: .875rem;
    border-radius: 8px;
    height: 28px;
    font-weight: 500;
    font-size: 14px;
    background-color: var(--primary-color);
    color: white;
    line-height: 28px;
}
.box-meta-dethi .meta-phanloai.dgnl-hsa{
    background-color: rgb(18, 139, 61);
}
.box-meta-dethi .meta-phanloai.dgtd-tsa{
    background-color: #C41D17;
}
.box-meta-dethi .meta-phanloai.dgnl-v-act{
    background-color: #0F80CC;
}

.box-meta-dethi .meta-time{
    font-size: 14px;
    line-height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: .875rem;
    padding-right: .875rem;
    border-radius: 8px;
    height: 28px;
    font-weight: 500;
    --tw-bg-opacity: 1;
    background-color: rgb(240 243 247 / var(--tw-bg-opacity, 1));
}
.dnw-box-de-thi .de-thi-item .de-thi-name{
    font-size: 16px;
    line-height: 22px;
    margin-bottom: .875rem;
    margin-top: .875rem;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.box-meta-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.box-meta-footer > div{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    gap: 5px;
}


.box-de-thi-wrap #start-screen{
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
    padding: 20px 30px;
    border-radius: 15px;
}

.box-de-thi-wrap .title-dethi{
    font-size: 20px;
    line-height: 26px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
}
.box-de-thi-wrap .box-meta-dethi{
    list-style: none;
}
.box-de-thi-wrap .box-meta-dethi li {
    margin-bottom: 3px;
}
.box-de-thi-wrap .box-meta-dethi li svg{
    width: 18px;
    margin-right: 3px;
    position: relative;
    top: 6px;
}
.box-de-thi-wrap .meta-monhoc{
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}


.box-start-thi{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 9rem auto;
    transition-timing-function: cubic-bezier(0,0,.2,1);
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    background: var(--primary-color);
    border-radius: 9999px;
    cursor: pointer;
    width: 8rem;
    height: 8rem;
    text-transform: initial;
}


.box-de-thi-wrap  .exam-container {
    display: flex;
    height: calc(100vh - 210px);
    gap: 20px;
}
.box-de-thi-wrap .exam-container .sidebar,
.box-de-thi-wrap .exam-container .pdf-viewer{
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
    padding: 20px 15px;
    border-radius: 15px;
}
.box-de-thi-wrap .exam-container .pdf-viewer {
    flex: 3;
    border-right: 1px solid #ddd;
}
.box-de-thi-wrap .exam-container .sidebar {
    flex: 1;
}

.box-header-questions{
    display: flex;
    padding: 7px;
    background-color: var(--primary-color);
    color: #fff;
    gap: 15px;
}
.box-header-questions .th2{
    flex: 1;
    text-align: center;
}


.timer {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color); /* màu thanh tiến trình */
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.sidebar-questions {
    font-size: 14px;
    max-height: calc(80vh - 15rem);
    overflow-y: auto;
}


.confirm-overlay.box-de-thi-wrap .actions .button{
    margin-bottom: 0;
    border-radius: 10px;
    margin-top: 15px;
}

@media (min-width: 640px) {
    .sidebar-questions {
        max-height: calc(70vh - 15rem);
    }
}
@media (min-width: 1024px) {
    .sidebar-questions {
        max-height: calc(785px - 19rem);
    }
    .confirm-overlay.box-de-thi-wrap .sidebar-questions{
        max-height: calc(100% - 45px);
    }
}
.sidebar-questions .question-row {
    padding: 6px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
    display: flex;
    gap: 15px;
    align-items: center;
}
.sidebar-questions .question-row:nth-child(2n) {
    background: #ffac4838;
}
.sidebar-questions .question-row:hover{
    background: #ffac4859;
}
.sidebar-questions .question-number {
    font-weight: bold;
    min-width: 50px;
}
.sidebar-questions .options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: space-around;
}
.sidebar-questions .options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}
.sidebar-questions .options input[type="radio"] {
    display: none;
}
.sidebar-questions .options span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #fff;
    transition: all 0.2s ease;
}
.sidebar-questions .options input[type="radio"]:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.sidebar-questions .fill-input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.sidebar-questions .options-true-false{
    flex: 1;
}
.correct_answer_true_flase_item{
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.correct_answer_true_flase_item:last-child{
    margin-bottom: 0;
}
.correct_answer_true_flase{
    flex: 1;
    display: flex;
    justify-content: space-around;
}
.correct_answer_true_flase label{
    margin-bottom: 0;
}
.correct_answer_true_flase label input{
   display: none;
}
.correct_answer_true_flase span{
    height: 30px;
    padding: 0 5px;
    border: 1px solid #ccc;
    border-radius: 15px;
    line-height: 30px;
    margin-bottom: 0;
    width: 4rem;
    text-align: center;
    display: block;
    color: #555;
    cursor: pointer;
}
.correct_answer_true_flase input[type="radio"]:checked + span {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.single-thi-online .submit-btn{
    margin: 15px auto 0;
    width: auto;
    display: block;
    border-radius: 10px;
}

.confirm-overlay{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.confirm-overlay .backdrop{
    background-color: rgba(0, 0, 0, 0.4);
    inset: 0;
    position: absolute;
}
.confirm-overlay .confirm-box{
    overflow: hidden;
    position: relative;
    max-width: 600px;
    padding: 30px 20px;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: bold
}
.text-red-500{
    color: #ef4444;
}
.confirm-overlay .confirm-actions .button{
    border-radius: 10px;
    margin-bottom: 0;
}
.confirm-overlay .confirm-actions .btn-danger{
    margin-right: 0;
}

.result-box h3{
    font-size: 1.4rem;
    line-height: 1.8rem;
    color: var(--primary-color);
}
.result-box .button{
    margin: 0 0 5px;
    border-radius: 10px;
}
.result-box .time-result{
    font-size: 14px;
}
.result-box .time-result svg{
    width: 17px;
    position: relative;
    top: 3px;
}
.result-overlay .result-box {
    width: 90vw;
}

.result-overlay .result-icon img{
    max-width: 150px;
    margin-bottom: 30px;
}

.box-exam-mobile{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    display: none;
}
.box-exam-mobile-wrap{
    display: flex;
    gap: 10px;
    height: 6rem;
    background: var(--primary-color);
    padding: 10px 15px;
}
.box-exam-mobile-wrap .timer{
    display: flex;
    justify-content: center;
    align-items: center;
}
.box-exam-mobile-wrap .line{
    width: 1px;
    height: 100%;
    background: #fff;
    margin: 0 5px;
}
.box-exam-mobile-wrap .progress-wrap{
    margin-bottom: 0;
}
.box-exam-mobile-wrap .progress-button{
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    gap: 10px;
}
.box-exam-mobile-wrap .progress-button .box-button{
    display: flex;
    gap: 15px;
}
.box-exam-mobile-wrap .progress-button .box-button .button{
    border-radius: 6px !important;
    margin: 0 !important;
    flex: 1;
    text-transform: initial;
}
.box-exam-mobile-wrap .progress-button .box-button svg{
    width: 1.125rem;
}
.box-exam-mobile-wrap .progress-bar,
.box-exam-mobile-wrap .progress-button #bailam-btn{
    background: #7e511a !important;
}
.box-exam-mobile-wrap .progress-fill{
    background: #fff !important;
}
.box-exam-mobile-wrap .progress-button #bailam-btn svg{
    transform: rotate(270deg);
    position: relative;
    top: 4px;
}
.box-exam-mobile-wrap .progress-button .box-button .submit-btn{
    color: var(--primary-color) !important;
}

.box-exam-mobile-wrap .progress-button .box-button .submit-btn:hover{
    background: #7e511a !important;
    color: #fff !important;
}


.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Nội dung popup */
.popup-content {
    background: #fff;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

/* Nút đóng */
.popup-close {
    position: absolute;
    top: 10px; right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}


.timeout-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.timeout-popup .popup-content {
    background: #fff;
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    animation: scaleIn .4s ease;
    max-width: 300px;
}


.option-correct-selected {
    background: #2563eb; /* xanh dương */
    color: #fff;
    border-radius: 50%;
    text-decoration: none; /* không gạch */
}

.option-wrong-selected {
    background: #2563eb; /* xanh dương */
    color: #fff;
    border-radius: 50%;
    text-decoration: line-through; /* có gạch */
}

.option-correct-answer {
    background: #dc2626; /* đỏ */
    color: #fff;
    border-radius: 50%;
}

.hidden { display: none; }


/* Popup dap an */
.text-555{
    color: #555;
    font-weight: 400;
}
.confirm-overlay.box-de-thi-wrap .confirm-box{
    max-width: 70vw;
    width: 100%;
}
.decoration-red-500 {
    text-decoration-color: #ef4444;
}
.line-through {
    text-decoration-line: line-through;
}
.answer-input{
    flex: 1;
    padding: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    line-height: 30px;
    text-align: left;
    background-color: #fff;
}
.answer-correct { color: green; font-weight: bold; }
.answer-wrong .answer-true{
    margin-left: 10px;
}
.answer-true { color: #4caf50; font-weight: bold;
}

.correct_answer_true_flase .answer-true span,
.sidebar-questions .options .answer-true span{
    background: #4CAF50;
    color: #fff;
}

.correct_answer_true_flase .answer-wrong span,
.sidebar-questions .options .answer-wrong span{
    position: relative;
}
.correct_answer_true_flase .answer-wrong span:before,
.sidebar-questions .options .answer-wrong span:before{
    content: '';
    position: absolute;
    width: 38px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(239 68 68);
    display: block;
}
.correct_answer_true_flase .answer-wrong span:before{
    width: 4.5rem;
}

.box-de-thi-wrap.confirm-overlay .popup-close { position: absolute; right: 10px; top: 0; cursor: pointer; font-size: 20px; }

.question-row input{
    margin-bottom: 0;
}

@keyframes scaleIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (min-width: 730px) {
    .result-overlay .result-box {
        width: 60vw;
    }
}
@media (min-width: 1080px) {
    .result-overlay .result-box {
        width: 33vw;
    }
}

@media (max-width: 1079px){
    .single-thi-online .popup-content .submit-btn,
    .single-thi-online footer,
    .box-de-thi-wrap .exam-container .sidebar{
        display: none;
    }
    .box-exam-mobile{
        display: block;
    }
}


#sidebar-popup .popup-close{
    margin: 0;
    top: 0;
    right: 0;
    padding: 10px;
    min-height: auto;
    line-height: initial;
}

@media (max-width: 1079px){
    .confirm-overlay.box-de-thi-wrap .exam-container{
        flex-flow: column;
        height: auto;
    }
    .confirm-overlay.box-de-thi-wrap .exam-container .pdf-viewer{
        padding: 0;
        flex-basis: 100%;
        max-width: 100%;
    }
    .confirm-overlay.box-de-thi-wrap .exam-container .pdf-viewer iframe{
        height: 545px;
    }
    .confirm-overlay.box-de-thi-wrap .exam-container .sidebar{
        display: block !important;
        flex-basis: 100%;
        max-width: 100%;
        box-shadow: none;
        padding: 0;
    }
    .confirm-overlay.box-de-thi-wrap .sidebar-questions{
        max-height: 80vh;
    }

    .confirm-overlay.box-de-thi-wrap .confirm-box {
        max-width: 97vh;
        max-height: 90vh;
        padding: 30px 10px 10px;
        overflow-y: auto;
    }

    .box-de-thi-wrap:not(.confirm-overlay) .exam-container {
        height: calc(100vh - 265px);
    }
    .box-de-thi-wrap:not(.confirm-overlay) .exam-container .pdf-viewer{
        padding: 0;
        box-shadow: none;
    }

}



@media (max-width: 549px){
    .box-de-thi-wrap #start-screen {
        padding: 20px 15px;
    }
    .box-meta-dethi {
        display: block;
    }
    .box-exam-mobile-wrap .timer{
        font-size: 26px;
    }
    .confirm-overlay.box-de-thi-wrap .actions .button,
    .box-exam-mobile-wrap .progress-button .box-button .button{
        padding: 0 5px;
    }
}

@media (max-width: 360px){
    .result-box .button,
    .confirm-overlay .confirm-actions .button{
        font-size: 14px;
    }
    .result-overlay .result-box {
        width: 97vw;
        padding: 15px;
    }
    .box-exam-mobile-wrap {
        padding: 10px;
        gap: 5px;
    }
    .box-exam-mobile-wrap .progress-button .box-button {
        gap: 5px;
    }
    .confirm-overlay.box-de-thi-wrap .actions .button,
    .box-exam-mobile-wrap .progress-button .box-button .button{
        font-size: 14px;
    }
}

.bl-sticky-icon{
    position:fixed;
    z-index:99999;
    right:10px;
    bottom:450px;
}
.bl-sticky-icon img{
    width:70px;
    animation-name:shake-sticky-icon;
    animation-iteration-count:infinite;
    animation-delay:1s;
    animation-duration:2s;
    animation-timing-function:ease-in-out;
    cursor:pointer;
}
.bl-sticky-icon-close{
    width:20px;
    height:20px;
    display:block;
    border-radius:20px;
    border:1px solid #ff4b14;
    text-align:center;
    line-height:20px;
    position:absolute;
    right:0;
    top:-20px;
    cursor:pointer;
}
@keyframes shake-sticky-icon {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}
