@charset "utf-8";
/* =====================================================================
   ETEK LAB - Theme giao diện hiện đại cho FrontEnd (học sinh/sinh viên)
   Chỉ thay đổi GIAO DIỆN - giữ nguyên markup & dữ liệu.
   Nạp SAU CÙNG để override css.css / myStyle.css / style2.css.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --etek-navy: #16243E;
    --etek-navy-2: #1E3155;
    --etek-primary: #2563EB;
    --etek-primary-d: #1D4ED8;
    --etek-teal: #0EA5E9;
    --etek-accent: #F97316;
    --etek-accent-d: #EA580C;
    --etek-green: #16A34A;
    --etek-bg: #F1F5F9;
    --etek-card: #FFFFFF;
    --etek-ink: #0F172A;
    --etek-muted: #64748B;
    --etek-line: #E2E8F0;
    --etek-soft: #F8FAFC;
    --etek-blue-soft: #EFF6FF;
    --etek-radius: 14px;
    --etek-shadow: 0 10px 28px rgba(15, 23, 42, .10);
}

/* ----------------------------- Base ----------------------------- */
body {
    background: var(--etek-bg) !important;
    color: var(--etek-ink) !important;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

a {
    font-family: inherit;
    transition: all .2s ease;
}

    a:hover {
        color: var(--etek-primary);
    }

.wrap-content, .content, .container {
    color: var(--etek-ink);
}

/* --------------------------- Header ----------------------------- */
.header {
    background: var(--etek-navy) !important;
    height: 70px !important;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .20);
}

    .header.slideup {
        background: var(--etek-navy) !important;
    }

.header .logo {
    display: flex !important;
    align-items: center;
    height: 70px;
    width: auto !important;
    float: left;
    padding: 0 18px !important;
    text-align: left;
}

    .header .logo a {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header .logo img {
        position: static !important;
        top: 0 !important;
        max-height: 46px !important;
        width: auto !important;
    }

        .header .logo img:hover {
            top: 0 !important;
        }

    .header .logo span {
        color: #fff !important;
        font-weight: 800 !important;
        font-size: 19px !important;
        letter-spacing: .3px;
        padding: 0 !important;
    }

/* Menu ngang */
.menu-top {
    float: left;
}

    .menu-top > ul {
        display: flex;
        align-items: center;
        height: 70px;
    }

    .menu-top li {
        float: none !important;
        border-right: 0 !important;
        height: auto;
    }

        .menu-top li a {
            display: flex !important;
            align-items: center;
            gap: 6px;
            height: 44px !important;
            background: transparent !important;
            color: #CBD5E1 !important;
            font-size: 13px;
            font-weight: 500;
            border-radius: 9px;
            padding: 0 9px !important;
            margin: 0 1px;
            white-space: nowrap;
        }

            .menu-top li a:hover,
            .menu-top li a.active {
                background: rgba(255, 255, 255, .10) !important;
                color: #fff !important;
            }

            /* Giữ icon nhưng thu nhỏ + canh giữa cho gọn, đủ chỗ hiển thị hết mục */
            .menu-top li a > span.glyphicon {
                display: inline-block !important;
                font-size: 15px !important;
                line-height: 1 !important;
                color: #CBD5E1 !important;
                position: static !important;
                top: 0 !important;
                margin: 0 !important;
                flex: 0 0 auto;
            }

            .menu-top li a:hover > span.glyphicon,
            .menu-top li a.active > span.glyphicon {
                color: #fff !important;
            }

            .menu-top li a img {
                display: inline-block !important;
                width: 16px !important;
                height: 16px !important;
                object-fit: contain;
                margin: 0 !important;
                top: 0 !important;
                position: static !important;
                flex: 0 0 auto;
            }

            .menu-top li a span {
                display: inline-flex !important;
                align-items: center;
                padding: 0 !important;
                text-align: left;
            }

    /* Submenu dropdown */
    .menu-top ul li ul {
        background: #fff;
        border: 1px solid var(--etek-line) !important;
        border-radius: 10px;
        box-shadow: var(--etek-shadow) !important;
        top: 60px;
        overflow: hidden;
        padding: 6px !important;
    }

    .menu-top li ul li {
        border-bottom: 0 !important;
    }

        .menu-top li ul li a {
            color: #334155 !important;
            border-radius: 8px;
            height: 38px !important;
            line-height: 38px !important;
        }

            .menu-top li ul li a:hover {
                background: var(--etek-blue-soft) !important;
                color: var(--etek-primary) !important;
            }

    .menu-top ul li ul li:hover {
        background: transparent !important;
    }

/* Right-top: ngôn ngữ + tài khoản */
.right-top {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 16px !important;
}

    .right-top .user-box li {
        line-height: normal !important;
        height: auto !important;
    }

        .right-top .user-box li a,
        .right-top .user-box li.avauser a {
            display: flex !important;
            align-items: center;
            gap: 9px;
            background: rgba(255, 255, 255, .08) !important;
            color: #fff !important;
            border-radius: 30px !important;
            padding: 5px 16px 5px 6px !important;
            font-size: 13.5px;
            font-weight: 500;
        }

            .right-top .user-box li a:hover {
                background: rgba(255, 255, 255, .16) !important;
            }

.right-top .user-box li.avauser img.imgava {
    width: 36px !important;
    height: 36px !important;
    border: 2px solid rgba(255,255,255,.6) !important;
    top: 0 !important;
}

/* Language switcher trên header */
.language-switcher .lang-toggle {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .07);
    color: #CBD5E1;
    padding: 8px 12px;
    border-radius: 10px;
}

    .language-switcher .lang-toggle:hover {
        background: rgba(255, 255, 255, .14);
    }

