﻿/* Danh sách tủ sách chi tiet */

.content-wrapper {
    display: grid;
    gap: 24px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}


/* App Details Page Responsive */
@media (max-width: 1199px) {
    .content-wrapper {
        display: block;
        gap: 20px;
    }

    .main-content-section {
        order: 1;
    }

}

@media (max-width: 768px) {
    .content-wrapper {
        display: block;
        gap: 20px;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.6rem;
    }

    .main-content-section {
        padding: 0;
    }

    .info-block {
        margin-bottom: 16px;
    }

    .app-info {
        text-align: center;
    }

}

/* end danh sách tủ sach chi tiet */

/* Bat dau bai viet*/
.input-group-btn > .btn {
    padding: 6px 8px;
    border-radius: 4px;
}

.set-bg {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
}

    .set-bg.middle {
        background-position: center;
        background-size: contain;
    }


.my-title {
    color: var(--colorBackground);
    font-weight: 700;
    font-size: 2rem;
    line-height: 32px;
    border-bottom: 1px solid #e7eaec;
    margin-bottom: 15px;
    width: 100%;
}

    .my-title a {
        margin: 0 16px 0 0;
        color: #222222;
        font-weight: 400;
        font-size: 16px;
        line-height: 30px;
        float: right;
    }

        .my-title a:hover {
            color: #ffb100;
        }

        .my-title a.icon-next {
            background-image: url(/img/next-more.svg);
            background-repeat: no-repeat;
            background-position-x: right;
            background-position-y: center;
            padding-right: 12px
        }

            .my-title a.icon-next:hover {
                background-image: url(/img/next-more-hover.svg);
            }



.my-title-2 {
    color: var(--colorBackground);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 32px;
    border-bottom: 1px solid #e7eaec;
    margin-bottom: 10px;
}

.list-catalog .ibox {
    clear: both;
    margin-bottom: 25px;
    margin-top: 0;
    padding: 0;
}

.list-catalog .ibox-content {
    background-color: #ffffff;
    color: inherit;
    padding: 15px 20px 20px 20px;
    border-color: #e7eaec;
    border-image: none;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    overflow: hidden;
    text-align: justify;
}

.list-catalog .article-title {
    margin: 20px 0 10px 0;
}

    .list-catalog .article-title h1 {
        font-weight: 600;
        font-size: 26px;
        margin-top: 10px;
    }

    .list-catalog .article-title .article-info {

    }
    .list-catalog .article-title .article-summary {
        font-weight: 600;
        font-size: 16px;
        margin-top: 5px;
        line-height: 140%;
    }

.list-catalog .article img {
    max-width: 100% !important;
    max-height: max-content;
}

.list-catalog .product-box {
    background-color: #ffffff;
    color: inherit;
    padding: 0;
    border: 1px solid #e7eaec;
    border-radius: 10px;
    overflow: hidden;
}

    .list-catalog .product-box:hover,
    .list-catalog .product-box.active {
        border: 1px solid transparent;
        -webkit-box-shadow: 0 3px 7px 0 #a8a8a8;
        -moz-box-shadow: 0 3px 7px 0 #a8a8a8;
        box-shadow: 0 3px 7px 0 #a8a8a8;
    }

    .list-catalog .product-box .pi-pic {
        overflow: hidden;
        position: relative;
        width: 100%;
        padding-top: 60%;
        border-bottom: 1px solid #e7eaec;
        background-color: #f2f4f5;
        display: block;
    }

.list-catalog .product-desc {
    padding: 16px;
    position: relative;
}

    .list-catalog .product-desc .product-name {
        color: #282829;
        font-weight: 600;
        font-size: inherit;
        height: 42px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin: 2px 0 5px 0;
    }

    .list-catalog .product-desc .summary {
        height: 56px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

.list-new a.text-muted:hover,
.list-new a.text-muted:focus,
.list-catalog a.text-muted:hover,
.list-catalog a.text-muted:focus {
    color: #222222 !important;
}

.list-new .product-name:hover,
.list-new .product-name:focus,
.list-catalog .product-name:hover,
.list-catalog .product-name:focus {
    color: #ffa500;
}

.file-manager {
    list-style: none outside none;
    margin: 0;
    padding: 0;
}

.folder-list li a {
    color: #666666;
    display: block;
    padding: 5px 0;
}

    .folder-list li a:hover {
        color: black;
    }

.folder-list li {
    border-bottom: 1px solid #e7eaec;
    display: block;
}

    .folder-list li i {
        margin-right: 8px;
        color: #3d4d5d;
    }

.file-manager h5.tag-title {
    margin-top: 20px;
}

.file-manager h5 {
    text-transform: uppercase;
}

ul.tag-list li {
    list-style: none;
}

.tag-list li {
    float: left;
}

    .tag-list li a {
        font-size: 10px;
        background-color: #f3f3f4;
        padding: 4px 4px;
        color: inherit;
        border-radius: 2px;
        border: 1px solid #e7eaec;
        margin-right: 5px;
        margin-top: 5px;
        display: block;
    }
/* end danh sach bai viet*/

/*Bat dau danh sach khoa hoc*/
/*----------------------------------Khoa Hoc ---------------------------------*/
/* Desktop */

.course-detail {
    width: 100%;
}

.course-navigation {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f1efef;
    color: #292d63;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-btn:hover {
        background: #fff;
        border-color: #0A34BE;
        text-decoration: none;
        color: #0A34BE;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(10, 52, 190, 0.1);
    }

    .nav-btn i {
        font-size: 18px;
    }

    .nav-btn span {
        font-size: 16px;
    }



.course-hero-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: 0 auto;
}


