/*
 * "Our Promise" welcome card — styled to match the Kensington Bethesda hero
 * (hero-cta): a centered card with a patterned cream background, rounded
 * corners, and dark-blue buttons. The block's own Tailwind utilities
 * (bg-white, border-2 border-primary, lg:max-w-[...]) aren't compiled for this
 * plugin template, so these explicit rules define the look.
 *   primary (blue) = #00205b   secondary (gold) = #89734c
 */

/* Card: centered, ~864px max, pattern background, rounded, no border.
   Overrides the template's bg-white + border-2 border-primary utilities. */
.background-image-welcome-content .bg-white {
    margin-left: auto;
    margin-right: auto;
    background-color: #f4efe3; /* cream fallback behind the pattern */
    background-image: url('/wp-content/themes/kensington-gold/img/pattern-background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 18px;
}

/* Desktop: 50% of the container width, justified to the right (full-width and
   centered on small screens where there's no room to offset). */
@media (min-width: 992px) {
    .background-image-welcome-content .bg-white {
        width: 50%;
        margin-left: auto;
        margin-right: 5%;
    }
}

/* Decorative gold divider bar at the top of the card — ~200px wide, centered.
   The template's max-w-[150px] utility isn't compiled, so without this it spans
   the full card width. */
.background-image-welcome-content .border-2.border-secondary {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA buttons: dark blue, white text, no underline, gold on hover. */
.background-image-welcome-content .blue-buttons a {
    background-color: #00205b;
    color: #fff;
    text-decoration: none;
    /* full-width + stacked by default (see media query for the desktop row) */
    width: 100%;
    /* center the label both ways so single-line buttons aren't top-aligned when
       stretched to match a taller two-line button; !important beats the
       template's !block (display:block !important) utility. */
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.background-image-welcome-content .blue-buttons a:hover,
.background-image-welcome-content .blue-buttons a:focus {
    background-color: #89734c;
    color: #fff;
}

/* Buttons: stacked below 1200px, single equal-width row at 1200px and up. */
@media (min-width: 1200px) {
    .background-image-welcome-content .blue-buttons a {
        flex: 1 1 0;
        width: auto;
    }
}