.language-switcher .dropdown-menu {
    border: 1px solid var(--etek-line);
    border-radius: 10px;
    box-shadow: var(--etek-shadow);
}

/* Hộp thông tin tài khoản (dropdown) */
.infoaccount {
    background: #fff !important;
    border: 1px solid var(--etek-line);
    border-radius: 12px;
    box-shadow: var(--etek-shadow);
    padding: 14px !important;
    top: 64px !important;
}

.ta {
    border-bottom-color: #fff !important;
}

.infoaccount .boxava-account li p,
.nameava {
    color: var(--etek-ink) !important;
}

/* Header 1 hàng: logo | menu | (ngôn ngữ + tài khoản) — dùng flex để
   .right-top luôn nằm cùng dòng menu, không bị rớt xuống (chỉ desktop). */
@media (min-width: 721px) {
    .header {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
    }

        .header .menuslide-m {
            flex: 0 0 auto;
        }

        .header .logo {
            flex: 0 0 auto;
        }

    .header-web {
        flex: 1 1 auto;
        min-width: 0;
        display: flex !important;
        align-items: center;
        height: 70px;
    }

    .menu-top {
        float: none !important;
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .right-top {
        float: none !important;
        flex: 0 0 auto;
        margin-left: auto;
    }
}

/* Màn hẹp (1280–1400): thu nhỏ icon + padding menu để hiển thị đủ tất cả mục */
@media (min-width: 721px) and (max-width: 1400px) {
    .menu-top li a {
        padding: 0 6px !important;
        gap: 4px;
        font-size: 12.5px;
    }

        .menu-top li a > span.glyphicon {
            font-size: 14px !important;
        }

        .menu-top li a img {
            width: 14px !important;
            height: 14px !important;
        }
}

/* ----------------------- Vùng nội dung -------------------------- */
.content {
    padding-bottom: 60px;
}

.left-bar {
    background: #fff !important;
    border-right: 1px solid var(--etek-line);
    box-shadow: 2px 0 16px rgba(15,23,42,.04);
}

    .left-bar.slideup {
        background: #fff !important;
    }

/* Breadcrumb / sitemap */
.path {
    padding: 14px 22px !important;
    color: var(--etek-muted);
}

    .path li a {
        background: #fff !important;
        color: #475569 !important;
        border: 1px solid var(--etek-line);
        border-radius: 8px;
        height: auto !important;
        line-height: 1 !important;
        padding: 7px 14px !important;
        margin-right: 6px;
        font-size: 13px;
    }

        .path li a:hover {
            color: var(--etek-primary) !important;
            border-color: #BFDBFE;
        }

li.subpath a {
    background: #fff !important;
}

li.subpath2 a {
    background: var(--etek-primary) !important;
    color: #fff !important;
    border-color: var(--etek-primary) !important;
}

.title-content {
    color: var(--etek-ink) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 6px 0 14px !important;
}

/* --------------------- Menu trái (accordion) -------------------- */
.menuleft-bar a {
    border-bottom: 1px solid var(--etek-line) !important;
    color: #334155 !important;
}

    .menuleft-bar a:hover,
    .menuleft-bar a.active {
        background: var(--etek-blue-soft) !important;
        color: var(--etek-primary) !important;
    }

#accordian h3 {
    background: var(--etek-soft) !important;
    color: var(--etek-ink) !important;
    border-radius: 10px;
    margin: 4px 6px !important;
    font-weight: 700;
    border: 1px solid var(--etek-line);
}

    #accordian h3:hover {
        background: var(--etek-blue-soft) !important;
        color: var(--etek-primary) !important;
    }

