/**
 * Partner products — the banner-only card (owner, 2026-09-29).
 *
 * A partner product is now its banner and one button. The banner already carries its own
 * headline, so the text layer and the dark gradient behind it are gone from the markup; this
 * file only re-lays out what is left.
 *
 * It is a separate file on purpose. LiteSpeed minifies each stylesheet to a URL derived from its
 * path and serves it for a year, so an edit to editorial-carousels.css would never reach a
 * returning browser. That file is left untouched; this one loads after it and overrides.
 *
 * @package GEC_Academy_Child
 */

/* The card is the banner's shape at every width, so no part of the banner's own text is cropped. */
.gec-partner-product {
    aspect-ratio: 1731 / 909;
    min-height: 0;
}

/* Only the button sits on the banner; a soft shadow separates it from a busy photograph. */
.gec-partner-product__content {
    width: auto;
    max-width: none;
}

.gec-partner-product__cta {
    box-shadow: 0 6px 20px rgba(8, 24, 39, 0.28);
}

/* Tablet: the old sheet forced min-height 420px, which cropped the banner's sides. */
@media (min-width: 768px) and (max-width: 1023px) {
    .gec-partner-product {
        min-height: 0;
    }
}

/*
 * Phone: a 4:5 crop of a 1.9:1 banner cut its headline off at both ends, and a 48px button over a
 * ~180px-tall banner hid a quarter of it. The banner keeps its shape and the button moves below it.
 */
@media (max-width: 767px) {
    .gec-partner-product {
        display: flex;
        flex-direction: column;
        aspect-ratio: auto;
        min-height: 0;
        overflow: visible;
    }

    .gec-partner-product__media {
        position: relative;
        inset: auto;
        height: auto;
        aspect-ratio: 1731 / 909;
        border-radius: var(--radius-lg, 12px);
        overflow: hidden;
    }

    .gec-partner-product__content {
        position: static;
        width: auto;
        padding-top: 16px;
    }

    .gec-partner-product__cta {
        width: 100%;
        justify-content: center;
        box-shadow: none;
    }
}