.course-info {
    max-width: 600px;
}

.course-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.4;
    color: #292d63;
    margin: 0;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

    .course-meta-item:hover {
        background: #fff;
        transform: translateY(-2px);
        border-color: #0A34BE;
        box-shadow: 0 4px 15px rgba(10, 52, 190, 0.1);
    }

    .course-meta-item i {
        font-size: 28px;
        color: #0A34BE;
        background: rgba(10, 52, 190, 0.1);
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    .course-meta-item .meta-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .course-meta-item .meta-label {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

    .course-meta-item .meta-value {
        font-size: 18px;
        font-weight: 600;
        color: #292d63;
    }

.course-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

.course-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

    .course-image img {
        width: 100%;
        height: 100%;
    }



.course-section {
    margin-bottom: 30px;
}

.TieuDeKH {
    font-size: 28px;
    font-weight: 700;
    color: #292d63;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

    .TieuDeKH::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 24px;
        background: #0A34BE;
        border-radius: 2px;
    }


.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--bg-grad-45);
}

.info-card {
    background: #fff;
    border-radius: 1.6rem;
    padding: 1.6rem;
    box-shadow: 0 1px 5px rgba(10, 52, 190, 0.08);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}


.info-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #292d63;
    margin-bottom: 20px;
}


.book-price .price {
    font-size: 48px;
    font-weight: 800;
    color: #0A34BE;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.book-price .old-price {
    text-decoration: line-through;
}

.pricing-card .course-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pricing-card .course-meta-item {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 16px;
    transition: all 0.3s ease;
}

    .pricing-card .course-meta-item:hover {
        background: #fff;
        border-color: #0A34BE;
        transform: translateY(-2px);
    }

    .pricing-card .course-meta-item i {
        font-size: 24px;
        color: #0A34BE;
        background: rgba(10, 52, 190, 0.1);
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        margin-bottom: 15px;
    }

.pricing-card .meta-content {
    text-align: center;
}

.pricing-card .meta-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.pricing-card .meta-value {
    font-size: 20px;
    font-weight: 700;
    color: #292d63;
}

.hoso-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 10px;
}

