/*
Theme Name: Flatsome Child
Description: Code by CODE-WP.COM
Author: UX Themes
Template: flatsome
Version: 3.1
*/

@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/*************** ADD CUSTOM CSS HERE.   ***************/
h3.section-title.section-title-center span.section-title-main {
    font-size: 40px;
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
    text-transform: math-auto;
}
h3.section-title.section-title-center b {
    visibility: hidden;
}
ul.header-nav.header-nav-main.nav.nav-left.nav-uppercase li a {
    color: #000;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}
.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.answer-sheet {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
}
.test-content {
    display: flex;
    gap: 30px;
}
.sheet-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.sheet-body {
    max-height: 650px;
    overflow-y: auto;
}
p.question-title {
    margin-top: 30px;
    margin-bottom: 30px;
}
.lesson-test-doing h2 {
    font-size: 20px;
}
.question {
    background: #f6ecec;
    padding: 10px;
    border-radius: 5px;
    margin-top: 30px;
    margin-bottom: 30px;
}
.question label.answer-item {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}
.test-nav button {
    background: #5fc877;
    border-radius: 5px;
    color: #fff;
}
.sheet-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.q-number {
    width: 26px;
    text-align: right;
    margin-right: 6px;
    font-weight: 600;
}

.sheet-opt {
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin-right: 6px;
    border-radius: 50%;
    background: #eee;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

/* Đã chọn */
.sheet-opt.active {
    background: #2ecc71;
    color: #fff;
    font-weight: 600;
}

/* Chưa chọn */
.sheet-opt.empty {
    background: #eee;
}

/* Click được */
.sheet-opt:hover {
    background: #ccc;
}
.answer-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.answer-item input {
    display: none;
}

/* Vòng tròn A B C D */
.answer-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s ease;
}

/* Nội dung đáp án */
.answer-text {
    font-size: 15px;
    color: #222;
}

/* Khi được chọn */
.answer-item input:checked+.answer-circle {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}

/* Hover */
.answer-item:hover .answer-circle {
    border-color: #2ecc71;
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-item.done a {
    color: #27ae60;
    font-weight: 600;
}

.lesson-status {
    font-size: 14px;
    margin-left: 8px;
}

.lesson-status.done {
    color: #27ae60;
}

.lesson-status.pending {
    color: #ccc;
}

/* ===== LAYOUT ===== */
.course-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    background: #fff;
}

.course-sidebar {
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    padding: 16px;
}

/* ===== PROGRESS ===== */
.course-progress {
    margin-bottom: 16px;
}

.course-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.course-progress-bar span {
    display: block;
    height: 100%;
    background: #ff7a18;
}

/* ===== GROUP ===== */
.lesson-group {
    margin-bottom: 16px;
}

.group-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin: 12px 0;
}

/* ===== LESSON ITEM ===== */
.lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-item {
    margin-bottom: 6px;
}

.lesson-item a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border: 1px solid #eee;
}

.lesson-item a:hover {
    background: #f5f5f5;
}

.lesson-item.active a {
    background: #fff3eb;
    border-color: #ff7a18;
    color: #ff7a18;
    font-weight: 600;
}

/* trạng thái */
.lesson-item.done a::after {
    content: "✔";
    margin-left: auto;
    color: #2ecc71;
    font-weight: bold;
}

