#app-download {
    display: flex;
    margin-top: 2rem;
    justify-content: center;
}

#app-download .logo {
    width: 18%;
    padding: 16px;
    box-shadow: -0.2rem 0rem 1rem 0px rgb(0 0 0 / 15%) !important;
    border-radius: 16px;
}

#app-download .logo img {
    width: 100%;
}

#app-download .content {
    display: flex;
    justify-content: space-around;
    padding: 32px 48px;
    align-items: center;
    box-shadow: 0.5rem 0rem 1rem rgb(0 0 0 / 15%) !important;
    border-radius: 16px;
    flex-direction: column;
}

#app-download .content .content-body,
#app-download .content .download-link {
    margin: 0 1rem;
}

#app-download .content .download-link {
    display: flex;
    width: 100%;
    justify-content: center;
}

#app-download .download-link a + a {
    margin-left: 1rem;
}

.course-content {
    display: flex;
}

.course-details {
    display: flex;
    width: 24%;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
}

.course-details h2 {
    color: white;
    margin-bottom: 1.8rem;
}
.course-action {
    position: relative;
    margin-bottom: 1rem;
    left: 25%;
}

.course-action img {
    width: 35px;
}

.course-action a + a {
    margin-left: 1rem;
}

.course-action img:hover {
    opacity: 0.8;
}

#course-list {
    width: 76%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 7rem;
}

.course-item_image {
    box-shadow: 0rem 0rem 0.5rem rgb(0 0 0 / 15%) !important;
    padding: 2rem;
    background-color: white;
}

.course-item_image img {
    width: 100%;
    border-radius: 0.5rem;
}
.course-item_image,
.course-item_download {
    width: 15rem;
    border-radius: 0.5rem;
}

.course-item_download {
    box-shadow: 0rem 0.2rem 0.5rem rgb(0 0 0 / 15%) !important;
    background-color: white;
    padding: 0.8rem 2rem;
}

.course-item_download img {
    width: 100%;
}

.download-link-sub {
    display: flex;
}

.download-link-sub a + a {
    margin-right: 1rem;
}
/* course math */
#course-math {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 5rem;
    position: relative;
    min-height: 400px;
    justify-content: space-around;
}

#course-math .background {
    width: 100%;
    height: 100%;
    z-index: -1;
    left: -30%;
    background-color: #78e2f0;
    position: absolute;
    border-radius: 0 16px 16px 0;
}

/* course english */
#course-english {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 5rem;
    position: relative;
    min-height: 400px;
    justify-content: space-around;
}

#course-english .background {
    width: 100%;
    height: 100%;
    z-index: -1;
    right: -30%;
    background-color: #78e2f0;
    position: absolute;
    border-radius: 16px 0 0 16px;
}

#course-english #course-list {
    padding-left: 0;
    padding-right: 7rem;
}

#course-english .course-content {
    flex-direction: row-reverse;
}

#course-english .course-action {
    left: 75%;
}

#course-english .course-details {
    text-align: end;
}

/*  course video */
#wrapper-video {
    margin-top: 5rem;
    /* background-color: #78e2f0; */
    background: url('/static/img/green-bg.png') no-repeat;
    background-size: cover;
    padding-top: 6rem;
    min-height: 700px;
}

#course-video {
    margin-top: 5rem;
    min-height: 500px;
}

.course-video {
    display: flex;
    min-height: 400px;
}

