/* course.css */
.video-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.course-preview {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
}

.preview-video-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    pointer-events: none;
}

h1.course-title {
    font-weight: 700;
    font-size: 70px;
    color: var(--accent-color);
    text-align: left;
}

h2.course-subtitle {
    color: white;
    font-weight: 500;
    font-size: 18px;
    text-align: left;
    margin-top: 10px;
    line-height: 1.5;
}

h3.course-content-title {
    color: white;
    font-weight: 700;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content-container {
    padding: 0 30px;
    margin-top: -15px;
    gap: 20px;
    z-index: 2;

    .left-content {
        flex-grow: 2.5;
        flex-basis: 0;
        flex-direction: column;
    }

    .right-content {
        flex-grow: 1;
        flex-basis: 0;
        flex-direction: column;
    }

    .right-content-infos {
        flex-direction: column;
        border-left: 1px solid var(--separator-color);
        padding-left: 25px;
        gap: 45px;
        margin-top: 40px;
        padding-top: 10px;
        padding-bottom: 40px;
    }
}

.course-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.course-rating-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--rating-color);
}

.course-rating-stars {
    display: flex;
    gap: 2px;
}

.course-rating-star {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(82%) sepia(60%) saturate(1000%) hue-rotate(358deg) brightness(103%) contrast(104%);
}

.course-rating-star.empty {
    opacity: 0.25;
}

.course-rating-count {
    color: var(--accent-color);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.course-rating-count:hover {
    opacity: 0.7;
}

.course-content-action-and-info-container {
    gap: 25px;
    align-items: center;
    margin-top: 45px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.course-content {
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-wrap;
    opacity: 0.9;
    display: block;
}

.course-content p {
    margin: 0;
}

.course-preview-controls-container {
    gap: 15px;
    align-self: flex-end;
    align-items: baseline;
    display: none;
    img {
        width: 33px;
        height: 33px;
        opacity: 0.58;
    }

    img.big-control {
        width: 44px;
        height: 44px;
    }

    img:hover {
        opacity: 1;
    }
}

.course-info-grid {
    display: grid;
    grid-template-columns: min-content min-content;
    grid-gap: 10px 30px;

    .item {
        font-size: 14px;
        font-weight: 600;
        white-space: pre;
    }

    .item.label {
        color: var(--dark-gray-text-color);
    }
}

.course-info-title {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.course-info-items {
    font-size: 14px;
    white-space: pre-wrap;
    flex-direction: column;
    gap: 12px;
    span {
        line-height: 1.3;
    }
    span.check {
        color: var(--accent-color);
    }
    .course-info-item {
        gap: 12px;
    }
}

.course-content {
    li {
        list-style-type: disc;
        padding: 15px 0;
    }
    ol {
        padding-inline-start: 20px;
        margin-block-start: 0;
        margin-block-end: 0;
    }
    p {
        margin-block-start: 0;
        margin-block-end: 0;
    }
}

.video-click-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}

.video-click-icon img {
    width: 100px;
    height: 100px;
    filter: brightness(0) invert(1);
}

.video-click-icon.fade-active {
    animation: videoClickIconFade 1s ease-out forwards;
}

@keyframes videoClickIconFade {
    0% { opacity: 1; }
    60% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes muteBlink {
    0% { opacity: 0.3; }
    40% { opacity: 0.3; }
    60% { opacity: 1; }
    100% { opacity: 1; }
}

.video-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.circular-loader {
    width: 120px;
    height: 120px;
    border: 8px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 0.8s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

/* ----------------- */

@media only screen and (max-width: 784px) {

}