.lesson-item.locked a {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== CONTENT ===== */
.course-content {
    padding: 24px;
    background: #fff;
}

.ntc-user-menu {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.ntc-user-dropdown {
    display: none;
    position: absolute;
    background: #fff;
    list-style: none;
    padding: 10px;
    border: 1px solid #ddd;
    min-width: 180px;
    z-index: 999;
    right: 0px;
}

.ntc-user-menu:hover .ntc-user-dropdown {
    display: block;
}

.ntc-user-dropdown li {
    margin-bottom: 8px;
    margin-left: 10px;
}

.ntc-user-dropdown li a {
    text-decoration: none;
}
.ntc-user-courses {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.ntc-course-item a {
    display: block;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ntc-course-thumb-wrap {
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    overflow: hidden;
}

.ntc-course-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntc-course-title {
    font-size: 15px;
    padding: 10px 12px;
    color: #222;
}

.ntc-course-thumb-wrap.no-thumb {
    background: linear-gradient(135deg, #ddd, #f5f5f5);
}
.ntc-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.ntc-user-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.ntc-user-display-name {
    font-weight: 500;
}

.ntc-user-info {
    padding: 10px 15px;
    background: #f7f7f7;
}

.ntc-user-info small {
    color: #666;
}

.ntc-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 5px 0;
}
form.ntc-account-form {
    max-width: 600px;
    display: block;
    margin: 0px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: solid 2px #ccc;
}
form.ntc-account-form input {
    border: solid 1px #ccc;
    box-shadow: unset;
    height: 50px;
    border-radius: 5px;
}
button.button.btn-submit {
    border-radius: 5px;
    font-weight: 400;
}
.lesson-badges {
    display: flex;
    gap: 20px;
}
.lesson-badges span.badge {
    width: 265px;
    background: #eee;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.lesson-body {
    padding: 10px;
    margin-top: 30px;
}
ul.lesson-stats {
    list-style-type: none;
}




/* ========== Custom bar ========== */
/* ===== Sidebar tổng ===== */
.lesson-sidebar {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    font-size: 14px;
}

/* ===== Tiêu đề ===== */
.lesson-sidebar h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.lesson-sidebar h4 {
    margin: 20px 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* ===== Thống kê ===== */
.lesson-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
}

.lesson-stats li:last-child {
    border-bottom: none;
}

.lesson-stats strong {
    color: #111;
    font-weight: 600;
}

/* ===== Progress bar ===== */
.progress-wrap {
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-wrap .bar {
    height: 34px;
    line-height: 34px;
    padding-left: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* Màu từng loại */
.progress-wrap .correct {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.progress-wrap .wrong {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-wrap .blank {
    background: linear-gradient(90deg, #9ca3af, #6b7280);
}

/* ===== Top leaderboard ===== */
.leaderboard-mini {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.leaderboard-mini li {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.leaderboard-mini li:last-child {
    border-bottom: none;
}

.leaderboard-mini span:first-child {
    font-weight: 600;
    color: #2563eb;
}

.leaderboard-mini span:nth-child(2) {
    color: #333;
}

.leaderboard-mini strong {
    font-weight: 600;
    color: #111;
    font-size: 13px;
}

/* ===== Highlight top 1 ===== */
.leaderboard-mini li:first-child span:first-child {
    color: #f59e0b;
}
/* ===== MOBILE ===== */

/* Wrapper cho label + checkbox */
#confirm-test {
    display: none;
}

/* Label đóng vai trò checkbox */
#confirm-test+label {
    position: relative;
    padding-left: 34px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 22px;
    user-select: none;
}

/* Ô checkbox */
#confirm-test+label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: all 0.2s ease;
}

/* Dấu tick */
#confirm-test+label::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 5px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

/* Checked */
#confirm-test:checked+label::before {
    background: #2563eb;
    border-color: #2563eb;
}

#confirm-test:checked+label::after {
    transform: rotate(45deg) scale(1);
}

/* Hover */
#confirm-test+label:hover::before {
    border-color: #2563eb;
}

/* Disabled (nếu cần) */
#confirm-test:disabled+label {
    opacity: 0.6;
    cursor: not-allowed;
}
.exam-margin {
    display: flex;
    margin-top: 25px;
    margin-bottom: 15px;
}
.lesson-test-doing {
    padding: 40px;
}
form#lesson-test-form {
    width: 80%;
}
button#submit-test {
    background: #f50;
}
.test-instructions p {
    font-style: italic;
    font-size: 13px;
}
.test-instructions {
    background: #ffffff;
    padding: 10px;
    border-radius: 5px;
}  
form#crm-login-form, form#crm-register-form {
    max-width: 600px;
    margin: 0px auto;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    border: solid 2px #ccc;
}
form#crm-login-form input, form#crm-register-form input {
    height: 50px;
    border-radius: 5px;
    box-shadow: unset;
    background: #fefbf5;
}
form#crm-register-form a, form#crm-login-form a {
    text-decoration: underline;
    color: #f50;
}
.block_margin {
    margin: 100px 0px;
}
.block_margin a {
    text-decoration: underline;
}
.file_mp3 audio {
    width: 100%;
}

.file_mp3 {
    margin-top: 20px;
}
@media (max-width: 992px) {
    .course-layout {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        display: none;
    }
}

/* Thống kê và xếp hạng */
