body, div, ul, li, a, button, td, span{
    font-family: 'Open Sans', sans-serif !important;
}
a{
    text-decoration: none;
}

.cropped-home-banner{
    position: absolute;
    width: 0px;
    height: 0px;
    top: 0;
    border-left: 0px solid #f9f9f900;
    border-right: 70px solid #13d76203;
}


@media only screen and (max-width: 766px){
    .cropped-home-banner{
        display: none;
    }
    .home-banner-area{
        background: none !important;
        padding: 80px 0 75px !important;
    }
    .home-banner-wrap{
        max-width: 100% !important;
        text-align: center;
    }
}
.bg-background{
    background: #f9f9f9;
}
.bg-transparent{
    background: #00000000 !important;
}
.top-categories{
    width: 100%;
    height: 100%;
    padding: 20px 35px;
    display: inline-flex;
    border: 1px solid #e4e4e4;
    text-decoration: none;
    display: grid;
    align-content: center;
}
.top-categories:hover, .top-categories:focus{
    background-color: #ec5252;
    background-image: url('../img/category-bg.png');
    background-size: cover;
    background-position: 50%;
    transition: all .5s;
}
.category-icon{
    width: 45px;
    height: 45px;
    background-color: #ec5252;
    color: #fff;
    border-radius: 50px;
    font-size: 20px;
    line-height: 45px;
    text-align: center;
    margin: 10px 0px;
}
.top-categories:hover .category-icon, .top-categories:focus .category-icon{
    background-color: #fff;
    color: #000;
}
.category-title{
    font-weight: 600;
}
.top-categories:hover .category-title, .top-categories:focus .category-title{
    color: #fff;
}
.category-title p{
    color: #b4b4b4;
    font-size: 13px;
    font-weight: 400 !important;
    margin-top: 2px;
    margin-bottom: 1px;
}
.top-categories:hover .category-title p, .top-categories:focus .category-title p{
    color: #efdcdc;
}
.divider-1{
    background-color: #b8c3c5;
    margin-left: -15px;
    margin-right: -10px;
    margin-top: 12px;
    margin-bottom: 6px;
}

.compare-row{
    margin-top: 25px;
    background-color: #fff;
    border: 1px solid #f9f9f9;
    border-radius: 10px;
    padding: 28px 10px;
}
.btn-compare-sm{
    color: #066ac9;
    background: #eff4ff;
    font-size: 11px;
    border-radius: 5px;
    text-align: center;
    height: 25px;
    border: none;
    line-height: 24px;
    margin-top: 3px;
}
.btn-compare-sm i{
    margin-right: 4px;
}
.btn-compare-sm:hover, .btn-compare-sm:focus{
    color: #fff;
    background: #066ac9;
}
.badge-sub-warning{
    background-color: #eceb98 !important;
    color: #3c3c2d !important;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
}
.badge-primary{
    background-color: #066ac9 !important;
    color: #fff !important;
    padding: 6px 10px;
    font-weight: 500;
}
.floating-user{
    width: auto;
    height: 30px;
}
.floating-user img{
    border-radius: 15px;
    position: absolute;
}
.floating-user img:hover, .floating-user img:focus{
    z-index: 999;
}
.become-user-label{
    padding: 30px 25px;
    border-radius: 10px;
    background-repeat: no-repeat;
    background-position: right;
}
.bg-sub-primary{
    background-color: #e6f0f9;
}
.bg-sub-danger{
    background-color: #fcebeb;
}

.text-sub-warning{
    color: #eceb98 !important;
}
.footer-area{
    color: #bfc8da;
}
.footer-hover-link{
    text-decoration: none;
    font-size: 13px;
    color: #bfc8da;
    font-weight: 500;
}
.footer-hover-link:hover{
    color: #efefef !important;
}

.language_selector{
    border-radius: 5px;
    font-size: 14px;
    background: #066ac9;
    border-color: #066ac9;
    color: #bfc8da;
    padding: 6px 10px;
}
.footer-summary{
    color: #fff;
    padding: 29px 30px;
    background: linear-gradient(360deg, rgba(10,28,58,1) 0%, rgba(35,52,81,1) 100%);
}
.footer-summary h3, .footer-summary h4, .footer-summary h5{
    line-height: 32px;
    font-size: 22px;
}
ul.footer-social-link{
    list-style: none;
    padding-left: 0px;
    height: 30px;
}
ul.footer-social-link li{
    float: left;
    background-color: #293e61;
    color: #fff;
    margin: 0px 8px 0px 0px;
    border-radius: 50%;
    height: 32px;
    width: 32px;
    line-height: 32px;
    text-align: center;
    transition: all .3s;
}
.border-top-sub-blue{
    border-top: 1px solid #293e61;
}
ul.footer-social-link li.active, ul.footer-social-link li:hover{
    background-color: #ec5252;
    transition: all .3s;
}
ul.footer-social-link li a{
    display: block;
    color: #fff;
    font-size: 15px;
}
ul.footer-social-link li a:hover{
    color: #ddd;
}




section.featured-instructor{
    background: white;
    padding: 30px 0px 0px 0px;
}
.top-instructor-img{
    max-width: 250px;
}
.top-instructor-img img{
    border-radius: 10px 0px 0px 10px;
}
@media only screen and (min-width: 1200px){
    .top-instructor-details{
        margin: 0;
        position: absolute;
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        right: 0;
        max-width: 58%;
        padding: 0px 22px;
    }
}
.top-istructor-slick .slick-prev:before{
    color: #066ac9;
    font-size: 25px;
    margin-right: -25px;
}

.top-istructor-slick .slick-next:before{
    color: #066ac9;
    font-size: 25px;
    margin-left: -25px;
}