#accordian li.active > h3 {
    background: var(--etek-blue-soft) !important;
    color: var(--etek-primary) !important;
    border-color: #BFDBFE;
}

#accordian ul ul li a {
    color: #475569 !important;
}

    #accordian ul ul li a:hover,
    #accordian ul ul li a.active {
        background: var(--etek-blue-soft) !important;
        border-left: 4px solid var(--etek-primary) !important;
        color: var(--etek-primary) !important;
    }

.menuleft-bar .active h3 {
    color: var(--etek-primary) !important;
}

/* Bỏ thanh cuộn ngang xấu ở menu trái (do inline overflow-x:scroll trong view),
   chỉ giữ cuộn dọc khi danh sách dài. */
.menuleft-bar ul ul,
#accordian ul ul,
#ulMenuLeftBar,
#ulMenuLeftBarEquipment {
    overflow-x: hidden !important;
    overflow-y: auto;
}

/* Nội dung mục trong menu trái không tràn ngang, cắt gọn bằng "..." */
.menuleft-bar ul ul li a > div {
    max-width: 100%;
    overflow: hidden;
}

    .menuleft-bar ul ul li a > div > div:last-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Ẩn icon nền (thiết kế cho theme tối) để tránh icon trắng vô hình trên nền sáng */
.menuleft-bar span.ic1,
.menuleft-bar span.ic2,
.menuleft-bar span.ic3,
.menuleft-bar span.ic4,
.menuleft-bar span.ic5 {
    display: none !important;
}

#accordian h3 > div {
    margin-top: 0 !important;
}

/* ----------------------- Thẻ môn học ---------------------------- */
.list-course ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 4px 0;
}

.list-course li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.block-course {
    background: #fff;
    border: 1px solid var(--etek-line) !important;
    border-radius: var(--etek-radius);
    overflow: hidden;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .block-course:hover {
        transform: translateY(-3px);
        box-shadow: var(--etek-shadow);
        border-color: #C7D2FE !important;
    }

.list-course li .img-course {
    height: 150px !important;
    top: 0 !important;
    position: relative;
    background: linear-gradient(135deg, #E0E7FF, #DBEAFE);
}

    .list-course li .img-course img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover;
        max-width: none !important;
        transition: transform .35s ease;
    }

.block-course:hover .img-course img {
    transform: scale(1.06);
}

/* Tên môn: dải gradient luôn hiển thị ở đáy ảnh (không che mất ảnh) */
.list-course .name-course,
.list-course .block-course:hover .name-course {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100% !important;
    background: linear-gradient(to top, rgba(8,15,30,.86) 0%, rgba(8,15,30,.30) 45%, rgba(8,15,30,0) 70%) !important;
}

.list-course .name-course span,
.list-course .name-course a {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    transform: none !important;
    padding: 14px !important;
    text-align: left !important;
    color: #fff !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    line-height: 1.35 !important;
}

/* ------------------ Danh sách bài giảng ------------------------- */
.blocklist-cate ul {
    display: block;
}

.blocklist-cate li,
.chose-cate li {
    border-bottom: 0 !important;
}

.blocklist-cate li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--etek-line);
    border-radius: 12px;
    padding: 14px 16px !important;
    margin-bottom: 10px;
    color: var(--etek-ink) !important;
    line-height: 1.4 !important;
    font-weight: 500;
}

    .blocklist-cate li a:hover {
        background: #fff !important;
        border-color: #BFDBFE;
        box-shadow: var(--etek-shadow);
        padding-left: 16px !important;
        color: var(--etek-primary) !important;
    }

    .blocklist-cate li a img {
        float: none !important;
        top: 0 !important;
        margin: 0 !important;
        width: 26px;
        height: auto;
    }

