.back-g {
    background-image: url(https://local.jba-web.org/wp-content/uploads/2023/09/makeup.jpg);
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 180px;
    position: relative;
}
.back-g.teacher {
    background-image: url(https://local.jba-web.org/wp-content/uploads/2023/09/kousi-1.jpg);
}
.red {
    color: red;
}
.t-layer {
    background: rgba(30, 115, 190, 0.4);
    position: absolute;
    top:0;
    bottom:0;
    right:0;
    left:0;
}
.top-name {
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    margin-left:20px;
    color:white;
    z-index: 2;
}
.top-img-par {
    position: relative;
}
.top-img {
    object-fit:cover;
    height: 350px;
}
.main-con {
    max-width: 1182px;
    width:90%;
    margin:auto;
    margin-top: 30px;
}
.cat {
    position: absolute;
    top:0;
    left: 0;
    padding: 4px 15px;
}
.main-title-con {
    position: absolute;
    bottom:0;
    background: rgba(255, 255, 255, 0.6);
    width:100%;
    padding: 15px;
}
.main-title {
    padding-left: 22px;
    color: #ff4b54;
    font-size: 22px;
}
.top-course {
    color: white;
    background-color: #ff4b54;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    font-size: 16px;
}
.top-course p {
    margin-bottom: 0;
}
.bottom-list ul {
    list-style: none;
    padding-left: 0;
}
.bottom-list li {
    padding: 10px 25px;
}
.bottom-list li a {
    color: black;
}
.bottom-list li:nth-child(2n) {
    background: #f1f1f1;
}
.bottom-list li:nth-child(2n+1) {
    background: #f7f7f8
}
.side {
    margin-top:50px;
}
body .comments-area a,body .page-content  a { text-decoration: none; }



@media screen and (max-width:549px) {
    .back-g {
        height: 90px;
    }
    .top-name {
        font-size: 20px;
    }
    .top-img {
        object-fit:cover;
        height: 200px;
    }
    .main-title-con{
        padding: 0;
    }
    .main-title {
        font-size: 16px;
    }
} 

@media screen and (min-width:951px) {
    .main-con {
        display:flex;
        justify-content: space-between;
    }
    .side {
        padding:30px;
        width: 360px;
        margin-top: 0px;
    }
    .side-chi {
        width: 360px;
    }
    .main-sub {
        padding: 30px;

    }
}