.course-header{
    width: 100%;
    margin-bottom: calc(var(--dimension-ratio) * 25px);
}
.course-header h1{
    color: var(--secondary-color);
    font-size: var(--font-size-32);
    font-weight: 500;
    line-height: var(--font-size-42);
    text-align: start;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-bottom:calc(var(--dimension-ratio) * 25px);
}

.course-rate span{
    color: var(--sub-secondary-color);
    font-size: var(--font-size-18);
    font-weight: 300;
    line-height: var(--font-size-18);
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.course-rate .star-image{
    width: calc(var(--dimension-ratio) * 18px);
    height: calc(var(--dimension-ratio) * 18px);
}

.course-container{
    display: flex;
    width: 100%;
    gap: calc(var(--dimension-ratio) * 20px);
    justify-content: space-around;
    align-items: flex-start;
}

.course-navigation{
    width: calc(var(--dimension-ratio) * 615px);
    box-shadow: 4px 4px 8px 0px var(--course-shadow-color);
    border-radius: calc(var(--dimension-ratio) * 12px);
    overflow: auto;
    max-height: calc(var(--dimension-ratio) *  528px);
    background-color: var(--opinion-background-color);
}

.video-body{
    width: 100%;
}

.video-body iframe{
    width: 100%;
    height: calc(var(--dimension-ratio) * 528px);
    border-radius: calc(var(--dimension-ratio) * 10px);
    background-color: var(--gray-border-color);
}

.video-buttons{
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.video-buttons button{
    box-shadow: 4px 4px 12px 0px var(--question-shadow-color);
    background-color: var(--main-color);
    color: var(--button-text-color);
    font-size:  var(--font-size-32);
    font-weight: 500;
    line-height:  var(--font-size-40);
    text-align: center;
    border-radius:  calc(var(--dimension-ratio) * 12px);
    gap:  calc(var(--dimension-ratio) * 80px);
    width:  48%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(var(--dimension-ratio) * 82px);
}

.video-buttons button img{
    width: calc(var(--dimension-ratio) * 40px);
}

.chapter-header{
    width: 100%;
    background-color: var(--gray-background-color);
    position: relative;
    height: calc(var(--dimension-ratio) * 80px);
    cursor: pointer;
}

.chapter-header h1{
    color: var(--secondary-color);
    font-size: var(--font-size-26);
    font-weight: 500;
    text-align: start;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    position: absolute;
    inset-inline-start:  calc(var(--dimension-ratio) * 40px);
    /* top:  calc(var(--dimension-ratio) * 4px); */
    top:  50%;
    transform: translateY(-50%);
    max-width: 75% !important;
    overflow: hidden;     
}

.chapter-header h1,
.chapter-video-head h2 {
    white-space: nowrap; 
    text-overflow: ellipsis;
}

.chapter-header img{
    position: absolute;
    inset-inline-end:  calc(var(--dimension-ratio) * 40px);
    top: 50%;
    transform: translate(0,-50%);
    width: calc(var(--dimension-ratio) * 12px);
    transition: transform 0.5s;
}

.chapter-header .header-meta{
    position: absolute;
    inset-inline-start:  calc(var(--dimension-ratio) * 40px);
    top: 60%;
    display: flex;
    gap:  calc(var(--dimension-ratio) * 7px);
}

.video-period{
    color: var(--course-nav-color);
    font-size: var(--font-size-20);
    font-weight: 400;
    line-height: var(--font-size-14);
    text-align: start;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.video-count{
    color: var(--sub-secondary-color);
    font-size: var(--font-size-20);
    font-weight: 400;
    line-height:var(--font-size-14);
    text-align: start;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.separator-dot{
    width: calc(var(--dimension-ratio) * 3px);
    height: calc(var(--dimension-ratio) * 3px);
    background-color: var(--button-text-color);
    border-radius: 50%;
    margin: auto;
}

.chapter-content{
    width: 100%;
    display: flex ;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    max-height: calc(var(--dimension-ratio)* 220px);
}

.chapter-video{
    flex-shrink: 0; 
    width: 85%;
    height: calc(var(--dimension-ratio) * 65px);
    border-bottom: 1px solid var(--course-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.toggleWatchStatus{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(var(--dimension-ratio) * -35px);

}
.video-status{
    width:calc(var(--dimension-ratio) * 90px);
    height: calc(var(--dimension-ratio) * 45px);
    display: flex;
    align-items: center;
    justify-content: center;

}
.video-status-red{
    background-color: rgb(232, 116, 153, 0.2);
    color:  var(--sub-main-color);
}
.video-status-green{
    background-color: rgba(0, 221, 192,0.2);
    color:  var(--icon-green-color);
}

.video-status p{
    font-size: var(--font-size-20);
    font-weight: 400;
    text-align: right;
}

.chapter-video-head{
    display: flex;
    flex-direction: column;
    gap: calc(var(--dimension-ratio) * 10px);
}
.chapter-video-head h2{
    color: var(--secondary-color);
    font-size: var(--font-size-24);
    font-weight: 400;
    line-height: var(--font-size-20);
    text-align: start;
}
.chapter-video-period{
    display: flex;
    align-items: center;
    gap: calc(var(--dimension-ratio) * 5px);
}
.chapter-video-period span{
    color: var(--icon-green-color);
    font-size: var(--font-size-26);
    font-weight: 400;
    line-height: var(--font-size-12);
    text-align: end;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}
.chapter-video-period img{
    width: calc(var(--dimension-ratio) * 13px);
}
@media (max-width: 430px) {
    .course-container{
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .course-navigation {
        width: 80%;
        border-radius: 6px;
        max-height: 200px;
    }
    .video-container {
        width: 80%;
    }
    .chapter-header {
        height: 35px;
    }
    .chapter-header h1 {
        font-size: 10px;
        top: 6px;
        inset-inline-start: 13px;
        line-height: 11px;
    }
    .chapter-header img {
        width: 10px;
        inset-inline-end: 15px;
    }
    .video-count{
        font-size: 9px;
    }
    .video-period{
        font-size: 9px;
    }
    .separator-dot {
        width: 2.4px;
        height: 2.4px;
    }
    .chapter-header .header-meta {
        gap: 6px;
        top: 24px;
        inset-inline-start: 13px;
    }
    .chapter-video{
        height: 25px;
        border-bottom: 0.5px solid var(--course-border-color)
    }
    .chapter-video-head h2 {
        font-size: 8px;
    }
    .chapter-video-period span {
        font-size: 9px;
    }
    .chapter-video-period img {
        width: 10px;
    }
    .video-status {
        width: 42px;
        height: 17px;
        border-radius: 4px;
    }
    .video-status p{
        font-size: 8px;
    }
    .video-body iframe {
        height: 140px;
        border-radius: 6px;
    }
    .video-buttons button {
        height: 28px;
        border-radius: 6px;
        font-size: 9.9px;
    }
    .video-buttons button img {
        width: 12px;
    }
    .course-header h1 {
        font-size: 12px;
    }
    .course-header {
        width: 90%;
    }
    .course-rate .star-image {
        width: 10px;
        height: 10px;
    }
    .course-rate span {
        font-size: 10px;
    }
}