.slick-list.draggable{
    border-radius: 10px;
    margin: 0px 12px;
}




/*.instructor-summary .slick-prev:before{
    font-family: "Font Awesome 5 Free";
    content: f30a;
    color: #040404;
}
.instructor-summary .slick-next:before{
    font-family: "Font Awesome 5 Free";
    content: f30b;
    color: #040404;
}*/
.instructor-summary .slick-track{
    padding: 0px;
}

.instructor-summary .instructor-image{
    width: 100%;
    text-align: center;
    position: relative;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: -100px;
    z-index: -1;
}

.instructor-summary img{
    height: 200px;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}
.instructor-summary .summary-box{
    border-radius: 8px;
    background-color: #066ac9;
    color: #fff;
    padding: 22px 25px;
    margin: 0px 40px;
}
.instructor-summary .summary-box .summary-body{
    font-size: 14px;
}
.instructor-summary .summary-box .summary-footer{
    width: 100%;
    display: flex;
    margin-top: 20px;
}
@media only screen and (max-width: 500px){
    .instructor-summary .summary-box .summary-footer{
        display: inline-grid;
    }
    .instructor-summary .summary-box .summary-footer .name{
        margin-top: 10px;
    }
}
.instructor-summary .summary-box .summary-footer .badge{
    background-color: #3e95e8;
}
.instructor-summary .summary-box .summary-footer .name{
    width: auto;
    margin-left: auto;
    padding-left: 100px;
    white-space: nowrap;
}
.instructor-summary .summary-box .summary-footer .name > h6{
    color: #fff;
    margin: 0px !important;
    font-size: 15px;
    font-weight: 700;
}
.instructor-summary .summary-box .summary-footer .name > h6::before{
    content: "";
    position: absolute;
    background-color: white;
    width: 80px;
    height: 1.5px;
    border-radius: 5px;
    margin-top: 9px;
    margin-left: -90px;
}
.instructor-summary .summary-box .summary-footer .name > span{
    font-size: 12px;
    color: #ffffff;
}







.hover-shadow-1:hover{
    box-shadow: 0px 0px 5px 0px #9090902e !important;
}
.image-placeholder-1{
    position: absolute;
    width: 100%;
    height: 100% !important;
    background: linear-gradient(91deg, rgb(0 0 0 / 24%) 0%, rgba(0,35,51,0) 100%) !important;
}
.image-placeholder-2{
    position: absolute;
    width: 100%;
    height: 100% !important;
    background: linear-gradient(91deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 50%) 100%) !important;
}

.image-placeholder-3{
    position: absolute;
    width: 100%;
    height: 100% !important;
    background: linear-gradient(91deg, rgb(0 0 0 / 42%) 0%, rgb(0 35 51 / 0%) 100%) !important
}

.compare-row{
    margin-top: 25px;
    background-color: #fff;
    border: 1px solid #f9f9f9;
    border-radius: 10px;
    padding: 28px 10px;
}
.compare-row-icon{
    height: 26px;
    width: 26px;
    line-height: 26px;
    background: #444;
    border-radius: 5px;
    font-size: 13px;
    color: #fff;
    text-align: center;
}
.skill-level-icon{
    width: 24px;
    height: 24px;
    background-color: transparent;
}
.skill-level-icon span{
    background-color: #dcdee1;
    margin-left: 1.5px;
    margin-right: 1.5px;
    float: left;
}
.skill-level-icon .active{
    background-color: #ec5252;
}
.skill-level-icon span:first-of-type{
    width: 5px;
    height: 8px;
    margin-top: 16px;
}
.skill-level-icon span:nth-of-type(2n){
    width: 5px;
    height: 16px;
    margin-top: 8px;
}
.skill-level-icon span:last-of-type{
    width: 5px;
    height: 24px;
}

.marge-input-box input{
    border-radius: 10px 0px 0px 10px;
    border-right: 0px;
    font-size: 13px;
}

.marge-input-box .input-group-append{
    border: 1px solid #cccfe7;
    border-radius: 0px 10px 10px 0px;
    border-left: none !important;
}
.marge-input-box button{
    background: #ec5252;
    color: #fff;
    font-weight: 500;
    margin: 5px;
    font-size: 13px;
    border-radius: 8px;
}
.marge-input-box button:hover{
    background: #cd4f4f;
    color: #fff;
}








/*Signup & sign in page login*/
.sign-up-form{
    background: #fff;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px -1px #ebebeb;
}
.sign-up-form .form-group{ margin-bottom: 15px; }
.sign-up-form .form-group label{
    color: #5c5c5c;
    font-weight: 600;
}
.sign-up-form .form-group .input-group span{
    border-right: none;
    padding: 12px 8px 12px 15px;
    border-radius: 10px;
    color: #878787;
    font-size: 15px;
    font-weight: 500;
}
.sign-up-form .form-group .input-group input{
    border-left: none;
    padding: 12px 5px;
    border-radius: 10px;
    color: #878787;
    font-size: 13px;
    font-weight: 500;
}
/*End Signup & sign in page login*/