/* ------------------------ Trắc nghiệm --------------------------- */
.chose-cate ul {
    display: block;
}

.chose-cate li {
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--etek-line) !important;
    border-radius: 12px;
    padding: 14px 16px !important;
    margin-bottom: 10px;
}

    .chose-cate li p {
        float: none !important;
        flex: 1;
        margin: 0;
        color: var(--etek-ink);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .chose-cate li p img {
            width: 24px;
        }

    .chose-cate li a {
        float: none !important;
        width: auto !important;
        height: auto !important;
        line-height: 1 !important;
        border: 0 !important;
        border-radius: 10px;
        padding: 10px 18px !important;
        color: #fff !important;
        font-weight: 600;
        margin: 0 0 0 8px !important;
    }

.tabcate span {
    width: auto;
}

/* --------------------------- Nút -------------------------------- */
.btnBlue,
a.btn1,
a.btn3,
.btn-popup a {
    background: var(--etek-primary) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600;
    border: 0 !important;
}

    .btnBlue:hover,
    a.btn1:hover,
    a.btn3:hover,
    .btn-popup a:hover {
        background: var(--etek-primary-d) !important;
        color: #fff !important;
    }

/* Giữ chữ TRẮNG trên nút khi hover (rule a:hover chung làm chữ đổi xanh) */
.btnBlue:hover,
.btnOrange:hover,
a.btn1:hover,
a.btn2:hover,
a.btn3:hover,
.btn-popup a:hover,
.chose-cate li a:hover,
.loginsite li a.login:hover,
.pages a:hover {
    color: #fff !important;
}

.btnOrange,
a.btn2,
.btn-popup a.btn2 {
    background: var(--etek-accent) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 600;
    border: 0 !important;
}

    .btnOrange:hover,
    a.btn2:hover,
    .btn-popup a.btn2:hover {
        background: var(--etek-accent-d) !important;
    }

/* Bootstrap buttons trong modal */
.btn {
    border-radius: 10px !important;
}

.btn-primary {
    background: var(--etek-primary) !important;
    border-color: var(--etek-primary) !important;
}

    .btn-primary:hover {
        background: var(--etek-primary-d) !important;
        border-color: var(--etek-primary-d) !important;
    }

/* Phân trang */
.pages a:hover,
.pages a.active {
    background: var(--etek-primary) !important;
    color: #fff !important;
}

#pagination-flickr a:link,
#pagination-flickr a:visited {
    color: #475569 !important;
    background: #fff !important;
    border: 1px solid var(--etek-line) !important;
    border-radius: 8px;
    padding: 6px 11px !important;
    margin-right: 4px;
}

#pagination-flickr a:hover {
    border-color: var(--etek-primary) !important;
    color: var(--etek-primary) !important;
}

#pagination-flickr li .active {
    color: #fff !important;
    background: var(--etek-primary);
    border-radius: 8px;
    padding: 6px 11px;
}

/* --------------------- Popup / Modal ---------------------------- */
.popup {
    background: #fff !important;
    color: var(--etek-ink) !important;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    padding: 22px !important;
}

    .popup h3 {
        color: var(--etek-ink);
        font-weight: 700;
    }

.modal-content {
    border-radius: 14px !important;
    overflow: hidden;
    border: 0 !important;
}

.modal-header {
    background: var(--etek-navy) !important;
    color: #fff !important;
    border-bottom: 0 !important;
}

.form-control {
    border-radius: 10px !important;
    border: 1px solid var(--etek-line) !important;
    box-shadow: none !important;
    height: 42px;
}

    .form-control:focus {
        border-color: var(--etek-primary) !important;
        box-shadow: 0 0 0 3px rgba(37,99,235,.15) !important;
    }