.hoso-item-content_title {
    color: var(--Text-Tertiary-Text, #708090);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 140%;
    text-align: right;
    flex: 1;
}

.hoso-item-content_info {
    flex: 2;
}

.hoso-item-content_info-wrapper {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hoso-input-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: 1.6rem;
    background: var(--Background-Background, #F2F2F2);
    padding: 0;
    width: 100%;
    border: 1px solid transparent;
    max-width: 400px;
    min-width: 225px;
    position: relative;
}

    .hoso-input-wrapper:focus-within {
        border: 1px solid var(--Primary-Primary, #0A34BE);
        background: var(--Pure-White, #FFF);
        box-shadow: 0px 0px 20px 0px rgba(10, 52, 190, 0.20);
    }


.hoso-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    caret-color: var(--Primary-Primary, #0A34BE);
    color: var(--Text-Primary-Text, #141414);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 140%;
    padding: 0.6rem 1.6rem 0.5rem;
    position: relative;
}

    .hoso-input::placeholder {
        font-style: italic;
    }

.hoso-input-warning {
    color: var(--Status-Invalid, #E03E3E);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 140%;
    width: 100%;
    margin-left: 2rem;
}

.modal-main-form {
    padding: 20px;
}


.btn-login {
    margin-top: 20px;
}

.registration-card {
    background: #fff;
    border-radius: 1.6rem;
    padding: 1.6rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    margin-top: 20px;
    border: 1px solid rgba(0,0,0,0.1);
}

    .registration-card .modal-main-form {
        max-width: 600px;
        margin: 0 auto;
        gap: 0;
    }

    .registration-card .modal-main-title {
        margin-bottom: 40px;
    }


/* #region Hero */

.modal-main-form {
    padding: 2rem 0rem;
}

.course-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dethi {
    flex: 0 0 calc((100% - 2 * 2rem) / 3); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 2.6rem;
    box-shadow: 0 0 8px 0px #8884;
    border: double 0px transparent;
    background-image: linear-gradient(white, white), linear-gradient(45deg, rgba(21, 12, 222, 1) 0%, rgba(241, 31, 76, 1) 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    padding-bottom: 2px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .dethi:hover {
        transform: translateY(-5px);
    }

    .dethi .dethi-header {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* Tỷ lệ 16:9 */
        overflow: hidden;
        background: #f5f5f5;
    }

        .dethi .dethi-header img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

    .dethi:hover .dethi-header img {
        transform: scale(1.05);
    }

    .dethi .dethi-info {
        padding: 1.6rem;
        background: white;
    }

    .dethi .dethi-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.8rem;
        font-weight: 700;
        color: #292d63;
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.4;
    }

    .dethi .dethi-details {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.6rem;
    }

    .dethi .dethi-detail-item {
        display: flex;
        gap: 0.8rem;
        color: #666;
        font-size: 1.4rem;
    }

        .dethi .dethi-detail-item i {
            color: #0A34BE;
            font-size: 1.6rem;
        }

    .dethi .dethi-price {
        font-size: 2.4rem;
        font-weight: 700;
        color: #0A34BE;
        text-align: center;
        margin-bottom: 1.6rem;
    }

    .dethi .dethi-body {
        padding: 0 1.6rem 1.6rem;
    }

    .dethi .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.6rem;
        font-weight: 600;
        border-radius: 1rem;
        text-align: center;
        transition: all 0.3s ease;
    }

    .dethi .dethi-body .key {
        font-weight: 500;
    }

    .dethi .dethi-body .date {
        font-size: 1.2rem;
        color: var(--Text-Secondary-Text);
    }

    .dethi .dethi-body .box-thithu {
        padding-top: 0.8rem;
        width: 100%;
        text-align: center;
        color: var(--colorHightLight);
    }


.modal-main-title {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: left;
}


.modal-main-title-text {
    color: var(--DarkBlue-400);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 140%;
    width: 100%;
    text-align: center;
}

.modal-main-title-subtext {
    color: var(--colorPrimaryText);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 140%;
    width: 100%;
    text-align: center;
}
.loai-khoa-hoc-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 20px;
}
    

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Desktop small & Tablet */

@media (max-width: 1199px) {
    .course-info-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .course-content {
        padding: 0 0;
    }

    .course-info {
        max-width: 100%;
    }

    .course-meta {
        justify-content: center;
    }

    .course-image {
        min-height: 300px;
        order: -1;
    }

    .hoso-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hoso-item-content_title {
        text-align: left;
        width: 100%;
    }

    .hoso-item-content_info {
        width: 100%;
    }

    .hoso-item-content_info-wrapper {
        max-width: 100%;
    }

    .hoso-input-wrapper {
        max-width: 100%;
    }
    .Mota-khoahoc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 250px;
        height: 40px;
    }
    .dethi {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
}


/* Mobile */
@media (max-width: 767px) {

    .course-navigation {
        padding: 15px 0;
    }

    .nav-btn {
        padding: 8px 16px;
    }

        .nav-btn span {
            font-size: 14px;
        }

    .course-title {
        font-size: 28px;
    }

    .course-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .course-description {
        font-size: 16px;
    }

    .course-image {
        min-height: 250px;
    }


        .pricing-card .course-meta {
            grid-template-columns: 1fr;
            padding: 20px;
        }
    .book-price {
        text-align: center;
        height: 32px;
    }

        .book-price .price {
            font-size: 18px;
        }

    .registration-card {
        padding: 20px;
    }

    .modal-main-title-text {
        font-size: 20px;
    }

    .modal-main-title-subtext {
        font-size: 14px;
    }

    .hoso-item {
        padding: 5px;
    }

    .hoso-item-content_title {
        font-size: 1.6rem;
    }

    .hoso-input {
        font-size: 1.4rem;
    }

    .hoso-input-warning,
    .hoso-input-success {
        font-size: 1.2rem;
        margin-left: 1rem;
    }

    .btn-gradient {
        font-size: 1.4rem;
        padding: 12px 20px;
    }

    .registration-card {
        padding: 20px;
    }
    .hoso-item-content_title {
        font-size: 1.3rem;
        font-weight: 600;
    }
    .loai-khoa-hoc-section {
        width: 100%;
        margin-bottom: 40px;
    }

    .Mota-khoahoc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 250px;
    }

    .dethi {
        flex: 0 0 100%;
    }
}

/*End Danh sach khoa hoc*/