img {
    max-width: 100%;
}
a {
    text-decoration: none;
}
main {
    min-height: 900px;
}
.top-header-course {
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 0;
}
.logo img {
    height: 32px;
}
header .intro-btn {
    
}
header .section-inner {
    padding: 10px 0;
}
header .search {
    padding-top: 3px;
}
header .search .input-group-text {
    border: 1px solid #fff;
    border-radius: 0;
    background: transparent;
    color: var(--primary-text-color);
    border-right: none;
}
header .search input#inputSearch {
    background: transparent;
    border-radius: 0 ;
    color: var(--primary-text-color);
    border-left: none;
}
header .search input::placeholder {
    color: var(--primary-text-color);
}
header .search input:focus {
    background: transparent;
}
header .right-content {
    padding-top: 3px;
}
header .btn {
    border-radius: 0;
}
/* Dropdown menu trong submenu */

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

header .navbar .nav-item > a {
    color: white;
    font-weight: bold;
}
.dropdown-menu li {
    position: relative;
    }
    /* .dropdown-menu .dropdown-submenu-ul {
    display: none;
    position: relative;
    }
 
    .dropdown-menu > li:hover > .dropdown-submenu-ul {
    display: block;
    } */
/* End Dropdown menu trong submenu */
.home-categories .category {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
    text-align: center;
}
.home-categories .category .cat-image {
    height: auto;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}
.home-categories .category .cat-name {
    padding: 20px 16px;
}
.home-categories .category .cat-name h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 0;
}
.home-categories .category .cat-name a {
    color: #202020;
    text-decoration: none;
}
.home-categories .category .cat-name a:hover {
    color: #000;
}
.feature-courses .course {
    margin-top: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e5e5e5;
    text-align: center;
}
.feature-courses .course .course-image {
    height: 178px;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}
.feature-courses .course .course-info {
    padding: 20px 16px;    
}
.feature-courses .course .course-info .course-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 10px;
}
.feature-courses .course .course-info .course-name a {
    color: #202020;
    text-decoration: none;
}
.feature-courses .course .course-info .course-name a:hover {
    color: #000;
}
.feature-courses .course .teacher svg {
    width: 20px;
    height: 20px;
}
.feature-courses .course .teacher {
    color: #6d6d6d;
}
.feature-courses .course .row-3 table {
    margin-top: 5px;
    width: 100%;
    color: #6d6d6d;
}
.feature-courses .course .row-3 table tr td:first {
    width: 50%;
}
.feature-courses .course .row-4 {
    display: flex;
    justify-content: space-between;
}
.feature-courses .line-bar {
    border-bottom: 1px solid #eee;
    margin: 16px 0;
    position: relative;
}
.feature-courses .price {
    font-weight: 500;
    font-size: 14px;
    line-height: 40px;
    color: #202020;
}
main {
    padding-bottom: 50px;
}
footer .section-inner {
    padding: 25px 0 30px;
}
.course-page .course-heading .course-name {
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 8px;
}
.course-page .right-content .section-title {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #000;
}
svg {
    width: 20px;
    height: 20px;
}
.course-page .right-content, .course-page .left-content {
    margin-top: 40px;
}
.list-benefits {
    padding: 0;
    list-style: none;
    display: -moz-box;
    display: flex;
    flex-wrap: wrap;
    -moz-box-align: start;
    align-items: flex-start;
    -moz-box-pack: justify;
    justify-content: space-between;
}
.list-benefits li {
    width: 49%;
    margin-bottom: 16px;
    display: -moz-box;
    display: flex;
    -moz-box-align: start;
    align-items: start;
}
.list-benefits li svg {
    margin-right: 16px;
}
.features {
    padding: 24px;
}
.list-features {
    padding: 0;
    list-style: none;
    display: -moz-box;
    display: flex;
    flex-wrap: wrap;
    -moz-box-align: start;
    align-items: flex-start;
    -moz-box-pack: justify;
    justify-content: space-between;
}
.list-features li {
    margin-bottom: 16px;
    display: -moz-box;
    display: flex;
    -moz-box-align: start;
    align-items: start;
}
.list-features li svg {
    margin-right: 16px;
}
.course-page .left-content {
    background-color: #fff;
    border-radius: 5px;
    -webkit-box-shadow: 0 4px 7px rgba(0, 0, 0, .12);
    box-shadow: 0 4px 7px rgba(0, 0, 0, .12);
}
.course-page .left-content .thumbnail {
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}
.course-page .left-content .price {
    padding: 24px;
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
}
.course-content .left-content .button {
    margin: 0 24px;
    padding: 12px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}
