.training-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #FFD54F;
}

.training-subtitle {
    font-size: 22px;
    margin-top: 10px;
    text-transform: uppercase;
}

.training-time {
    font-size: 18px;
    margin-top: 20px;
}

.guide-btn {
    margin-top: 24px;
    padding: 8px 30px;
    font-size: 15px;
    border-radius: 6px;
}

.right-card {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    text-align: center;
    padding: 30px 20px;
    backdrop-filter: blur(4px);
}

.right-card img {
    width: 300px;
    object-fit: contain;
    margin-bottom: 12px;
}

.right-card-text {
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 600;
}
.training-banner {
    /*background: linear-gradient(135deg, #7c0a0e, #bb4138, #e67852);
    padding: 60px 0;
    color: #fff;*/
}

/* Logo */
.banner-logo {
    /*width: 240px;*/
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* Top text */
.title-top {
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #ffd766;
    width: 100%;
    font-family: 'Anton', sans-serif;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
}

/* Main title */
.main-title {
    font-size: 33px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
    font-family: 'Montserrat', sans-serif;
}

/* Sub title */
.sub-title-banner {
    font-size: 26px;
    font-weight: 600;
    color: #ffd766!important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
    font-family: 'Montserrat', sans-serif !important;
    line-height: 250%;
    letter-spacing: 1px;
}

/* Time box highlight */
.time-box {
    display: inline-block;
    background: rgba(0,0,0,0.35);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 19px;
    font-weight: 600;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.45);
    font-family: 'Montserrat', sans-serif;
}
.block-1-container {
    margin-left: 100px;
    margin-right: 100px;
}

@media (max-width: 1024px) {
    .training-title {
        font-size: 22px;
    }

    .right-card {
        margin-top: 30px;
    }
    .right-card img {
        width: 150px;
        object-fit: contain;
        margin-bottom: 12px;
    }
    .right-card-text {
        font-size: 16px;
        text-transform: uppercase;
        font-weight: 600;
    }
    .block-1-container {
        margin-left: 50px;
        margin-right: 50px;
    }
    .main-title {
        font-size: 24px;
    }
    .sub-title-banner {
        font-size: 20px;
        line-height: 150%;
    }
    .time-box {
        font-size: 17px;
    }
}

.avatar {
    display: block;
    margin: 0 auto;  /* canh giữa ngang */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}
.block-container {
    max-width: 90vw;
    margin: auto;
}
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
}

.side-menu.active {
    right: 0;
}
h1 {
    font-size: 2.5rem;
    line-height: 1.25;
}
h2 {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
}
.title {
    color: #1862AF;
    font-size: 1.5rem;
    font-weight: 650;
}
.sub-title {
    color: #000000;
    font-size: 1.25rem !important;
    line-height: 150%;
}
.limit-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    min-height: 48px;
}
.limit-text-2-line {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    color: #0060AD;
}
.limit-text-4-line {
    min-height: 96px;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}