/*used on Home page*/
.animated-loader{
    width: 100px;
    height: 100px;
    line-height: 100px;
    padding: 0px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.common-search-box{
    margin-right: 50px;
    padding: 0px 0;
}
.common-search-box input{
    background-color: hsl(192deg 33% 97%);
    border: 1px solid hsl(192deg 33% 97%);
    height: 40px;
    padding: 0 15px;
    border-radius: 5px 0 0 5px;
    font-size: 13px;
}
.common-search-box input:focus{
    background-color: #fff;
    border-color: #dedfe0;
    border-right-color: transparent;
}
.common-search-box input:focus + .input-group-button{
    background-color: #fff !important;
    border-top: 1px solid #dedfe0 !important;
    border-right: 1px solid #dedfe0 !important;
    border-bottom: 1px solid #dedfe0 !important;
    padding: 5px 9px 5px 10px !important;
}
.common-search-box button{
    background-color: #ec5252 !important;
    border-color: #ec5252;
    color: #fff;
    padding: 1px 6px;
    border-radius: 6px;
}
.common-search-box button:hover{
    color: #efefef;
}
.common-search-box .input-group-button {
    background-color: hsl(192deg 33% 97%);
    padding: 6px 10px 6px 10px;
    border-radius: 0px 5px 5px 0px;
}

/*Custom print content*/
    @media print{
        .print-content{
            position: fixed !important;
            margin: 0 !important;
            top: 0 !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0!important;
            z-index: 3333 !important;
            width: 100% !important;
            background: #fff !important;
        }
        footer, nav, title{
            display: none !important    ;
        }
        body{
            overflow: hidden !important ;
        }
    }
/*End Custom print content*/





/*BLOG start*/
    .card-blog{
        border-radius: 10px;
        margin: 30px 0px;
    }
    .card-blog > img{
        border-radius: 10px;
    }
    .card-blog-body{
        position: relative;
        height: 380px;
        border-radius: 10px;
    }
    .card-blog .blog-thumbnail{
        position: absolute;
        top: 0;
        width: 100%;
        height: 62%;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 10px;
        transition: all .3s;
        -webkit-transition:all 0.3s;
        -o-transition:all 0.3s;
        -moz-transition:all 0.3s;
    }
    .card-blog:hover .blog-thumbnail{
        height: 100%;
        background-position: center;
        transition: all .3s;
        -webkit-transition:all 0.3s;
        -o-transition:all 0.3s;
        -moz-transition:all 0.3s;
    }
    .card-blog:hover .card-blog-body::after{
        content: "";
        background: linear-gradient(360deg, rgb(0 0 0 / 82%) 0%, rgba(255,255,255,0) 72%);
        position: absolute;
        z-index: 500;
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .card-blog-body .blog-placeholder{
        position: absolute;
        bottom: 20px;
        z-index: 600;
        width: 100%;
    }
    .card-blog:hover .blog-placeholder{
        color: #fff !important;
        padding: 0px 20px;
    }
    .card-blog-body .cart-blog-title{
        font-size: 18px;
        margin-bottom: 15px;
        font-weight: 600;
        text-decoration: underline;
    }
    .card-blog-body .blog-info{
        width: 33.3%;
        text-align: center;
        height: 40px;
        font-size: 14px;
        font-weight: 500;
        padding: 7px 0px;
        color: #858585;
    }
    .card-blog:hover .blog-info{
        color: #fff !important;
    }


    .blog-search-input{
        height: 42px;
        background-color: #f9f9f9;
        border-bottom: 1px solid #cdcdcd;
        border-top: none;
        border-left: none;
        border-right: none;
        border-radius: 0px;
    }
    .blog-search-button{
        display: none;
        padding: 0px 20px;
        border: none;
        border-bottom: 1px solid #cdcdcd;
        background-color: #fff;
    }
    .ellipsis-line-2{
        display: -webkit-box!important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    .ellipsis-line-3{
        display: -webkit-box!important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    .ellipsis-line-4{
        display: -webkit-box!important;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    .ellipsis-line-5{
        display: -webkit-box!important;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
/*End Blog*/

.header-underline{
    position: relative;
}
.header-underline::before{
    content: "";
    position: absolute;
    background-color: #293e61;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    bottom: -7px;
}
.header-underline-2{
    position: relative;
}
.header-underline-2::before{
    content: "";
    position: absolute;
    background-color: #ec5252;
    width: 50%;
    height: 2px;
    border-radius: 2px;
    left: 25%;
    bottom: -7px;
}

.btn-primary:hover{
    background-color: #095299;
    border-color: #095299;
}

/* ============================================================== */
/* TỐI ƯU HIỂN THỊ TÊN BÀI HỌC DÀI BỊ DÍNH CHÙM (FLEXBOX)         */
/* ============================================================== */

.course-curriculum-accordion .lecture-list li,
.course-curriculum-box .lecture-list li {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Cấm rớt dòng trên Desktop */
}

.course-curriculum-accordion .lecture-list li .lecture-title,
.course-curriculum-box .lecture-list li .lecture-title {
    flex: 1; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-right: 15px; 
}

.course-curriculum-accordion .lecture-list li .lecture-time,
.course-curriculum-box .lecture-list li .lecture-time,
.course-curriculum-accordion .lecture-list li .lecture-info,
.course-curriculum-box .lecture-list li .lecture-info {
    flex-shrink: 0 !important; 
    float: none !important; 
    display: flex;
    align-items: center;
    gap: 10px; 
}

/* ============================================================== */
/* GIAO DIỆN MOBILE: HIỂN THỊ FULL TÊN BÀI & THỜI LƯỢNG RỚT DÒNG   */
/* ============================================================== */

@media only screen and (max-width: 768px) {
    /* Ép khung bài học thành cột dọc trên màn hình nhỏ */
    .course-curriculum-accordion .lecture-list li,
    .course-curriculum-box .lecture-list li {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 15px;
    }

    /* Nhả lệnh cắt chữ, cho phép tên bài rớt dòng tự nhiên */
    .course-curriculum-accordion .lecture-list li .lecture-title,
    .course-curriculum-box .lecture-list li .lecture-title {
        white-space: normal !important; 
        display: block !important;
        width: 100%;
        margin-right: 0 !important;
        line-height: 1.5; /* Giãn dòng cho chữ dễ đọc hơn */
    }

    /* Đẩy phần thông tin (Preview / Thời gian) xuống dưới cùng lề trái */
    .course-curriculum-accordion .lecture-list li .lecture-info,
    .course-curriculum-box .lecture-list li .lecture-info {
        width: 100%;
        margin-top: 10px; /* Cách tên bài học phía trên 10px */
        justify-content: flex-start !important; /* Dóng sang trái */
    }

    /* Trang trí phần thời gian thành dạng Tag (Nhãn) cho bắt mắt */
    .course-curriculum-accordion .lecture-list li .lecture-time {
        background-color: #f1f3f5; /* Nền xám nhạt */
        padding: 4px 10px;
        border-radius: 6px; /* Bo góc mềm mại */
        font-size: 12px;
        color: #555;
    }
}

/* Tổng thể khu vực Profile */
.profile-nav-section {
    background-color: #f8f9fa;
    padding-bottom: 40px;
}

/* Header chứa ảnh bìa và tiêu đề */
.profile-header-box {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c3e50, #4ca1af); /* Màu gradient hiện đại */
    color: white;
    margin-bottom: 40px;
}

.profile-header-box h1 {
    font-weight: 700;
    font-size: 28px;
    margin: 0;
}

/* Container bao quanh menu */
.modern-grid-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Tự động chia cột trên PC */
    gap: 15px;
}

/* Từng item trong menu */
.modern-grid-nav li a {
    display: flex;
    flex-direction: column; /* Icon nằm trên, chữ nằm dưới */
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
}

/* Icon trong menu */
.modern-grid-nav li a i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #718096;
    transition: color 0.3s;
}

.modern-grid-nav li a span {
    font-size: 14px;
    font-weight: 600;
}

/* Hiệu ứng Hover trên PC */
.modern-grid-nav li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
    color: #3182ce;
}

.modern-grid-nav li a:hover i {
    color: #3182ce;
}

/* Mục đang được chọn (Active) */
.modern-grid-nav li.active a {
    background: #ebf8ff;
    border: 2px solid #3182ce;
    color: #2c5282;
}

.modern-grid-nav li.active a i {
    color: #3182ce;
}

/* Badge tin nhắn */
.msg-count-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #f56565;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: bold;
}

.msg-item { position: relative; }

/* CSS ĐẶC BIỆT CHO ĐIỆN THOẠI - KHÔNG VUỐT NGANG */
@media (max-width: 767px) {
    .profile-header-box { padding: 40px 0; margin-bottom: 20px; }
    
    .modern-grid-nav {
        grid-template-columns: repeat(2, 1fr); /* Ép hiển thị 2 cột cực đẹp trên Mobile */
        gap: 10px;
        padding: 0 10px;
    }
    
    .modern-grid-nav li a {
        padding: 15px 5px;
        border-radius: 10px;
    }
    
    .modern-grid-nav li a i {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .modern-grid-nav li a span {
        font-size: 13px;
    }
}

/* ========================================================
   GIAO DIỆN DANH MỤC HÀNG ĐẦU (TOP CATEGORIES) - BẢN NHỎ GỌN
======================================================== */

/* Khung lưới */
.modern-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Cố định 4 cột trên Máy tính cho thẻ thon gọn */
    gap: 20px; /* Thu hẹp khoảng cách giữa các thẻ */
    padding: 10px 0;
}

/* Thiết kế từng Thẻ (Card) */
.modern-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 15px; /* Giảm padding để thẻ lùn xuống và gọn gàng hơn */
    text-decoration: none !important;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Vòng tròn chứa Icon */
.category-icon-wrapper {
    width: 60px; /* Thu nhỏ vòng tròn */
    height: 60px; 
    border-radius: 50%;
    background-color: #ebf8ff; 
    color: #3182ce; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px; /* Thu nhỏ Icon */
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

/* Phần chữ Tiêu đề danh mục */
.category-info h3 {
    font-size: 15px; /* Giảm font chữ một xíu */
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    line-height: 1.4;
    transition: color 0.3s;
}

/* Phần chữ Số lượng khóa học */
.category-info .course-count {
    font-size: 12px;
    color: #718096;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s;
}

/* Hiệu ứng rê chuột (Hover) */
.modern-category-card:hover {
    transform: translateY(-5px); /* Nảy nhẹ lên */
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.1);
    border-color: #3182ce;
}

.modern-category-card:hover .category-icon-wrapper {
    background-color: #3182ce;
    color: #ffffff;
    transform: scale(1.05);
}

.modern-category-card:hover .category-info h3,
.modern-category-card:hover .category-info .course-count {
    color: #3182ce;
}

/* ========================================================
   TỐI ƯU HÓA MOBILE & TABLET
======================================================== */

/* Màn hình Tablet (iPad) - Hiển thị 3 cột */
@media (min-width: 768px) and (max-width: 1024px) {
    .modern-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Màn hình Điện thoại - Hiển thị 2 cột */
@media (max-width: 767px) {
    .modern-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
    }
    
    .modern-category-card {
        padding: 15px 10px;
    }
    
    .category-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .category-info h3 {
        font-size: 13px;
    }
    
    .category-info .course-count {
        font-size: 11px;
    }
}

/* CSS TINH CHỈNH ĐỘ MƯỢT VÀ THANH LỊCH */
.refined-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #e1e7ec;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.refined-course-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-3px);
    border-color: #d1d9e0;
}

.refined-course-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.refined-course-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.refined-course-card:hover .refined-course-image img {
    transform: scale(1.05);
}

/* BADGE ĐÃ ĐƯỢC HẠ NHIỆT (Softer Badge) */
.refined-category-badge {
    position: absolute;
    top: 12px; left: 10px;
    background-color: rgba(230, 57, 70, 0.95); /* Màu đỏ pastel dịu hơn, hơi trong suốt */
    color: #ffffff !important;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500; /* Giảm từ 700 xuống 500 để bớt gắt */
    border-radius: 4px;
    z-index: 2;
    /* ĐÃ BỎ BOX-SHADOW */
}

.refined-course-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.refined-course-title {
    font-size: 15px;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.refined-course-instructor {
    font-size: 12px;
    color: #6a6f73;
    margin-bottom: 12px;
}

.refined-course-meta {
    font-size: 12px;
    color: #6a6f73;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.refined-course-meta i {
    color: #a1a7b3;
    margin-right: 4px;
}

.refined-course-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f2f3f5;
    padding-top: 12px;
}

/* GIÁ TIỀN ĐÃ ĐƯỢC GIẢM ĐỘ ĐẬM */
.refined-course-price {
    font-weight: 600; /* Giảm từ 800 (Siêu đậm) xuống 600 (Vừa phải) */
    font-size: 16px; /* Giảm nhẹ kích thước */
    color: #1c1d1f; 
}

.refined-course-price del {
    font-size: 13px;
    color: #9ba1a7;
    font-weight: 400;
    margin-right: 6px;
}

.refined-course-rating {
    font-size: 13px;
    color: #e59819; 
    font-weight: 600;
}

/* =========================================================
   1. ÉP CHIỀU CAO BẰNG NHAU CHO SLIDER (SLICK CAROUSEL)
   ========================================================= */
.course-carousel .slick-track {
    display: flex !important;
}
.course-carousel .slick-slide {
    height: auto;
    display: flex;
}

/* =========================================================
   2. STYLE CHO CARD KHÓA HỌC (HIỆN ĐẠI, BO GÓC, ĐỔ BÓNG)
   ========================================================= */
.course-box-wrap {
    width: 100%;
    display: flex;
    padding: 10px; /* Khoảng trống để không bị lẹm viền đổ bóng */
}

.course-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 12px; /* Bo góc hiện đại */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Đổ bóng nhẹ */
    border: 1px solid #f1f5f9; /* Viền mỏng */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.course-box:hover {
    transform: translateY(-5px); /* Hiệu ứng nảy lên khi di chuột */
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.course-box .course-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Căng giãn để đẩy phần giá xuống đáy */
    padding: 16px !important;
}