.left-content hr {
    margin: 24px 24px 0;
}
.list-lessons {
    padding: 0;
    list-style: none;
    display: block;
}
.list-lessons li {    
    padding: 16px;
}
.list-lessons li:hover {
    background-color: #e5e5e5;
}
.list-lessons li .lesson-title {
    display: flex;
}
.list-lessons li .lesson-duration {
    display: flex;
    font-size: 14px;
}
.list-lessons li svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}
.academy-btn {
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    text-align: center;
}
/* Bắt đầu trang học trực tuyến  */
.online-course .section-title {
    margin-bottom: 15px;
    padding: 10px 15px;
}
.online-course .course-sidebar {
    padding: 15px 15px 50px;
    max-height: 600px;
    overflow-y: scroll;
}
.online-course .course-sidebar .chapter-title {
    font-size: 18px;
    line-height: 1.4;
}
.online-course .course-content {
    min-height: 600px;
}
.online-course .course-content .vimeo-iframe {
    width:100%;
    height:498px;
}
.online-course .course-content .youtube-iframe {
    width:100%;
    height:499px;
}
.online-course .course-sidebar .lesson-title {
    text-decoration: none;
    display: flex;
}
.online-course .course-sidebar .lesson-title svg {
    margin-right: 8px;
}
.online-course .course-sidebar .active a {
    color: #fff;
}
.online-course .accordion-button {
    padding: 10px;
}
.online-course .course-sidebar .accordion-body {
    padding: 10px 0 15px;
}
@media screen and (max-width: 780px) {
    .online-course .course-content {
        min-height: 450px;
        background-color: #fff;
        box-shadow: 1px 1px 1px #ccc;
    }
    .online-course .course-content .vimeo-iframe {
        width:100%;
        height:420px;
    }
    .online-course .course-content .youtube-iframe {
        width:100%;
        height:459px;
    }
}
@media screen and (max-width: 600px) {
    .online-course .course-content {
        min-height: 300px;
        background-color: #fff;
        box-shadow: 1px 1px 1px #ccc;
    }
    .online-course .course-content .vimeo-iframe {
        width:100%;
        height:275px;
    }
    .online-course .course-content .youtube-iframe {
        width:100%;
        height:299px;
    }
    .home-categories .category .cat-image {
        height: auto;
    }
    .feature-courses .course .course-image {
        height: auto;
    }
}

/* Nội dung bài giảng */
blockquote {
    border-left: 3px solid rgb(120, 119, 116);
    padding-left: 1rem;
}
.callout-block, .callout {
    width: 100%;
    border-radius: 4px;
    background: rgb(241, 241, 239);
    padding: 16px 16px 16px 12px;
}
.course-content .tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
}
.course-content .tab-pane {
    padding: 25px 20px;
}
/* Support Icons */
.icon-container svg {
    width: 50px;
    height: 50px;
}
.icon-container .elementor-icon img {
    width: 50px;
    height: 50px;
}
.icon-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    text-align: center;
    transition: background .3s, border .3s, border-radius .3s, box-shadow .3s, transform var(--e-transform-transition-duration, .4s);
}
@media screen and (max-width: 768px) {
    .icon-container {
        width: 120px;
        bottom: 30px;
        right: 20px;
        left: auto;
    }
}
.icon-container .icons-wrapper {
    display: inline-grid;
}
.icon-container .icons-wrapper .icon-item {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 0 45px 2px rgba(0, 0, 0, .4), inset 0 0 0 35px rgba(255, 255, 155, .4);
    border-radius: 999px;
    margin-bottom: 10px;
}
@keyframes pulsejg1 {
    0% {
        transform: scale(.6);
        opacity: 0;
    }
    50% {
        transform: scale(.6);
        opacity: 0;
    }
    60% {
        transform: scale(.9);
        opacity: .1;
    }
    70% {
        transform: scale(1.1);
        opacity: .25;
    }
    80% {
        transform: scale(1.25);
        opacity: .1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.icon-container .icons-wrapper .icon-item:before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    margin: auto;
    opacity: 0;
    border: 3px solid rgba(255, 255, 255, .5);
    animation: pulsejg1 2s linear infinite;
    border-radius: 999px;
    box-shadow: 0px 0px 15px 10px #000;
    box-sizing: border-box;
    text-align: center;
    display: flex;
}
@keyframes icon-animation {
    0% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
        transform: rotate(0) scale(1) skew(1deg);
    }
    10% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
        -webkit-transform: rotate(-25deg) scale(1) skew(1deg);
        transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
        -webkit-transform: rotate(25deg) scale(1) skew(1deg);
        transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
        transform: rotate(0) scale(1) skew(1deg);
    }
    100% {
        -webkit-transform: rotate(0) scale(1) skew(1deg);
        transform: rotate(0) scale(1) skew(1deg);
    }
}
.icon-container .icons-wrapper .icon-item .elementor-icon {
    background-color: #000;
    animation: icon-animation 2s linear infinite;
    border-radius: 50%;
    margin: 0;
    font-size: 25px;
    line-height: 25px;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    color: #69727d;
    display: flex;
}

