﻿
.course-info span::after {
    content: "•";
    margin: 0 10px;
    font-size: 24px;
}

.course-info span:last-child::after {
    content: "";
}

/*menu*/
.tab-menu-detail {
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0px;
    font-weight: 600;
    border-bottom: 1px solid black;
}

.tab {
    cursor: pointer;
    font-size: 18px;
    color: #000000;
    position: relative;
}

    .tab:hover {
        color: #C85527;
    }

    .tab.active {
        color: #C85527;
    }


.underline {
    position: absolute;
    bottom: 0px;
    width: 100px;
    height: 5px;
    background-color: #C85527;
    transition: left 0.3s ease, width 0.3s ease;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.courseItem{
    display: flex;
}
.hidden {
    display: none;
}

/*carousel*/
.product-infor {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #CA5627;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    width: 38%;
}
    .product-infor h1 {
        font-size: 40px;
        color: white;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        width: 100% !important;
        overflow: hidden;
        display: block;
        max-height: calc(1.5em * 2); /* 2 là số dòng */
        white-space: normal;
    }
.product-infor p{
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}
.product-infor span {
    color: white;
    margin: 0;
    font-size: 14px;
}

.related-products {
    height: 410px;
    overflow-y: auto;
    border-radius: 5px;
    background-color: white;
    padding: 16px;
}

.related-course {
    margin: 0;
    padding: 8px 0;
}

.related-course a {
    text-decoration: none;
    color: #5A5A5A;
}

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 5px;
}

.back-button {
    background-color: #C85527;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.3rem 1rem;
    font-weight: 600;
}

/*carousel youtube*/
.icon-yt img {
    position: absolute;
    bottom: 8%;
    right: 4%;
    width: 6%;
    box-shadow: 2px 7px 4px 0px rgba(0, 0, 0, 0.25);
    border-radius: 17px;
}

.youtube-link {
    cursor: pointer;
}

.youtube-player-overlay, .youtube-player-overlay-course {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 400ms ease;
    z-index: 10000;
}

    .youtube-player-overlay.active, .youtube-player-overlay-course.active {
        opacity: 1;
        pointer-events: auto;
    }

        .youtube-player-overlay.active .youtube-player-popup, .youtube-player-overlay-course.active .youtube-player-popup {
            transform: translate(-50%,0);
        }

.youtube-player-popup {
    position: fixed;
    width: 60%;
    left: 50%;
    transform: translate(-50%, -100%);
    top: 16%;
    border: 10px solid rgba(255, 255, 255, 1);
}

    .youtube-player-popup iframe {
        width: 100%;
        height: max-content;
        aspect-ratio: 16/9;
    }

@media (max-width: 1250px) {
    .container{
        max-width: 950px;
    }
    .product-infor {
        padding: 1rem;
    }
    .product-infor h1{
        font-size: 35px!important;
        margin-bottom: 1.5rem!important;
    }
    .product-infor img {
        width: 35px;
    }
    .product-infor p {
        font-size: 16px;
        font-weight: 500;
    }

    .product-infor span {
        font-size: 11px;
    }
    .pt-price{
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .product-infor {
        padding: 0.7rem;
    }

    .product-infor h1 {
        font-size: 30px !important;
        margin-bottom: 1rem !important;
    }

    .product-infor img {
        width: 25px;
    }

    .product-infor p {
        font-size: 14px;
        font-weight: 500;
    }

    .product-infor span {
        font-size: 10px;
    }

    .product-section {
        display: flex;
        flex-direction: column;
    }
    .ls-content {
        order: 2;
        width: 100%;
    }
    .pt-content {
        order: 1;
        width: 100%;
        margin-bottom: 1rem;
    }
    .pt-price {
        font-size: 1.7rem;
    }
    .discount-tag{
        text-align: end!important;
    }
}
@media (max-width: 600px) {
    .courseItem{
        flex-direction: column;
        gap: 1rem;
    }
    .courseItem-content1{
        width: 100%;
    }
    .courseItem-content2 {
        width: 100%;
    }
    .courseItem-content2 p {
        padding: 2px!important;
    }

    .product-infor {
        padding: 0.5rem;
        width: 48%;
    }

    .product-infor h1 {
        font-size: 20px !important;
        margin-bottom: 0.5rem !important;
    }
    .product-infor img {
        width: 24px;
    }

    .product-infor p {
        font-size: 12px;
        font-weight: 500;
    }

    .product-infor span {
        font-size: 10px;
    }
    .prd-content>div{
        margin-top: 0.5rem!important;
    }
    .icon-yt img {
        bottom: 1rem;
        right: 2rem;
        width: 5rem;
    }
}

@media (max-width: 420px) {
    .product-infor {
        width: 52%;
    }

    .product-infor h1 {
        font-size: 14px !important;
        margin-bottom: 0.5rem !important;
    }

    .product-infor img {
        width: 18px;
    }

    .product-infor p {
        font-size: 10px;
        font-weight: 500;
    }

    .product-infor span {
        font-size: 8px;
    }

    .prd-content > div {
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 320px) {
    .product-infor h1 {
        font-size: 12px !important;
        margin-bottom: 0.1rem !important;
    }

    .product-infor img {
        width: 12px;
    }

    .product-infor p {
        font-size: 8px;
        font-weight: 500;
    }

    .product-infor span {
        font-size: 5px;
    }

    .prd-content > div {
        margin-top: 0.2rem !important;
    }
}