/* --------------------- Hộp danh sách đề thi --------------------- */
.box-exam {
    background: #fff !important;
    border: 1px solid var(--etek-line) !important;
    border-radius: 12px;
    overflow: hidden;
}

.head-box-exam {
    background: var(--etek-navy) !important;
    color: #fff !important;
    border-bottom: 0 !important;
}

.box-exam li {
    background: #fff !important;
    border-bottom: 1px solid var(--etek-line) !important;
}

    .box-exam li a {
        color: #334155 !important;
    }

        .box-exam li a:hover,
        .box-exam li.active a {
            color: var(--etek-primary) !important;
        }

    .box-exam li.passed a {
        color: var(--etek-green) !important;
    }

    .box-exam li:hover,
    .box-exam li.active {
        background: var(--etek-blue-soft) !important;
    }

/* ----------------------------- Bảng ----------------------------- */
.table {
    border: 1px solid var(--etek-line) !important;
    border-radius: 12px;
    overflow: hidden;
}

    .table table th {
        background: var(--etek-soft) !important;
        color: var(--etek-ink);
    }

.list-result table th {
    background: var(--etek-navy) !important;
    color: #fff;
}

.list-result .bg2,
.table table tr.bg2 {
    background: var(--etek-soft) !important;
}

/* --------------------------- Đăng nhập -------------------------- */
.loginsite {
    background: #fff !important;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(8,15,30,.45);
    padding: 30px !important;
    width: 360px !important;
    max-width: 92% !important;
}

    .loginsite li p {
        color: var(--etek-ink) !important;
        font-weight: 600;
        font-size: 13px;
    }

    .loginsite li input:not([type="checkbox"]):not([type="radio"]) {
        background: var(--etek-soft) !important;
        border: 1px solid var(--etek-line) !important;
        border-radius: 10px;
        height: 46px !important;
        line-height: 46px !important;
    }

        .loginsite li input:not([type="checkbox"]):not([type="radio"]):focus {
            border: 1px solid var(--etek-primary) !important;
            box-shadow: 0 0 0 3px rgba(37,99,235,.15);
        }

/* Dòng "Đăng nhập với vai trò giảng viên": click cả chữ, checkbox gọn, có khoảng cách */
.loginsite li .login-role {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: var(--etek-ink);
    font-weight: 500;
    font-size: 14px;
    padding: 2px 0;
    width: 100%;
}

    .loginsite li .login-role input[type="checkbox"] {
        -webkit-appearance: checkbox;
        appearance: checkbox;
        display: inline-block !important;
        width: 16px !important;
        height: 16px !important;
        min-height: 0 !important;
        line-height: normal !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 3px;
        flex: 0 0 auto;
        vertical-align: middle;
        accent-color: var(--etek-primary);
        cursor: pointer;
    }

    .loginsite li .login-role span {
        line-height: 1.3;
    }

    .loginsite li a.login {
        background: var(--etek-primary) !important;
        border-radius: 10px;
        font-weight: 700;
        height: 46px !important;
        line-height: 46px !important;
    }

        .loginsite li a.login:hover {
            background: var(--etek-primary-d) !important;
        }

li.logo-login {
    border-bottom: 1px solid var(--etek-line) !important;
}

/* ----- Bỏ viết HOA toàn bộ (CSS cũ) để dễ đọc, giống thiết kế ----- */
.menu-top,
.left-bar,
#divFEContentSkill,
#divFEContentLecture,
#divSiteMap {
    text-transform: none !important;
}

/* ----- Icon tài liệu: ic-doc.png là icon sáng -> vô hình trên thẻ trắng.
        Ẩn ảnh, thay bằng badge icon SVG màu xanh để luôn hiển thị rõ. ----- */
.blocklist-cate li a img,
.chose-cate li p img {
    display: none !important;
}

