/* Google Ads Course hero image: responsive sizing override */
.anax-course-detail-page .anax-course-detail-hero-grid {
    align-items: center;
    min-width: 0;
}

.anax-course-detail-page .anax-course-detail-hero-grid > * {
    min-width: 0;
}

.anax-course-detail-page .anax-course-detail-hero .hero-img {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.anax-course-detail-page .anax-course-detail-hero .hero-img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    max-height: 560px;
    object-fit: contain !important;
    object-position: center;
}

@media (max-width: 900px) {
    .anax-course-detail-page .anax-course-detail-hero-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px;
    }

    .anax-course-detail-page .anax-course-detail-hero .hero-img {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .anax-course-detail-page .anax-course-detail-hero .hero-img img {
        width: 100%;
        height: auto !important;
        max-height: 420px;
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    .anax-course-detail-page .anax-course-detail-hero .hero-img img {
        max-height: 340px;
    }
}
