body {
    font-family: 'Roboto', sans-serif;
}
.dg-cards-grid {
    justify-content: center;
}
.dg-cards-grid > [class*="col-"] {
    position: relative;
    padding-bottom: 60px !important;
}

@media (min-width: 992px) {
    .dg-cards-grid > [class*="col-"] {
        padding: 30px !important;
    }
    .dg-cards-grid.left-aligned {
        justify-content: flex-start;
    }
    .dg-cards-grid.left-aligned > [class*="col-"] {
        padding: 30px 60px 30px 0 !important;
    }
}


.dg-cards-grid .dg-card {
    width: 100%;
    height: 100%;
}

.dg-card,
.dg-big-card {
    position: relative;
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.dg-card .image {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;    
}
.dg-card .image:before {
    content: "";
    display: block;
    padding-top: 70%;
}
.dg-card .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.dg-card .image .date {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: .9rem;
    font-weight: 500;
}

.dg-card .contents {
    position: relative;
    padding: 50px 25px 60px 25px;
    font-size: .9rem;
}

.dg-card .contents .title {
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
    font-size: 1.1rem;
}

.dg-card .read-more-link {
    position: absolute;
    bottom: 0;
    right: 0;
}

@media (min-width: 992px) {
    .dg-card .contents {
        position: relative;
        padding: 45px 45px 60px 45px;
    }
    .dg-card.has-overlay-element .contents {
        padding-top: 60px;
    }
}

.dg-card .overlay-element {
    position: absolute;
    top: -25px;
    left: 0;
}

.dg-card .boxed-element,
.boxed-element {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #fff;
}

.dg-card >.gb-container,
.dg-card.gb-container >.gb-container {
    padding: 0;
}
.dg-card {
    display: flex;
    flex-direction: column;
}
.dg-card .dg-card-icon figure {
    width: 80px;
    height: 45px;
    overflow: hidden;
    margin: 0 auto 20px auto;
}
.dg-card .dg-card-icon figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.wp-block-columns.dg-cards .wp-block-column {
    position: relative;
}
.wp-block-columns.dg-cards .wp-block-column .dg-card {
    width: 100%;
    height: 100%;
}

.wp-block-columns.is-layout-flex.dg-cards {
    gap: 25px;
}

.wp-block-cover {
    padding: 50px;
}

:where(.wp-block-group.has-background) {
    padding-left: 15px;
    padding-right: 15px;
}

.has-large-font-size {
    line-height: 1.3;
}