.base-content{
    background-color: #f0f0f0;
}

.course-detail{
    width: 90%;
    margin: auto;
}

@media (max-width:800px){
    .course-detail{
        margin-top: 80px !important;
    }
}

.course-detail .course-header{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 8px 8px 16px #d1d1d1, -8px -8px 16px #ffffff;
    background-color: #f0f0f0;
}

.course-detail .course-header .thumbnail, .course-detail .course-header .main-data{
    width: 50%;
    min-height: fit-content;
}

.course-detail .course-header .thumbnail img{
    width: 100%;
    height: 100%;
}
.course-detail .course-header .thumbnail{
    position: relative;
}
.course-detail .course-header .thumbnail .free-courses-container{
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #f0f0f0;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px; 
    transition: 0.5s;
    padding: 10px;
    height: fit-content;
    text-align: center;
}
.course-detail .course-header .thumbnail .free-courses{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: nowrap;
}
.course-detail .course-header .thumbnail .free-courses div{
    margin: 10px;
    text-align: center;
    background-color: #ffff;
    box-shadow: 0px 0px 10px;
    border-radius: 10px;
    padding: 20px;
    width: 150px;
    text-align: center;
    position: relative;
}
.course-detail .course-header .thumbnail .free-courses div .free-tag{
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: fit-content;
    color: white;
    padding: 5px;
    margin: 0;
    border-radius: 0;
    font-size: small;
    border-top-left-radius: 10px;
}
.course-detail .course-header .thumbnail .free-courses div img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.course-detail .course-header .thumbnail .free-courses div p{
    font-size: small;
}
.course-detail .course-header .main-data{
    text-align: center;
}

.course-detail .course-header .main-data .course-name{
    font-size: larger;
    font-weight: 600;
    color: red;
}

.course-detail .course-header .main-data .highlight{
    font-size: x-large;
    font-weight: 600;
    color: coral;
    text-decoration: underline;
}

.course-detail .course-header .main-data p .enroll-btn{
    background-color: green;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.course-detail .course-header .main-data .enroll-para-btn{
    margin: 10px 0px;
}

.course-detail .course-header .main-data .sub-data{
    padding: 20px;
}

.course-detail .course-header .main-data .sub-data p{
    text-align: justify;
    line-height: 30px;
}

@media (max-width:900px){
    .course-detail .course-header .thumbnail, .course-detail .course-header .main-data{
        width: 100%;
    }
    .course-detail .course-header .main-data{
        height: fit-content;
    }
    .course-detail .course-header .thumbnail .free-courses{
        align-items: center;
        overflow-x: scroll;
    }
}