/* Talentcroft course featured images, course overview video and social-media support. */

.course-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
}

.course-cover.has-image {
    background: #111;
}

.course-cover img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.course-card:hover .course-cover img {
    transform: scale(1.035);
}

.course-cover-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .04) 28%, rgba(0, 0, 0, .78) 100%);
}

.course-cover-label,
.course-cover-fallback {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    color: #fff;
    font-weight: 900;
}

.course-cover-label {
    margin: 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(12, 12, 12, .58);
    backdrop-filter: blur(8px);
    font-size: .78rem;
}

.course-cover-fallback {
    width: 100%;
    padding: 18px;
}

.course-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.course-hero-bg,
.course-hero-overlay {
    position: absolute;
    inset: 0;
}

.course-hero-bg {
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-hero-overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 6, 6, .96) 0%, rgba(6, 6, 6, .87) 44%, rgba(6, 6, 6, .58) 73%, rgba(6, 6, 6, .70) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .38));
}

.course-hero-content {
    position: relative;
    z-index: 2;
}

.course-hero.has-featured-image {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.course-hero.has-featured-image .course-purchase-card {
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.course-overview-video-section {
    padding: 64px 0 18px;
    background: #0b0b0b;
    color: #fff;
}

.course-overview-video-heading {
    margin-bottom: 22px;
}

.course-overview-video-heading h2 {
    color: #fff;
}

.course-overview-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #2f2f2f;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.course-overview-video iframe,
.course-overview-video video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
}

.course-media-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 24px 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.course-media-editor > .form-group {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    background: var(--surface-2);
}

.course-media-preview {
    margin: 16px 0 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #000;
}

.course-media-preview.image-preview {
    aspect-ratio: 1200 / 630;
}

.course-media-preview.video-preview {
    aspect-ratio: 16 / 9;
}

.course-media-preview img,
.course-media-preview video,
.course-media-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.admin-course-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.admin-course-title img {
    width: 74px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: #111;
}

@media (max-width: 900px) {
    .course-hero.has-featured-image {
        min-height: 0;
    }

    .course-hero-overlay {
        background: rgba(5, 5, 5, .82);
    }

    .course-media-editor {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .course-overview-video-section {
        padding-top: 44px;
    }

    .course-overview-video {
        border-radius: 16px;
    }

    .course-cover-label {
        margin: 14px;
    }
}
