/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Target page heading wrapper to have no bottom margin if this block is first on the page - for a seamless background color between heading and cards */
.site-main:has(
  > .content-wrapper > .three-cards-block-wrapper:first-child
) > .page-heading-wrapper {
    margin-bottom: 0;
}

.site-main:has(
  > .content-wrapper > .three-cards-block-wrapper:first-child
) > .page-heading-wrapper .page-heading {
    padding: 3rem 0 .8rem 0;
}

.three-cards-block-wrapper {
    background-color: var(--wp--preset--color--db-gold-100);
}

.three-cards-block-inner {
    max-width: var(--wp--custom--wide-width);
    padding-bottom: 2rem;
}

.content-wrapper .three-cards-block-wrapper h2.three-cards-head {
    text-align: center;
    margin: 0;
    padding: 2rem 0;
}
.three-cards-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.three-cards-card {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 300px;
            flex: 1 1 300px;
    background-color: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--border-radius);
    text-align: center;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);    
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.content-wrapper h3.three-cards-subhead {
    margin: 0;
    padding: 0 0 3rem 0;
    font-family: var(--wp--preset-font-family--poppins);
    font-size: 1.25rem;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-wrap: balance;
}

.content-wrapper .three-cards-card h3 {
    font-size: 2rem;
    line-height: 2rem;
    text-wrap: balance;
    margin: 0;
    padding: 0;
}

.three-cards-card a.hollow-button {
   margin: 0;
   width: inherit;
}

.three-cards-card img {
    border-radius: var(--wp--custom--border-radius) var(--wp--custom--border-radius) 0 0;
    border-bottom: 1px solid #d9d9d9;
    height: 270px;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.three-cards-card-content-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 1.8rem;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding: 2rem;
}

@media screen and (min-width: 900px) {

    .site-main:has(
    > .content-wrapper > .three-cards-block-wrapper:first-child
    ) > .page-heading-wrapper h1 {
        font-size: 3rem;
    }

    .three-cards-block-inner {
        padding-bottom: 5rem;
    }

    .content-wrapper .three-cards-block-wrapper h2.three-cards-head {
        padding: 4.5rem 0 2.5rem 0;
    }

    .content-wrapper .three-cards-block-wrapper h2.three-cards-head:has(+ h3) {
        padding: 4.5rem 0 .8rem 0;
    }

    .three-cards-wrapper {
        margin-bottom: 4rem;
    }

    .three-cards-card-content-wrapper {
        padding: 3rem;
    }
}

@media screen and (min-width: 997px) {

    .three-cards-card:first-of-type, .three-cards-card:last-of-type {
        -webkit-transform: translateY(4rem);
            -ms-transform: translateY(4rem);
                transform: translateY(4rem);
    }

}