.main-content .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    max-width: 800px;
    width: calc(100% - 50px);
    margin-left: auto;
    margin-right: auto;
}

.alignwide .container {
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
}

.alignwide .alignwide {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;  
}
.container.alignwide {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991px) {
    .container.alignwide {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
#mobile-navbar-wrapper .container.alignwide {
    padding-left: 0;
    padding-right: 0;
}

.alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    width: calc(100% - 50px); /* width: calc(100% - 50px); */
	max-width: calc(var(--wp--style--global--wide-size));
    margin-left: auto;
    margin-right: auto;
}

.alignwide > .iframe-container {
    width: 100%;
    max-width: none;
}
.alignwide .alignwide {
    width: 100%;
    max-width: 100%;
}
:where(.wp-block-group.has-background) {
    padding: 100px 0;
}

.is-style-dg-small-y-paddings {
    padding-top: 25px;
    padding-bottom: 25px;
}

@media (min-width: 782px) {
    .is-style-dg-small-y-paddings {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

.is-style-dg-big-y-paddings {
    padding-top: 50px;
    padding-bottom: 50px;
}

@media (min-width: 782px) {
    .is-style-dg-big-y-paddings {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

.is-style-dg-small-bottom-margin {
    margin-bottom: 25px;
}

@media (min-width: 782px) {
    .is-style-dg-small-bottom-margin {
        margin-bottom: 50px;
    }
}

.is-style-dg-big-bottom-margin {
    margin-bottom: 50px;
}

@media (min-width: 782px) {
    .is-style-dg-big-bottom-margin {
        margin-bottom: 100px;
    }
}



h1, .h1 { font-size: 3.8rem; }
h2, .h2 { font-size: 2.5rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.4rem; }
h5, .h5 { font-size: 1.2rem; }
h6, .h6 { font-size: 1rem; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-weight: 800;
}
  
@media (max-width: 991px) {
	h1, .h1 { font-size: 2.4rem; }
	h2, .h2 { font-size: 1.8rem; }
	h3, .h3 { font-size: 1.5rem; }
	h4, .h4 { font-size: 1.3rem; }
	h5, .h5 { 
        font-size: 1.2rem;
        line-height: 1.2;
    }
	h6, .h6 { font-size: 1rem; }

    h1, h2 {
        hyphens: auto;
    }
}

@media (max-width: 500px) {
    h1, h2, h3, h4 {
        hyphens: auto;
    }
}

.top-hero .top-hero__content {
    padding-left: 0;
    padding-right: 0;
}

.wp-block-heading, 
p {
    margin-bottom: 25px !important;
}

p {
    line-height: 1.5;
}

/* h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin-bottom: 15px;
} */

.dg-cards-grid {
    /* justify-content: center;  */
}
.dg-cards-grid > [class*="col-"] {
    padding: 30px;
    position: relative;
}

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

:where(.wp-block-group.has-background) {
    padding: 50px 0 !important;
}
:where(.alignwide.wp-block-group.has-background) {
    padding: 50px !important;
}
@media (min-width: 782px) {
    :where(.wp-block-group.has-background) {
        padding: 100px 0 !important;
    }
    :where(.alignwide.wp-block-group.has-background) {
        padding: 100px !important;
    }
}

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

@media (min-width: 500px) {
    .dg-card {
        padding: 50px;
    }
}

.dg-grid > [class*='col-'] > .dg-card {
    height: 100%;
}

.dg-card >.gb-container,
.dg-card.gb-container >.gb-container {
    padding: 0;
}
.dg-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.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;
}

.wp-block-group.alignfull.is-layout-constrained {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.wp-block-group.is-style-content-paddings {
    padding: 25px !important;
}

@media (min-width: 782px) {
    .wp-block-group.is-style-content-paddings {
        padding: 50px !important;
    }
}

.dg-rounded {
    border-radius: 50px;
}

.top-hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding-top: 200px;
    padding-bottom: 100px;
}
.top-hero .top-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.top-hero .top-hero__content {
    position: relative;
    left: auto;
    right: auto;
    z-index: 2;
    text-align: left;
    color: #fff;
    transform: none;
}

.top-hero .top-hero__content .texts-wrapper {
    width: 95%;
    max-width: 800px;
    text-align: left;
    padding: 0;
    margin: 0;
}
.top-hero.has-texts .top-hero__dim_layer {
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* background-color: rgba(0, 0, 0, 0); */
}
h1.page-caption,
.top-hero .top-hero__content .content {
    text-align: left;
    text-shadow: 0px 1px 8px rgba(0, 0, 0, 0.6);
}



.dg-graph-bottom-right,
.dg-graph-top-right,
.dg-graph-top-left {
    background-repeat: no-repeat;
    background-size: 50px;
}

@media (min-width: 992px) {
    .dg-graph-bottom-right,
    .dg-graph-top-right,
    .dg-graph-top-left {
        background-size: 80px;
    }
}


.dg-graph-bottom-right {
    background-position: right bottom;
    padding-bottom: 50px !important;
}

@media (min-width: 992px) {
    .dg-graph-bottom-right {
        padding-bottom: 100px !important;
    }   
}




.dg-graph-top-right {
    background-position: right top;
}
.dg-graph-top-left {
    background-position: left top;
}

.dg-graph-top-right,
.dg-graph-top-left {
    padding-top: 50px !important;
}

@media (min-width: 992px) {
    .dg-graph-top-right,
    .dg-graph-top-left {
        padding-top: 100px !important;
    }
}


.dg-graph-bottom-right.graph-1 {
    background-image: url('../../../images/graph-1-1.svg');
}
.dg-graph-bottom-right.graph-2 {
    background-image: url('../../../images/graph-1-2.svg');
}
.dg-graph-top-right.graph-3 {
    background-image: url('../../../images/graph-1-3.svg');
}
.dg-graph-top-left.graph-4 {
    background-image: url('../../../images/graph-1-4.svg');
}




h1.page-caption small {
    font-weight: 700;
}

.wp-block-quote {
    padding: 25px 0 0 0;
    margin-bottom: 75px;
    border: 0;
    color: #2F2F2F;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.wp-block-quote::before {
    content: '';
    display: block;
    width: 100px;
    height: 50px;
    background-image: url('../../../images/quotemark.png');
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto 20px auto;
}

.dg-bg-nosto-box {
    position: relative;
    width: 100%;
    max-width: 1022px;
    overflow: hidden;
}

.dg-bg-nosto-box-link {
    display: block;
    position: relative;
    text-align: center;
    color: white;
}

a.dg-bg-nosto-box-link:hover {
    color: #fff;
}

.dg-bg-nosto-box .dg-bg-nosto-box-content {
    font-weight: 700;
    font-size: 1.1rem;
}

.dg-bg-nosto-box-image {
    width: 100%;
    height: auto;
    display: block;
}

.dg-bg-nosto-box-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 1rem;
}

.dg-bg-nosto-box-title {
    margin: 0;
    font-size: 2rem;
    color: white;
}

.dg-bg-nosto-box-link .btn {
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

/* Optional overlay for better text readability */
.dg-bg-nosto-box-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); /* dark overlay */
    z-index: 1;
}

.nostolaatikot > .row > [class*="col-"] {
    position: relative;
    padding: 0;
    min-height: 400px;
}

.nostolaatikot .dg-bg-nosto-box,
.nostolaatikot .dg-bg-nosto-box-link {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}
.nostolaatikot .dg-bg-nosto-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bg-lightgray {
    background-color: #F7F7F7;
}

.dg-cards-small-grid {
    width: calc(100% + 20px);
    margin-left: -10px;
}
.dg-cards-small-grid > [class*="col-"] {
    padding: 10px;
}
.article-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
}
.article-card .customer-name {
    font-weight: 700;
}
.article-card .paddings, 
.page-card .paddings {
    padding: 25px;
}

