
.section {
    padding: 64px 0;
    background: white;
}

.section:nth-child(2n+2) {
    background: var(--bg-purple);
}


.section:has(.wrapper:empty:only-child) {
    display: none;
}
.section > .wrapper:empty {
    display: none;
}


body.home {
}



.section[class*="dark"] { color:white; }
#first_text { margin-bottom: 64px; }


@media all and (max-width: 899px) {
    .section {
        padding: 48px 0;
    }

    #first_text { margin-bottom: 48px; }

}

@media all and (max-width: 599px) {
    .section {
        padding: 32px 0;

    }

    #first_text { margin-bottom: 32px; }
}

@media all and (min-width: 900px) {
    .section > .wrapper > header.cardheader,
    .section > .wrapper > header:not(.textcontent):first-child {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .section > .wrapper > header.cardheader .cta:last-child { margin-top: 0;}

}


.bodytext + header.cardheader { margin-top: var(--gutter_big); }

.cards + .bodytext ,
.shop_cards + .bodytext ,
.cards + header.cardheader,
.shop_cards + header.cardheader,
.bodytext + header.cardheader,
.bodytext + .cards,
.bodytext + .shop_cards
{ margin-top: var(--gutter_big); }


body[class*="template_news"],
body[class*="template_blog"],
body[class*="template_events"],

body[class*="template_news"] .section,
body[class*="template_blog"] .section ,
body[class*="template_events"] .section {
    background:  var(--bg-purple) !important ;
}

body[class*="template_news"] .section+.section,
body[class*="template_blog"] .section+.section,
body[class*="template_events"] .section+.section {
    padding-top: 0 !important;
}

.section.grants,
.section.tags_section
{background: white !important;}