/*** Import *****/
@import url('loading-btn.css');
@import url('loading-group.css');

/*** End ****/

.blog-info-tag span:before {
    content: ',';
    position: absolute;
    bottom: 6px;
    right: 0;
    height: 100%;
    font-size: 16px;
    width: auto;
    padding-right: 5px;
}

.blog-info-tag span {
    position: relative;
    display: inline-block;
    padding-right: 10px;
}

.blog-info-tag span:last-child:before {
    display: none
}

.wpcf7 form .wpcf7-response-output {
    border: 0;
    margin: 15px 0;
    padding: 0;
    font-weight: bold;
    font-size: 12px;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

.wpcf7 form.invalid .wpcf7-response-output {
    color: red;
}

span.price-from {
    display: none;
}

#wp-admin-bar-wp-logo a img {
    max-width: 32px;
}

.core-values-sect.deferred-render {
    display: none;
}

/**
 * Breadcrumb
 */
.is-fade-title {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.breadcrumb span.separator {
    display: none;
}

.banner .banner-bg video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    height: 100% !important;
}

.wpcf7-form input[type="submit"].btn-hidden {
    display: none;
}

.wpcf7-form.submitting .btn-pri {
    pointer-events: none;
    opacity: 0.65;
}

.wpcf7-form.submitting .btn-pri>*:not(.wpcf7-spinner) {
    opacity: 0;
}

.mobile .mobile-content .footer-item {
    margin-bottom: 1.2rem;
}

.newsdt-side-bar .ez-toc-page-1:not(:last-child) {
    padding-bottom: 1.6rem !important;
    margin-bottom: 1.6rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: unset;
    width: 100%;
}

.myacc-side .woocommerce-MyAccount-navigation .myacc-it.is-active:not(.disabled-active) {
    background-color: var(--color-second);
}

.myacc-side .woocommerce-MyAccount-navigation .myacc-it.is-active:not(.disabled-active) .txt {
    color: var(--white);
}

.myacc-side .woocommerce-MyAccount-navigation .myacc-it.is-active:not(.disabled-active) img {
    -webkit-filter: var(--filter);
    filter: var(--filter);
}

.myacc-side .woocommerce-MyAccount-navigation .inner {
    margin-bottom: unset;
    padding-bottom: unset;
    border-bottom: unset;
}

.myacc-side .woocommerce-MyAccount-navigation .myacc-it:last-child {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 0.1rem solid var(--border);
}

.myacc-side .myacc-ava .avt img {
    border-radius: 8px;
}

.widget_shopping_cart_content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100% !important;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    float: unset;
    width: 100% !important;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    float: unset;
    width: 100% !important;
}

p#billing_country_field {
    display: none;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: unset;
    border-radius: unset;
}

#add_payment_method #payment .form-row.place-order,
.woocommerce-cart #payment .form-row.place-order,
.woocommerce-checkout #payment .form-row.place-order {
    display: none;
}

.woocommerce-form-coupon-toggle {
    display: none;
}