@media (min-width: 500px) {
    .article-card .paddings, 
    .page-card .paddings {
        padding: 40px;
    }
}


a.card-link {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}
.article-card a.card-link:hover {
    background-color: #FF611A;
    color: #fff;
}
.article-card a.card-link:hover * {
    color: #fff;
}

.article-card .post-date {
    color: #909090;
}

.article-card a.card-link:hover .btn.btn-link {
    color: #fff;
}
.article-card a.card-link:hover .btn.btn-link::after {
    background-image: url('../../../images/icon-arrow-custom-white.svg');
}

.slick-item .page-card {
    background-color: #2F2F2F;
    color: #fff;
    margin: 10px;
    /* height: 350px; */
    min-height: 350px;
}
  
.dg-nosto-two-columns .dg-post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-nosto-two-columns .img-col {
    min-height: 300px;
}

.dg-caption-wrapper {
    gap: 25px;
}

@media (min-width: 768px) {
    .dg-pull-sections-over-eachother .dg_customer_story {
        margin-bottom: -200px;
    }
    .dg-pull-sections-over-eachother .ajankohtaista {
        padding-top: 200px;
    }
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #FF611A;
}
.site-footer {
    color: #fff;
}
.site-footer a {
    color: #FF611A;
}

.site-footer.dg-graph-top-left {
    padding-top: 100px !important;
}