/* CSS tùy chỉnh cho bubble hỗ trợ */
.support-bubble {
    display: inline-block;
    font-weight: 600;
    /* Áp dụng animation scale-pulse */
    animation: scale-pulse 1.5s infinite ease-in-out; /* Thời gian 1.5s cho mỗi chu kỳ */
    transition: transform 0.2s ease-in-out;
    /* Giữ nguyên các class Bootstrap styling */
    transform-origin: center; /* Đảm bảo co giãn từ tâm */
}

.support-bubble:hover {
    transform: scale(1.1); /* Phóng to hơn một chút khi hover */
    animation-play-state: paused; /* Tạm dừng animation khi hover */
}

/* Định nghĩa animation scale-pulse */
@keyframes scale-pulse {
    0% {
        transform: scale(1);
        /* Có thể thêm shadow nếu muốn */
        /* box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); */
    }
    50% {
        transform: scale(1.08); /* Phóng to lên 8% */
        /* Có thể tăng shadow khi phóng to */
        /* box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); */
    }
    100% {
        transform: scale(1);
        /* box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); */
    }
}

/* Nếu bạn muốn shadow tĩnh từ class 'shadow-sm' của Bootstrap hoạt động,
   thì không cần định nghĩa box-shadow trong keyframes.
   Nếu bạn muốn shadow thay đổi theo animation, hãy bỏ comment box-shadow
   trong keyframes và có thể thêm dòng sau để tránh xung đột: */
.support-bubble.shadow-sm {
     box-shadow: none; /* Để animation kiểm soát shadow */
}

/* Zalo modal */
#zaloModal {
    color: #333;
}
#zaloModal .support-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
#zaloModal .icon-title {
    font-weight: bold;
    margin-top: 5px;
}


/* End Support Icons */

/* Trang top công cụ AI */
.top-ai-tools .ai-tool-item {
    display: block;
}
.top-ai-tools .ai-tool-item .name { 
    font-size: 18px;
    margin-top: 10px;
}
.top-ai-tools .ai-tool-item img { 
 max-height: 120px;   
}
.sieutrolyai {
    margin: 0 auto;
    max-width: 1040px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.sieutrolyai .sieutrolyai-item .img img {
    max-width: 80px;
}
.sieutrolyai .sieutrolyai-item {
    display: block;
    box-sizing: border-box;
    width: 200px;
    padding: 15px;
    margin: 1px;
}
.sieutrolyai .sieutrolyai-item.bg1 {
    background-color: #f9b508;
    color: #030548;
}
.sieutrolyai .sieutrolyai-item.bg2 {
    background-color: #030548;
    color: #f9b508;
}
.sieutrolyai .sieutrolyai-item .name {
    margin-top: 10px;
    font-weight: bold;
}




/* Container cho toàn bộ sidebar khóa học */
.course-playlist-container {
    background-color: #f7f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

/* Phần thanh tiến độ */
.course-progress .progress-text {
    font-size: 0.9rem;
    color: #555;
}
.course-progress .progress-percentage {
    color: var(--primary-background-color, #000);
}
.course-progress .progress {
    background-color: #e9ecef;
    border-radius: 8px;
}
.course-progress .progress-bar {
    border-radius: 8px;
    transition: width 0.6s ease;
}

/* Scrollbar cho danh sách bài học */
.online-course .course-sidebar {
    padding: 0; /* Ghi đè padding cũ */
    max-height: 550px; /* Điều chỉnh chiều cao nếu cần */
    overflow-y: auto;
    border-top: 1px solid #dee2e6;
}

/* Tùy chỉnh Scrollbar */
.course-sidebar::-webkit-scrollbar {
  width: 6px;
}
.course-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.course-sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
.course-sidebar::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}


/* Tùy chỉnh Accordion (Chương học) */
#course-playlist-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef; /* Đường kẻ phân cách giữa các chương */
}
#course-playlist-accordion .accordion-item:last-child {
    border-bottom: none;
}

#course-playlist-accordion .accordion-header {
    font-size: 1rem;
}