/* =========================================================
   3. ÉP KÍCH THƯỚC ẢNH ĐỒNG ĐỀU (TỰ ĐỘNG CẮT KHUNG)
   ========================================================= */
.course-box .course-image {
    width: 100%;
    height: 170px; /* Cố định chiều cao chung cho mọi ảnh */
    overflow: hidden;
    position: relative;
}

.course-box .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Tự động cắt phần thừa, KHÔNG làm méo ảnh */
    object-position: center;
    border-radius: 12px 12px 0 0; /* Khớp với độ bo góc của Card */
    transition: transform 0.5s ease;
}

.course-box:hover .course-image img {
    transform: scale(1.05); /* Zoom ảnh nhẹ khi hover */
}

/* =========================================================
   4. XỬ LÝ TEXT: GIỚI HẠN TÊN KHÓA HỌC CHUẨN 2 DÒNG
   ========================================================= */
.course-box .title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn đúng 2 dòng, phần thừa thành ... */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 44px; /* Chiếm đủ không gian 2 dòng dù text ngắn */
}

/* =========================================================
   5. ĐẨY PHẦN GIÁ TIỀN / ĐÁNH GIÁ XUỐNG DƯỚI CÙNG CARD
   ========================================================= */
.course-box .course-price {
    margin-top: auto; /* Lực đẩy quan trọng đưa giá tiền xuống đáy */
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-weight: bold;
}

