/* ==========================================================================
   Pattern: Course CTA V1
   Invitation to enquire under the course body on every course page
   (templates/single-course.html): one rounded card on the secondary colour,
   centred, sitting on the soft grey ground shared with the course details
   (#EEEDF1, see course-details.css) so it reads as its own moment between
   the course copy and the Other courses list.
   ========================================================================== */

.forge-course-cta-v1 {
    background-color: #EEEDF1;
}

/* When the course has body copy, the content group above already ends in a
   full section of grey padding; the card then starts straight after it. */
.cf-course-content:has(.wp-block-post-content) + .forge-course-cta-v1 {
    padding-top: 0;
}

.forge-course-cta-v1__email a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@media (max-width: 767.98px) {
    .forge-course-cta-v1__card {
        padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--sm) !important;
    }
}