ul.footer-menu,
ul.footer-menu ul.sub-menu {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

ul.footer-menu a {
    text-decoration: none;
    color: #fff;
}
ul.footer-menu a:hover {
    text-decoration: none !important;
}

ul.footer-menu > li > a {
    padding: 0.5rem 0;
    display: block;
    color: #FF611A;
    font-size: 1.2rem;
    font-weight: 700;
}

ul.footer-menu > li {
    margin-bottom: 15px;
}

ul.footer-menu > li li {
    margin-bottom: 5px;
}

ul.footer-bottom-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
ul.footer-bottom-menu li {
    margin-right: 30px;
    margin-bottom: 10px;
}

ul.footer-bottom-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
ul.footer-bottom-menu a:hover {
    text-decoration: none !important;
}

ul.footer-bottom-menu a::after {
    content: " ";
    margin-left: 10px;
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('../../../images/icon-arrow-custom-white.svg');
    background-position: 0 2px;
    background-size: 13px;
    background-repeat: no-repeat;
}
ul.footer-bottom-menu a:hover::after {
    background-image: url('../../../images/icon-arrow-custom-orange.svg');
}


.dg-pull-up {
    position: relative;
    margin-top: -80px;
    z-index: 1;
}

.bgcolor-efefef {
    background-color: #efefef;
}

body.archive,
body.home,
body.blog {
    background-color: #efefef;
}

body.archive .top-hero,
body.archive .top-hero .top-hero__image,
body.blog .top-hero,
body.blog .top-hero .top-hero__image,
body.error404 .top-hero,
body.error404 .top-hero .top-hero__image {
    min-height: 500px;
    padding-top: 50px;
    padding-bottom: 50px;
}



.bg-lightest-gray {
    background-color: #FAFAFA;
}

.navigation-buttons {
    gap: 15px;
}

.dg-custom-card {
    background-color: #2F2F2F;
    color: #fff;
}

.dg-custom-card .contents {
    padding: 50px;
}

.dg-cards-grid {
    margin-right: 0;
    margin-left: -15px;
    width: calc(100% + 30px);
}
.dg-cards-grid > [class*="col-"] {
	padding: 15px;
}

.dg-cards-grid .dg-custom-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dg-custom-card a {
    color: inherit;
    text-decoration: none !important;
}

.top-hero .top-hero__content .content {
    font-size: 1.4rem;
    font-weight: 700;
}

@media(max-width: 991px) {
    .navbar-light ul.main-menu.navbar-nav a.nav-link {
        font-size: 1.1rem;
    }
    .navbar-light ul.main-menu.navbar-nav .dropdown-menu {
        margin-bottom: 10px;
    }
}

.navbar-light ul.main-menu.navbar-nav a.nav-link,
.navbar-light ul.main-menu .dropdown-item {
    color: #2F2F2F;
}
@media (min-width: 992px) {
    .navbar-light ul.main-menu .dropdown-item,
    .navbar-light ul.main-menu .dropdown-item:hover {
        color: #fff;
    }
    .navbar-light ul.main-menu.navbar-nav a.nav-link:hover {
        color: var(--wp--preset--color--primary);
    }

}

ul.main-menu .dropdown-item::after {
    background-color: transparent;
    color: #2F2F2F;
    content: " ";
    margin-left: 12.5px;
    display: inline-block;
    width: 15px;
    height: 15px;
    
    background-position: 0 2px;
    background-size: 13px;
    background-repeat: no-repeat;
}
ul.main-menu .dropdown-item:hover {
    background-color: transparent;
}
ul.main-menu .dropdown-item:hover::after {
    background-image: url('../../../images/icon-arrow-custom-black.svg');
}

@media (min-width: 992px) {
    ul.main-menu .dropdown-item:hover::after { 
        background-image: url('../../../images/icon-arrow-custom-white.svg');
    }
    ul.main-menu .separate-dropdown-toggle {
        display: none;
    }
}

.wp-block-image {
    margin: 0 0 50px 0;
}
.wp-block-image img {
    width: 100%;
    max-width: 100%;
}

.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
    /* padding-top: 0 !important; */
}

.wp-block-embed__wrapper .embed-responsive {
    position: absolute;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.dg-page-slider {
    overflow-x: hidden;
}

@media (max-width: 991px) { 
    .dg-page-slider { 
        padding-bottom: 25px;
    }
}
@media (min-width: 782px) {
    .dg-page-slider {
        /* padding-left: 50px;
        padding-right: 50px; */
    }
}

.dg-page-slider .slick-arrow {
    display: none !important;
}

#main-navbar {
    position: fixed;
    z-index: 5;
}

@media (min-width: 992px) {
    .top-hero,
    .top-hero .top-hero__image {
        min-height: 100vh;
    }
}

#main-navbar .bg-white {
    background-color: #fff;
}

#top-cta-contents {
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .dg-custom-mobile-container {
        width: 100%;
        max-width: 100%;
    }
}


#main-navbar {
    padding: 0 !important;
}

@media (max-width: 991px) {
    #mobile-navbar-wrapper {
        padding: 10px 0;
    }
}

.some-icons {
    padding: 0;
    background-color: #2f2f2f;
}
.some-icons .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 5px 20px;
}

body.admin-bar #main-navbar {
    top: 32px;
  }
  
  @media screen and (max-width: 782px) {
    body.admin-bar #main-navbar {
      top: 46px;
    }
  }

.dg-component-slick .slick-dots {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.top-hero .dg-hero-video-container {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}