#course-playlist-accordion .accordion-button {
    font-weight: 600;
    color: #212529;
    background-color: #fff;
    padding: 1rem 1.25rem;
    box-shadow: none !important; /* Loại bỏ box-shadow khi focus */
}
#course-playlist-accordion .accordion-button:not(.collapsed) {
    background-color: #f7f9fa;
}

/* Tùy chỉnh icon expand/collapse của Accordion */
#course-playlist-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform .2s ease-in-out;
}
#course-playlist-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}


/* Tùy chỉnh Danh sách bài học (Lesson list) */
.course-playlist-container .list-group-item {
    padding: 0.85rem 1.25rem;
    border: none;
    background-color: #fff;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.course-playlist-container .lesson-link {
    color: #343a40;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
}

.course-playlist-container .lesson-duration {
    font-size: 0.8rem;
    margin-top: 2px;
}

.course-playlist-container .lesson-status-icon {
    margin-top: 2px;
}

/* Trạng thái Hover */
.course-playlist-container .list-group-item:not(.active):hover {
    background-color: #f8f9fa;
}

/* Trạng thái Đã hoàn thành (Completed) */
.course-playlist-container .list-group-item.completed .lesson-link {
    color: #6c757d; /* Màu chữ mờ đi */
    font-weight: normal;
}
.course-playlist-container .list-group-item.completed .lesson-status-icon svg {
    color: var(--primary-background-color, #28a745) !important; /* Dùng màu chính của web hoặc màu xanh */
}

/* Trạng thái Đang học (Active) */
.course-playlist-container .list-group-item.active {
    /* SỬA DÒNG NÀY: Dùng biến CSS đã định nghĩa trong file Blade */
    background-color: var(--primary-background-color-light, #f0f8ff); /* Dùng màu xanh nhạt làm dự phòng */
    
    border-left: 4px solid var(--primary-background-color, #000);
    padding-left: calc(1.25rem - 4px);
}
.course-playlist-container .list-group-item.active .lesson-link {
    color: var(--primary-background-color, #000);
    font-weight: 700;
}
.course-playlist-container .list-group-item.active .lesson-status-icon svg {
    color: var(--primary-background-color, #000);
}


/* Container chính của các tab */
.course-content .nav-tabs {
    border-bottom: 2px solid #e9ecef; /* Tạo một đường kẻ nền mỏng, full-width */
}

/* Kiểu dáng cho từng tab link (button) */
.course-content .nav-tabs .nav-link {
    border: none; /* Loại bỏ hoàn toàn border mặc định của Bootstrap */
    border-bottom: 3px solid transparent; /* Tạo một border dưới trong suốt để không bị giật layout khi active */
    
    color: #6c757d; /* Màu chữ xám cho các tab không active */
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.8rem 0; /* Tăng khoảng cách trên dưới, bỏ padding trái phải */
    margin: 0 1.5rem 0 0; /* Tạo khoảng cách giữa các tab */
    margin-bottom: -2px; /* Kéo tab xuống để đè lên đường kẻ nền của container */
    
    transition: color 0.2s ease, border-color 0.2s ease; /* Hiệu ứng chuyển động mượt mà */
}

/* Bỏ margin phải của tab cuối cùng */
.course-content .nav-tabs .nav-link:last-child {
    margin-right: 0;
}

/* Khi hover vào một tab không active */
.course-content .nav-tabs .nav-link:not(.active):hover {
    color: #212529; /* Đổi màu chữ thành màu đen */
    border-bottom-color: #dee2e6; /* Hiển thị một đường gạch chân xám nhạt */
}

/* Khi một tab được chọn (active) */
.course-content .nav-tabs .nav-link.active,
.course-content .nav-tabs .nav-item.show .nav-link {
    color: var(--primary-background-color, #000); /* Dùng màu chủ đạo của website */
    font-weight: 700; /* In đậm chữ */
    background-color: transparent; /* Đảm bảo không có màu nền */
    
    /* Chỉ hiển thị border dưới với màu chủ đạo */
    border-color: transparent transparent var(--primary-background-color, #000); 
}

/* Loại bỏ viền xanh dương khi focus vào tab (để trông gọn gàng hơn) */
.course-content .nav-tabs .nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Nội dung của tab (tab-content) */
.course-content .tab-content {
    /* Chúng ta bỏ border của tab-content để giao diện thoáng hơn */
    border: none; 
    /* Tăng khoảng cách với các tab bên trên */
    margin-top: 2rem; 
    padding: 0; /* Reset padding để nội dung bên trong tự quyết định */
}

/* Padding cho từng tab-pane để nội dung không bị dính sát lề */
.course-content .tab-pane {
    padding: 0 5px; /* Thêm một chút padding trái phải */
}