.blocklist-cate li a::before,
.chose-cate li p::before {
    content: "";
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    background-color: var(--etek-blue-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* --------------------------- Responsive ------------------------- */
@media (max-width: 1200px) {
    .list-course ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .list-course ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .list-course ul {
        grid-template-columns: 1fr;
    }

    .header .logo span {
        font-size: 16px !important;
    }
}

/* =====================================================================
   Menu trái (accordion) — làm lại gọn đẹp:
   bỏ icon bánh răng cũ + mũi tên, dùng icon SVG, chữ & khoảng cách rõ ràng
   ===================================================================== */
/* Bỏ ảnh icon cũ (mc3.png), bullet và mọi mũi tên trang trí mặc định */
.menuleft-bar img { display: none !important; }
#accordian, #accordian ul, #accordian li { list-style: none !important; }
#accordian > ul { padding: 10px 8px 18px !important; margin: 0 !important; }
#accordian > ul > li { margin: 0 0 4px !important; padding: 0 !important; background: none !important; }
#accordian > ul > li::before,
#accordian > ul > li::after { content: none !important; }

/* Tiêu đề nhóm (Thiết bị / Ngành nghề) */
#accordian h3 {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 2px 0 !important;
    padding: 11px 12px !important;
    border-radius: 10px;
    background: var(--etek-soft) !important;
    border: 1px solid var(--etek-line) !important;
    color: var(--etek-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    cursor: pointer;
    background-image: none !important;
}

    #accordian h3::after { content: none !important; }

    #accordian h3 > div {
        margin: 0 !important;
        flex: 1;
        min-width: 0;
        white-space: normal;
        word-break: break-word;
    }

    #accordian h3::before {
        content: "";
        flex: 0 0 auto;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background-color: var(--etek-blue-soft);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 17px 17px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z'/%3E%3C/svg%3E");
    }

#accordian li.active > h3,
#accordian h3:hover {
    background: var(--etek-blue-soft) !important;
    border-color: #BFDBFE !important;
    color: var(--etek-primary) !important;
}

/* Cấp 3: Bộ thiết bị dưới mỗi Môn (cây Thiết bị ETEK) */
#accordian ul ul ul.etek-set-tree { padding: 0 0 4px 14px !important; margin: 0 !important; }
#accordian ul ul ul.etek-set-tree li a { font-size: 12.5px !important; color: #64748b !important; padding: 6px 10px !important; }

/* Mục con (Môn học / Bài giảng) */
#accordian ul ul { padding: 2px 0 6px 8px !important; margin: 0 !important; }
#accordian ul ul li { margin: 0 !important; padding: 0 !important; }

#accordian ul ul li a {
    display: flex !important;
    align-items: center;
    gap: 9px;
    height: auto !important;
    line-height: 1.35 !important;
    padding: 9px 10px !important;
    margin: 2px 0 !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 9px;
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500;
}

    #accordian ul ul li a > div {
        float: none !important;
        display: flex;
        align-items: center;
        gap: 9px;
        width: 100% !important;
        min-width: 0;
    }

        #accordian ul ul li a > div > div {
            float: none !important;
            margin: 0 !important;
        }

        /* Ẩn ô chứa icon ảnh cũ; dùng icon ::before thay thế */
        #accordian ul ul li a > div > div:first-child:not(:last-child) {
            display: none !important;
        }

        #accordian ul ul li a > div > div:last-child {
            width: auto !important;
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    #accordian ul ul li a::before {
        content: "";
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px;
        opacity: .85;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    }

    #accordian ul ul li a:hover,
    #accordian ul ul li a.active {
        background: var(--etek-blue-soft) !important;
        color: var(--etek-primary) !important;
    }

/* Mục đặc biệt: Thiết bị ETEK / Thiết kế mạch điện mô phỏng (tông cam) */
#accordian > ul > li > a.no-padding {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 8px !important; /* tách rõ với tab phía trên, tránh dính/đè nhau */
}

    /* h3 trong tab đặc biệt: bỏ margin để 2 tab cam không chồng mép */
    #accordian > ul > li > a.no-padding h3 {
        margin: 0 !important;
    }

    #accordian > ul > li > a.no-padding h3 {
        background: #FFF7ED !important;
        border-color: #FED7AA !important;
        color: var(--etek-accent-d) !important;
    }

        #accordian > ul > li > a.no-padding h3:hover {
            background: #FFEDD5 !important;
        }

        #accordian > ul > li > a.no-padding h3::before {
            background-color: #FFEDD5;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23EA580C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3'/%3E%3C/svg%3E");
        }
