/* TebZone UI: course page hero with the course thumbnail behind the text, like the home slider and the bundle page.
   Loaded only by design_1/web/tz/course/show.blade.php. Without a thumbnail (or when it fails to load) the brand gradient stays. */
.tz-ch { position: relative; }
.tz-ch-art { position: absolute; inset: 0; overflow: hidden; }
/* the site stylesheet sets img height:auto; the image must cover the whole box */
.tz .tz-ch-art img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center; }
/* a dark fade from the start side keeps the text readable; the picture shows on the end side */
.tz-ch-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 30, 40, .96) 0%, rgba(4, 30, 40, .9) 45%, rgba(4, 30, 40, .55) 70%, rgba(4, 30, 40, .12) 100%); }
[dir="rtl"] .tz-ch-shade { background: linear-gradient(270deg, rgba(4, 30, 40, .96) 0%, rgba(4, 30, 40, .9) 45%, rgba(4, 30, 40, .55) 70%, rgba(4, 30, 40, .12) 100%); }
.tz-ch-inner { position: relative; z-index: 1; }
/* thin teal-to-gold edge along the bottom, as on the bundle page */
.tz-ch-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, #15D1C8, #F9BD3A); }
/* the large category icon is only for the plain gradient */
.tz .tz-ch.tz-ch-media .tz-ch-icon { display: none !important; }
@media (min-width: 1024px) {
    .tz-ch-media { min-height: 400px; display: flex; align-items: center; }
    .tz-ch-media > .tz-ch-inner { width: 100%; }
}
/* tablets: the text spans the width, so the shade covers all of it */
@media (max-width: 1023px) {
    .tz-ch-shade, [dir="rtl"] .tz-ch-shade { background: linear-gradient(180deg, rgba(4, 30, 40, .82) 0%, rgba(4, 30, 40, .92) 100%); }
}
/* phones: the picture on top, the text under it on the brand gradient (as the home slider does) */
@media (max-width: 767px) {
    .tz-ch-art { position: relative; inset: auto; aspect-ratio: 16 / 9; width: 100%; }
    .tz-ch-shade { display: none; }
}