.course-video .detail {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.course-video .detail h2 {
    margin-bottom: 1.8rem;
}

.course-video .video {
    width: 60%;
    padding: 0.5rem;
    border-radius: 1rem !important;
}

.video iframe {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

/* details */
#wrapper-details {
    /* margin-top: 5rem; */
    position: relative;
    left: -10px;
}

.wrapper-details {
    display: flex;
    min-height: 450px;
}

.details-content {
    width: 60%;
}

.details-content h2 {
    margin-bottom: 1.8rem;
}

.details-content p {
    margin-bottom: 3rem;
}

.details-image-container {
    width: 40%;
}

.details-content {
    padding: 3rem 4rem 0;
}

.details-image {
    position: absolute;
    left: 0%;
    top: -30%;
    width: 40%;
}

.details-image img {
    width: 100%;
}

.details-content .download-link {
    display: flex;
    justify-content: center;
}

.details-content .download-link a + a {
    margin-left: 1rem;
}

.btn-link-demo{
    width: fit-content;
    background-color: #feb139;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.281);
}

.btn-link-demo:hover{
    background-color: #f1af45;
    color: white;
}

@media (max-width: 1200px) {
    #app-download .content {
        flex-direction: column;
        align-items: flex-start;
    }
    #app-download .logo {
        width: 30%;
    }
    .course-details {
        width: 30%;
    }
    #course-list {
        /* padding-left: 1rem; */
        width: 70%;
    }
    #course-english #course-list {
        padding-right: 2.5rem;
    }

    .details-content {
        padding: 1rem 2rem;
    }

    .download-link-sub {
        flex-direction: column;
        align-items: center;
    }
    .download-link-sub a + a {
        margin-right: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 990px) {
    #app-download {
        box-shadow: 0.5rem 0rem 1rem rgb(0 0 0 / 15%) !important;
        border-radius: 1rem;
        align-items: center;
        justify-content: center;
    }
    #app-download .logo,
    #app-download .content {
        box-shadow: none !important;
    }

    #app-download .content {
        padding: 1rem;
        padding-left: 2rem;
    }
    .course-details {
        width: 35%;
    }
    #course-list {
        width: 65%;
    }

    .details-content {
        padding: 1rem 0;
    }

    .wrapper-details {
        display: flex;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #app-download .content {
        padding: 1rem 0;
        width: 70%;
        /* padding-left: 2rem; */
    }
    #app-download .logo {
        padding-right: 0;
        width: 30%;
    }

    #app-download .content .download-link {
        flex-direction: column;
        align-items: center;
    }

    #app-download .download-link a + a {
        margin-left: 0rem;
    }

    .download-link a + a {
        margin-top: 0.5rem;
    }
    .course-video {
        flex-direction: column;
    }
    .course-video .video {
        width: 100%;
        padding: 0.4rem;
    }
    .course-video .detail {
        width: 100%;
        margin-bottom: 1rem;
    }

    #course-math .background {
        width: 200%;
    }

    #course-english .background {
        width: 200%;
    }

    #course-list {
        padding-left: 2rem;
    }

    .course-details,
    #course-list {
        width: 50%;
    }

    .course-action {
        left: 40%;
    }
    #course-english .course-action {
        left: 40%;
    }

    .course-video .video {
        height: 300px;
    }

    .details-image {
        top: 10%;
    }
    #wrapper-video {
        padding-top: 2rem;
    }

    .details-content .download-link {
        flex-direction: column;
        align-items: center;
    }
    .details-content .download-link a + a {
        margin-left: 0;
    }
}

@media (max-width: 450px) {
    #app-download .content .download-link {
        margin: 0;
    }

    #app-download {
        flex-direction: column;
    }
    #app-download .content-body {
        text-align: center;
    }
    #app-download .content {
        width: 100%;
    }

    #app-download .logo {
        padding: 1rem;
        width: 50%;
    }
    .wrapper-details {
        flex-direction: column;
    }

    .course-content {
        flex-direction: column;
    }
    #course-english .course-content {
        flex-direction: column;
    }

    #course-english .course-details {
        text-align: start;
    }

    .details-image-container {
        height: 200px;
    }
    .details-content {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }

    .details-image {
        top: -5%;
        width: 55%;
    }
    #course-english #course-list {
        padding-right: 0;
    }
    .course-details {
        min-height: auto;
        width: 100%;
        margin: 1.5rem 0;
    }

    #course-list {
        width: 100%;
        padding-left: 0;
        margin-bottom: 1rem;
    }

    .slick-slide {
        margin: 0 10px;
    }
}

.object-fit-cover {
    object-fit: cover;
}

.small-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.small-title:hover {
    color: #d19c1d !important;
}

/* Hiệu ứng zoom nhẹ khi hover ảnh */
.main-news-item img, .row img {
    transition: transform 0.3s ease;
}

.main-news-item:hover img {
    transform: scale(1.02);
}

/* Đường viền đứt đoạn cho trạng thái đang phát triển */
.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}

.new-apps-sidebar .bi-apple, .new-apps-sidebar .bi-google-play {
    font-size: 1.2rem;
    transition: 0.3s;
}

.new-apps-sidebar .bi-apple:hover { color: #555 !important; }
.new-apps-sidebar .bi-google-play:hover { color: #34a853 !important; }

/* Hiệu ứng hover cho box app */
.new-apps-sidebar .border:hover {
    border-color: #007bff !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

@media (min-width: 992px) {
    .col-lg-4.ps-lg-5 {
        position: sticky;
        top: 20px;
        height: fit-content;
    }
}

/* Hiệu ứng hover cho thumbnail để bớt đơn điệu */
.hover-zoom {
    transition: transform 0.3s ease;
}
.hover-zoom:hover {
    transform: scale(1.03);
    border-color: #007bff !important;
}

.hover-text-primary:hover {
    color: #007bff !important;
}

/* Sidebar App Mobile Style - Phóng lớn Icon */
.app-sidebar-item {
    transition: all 0.3s ease;
    border: 1px solid #f0f2f5;
    background: #fff;
    cursor: pointer; /* Thêm con trỏ tay để biết có thể click */
}

.app-sidebar-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d19c1d; /* Màu vàng thương hiệu */
}

/* Icon được phóng lớn lên 64x64px và bo góc 12px */
.app-sidebar-icon {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px; /* Bo góc chuẩn iOS/Android */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-sidebar-title {
    font-size: 0.9rem; /* Tăng nhẹ font size tiêu đề */
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Chỉ hiển thị 1 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.download-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.2s;
}

.badge-ios { background: #000; color: #fff; }
.badge-android { background: #34a853; color: #fff; }

.download-badge:hover {
    opacity: 0.8;
    color: #fff;
}