.no-orders {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.no-orders-btn {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
    float: unset;
    width: 100%;
    clear: none;
    margin-bottom: 0 !important;
}

.woocommerce #content div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs,
.woocommerce-page #content div.product .woocommerce-tabs,
.woocommerce-page div.product .woocommerce-tabs {
    clear: both;
    display: none !important;
}

.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

.woocommerce div.product form.cart::after,
.woocommerce div.product form.cart::before {
    display: none !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    position: relative !important;
    background: var(--color-pri) !important;
    border: 0.1rem solid var(--color-pri) !important;
    overflow: hidden !important;
    -webkit-transition: all .3s ease !important;
    transition: all .3s ease !important;
    z-index: 1 !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    gap: .4rem !important;
    border-radius: .8rem !important;
    padding: 1rem 2rem !important;
    width: -webkit-max-content !important;
    width: -moz-max-content !important;
    width: max-content !important;
    cursor: pointer !important;
    font-family: var(--font-pri) !important;
    font-weight: 600 !important;
    --f-sz: 1.6rem !important;
    font-size: var(--f-sz) !important;
    height: 4.4rem !important;
    -ms-flex-negative: 0 !important;
    flex-shrink: 0 !important;
}

@media screen and (min-width: 1201px) {
    .woocommerce div.product form.cart .single_add_to_cart_button {
        height: 6.4rem !important;
    }
}

.woocommerce div.product form.cart .single_add_to_cart_button .txt {
    color: var(--color-text) !important;
}

.no-img img {
    object-fit: contain !important;
}

.ez-toc-debug-messages {
    display: none;
}

.mona-result .result-mask {
    width: 3.2rem;
    height: 2.8rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 0.6rem;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-justify-content: center;
    margin-right: 1.2rem;
}

.mona-result .result-mask .icon {
    color: #fff;
    --f-sz: 1.6rem;
    font-size: var(--f-sz);
    width: 1.6rem;
    height: 1.6rem;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-justify-content: center;
}

.mona-result.correct .result-mask {
    background: #45b441;
}

.mona-result.incorrect .result-mask {
    background: #ed1c24;
}

.mona-result.skip .result-mask {
    background: #ff6636;
}

.mona-result.halfcorrect .result-mask {
    position: relative;
    width: 3.2rem;
    height: 2.8rem;
    flex-shrink: 0;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mona-result.halfcorrect .result-mask::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #28a745 50%, #dc3545 50%);
}

.mona-result.halfcorrect .result-mask .correct,
.mona-result.halfcorrect .result-mask .incorrect {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.mona-result.halfcorrect .result-mask .correct {
    left: 2px;
    top: -5px;
}

.mona-result.halfcorrect .result-mask .incorrect {
    right: 2px;
    bottom: -5px;
}

.bnner-inner .summary {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: var(--dist24) 1.2rem;
}

.bnner-alert > p:not(:last-child) {
    margin-bottom: 10px;
}

.topicEx .topicEx-wr:not(:first-child) {
    margin-top: 6.4rem;
}

@media screen and (max-width: 1200px) {
    .topicEx .topicEx-wr:not(:first-child) {
        margin-top: 3.2rem;
    }
}

@media screen and (max-width: 700px) {
    .topicEx .topicEx-wr:not(:first-child) {
        margin-top: 1.6rem;
    }
}

.monareuser-input {
    flex: 1;
}

.topicEx-empty {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    margin: 0 auto;
}

.topicEx-loadmore {
    margin: auto;
    margin-top: 2.4rem;
}

.mona-list-arch,
.mona-list-sec {
    margin-bottom: 1.2rem;
}

.mona-pagi-arch,
.mona-pagi-sec {
    margin-top: 1.2rem;
}

.pagination-mona .page-numbers {
    gap: 1rem;
}

.bnner-free .bnner-inner {
    display: none;
}

form.checkout.woocommerce-checkout #billing_email_field {
    opacity: 0.65;
    pointer-events: none;
}

.mo-openid-app-icons {
    display: block !important;
    margin: 0 auto !important;
    width: max-content !important;
}

.mo-openid-app-icons>a {
    margin: 0 !important;
}

.select2-container .select2-search--dropdown .select2-search__field {
    display: block !important;
}

.select2-container .select2-results__option {
    word-break: break-word !important;
}

.myacc-head.view-teacher {
    flex-direction: column;
    align-items: flex-start;
}

.myacc-head.view-teacher form#formHistory,
.myacc-head.view-enduser form#formHistory {
    width: 100%;
}

.myacc-head.view-teacher .myacc-select {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: nowrap;
}

.myacc-head.view-teacher .myacc-select > * {
    flex: 1;
}

.myacc-head.view-teacher .myacc-select .glsearch {
    flex: 1;
}

@media (max-width: 767px) {
    .myacc-head.view-teacher .myacc-select {
        flex-wrap: wrap;
    }
    
    .myacc-head.view-teacher .myacc-select > * {
        width: 100%;
    }
}

.myacc-student {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.myacc-student-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.myacc-student-info {
    flex: 1;
}

.myacc-student-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.myacc-student-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

@media (max-width: 767px) {
    .myacc-student {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .myacc-student-avatar {
        margin: 0 auto;
    }
    
    .myacc-student-info {
        width: 100%;
    }
    
    .myacc-student-name {
        font-size: 13px;
    }
    
    .myacc-student-value {
        font-size: 15px;
    }
}

/* ===== MONA PDF VIEWER ===== */
.mona-pdf-viewer-wrapper {
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
}

.mona-pdf-viewer-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 800px;
    background: #525252;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.mona-pdf-iframe {
    width: 100%;
    height: 100%;
    min-height: 800px;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.mona-pdf-fallback {
    display: none;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
}

.mona-pdf-fallback p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.mona-pdf-fallback-link {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mona-pdf-fallback-link:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Responsive cho PDF Viewer */
@media (max-width: 1024px) {
    .mona-pdf-viewer-container {
        height: calc(100vh - 150px);
        min-height: 600px;
    }
    
    .mona-pdf-iframe {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .mona-pdf-viewer-container {
        height: calc(100vh - 120px);
        min-height: 500px;
    }
    
    .mona-pdf-iframe {
        min-height: 500px;
    }
}

/* Fallback cho iOS Safari - hiển thị link thay vì iframe */
@supports (-webkit-touch-callout: none) {
    .mona-pdf-viewer-container {
        height: calc(100vh - 150px);
        min-height: 600px;
    }
    
    .mona-pdf-iframe {
        min-height: 600px;
    }
    
    /* Nếu iframe không load được, hiển thị fallback */
    .mona-pdf-viewer-container:has(.mona-pdf-iframe[src=""]) .mona-pdf-fallback {
        display: block;
    }
}

/* Fallback cho Android */
@media (max-width: 480px) {
    .mona-pdf-viewer-container {
        height: calc(100vh - 100px);
        min-height: 500px;
    }
    
    .mona-pdf-iframe {
        min-height: 500px;
    }
}


.footer-bct, .footer-dmca {
    max-width: 12rem;
}

.blogdt-content #ez-toc-container {
    display: none;
}