/*
 * OGC Course Detail Hero — Drone Header Background V1
 * The photograph is used as a right-weighted background image. Layered teal
 * overlays preserve contrast for the existing white course title and tags.
 */
.course-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background-color: #102b38;
    background-image:
        linear-gradient(
            90deg,
            rgba(10, 39, 52, .97) 0%,
            rgba(13, 49, 60, .92) 34%,
            rgba(14, 56, 64, .68) 58%,
            rgba(14, 56, 64, .34) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 31, 42, .28) 0%,
            rgba(8, 31, 42, .04) 55%,
            rgba(8, 31, 42, .08) 100%
        ),
        url("../images/course-headers/drone-mapping-header.webp");
    background-repeat: no-repeat;
    background-position: center, center, 72% center;
    background-size: cover;
}

/* Ensure the content remains above any inherited hero decoration. */
.course-detail-hero > .container {
    position: relative;
    z-index: 1;
}

.course-detail-hero .back,
.course-detail-hero h1,
.course-detail-hero p,
.course-detail-hero .detail-hero-tags {
    position: relative;
    z-index: 1;
}

.course-detail-hero .back {
    color: #a8e6cf;
}

.course-detail-hero h1 {
    text-shadow: 0 2px 20px rgba(5, 27, 37, .24);
}

.course-detail-hero p {
    text-shadow: 0 1px 12px rgba(5, 27, 37, .2);
}

@media (max-width: 700px) {
    .course-detail-hero {
        background-position: center, center, 70% center;
        background-image:
            linear-gradient(
                90deg,
                rgba(10, 39, 52, .96) 0%,
                rgba(13, 49, 60, .86) 58%,
                rgba(14, 56, 64, .60) 100%
            ),
            linear-gradient(
                0deg,
                rgba(8, 31, 42, .35) 0%,
                rgba(8, 31, 42, .10) 100%
            ),
            url("../images/course-headers/drone-mapping-header.webp");
    }
}

@media (prefers-reduced-motion: reduce) {
    .course-detail-hero {
        scroll-behavior: auto;
    }
}