/* =========================================================
   6. TỐI ƯU HIỂN THỊ TRÊN ĐIỆN THOẠI (MOBILE RESPONSIVE)
   ========================================================= */
@media (max-width: 767px) {
    .course-box-wrap {
        padding: 5px; /* Giảm khoảng cách giữa các Card trên mobile */
    }
    .course-box .course-image {
        height: 150px; /* Giảm chiều cao ảnh trên màn hình nhỏ */
    }
    .course-box .title {
        font-size: 15px; /* Chữ nhỏ lại một chút */
        min-height: 42px;
    }
    .course-box .course-details {
        padding: 12px !important;
    }
}

/* =========================================================
   FIX LỖI XUẤT HIỆN THANH CUỘN NGANG DƯỚI ĐÁY MÀN HÌNH
   ========================================================= */
html, body {
    overflow-x: hidden; /* Cắt bỏ mọi thành phần dư thừa lòi ra bên ngoài chiều ngang */
    width: 100%;
    max-width: 100vw;
}

/* Các row của Bootstrap đôi khi gây trôi ngang trên mobile do margin âm */
.container-fluid {
    overflow-x: hidden;
}

/* =========================================================
   CĂN GIỮA FOOTER TRÊN MÀN HÌNH ĐIỆN THOẠI (MOBILE)
   ========================================================= */
