/* Mobile course hero: wide photo + trust strip under the banner (from dz). */
.vb-course-hero-trust-mobile {
    display: none;
}

@media (max-width: 768px) {
    body.single-courses .vb-course--dpo .vb-course-page > .vb-course-hero-wrap:first-child:has(+ .vb-course-hero-trust-mobile) {
        margin-bottom: 16px !important;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-main {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 24px;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-inner {
        padding: 24px;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-info {
        align-items: stretch;
        text-align: left;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-info-top {
        align-items: stretch;
        text-align: left;
        padding: 0;
        gap: 20px;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-badges {
        justify-content: flex-start;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-title,
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-excerpt {
        text-align: left;
        max-width: none;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-cta-block {
        padding: 0;
        align-items: stretch;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-cta-block .vb-course-price-line {
        justify-content: flex-start;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-trust-card {
        display: none !important;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-visual {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        aspect-ratio: 1817 / 866;
        overflow: hidden;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-visual-atmosphere {
        display: none !important;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img-frame,
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img-frame picture,
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img {
        border-radius: 18px;
        overflow: hidden;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img-frame {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img-frame picture,
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img-frame img,
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    body.single-courses .vb-course--dpo .vb-course-page > .vb-course-hero-trust-mobile {
        box-sizing: border-box;
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        margin: 0 0 16px !important;
        padding: 18px 24px;
        border-radius: 18px;
        background: var(--vb-cornflower, #6490e7);
    }

    body.single-courses .vb-course--dpo .vb-course-page > .vb-course-hero-trust-mobile .vb-course-trust-count {
        font-size: 20px;
        line-height: 1.2;
        color: #fff;
    }

    body.single-courses .vb-course--dpo .vb-course-page > .vb-course-hero-trust-mobile .vb-course-trust-label {
        font-size: 16px;
        line-height: 1.35;
        color: #fff;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-visual {
        height: clamp(250px, 57vw, 440px) !important;
        min-height: 250px !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        aspect-ratio: auto;
    }
}

@media (max-width: 540px) {
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-inner {
        padding: 20px;
    }

    body.single-courses .vb-course--dpo .vb-course-page > .vb-course-hero-wrap:first-child:has(+ .vb-course-hero-trust-mobile) {
        margin-bottom: 12px !important;
    }

    body.single-courses .vb-course--dpo .vb-course-page > .vb-course-hero-trust-mobile {
        margin-bottom: 12px !important;
        padding: 16px 20px;
    }
}

@media (max-width: 425px) {
    body.single-courses .vb-course--dpo .vb-course-page .vb-course-hero-visual {
        height: clamp(264px, 77vw, 336px) !important;
        min-height: clamp(264px, 77vw, 336px) !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        aspect-ratio: auto;
    }
}

@media (max-width: 768px) {
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        aspect-ratio: 1817 / 866;
        overflow: hidden;
    }

    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-visual-atmosphere {
        display: none !important;
    }

    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img-frame,
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img-frame picture,
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img {
        border-radius: 18px;
        overflow: hidden;
    }

    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img-frame {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img-frame picture,
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img-frame img,
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile .vb-course-hero-img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile {
        height: clamp(250px, 57vw, 440px) !important;
        min-height: 250px !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        aspect-ratio: auto;
    }
}

@media (max-width: 425px) {
    body.single-courses .vb-course-page .vb-course-hero-visual--has-mobile {
        height: clamp(264px, 77vw, 336px) !important;
        min-height: clamp(264px, 77vw, 336px) !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        aspect-ratio: auto;
    }
}