.logo-partner {
    margin-right: 4rem;
}
.block-1 {
    background: url("../image/tldld/bg_1.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    color: #fff;
    aspect-ratio: 1920 / 579;
}
@media (max-width: 768px) {
    .block-1 {
        background: url("../image/tldld/bg_mobile_2.png");
        background-size: cover; /* tuỳ chỉnh lại để ảnh vừa màn hình */
        background-position: center;
        aspect-ratio: 895 / 1625; /* có thể chỉnh lại tỷ lệ cho phù hợp */
    }
    .block-1-container {
        margin-left: 20px;
        margin-right: 20px;
    }
}
.block-1 .des {
    /*width: 60%;*/
    margin-bottom: 2.5rem;
}

.block-1 .des:nth-child(1) {
    /*width: 70%;*/
}

.btn-login {
    color: #FFFFFF !important;
    background-color: #007bff;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-login:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

.learning {
    color: #FFF;
    font-size: 1.5rem;
    padding: 10px 25px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #B2302A;
    box-shadow: -11px 20px 20.1px 0px rgba(87, 94, 170, 0.10);
}
.instruct {
    color: #3A43A3;
    font-size: 1.5rem;
    padding: 10px 25px;
    flex-shrink: 0;
    border-radius: 20px;
    background: #F0F0F0;
    box-shadow: -11px 20px 20.1px 0px rgba(87, 94, 170, 0.10);
}

.learning:hover {
    box-shadow: 0 12px 16px 0 rgba(255, 255, 255, 0.24),0 17px 50px 0 rgba(255, 255, 255, 0.19);
    transition: transform .5s;
    transform: scale(1.1);
}

.instruct:hover {
    box-shadow: 0 12px 16px 0 rgba(255, 255, 255, 0.24),0 17px 50px 0 rgba(255, 255, 255, 0.19);
    transition: transform .5s;
    transform: scale(1.1);
}

.block-2 {
    background: url("../image/tldld/bg_2.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    width: 100%;
    aspect-ratio: 1 / 0.3;
}

.video video {
    border-radius: 20px;
    width: 60%;
    height: 500px;
    margin: auto;
}

.block-3 {
    background: url("../image/tldld/bg_3_1.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    width: 100%;
    aspect-ratio: 1 / 0.3;
    color: #FFFFFF;
}
.video iframe {
    border-radius: 20px;
    width: 60%;
    height: 500px;
    margin: auto;
}
@media (max-width: 768px) {
    .block-3 {
        background: url("../image/tldld/bg_3_mobile.png");
        background-size: cover; /* tuỳ chỉnh lại để ảnh vừa màn hình */
        background-position: center;
        aspect-ratio: 1 / 1; /* có thể chỉnh lại tỷ lệ cho phù hợp */
    }
}

.block-3 .title{
    margin-bottom: 80px;
    color: #FFFFFF;
}
.block-3 .img_item{
    width: 100px;
    height: 100px;
    margin-bottom: 35px;
}
.item-des {
    /*width: 65%;*/
}

.block-4 {
    background: url("../image/tldld/bg_4.png");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    width: 100%;
}
.course-item {
    padding: 1rem;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0 2.52631px 12.63157px 0 rgba(0, 0, 0, .25);

    .text {
        font-size: 1.25rem;
        color: #6D6D6D;
    }

    .course-img {
        height: 21.9vw;
        max-height: 205px;
        position: relative;
        background-position: center;
        background-size: cover;
        border-radius: 10px;
        width: 100%;
        margin-bottom: 2rem;
        object-fit: cover;
    }

    .btn-start-course {
        border-radius: 24px;
        padding: 10px 25px;
        margin-top: 10px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #0268bb1a;
        color: #1890FF;
    }

    .sub-title p{
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        min-height: 96px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
}

.slick-slide {
    height: auto !important;
}

.slick-next {
    right: 30px !important;
}

.slick-prev {
    left: 0 !important;
}

.slick-next::before {
    display: none !important;
}

.slick-prev::before {
    display: none !important;
}

.image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.image-container img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    object-position: center;
}

.multiple-items {
    padding: 1rem 6rem;
}

header img {
    max-height: 60px;
}

footer {
    background-color: #323A5C;
}
footer p {
    margin-bottom: 0 !important;
}

footer {
    background: url("../image/tldld/footer.webp")!important;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1000;
    padding: 30px 0;
    width: 100%;
    aspect-ratio: 1935 / 239;
    margin-top: auto;
}
html, body {
    height: 100%;      /* quan trọng để tính toàn bộ chiều cao màn hình */
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100% chiều cao viewport */
    flex-direction: column;
    background: aliceblue;
}

.w-40 {
    width: 42%;
    margin: auto;
    line-height: 2rem;
}

.w-80 {
    width: 80%;
    margin: auto;
}

@media screen and (max-width: 1280px) {
    .logo-partner {
        margin-right: 2rem;
    }
    .limit-text {
        min-height: 40px;
    }
    .card {
        padding: 1rem 0;
        border-radius: 10px;
        background: #FFF;
        box-shadow: 0 2.52631px 12.63157px 0 rgba(0, 0, 0, .25);

        .course-img {
            height: 21.9vw;
            max-height: 205px;
            border-radius: 10px;
            width: 100%;
            margin-bottom: 1.5rem;
        }
    }

    .m-4 {
        margin: 1rem !important;
    }

    .slick-next {
        right: 10px !important;
    }

    .slick-prev {
        left: -20px !important;
    }

    .multiple-items {
        padding: 1rem 1rem;
    }

}

@media screen and (max-width: 1024px) {
    .logo-partner {
        margin-right: 0;
        width: 80%;
    }
    .py-5 {
        padding-bottom: 2rem !important;
        padding-top: 2rem !important;
    }
    header img {
        max-height: 60px;
    }
    h1 {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    h2 {
        font-size: 1rem;
        line-height: 1.25;
        font-weight: 400;
    }
    .title {
        font-size: 1.25rem;
        font-weight: 650;
    }
    .sub-title {
        font-size: 1rem !important;
        line-height: 150%;
    }
    .limit-text {
        min-height: 40px;
    }

    .block-1 {
        aspect-ratio: 1 / 0.4;
    }
    .block-2 {
        aspect-ratio: 1 / 0.4;
    }
    .block-3 {
        aspect-ratio: 1 / 0.4;
    }
    .block-4 {
        aspect-ratio: 1 / 0.4;
    }

    .block-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .learning {
        font-size: 1rem;
        padding: 10px 25px;
        border-radius: 20px;
    }
    .instruct {
        font-size: 1rem;
        padding: 10px 25px;
    }
    .block-1 .des {
        width: 100%;

    }
    /* .block-1 .des:nth-child(1) {
        width: 80%;
    } */
    .video video {
        border-radius: 20px;
        width: 70%;
        height: 400px;
    }

    .block-3 .title{
        margin-bottom: 50px;
    }
    .block-3 .img_item{
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    .item-des {
        width: 100%;
    }
    .card {
        padding: 1rem 0;
        border-radius: 10px;

        .course-img {
            margin-bottom: 1.25rem;
        }

        .btn-start-course {
            border-radius: 24px;
            padding: 10px 20px;
            margin-top: 10px;
        }
    }

    .m-4 {
        margin: 1rem !important;
    }

    .slick-slide {
        height: auto !important;
    }

    .slick-next {
        right: 30px !important;
    }

    .slick-prev {
        left: 0 !important;
    }

    .image-container {
        width: 100%;
        height: 200px;
    }
    .multiple-items {
        padding: 1rem 3rem;
    }

    .w-40 {
        width: 65%;
        line-height: 1.5rem;
    }

    .w-80 {
        width: 100%;
        margin: auto;
    }

    footer {
        padding: 0;
    }

    footer .logo{
        /* width: 86% !important; */
        object-fit: cover;
    }

}

@media screen and (max-width: 768px) {
    .logo-partner {
        display: none;
    }
    .py-5 {
        padding-bottom: 2rem !important;
        padding-top: 2rem !important;
    }
    header img {
        max-height: 60px;
    }
    h1 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    h2 {
        font-size: 1rem;
        line-height: 1.25;
        font-weight: 400;
    }
    .title {
        font-size: 1.15rem;
        font-weight: 650;
    }
    .sub-title {
        font-size: 1rem !important;
        line-height: 150%;
    }
    .limit-text {
        min-height: 40px;
    }

    .block-1 {
        /*aspect-ratio: 895 / 1625;*/ /* có thể chỉnh lại tỷ lệ cho phù hợp */
    }
    .block-2 {
        aspect-ratio: 1 / 0.4;
    }
    .block-3 {
        aspect-ratio: 1 / 0.4;
    }
    .block-4 {
        aspect-ratio: 1 / 0.4;
    }

    .block-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .learning {
        font-size: 1rem;
        padding: 10px 25px;
        border-radius: 20px;
    }
    .instruct {
        font-size: 1rem;
        padding: 10px 25px;
    }
    .block-1 .des {
        width: 100%;
    }
    .video video {
        border-radius: 20px;
        width: 70%;
        height: 400px;
    }

    .block-3 .title{
        margin-bottom: 30px;
    }
    .block-3 .img_item{
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    .item-des {
        width: 50%;
    }
    .card {
        padding: 1rem 0;
        border-radius: 10px;

        .course-img {
            margin-bottom: 1rem;
        }

        .btn-start-course {
            border-radius: 24px;
            padding: 5px 15px;
            margin-top: 10px;
        }
    }

    .m-4 {
        margin: 1rem !important;
    }

    .slick-slide {
        height: auto !important;
    }

    .slick-next {
        right: 30px !important;
    }

    .slick-prev {
        left: 0 !important;
    }

    .image-container {
        width: 100%;
        height: 200px;
    }
    .multiple-items {
        padding: 1rem 3rem;
    }

    .w-40 {
        width: 65%;
        line-height: 1.5rem;
    }

    footer {
        padding: 0;
    }

    footer .logo{
        /* width: 86% !important; */
        object-fit: cover;
    }

    footer .column-left {
        text-align: center;
    }
    .main-title {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
    }
    .sub-title-banner {
        font-size: 20px;
        font-weight: 600;
        line-height: 1.3;
    }
}

@media screen and (max-width: 576px) {
    .icon-banner {
        height: 40px;
    }
    .video iframe {
        border-radius: 20px;
        width: 100%;
        height: 250px;
    }
    .py-5 {
        padding-bottom: 1rem !important;
        padding-top: 1rem !important;
    }
    header img {
        max-height: 40px;
    }
    h1 {
        font-size: 1rem;
        line-height: 1.25;
    }
    h2 {
        font-size: 1rem;
        line-height: 1.25;
        font-weight: 400;
    }
    .title {
        font-size: 1rem;
        font-weight: 650;
    }
    .sub-title {
        font-size: 1rem !important;
        line-height: 1;
    }
    .limit-text {
        min-height: 20px;
    }

    .block-1 {
        aspect-ratio: 895 / 1625; /* có thể chỉnh lại tỷ lệ cho phù hợp */
    }
    .block-2 {
        aspect-ratio: 1 / 0.4;
    }
    .block-3 {
        aspect-ratio: 1 / 0.4;
    }
    .block-4 {
        aspect-ratio: 1 / 0.4;
    }

    .block-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .learning {
        font-size: 1rem;
        padding: 5px 15px;
        border-radius: 20px;
    }
    .instruct {
        font-size: 1rem;
        padding: 5px 15px;
    }
    .block-1 .des {
        width: 100%;
    }
    .video video {
        border-radius: 20px;
        width: 100%;
        height: 250px;
    }

    .block-3 .title{
        margin-bottom: 15px;
    }
    .block-3 .img_item{
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    .item-des {
        width: 90%;
    }
    .course-item {
        padding: 0.75rem;
        border-radius: 10px;

        .course-img {
            height: 30vw;
            max-height: 200px;
            border-radius: 10px;
            width: 100%;
            margin-bottom: 1rem;
        }

        .btn-start-course {
            border-radius: 24px;
            padding: 5px 10px;
            margin-top: 5px;
            font-size: 1rem;
        }

        .sub-title p{
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            min-height: 66px;
            -webkit-line-clamp: 4;
            line-clamp: 4;
            margin-bottom: 0;
        }
    }

    .m-4 {
        margin: 1rem !important;
    }

    .slick-slide {
        height: auto !important;
    }

    .slick-next {
        right: 0px !important;
    }

    .slick-prev {
        left: -10px !important;
    }

    .image-container {
        width: 100%;
        height: 200px;
    }
    .multiple-items {
        padding: 0.5rem 1rem;
    }

    .w-40 {
        width: 90%;
        line-height: 1.25rem;
    }

    footer .logo{
        /* width: 86% !important; */
        object-fit: cover;
    }
    .col-sm-4:nth-child(n+2) {
        margin-top: 20px;
    }

    .block-container {
        max-width: 100vw;
    }

    .btn-login{
        font-size: 1rem;
    }
    .block-1-container {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.page-frame {
    max-width: 1200px;
    margin: 0 auto;
    /*border-left: 4px solid #00a5c8;
    border-right: 4px solid #00a5c8;
    background: #0b1720; !* viền ngoài tối giống 2 mép bên *!*/
    padding: 30px 0;
}

.book-wrapper {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    margin: 0 40px;
}

/* Bìa sách bên trái */
.book-cover {
    border-radius: 6px;
    /*height: 260px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffd54f;
    position: relative;
}
.book-cover-img{
    width: 100%;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.book-cover .logo-circle {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ffffff;
    border: 6px solid #0f6ad9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f6ad9;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 6px;
}

.book-cover .title-text {
    margin-top: 40px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.4;
    font-size: 18px;
}

/* Cột nội dung */
.book-content {
    padding-right: 20px;
    padding-left: 20px;
}

.btn-more {
    background: #1aab4b;
    border-color: #1aab4b;
    color: #fff;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.book-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

.book-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 22px;
}

.btn-pill {
    border-radius: 999px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 14px;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-audio {
    background: #f44336;
    border-color: #f44336;
    color: #ffffff;
    margin-right: 18px;
}

.btn-read {
    background: #1976d2;
    border-color: #1976d2;
    color: #ffffff;
}

.btn-pill i {
    margin-right: 8px;
}

@media (max-width: 991.98px) {
    .book-wrapper {
        margin: 0 15px;
        padding: 20px;
    }

    .book-content {
        padding-right: 20px;
        padding-left: 20px;
        margin-top: 20px;
    }
    .book-cover-img {
        border-radius: 14px;
    }
}