@media (max-width: 767px) {
    /* Ép tất cả các khối trong Footer phải đứng ở giữa */
    .footer-area, 
    .footer-area .row > div,
    .footer-area p,
    .footer-area h6 {
        text-align: center !important;
    }

    /* Nếu có nhóm menu xếp hàng ngang (Flexbox), gom chúng ra giữa */
    .footer-area .d-flex {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Chỉnh lại khoảng cách các khối ở Footer cho đẹp khi đứng giữa */
    .footer-area .mt-4, 
    .footer-area .mb-4 {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* ==========================================
   CSS TÙY CHỈNH CHO TRANG XÁC MINH
========================================== */
.verification-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    border-top: 5px solid #ec5252; /* Đường viền đỏ phía trên tạo điểm nhấn */
    margin: 40px 0;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #fdf0f0;
    color: #ec5252;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin-bottom: 20px;
}

.otp-input {
    font-size: 24px !important;
    letter-spacing: 10px;
    text-align: center;
    font-weight: 700 !important;
    height: 60px;
    border: 2px solid #e8e9eb;
    border-radius: 8px !important;
    color: #333;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #ec5252;
    box-shadow: 0 0 0 0.2rem rgba(236,82,82,.25);
}

.spam-notice {
    background-color: #fff8e5;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
    font-size: 14.5px;
    color: #856404;
    margin-bottom: 25px;
    text-align: left;
    display: flex;
    align-items: flex-start;
}

.btn-verify {
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background-color: #ec5252;
    color: #fff;
    border: none;
    transition: all 0.3s;
}

.btn-verify:hover {
    background-color: #d94242;
    transform: translateY(-2px);
}

/* Tối ưu riêng cho màn hình điện thoại */
@media (max-width: 767px) {
    .verification-card {
        padding: 30px 20px;
        margin: 20px 0;
    }
    .otp-input {
        font-size: 20px !important;
        letter-spacing: 6px;
    }
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

.rich-course-section {
    background-color: #fcfdfe; /* Nền sáng siêu nhẹ tạo chiều sâu */
}
.rich-section-title {
    font-size: 26px;
    font-weight: 800;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.icon-wrap {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255,8,68,0.3);
}
.rich-section-subtitle {
    font-size: 15px;
    color: #718096;
    margin-top: 5px;
}

/* Kiểu dáng Thẻ (Card) */
.rich-card-link {
    text-decoration: none !important;
    display: block;
}
.rich-course-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.rich-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

/* Ảnh khóa học */
.rich-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.rich-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.rich-course-card:hover .rich-card-image img {
    transform: scale(1.08); /* Hiệu ứng zoom ảnh */
}

/* Huy hiệu và Nút Play Overlay */
.rich-badge-hot {
    position: absolute;
    top: 12px; left: 12px;
    background: #ff4a52;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}
.rich-play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rich-play-overlay i {
    font-size: 40px;
    color: rgba(255,255,255,0.9);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.rich-course-card:hover .rich-play-overlay {
    opacity: 1;
}
.rich-course-card:hover .rich-play-overlay i {
    transform: scale(1);
}

/* Phần nội dung Body */
.rich-card-body {
    padding: 18px;
}
.rich-course-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    height: 44px; /* Giữ cố định 2 dòng */
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.rich-course-card:hover .rich-course-title {
    color: #0056d2 !important; /* Xanh khi hover giống Udemy/Coursera */
}

/* Giảng viên */
.rich-instructor {
    gap: 8px;
}
.instructor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.instructor-name {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

/* Box hiển thị Bài học & Thời gian */
.rich-meta-box {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 8px 12px;
}
.meta-item {
    font-size: 12px;
    color: #4a5568;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.meta-icon {
    font-size: 14px;
}
.meta-divider {
    width: 1px;
    height: 16px;
    background: #cbd5e0;
}

/* Sao đánh giá */
.rich-rating {
    font-size: 13px;
}
.stars i {
    font-size: 11px;
}

/* Footer: Giá & Nút mũi tên */
.rich-card-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 14px;
}
.rich-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-current {
    font-size: 18px;
    font-weight: 800;
}
.price-original {
    font-size: 13px;
}

/* Nút Action */
.rich-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}
.rich-course-card:hover .rich-action-btn {
    background: #0056d2;
    color: #fff;
}

/* Bố cục riêng cho màn hình điện thoại (Mobile) */
@media (max-width: 767px) {
    .rich-course-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .rich-section-title {
        font-size: 20px;
    }
    .icon-wrap {
        width: 28px; height: 28px; font-size: 12px;
    }
    
    /* Vuốt ngang trên Mobile */
    .rich-carousel-wrap {
        margin-left: -15px; margin-right: -15px;
    }
    .rich-scroll-row {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-left: 15px !important;
    }
    .rich-scroll-row::-webkit-scrollbar { display: none; }
    .rich-scroll-item {
        scroll-snap-align: start;
        flex: 0 0 85%;
        max-width: 85%;
        padding-right: 15px !important;
        padding-left: 0 !important;
    }

    /* Thu nhỏ chữ trên mobile cho vừa vặn */
    .rich-card-body { padding: 14px; }
    .rich-course-title { font-size: 15px; height: 42px; }
    .meta-item { font-size: 11px; }
    .price-current { font-size: 16px; }
    .rich-action-btn { width: 28px; height: 28px; background: #0056d2; color:#fff;} /* Mobile luôn hiện xanh */
}

/* CSS Giao diện Ticket */
.coupon-section {
    background-color: #f8f9fa;
    padding-top: 40px;
    padding-bottom: 60px;
}
.ticket-wrapper {
    background: #fff;
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #edf2f7;
    height: 100%;
    position: relative;
}
.ticket-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}
.ticket-left {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: #fff;
    padding: 20px 15px;
    width: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 2px dashed rgba(255,255,255,0.7);
    text-align: center;
}
.ticket-left::before, .ticket-left::after {
    content: '';
    position: absolute;
    right: -12px;
    width: 24px;
    height: 24px;
    background-color: #f8f9fa;
    border-radius: 50%;
    border-left: 1px solid #edf2f7;
}
.ticket-left::before { top: -12px; }
.ticket-left::after { bottom: -12px; }

.ticket-right {
    padding: 20px;
    width: 68%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.ticket-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 0;
}
.ticket-code {
    font-size: 14px;
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 8px;
    margin-top: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.t-desc {
    font-size: 15px;
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 10px;
}
.t-course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 75px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
    position: relative;
    z-index: 5;
}
.t-course-list::-webkit-scrollbar { width: 4px; }
.t-course-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

.ticket-course-badge {
    background-color: #f1f5f9;
    color: #4a5568 !important;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    max-width: 100%;
}

a.ticket-course-badge {
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer !important;
    position: relative;
    z-index: 99;
    pointer-events: auto;
}
a.ticket-course-badge:hover {
    background-color: #e2e8f0;
    color: #2b6cb0 !important;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ticket-course-badge i {
    font-size: 10px;
    margin-right: 5px;
    color: #38a169;
}
a.ticket-course-badge:hover i {
    color: #2b6cb0;
}
.ticket-course-badge span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-meta {
    font-size: 13px;
    color: #718096;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.ticket-meta i {
    width: 18px;
    text-align: center;
    margin-right: 4px;
}
.ticket-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
}
.ts-expired { background: #fed7d7; color: #c53030; }
.ts-empty { background: #e2e8f0; color: #4a5568; }
.ts-active { background: #c6f6d5; color: #276749; }

@media (max-width: 768px) {
    .ticket-wrapper { flex-direction: column; }
    .ticket-left { 
        width: 100%; 
        border-right: none; 
        border-bottom: 2px dashed rgba(255,255,255,0.7); 
        padding: 20px; 
        flex-direction: row;
        justify-content: space-between;
    }
    .ticket-left::before, .ticket-left::after { display: none; } 
    .ticket-left .ticket-code { margin-top: 0; }
    .ticket-right { width: 100%; padding: 20px; }
    .t-course-list { max-height: 85px; }
}

/* Giao diện 1 cột hiện đại */
.cart-box-minimal {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	border: 1px solid #eaeaea;
	margin: 0 auto;
}
.cart-box-minimal h5 {
	font-size: 18px;
	font-weight: 700;
	color: #333;
}
.course-list-minimal .course-item {
	position: relative;
	padding-bottom: 15px;
	margin-bottom: 15px;
	border-bottom: 1px dashed #eaeaea;
}
.course-item-img {
	width: 110px;
	height: 75px;
	object-fit: cover;
	border-radius: 6px;
}
.course-title-cart {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.course-title-cart:hover { color: #007bff; }
.btn-remove-item {
	color: #dc3545;
	font-size: 16px;
	padding: 5px;
	transition: 0.2s;
}
.btn-remove-item:hover { color: #bd2130; transform: scale(1.1); }
.coupon-section {
	background-color: #f8f9fa;
	border-radius: 8px;
	padding: 15px;
}
.coupon-input-minimal { border-radius: 6px 0 0 6px; border: 1px solid #ced4da; }
.coupon-btn-minimal { border-radius: 0 6px 6px 0; background: #e2e6ea; border: 1px solid #ced4da; border-left: none; font-weight: 600; color: #333;}
.coupon-btn-minimal:hover { background: #d1d5da; }
.btn-checkout-minimal {
	background-color: #0088cc;
	border-color: #0088cc;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	padding: 12px;
	border-radius: 8px;
	transition: all 0.3s;
}
.btn-checkout-minimal:hover { background-color: #0077b3; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);}
.summary-text { font-size: 15px; }

/* CSS cho Badge tên khóa học khi LỖI (màu xanh dương) */
.course-badge-coupon {
	display: inline-block;
	background-color: #17a2b8;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	margin-right: 5px;
	margin-top: 5px;
}

/* CSS cho Badge tên khóa học khi THÀNH CÔNG (màu xanh lá) */
.course-badge-success {
	display: inline-block;
	background-color: #28a745;
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	margin-right: 5px;
	margin-top: 5px;
}

/* CSS Khóa Học Liên Quan */
.related-courses-wrapper {
	background: #fff;
	border-radius: 12px;
}
.related-course-item {
	display: flex;
	align-items: center;
	gap: 16px; /* Ép khoảng cách cứng 16px giữa ảnh và nội dung, KHÔNG THỂ BỊ DÍNH */
	padding: 15px;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: all 0.2s ease-in-out;
	background-color: #ffffff;
	margin-bottom: 10px;
}
.related-course-item:hover {
	background-color: #f8f9fa;
	border: 1px solid #eaeaea;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transform: translateY(-2px);
}
.related-course-item:not(:last-child) {
	border-bottom: 1px solid #f1f1f1;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.related-course-item:hover:not(:last-child) {
	border-bottom-color: transparent;
}
.related-course-thumb {
	width: 130px;
	height: 85px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.related-course-info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.related-course-title {
	font-size: 16px;
	font-weight: 700;
	color: #29303b;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 8px; /* Khoảng cách dưới Tiêu đề */
}
.related-course-title:hover {
	color: #007bff;
}
.related-course-meta {
	font-size: 13px;
	color: #686f7a;
	margin-bottom: 8px; /* Khoảng cách dưới Dòng sao/học viên */
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px; /* Khoảng cách cứng giữa các icon (sao, người, lịch) */
}
.related-course-price {
	font-size: 16px;
	font-weight: 700;
	color: #007bff; /* Nhấn mạnh giá tiền bằng màu xanh */
	display: flex;
	align-items: center;
	gap: 8px; /* Khoảng cách giữa giá mới và giá cũ */
}
.related-course-price del {
	font-size: 13px;
	color: #888;
	font-weight: 400;
}

/* =========================
MESSAGE
========================= */

.message-area{
    padding: 30px 0;
}

.message-wrapper{

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 4px 25px rgba(0,0,0,.06);

    min-height: 75vh;
}

/* =========================
SIDEBAR
========================= */

.message-sidebar{

    border-right: 1px solid #edf2f7;

    background: white;
}

.message-sidebar-header{

    padding: 20px;

    border-bottom: 1px solid #edf2f7;

    min-height: 80px;
}

.message-list{

    max-height: calc(75vh - 80px);

    overflow-y: auto;
}

.message-item{

    display: flex;

    gap: 12px;

    padding: 15px 18px;

    border-bottom: 1px solid #f1f5f9;

    transition: .2s;

    text-decoration: none !important;

    color: inherit;

    position: relative;
}

.message-item:hover{

    background: #f8fafc;
}

.message-item.active{

    background: #eef2ff;
}

.message-avatar{

    width: 50px;

    height: 50px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;
}

.message-content{

    flex: 1;

    min-width: 0;
}

.message-top{

    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 5px;
}

.message-name{

    font-weight: 600;

    color: #1e293b;

    font-size: 15px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.message-time{

    font-size: 11px;

    color: #94a3b8;

    flex-shrink: 0;

    white-space: nowrap;
}

.message-preview{

    font-size: 13px;

    color: #64748b;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

/* =========================
DETAIL
========================= */

.message-detail{

    display: flex;

    flex-direction: column;

    height: 75vh;

    background: white;
}

.message-detail-header{

    padding: 18px 20px;

    border-bottom: 1px solid #edf2f7;

    background: white;

    min-height: 80px;
}

.message-chat-area{

    flex: 1;

    overflow-y: auto;

    padding: 25px;

    background: #f8fafc;

    display: flex;

    flex-direction: column;
}

/* =========================
CHAT
========================= */

.chat-row{

    display: flex;

    width: 100%;

    margin-bottom: 14px;
}

.chat-row.me{

    justify-content: flex-end;
}

.chat-row > div{

    max-width: 100%;
}

/* =========================
BUBBLE
========================= */

.chat-bubble{

    width: fit-content;

    max-width: 420px;

    min-width: 60px;

    padding: 10px 14px;

    border-radius: 18px;

    font-size: 14px;

    line-height: 1.5;

    word-break: break-word;

    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

/* MY MESSAGE */

.chat-bubble.me{

    background: linear-gradient(
        135deg,
        #5b5cf0,
        #4f46e5
    );

    color: white;

    border-bottom-right-radius: 5px;
}

/* OTHER MESSAGE */

.chat-bubble.other{

    background: white;

    border: 1px solid #e2e8f0;

    color: #334155;

    border-bottom-left-radius: 5px;
}

/* TIME */

.chat-time{

    font-size: 11px;

    color: #94a3b8;

    margin-top: 4px;

    padding: 0 4px;
}

/* =========================
INPUT
========================= */

.message-input-area{

    padding: 15px 20px;

    border-top: 1px solid #edf2f7;

    background: white;
}

.message-input-wrap{

    display: flex;

    gap: 10px;

    align-items: flex-end;
}

/* TEXTAREA */

.message-textarea{

    width: 100%;

    resize: none;

    border-radius: 24px;

    border: 1px solid #dbe2ea;

    background: #f8fafc;

    padding: 12px 18px;

    min-height: 46px;

    max-height: 140px;

    overflow-y: hidden;

    outline: none;

    transition: .2s;

    font-size: 14px;

    line-height: 1.5;
}

.message-textarea:focus{

    border-color: #6366f1;

    background: white;

    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

/* SEND BUTTON */

.send-btn{

    width: 46px;

    height: 46px;

    border-radius: 50%;

    border: none;

    background: linear-gradient(
        135deg,
        #5b5cf0,
        #4f46e5
    );

    color: white;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: .2s;
}

.send-btn:hover{

    transform: scale(1.05);
}

/* =========================
COMPOSE BUTTON
========================= */

.compose-btn{

    width: 34px;

    height: 34px;

    border: none;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #5b5cf0,
        #4f46e5
    );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    transition: .2s;

    flex-shrink: 0;
}

.compose-btn:hover{

    transform: scale(1.05);
}

/* =========================
SCROLLBAR
========================= */

.message-list::-webkit-scrollbar,
.message-chat-area::-webkit-scrollbar{

    width: 6px;
}

.message-list::-webkit-scrollbar-thumb,
.message-chat-area::-webkit-scrollbar-thumb{

    background: #dbe2ea;

    border-radius: 20px;
}

/* =========================
MOBILE
========================= */

@media(max-width: 991px){

    .message-wrapper{

        border-radius: 14px;
    }

    .message-sidebar{

        border-right: none;

        border-bottom: 1px solid #edf2f7;
    }

    .message-detail{

        height: auto;
    }

    .message-chat-area{

        min-height: 400px;

        padding: 18px;
    }

    .chat-bubble{

        max-width: 90%;
    }

    .message-sidebar-header{

        padding: 15px;
    }

    .message-item{

        padding: 14px 15px;
    }

}

/* =========================
SUPPORT NOTE
========================= */

.support-note{

    margin-top: 4px;

    background: #fff8e6;
    
    border: 1px solid #ffe7a3;

    color: #4a5a7a;

    padding: 8px 12px;

    border-radius: 12px;

    font-size: 13px;

    line-height: 1.5;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;
}

.support-note i{

    color: #5b5cf0;
}

.support-note strong{

    color: #334155;

    font-weight: 600;
}

/* =========================
BADGE MESSAGE
========================= */

.message-badge{

    min-width: 18px;

    height: 18px;

    border-radius: 20px;

    background: #ef4444;

    color: white;

    font-size: 11px;

    font-weight: 600;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 5px;

    flex-shrink: 0;
}