body, html {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    letter-spacing: .05rem;
    color: #3E3E3E;
}

.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%;
    width: 100% !important; 
}

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

.alignwide {
    width: calc(100% - 50px) !important;
	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, .is-style-big-caption { 
    font-size: 2.2rem;
    line-height: 1.2;
}
h2, .h2 { font-size: 1.8rem; }
h3, .h3 { font-size: 1.4rem; }
h4, .h4 { font-size: 1.2rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }
  
@media (max-width: 991px) {
	h1, .h1, .is-style-big-caption { font-size: 2rem; }
    h2, .h2 { font-size: 1.6rem; }
    h3, .h3 { font-size: 1.4rem; }
    h4, .h4 { font-size: 1.2rem; }
    h5, .h5 { font-size: 1.1rem; }
    h6, .h6 { font-size: 1rem; }
}

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

.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 !important;
    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-group.alignfull.is-layout-constrained {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

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

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

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

.alignfull .alignwide {
    width: 100%;
}

.dg-cart-icon {
    padding: 5px;
    background-color: #fff;
}

.cta-section {
    background-color: #eee;
    text-align: center;
}

.dg-top-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-right: 20px;
}

.top-palkki {
    background-color: var(--wp--preset--color--off-white);
    width: 100%;
}

.main-menu > .nav-item > .nav-link {
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .main-menu > .nav-item > .nav-link {
        padding: 5px 20px;
    }
    .navbar-expand-lg .navbar-nav .dropdown-menu {
        padding: 15px 0;
        background-color: #F5F5F5;
    }
    .navbar-expand-lg .navbar-nav .dropdown-menu a.dropdown-item {
        padding: 10px 30px;
    }
    .navbar-expand-lg .navbar-nav .dropdown-menu .dropdown-item:focus, 
    .navbar-expand-lg .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: transparent;
    }
}

@media (min-width: 992px) and (max-width: 1474px) {
    #main-navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

@media (min-width: 1475px) {
    .main-menu > .nav-item > .nav-link {
        padding: 30px 20px;
    }
}

@media (max-width: 991px) {
    .top-hero .top-hero__content .texts-wrapper {
        padding: 50px 0;
    }
}

.footer-main-menu > li {
    list-style: none;
    margin-bottom: 10px;
}
.footer-main-menu > li > a {
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
}
.footer-main-menu > li > a:hover,
.footer-main-menu > li > a:focus {
    text-decoration: none !important;
}

.footer-main-menu > li.current-menu-item > a {
    color: var(--wp--preset--color--primary);
}

.site-footer .some-icons .item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: var(--wp--preset--color--primary);
    color: #fff;
}
.site-footer .some-icons .item a {
    color: #fff;
}

.footer-menu a {
    text-decoration: none;
}
.footer-menu > li {
    margin-bottom: 5px;
}

.text-wrapper .content p:last-child {
    margin-bottom: 0;
}

.dg-card-media {
    width: 100%;
    position: relative;
}
.dg-card-media::before {
    content: "";
    display: block;
    padding-top: 125%;
}
.dg-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    /* object-fit: cover; */
    object-fit: contain;
}

#main-navbar {
    border-bottom: 1px solid #EFEFEF;
}

.dg-products-slider .slick-prev,
.dg-products-slider .slick-next, 
.dg-slick-slider .slick-prev,
.dg-slick-slider .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);            /* base centering for BOTH */
  width: 50px;
  height: 50px;
  z-index: 2;
  background-color: rgba(255,255,255,.9) !important;
  background-image: url('../../../images/icon-arrow-right-new.svg') !important;
  background-position: center !important;
  background-size: 20px !important;
  background-repeat: no-repeat !important;
}

/* flip prev, but KEEP the translateY */
.dg-products-slider .slick-prev,
.dg-slick-slider .slick-prev {
  left: -4px;
  transform: translateY(-50%) scaleX(-1); /* 👈 add flip after centering */
  transform-origin: center center;
}

.dg-products-slider .slick-next,
.dg-slick-slider .slick-next {
  right: -4px;
}

.dg-products-slider .slick-prev:before,
.dg-products-slider .slick-next:before,
.dg-slick-slider .slick-prev:before,
.dg-slick-slider .slick-next:before {
  display: none;
}

.dg-products-slider .slick-disabled,
.dg-slick-slider .slick-disabled { display: none !important; }
.dg-slider-in-columns .wp-block-column {
    overflow-x: hidden;
}

@media (max-width: 782px) {
    .dg-custom-product-cover-component {
        flex-direction: column;
    }
    .dg-custom-product-cover-component .wp-block-cover__image-background {
        position: relative;
    }
}

.dg-customer-stories-slider-wrapper {
    background-color: var(--wp--preset--color--off-white);
}

.slick-slider .dg-50-50-nosto figure.wp-block-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}
.slick-slider .dg-50-50-nosto figure.wp-block-image::before {
    content: "";
    display: block;
    padding-top: 85%;
}
.slick-slider .dg-50-50-nosto figure.wp-block-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

@media (min-width: 992px) {
    .slick-slider .customer-story-slide {
        margin-left: 100px !important;
        margin-right: 100px !important;
    }
}

.dg-customer-stories-slider .dg-50-50-nosto .dg-content-column {
    position: relative;
    /* stretch to full height */
    display: flex;
    flex-direction: column; 
    justify-content: center;
    padding-top: 125px;
    
}
.dg-customer-stories-slider .dg-50-50-nosto .dg-content-column::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 35px;
    width: 150px;
    height: 70px;
    background-image: url('../../../images/logo-myvaate.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}


@media (min-width: 728px) {
    .dg-divider-cols > .wp-block-column {
        padding: 0 50px;
    }
    .dg-divider-cols > .wp-block-column:not(:last-child) {
        border-right: 1px solid #E5E5E5;
    }
}

@media(min-width: 992px) {
    .main-menu .separate-dropdown-toggle {
        display: none !important;
    }

    ul.main-menu li.menu-item-has-children {
        padding-right: inherit;
    }

    ul.top-menu-secondary li {
        position: relative;
    }
    ul.top-menu-secondary li a {
        padding-right: 30px !important;
        padding-left: 30px !important;
        position: relative;
    }
    ul.top-menu-secondary li a::after {
        content : "";
        display: inline-block;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 35px;
        
    }
}

@media (min-width: 1475px) {
    ul.top-menu-secondary li a::after {background-color: #C4C4C4;}
}

:where(.wp-block-columns.has-background) {
    padding: 0;
}

.section-margin-bottom {
    margin-bottom: 50px;
}
@media (min-width: 782px) {
    .section-margin-bottom {
        margin-bottom: 100px;
    }
}

.dg-category-properties .slick-track .text-section {
    position: relative;
}

@media (min-width: 768px) {
    .dg-category-properties .slick-track .text-section:not(:first-child)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        background-color: #E5E5E5;
    }
}

.dg-icon-small {
    width: 25px;
    height: 25px;
    object-fit: contain;
    object-position: center;
}

.dg-product-thumbnails-moved {
			margin-top: 20px;
}
.dg-thumbnails-slider {
    margin: 0 -5px;
    margin-bottom: 25px;
}
.dg-thumbnail-slide {
    padding: 0 5px;
    cursor: pointer;
}
.dg-thumbnail-image {
    width: 100%;
    height: auto;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.dg-thumbnail-image:hover,
.dg-thumbnail-image.active {
    border-color: #333;
}
.dg-thumbnails-slider .slick-track {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.dg-thumbnails-slider .slick-prev,
.dg-thumbnails-slider .slick-next {
    z-index: 1;
}
.dg-thumbnails-slider .slick-prev {
    left: 7px;
}
.dg-thumbnails-slider .slick-next {
    right: 5px;
}
.dg-thumbnail-gallery .dg-thumbnail-tiny {
    margin: 2.5px;
}

.dg-thumbnail-tiny .embed-responsive-1by1:before {
    padding-top: 125%;
}

ul.dropdown-menu li.current_page_item a.dropdown-item {
    text-decoration: none !important;
}

.footer-menu-title {
    margin-top: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
}

.d-vertical-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 782px) {
    .dg-40-60-block.left .wp-block-column:nth-child(2), 
    .text-dg-md-right {
        text-align: right;
    }
    .dg-40-60-block.left .wp-block-column:nth-child(2 ) .wp-block-buttons {
        justify-content: flex-end;
    }
    .text-dg-md-right, 
    .text-dg-md-right p
    .text-dg-md-right h1,
    .text-dg-md-right h2,
    .text-dg-md-right h3,
    .text-dg-md-right h4,
    .text-dg-md-right h5,
    .text-dg-md-right h6 {
        text-align: right !important;
    }
}

@media (max-width: 991px) {
    #main-navbar .dropdown-item {
        padding: 10px 20px !important;
        font-size: 1.1rem;
    }
    .main-menu > .nav-item > .nav-link {
        font-size: 1.1rem !important;
        padding-right: 30px !important;
    }
}

.article-card.dg_customer_story {
    background-color: var(--wp--preset--color--light-purple);
}

.article-card .contents {
    padding: 25px;
}

@media (min-width: 992px) {
    .article-card .contents {
        padding: 40px;
    }
    .article-card .dg-btn-wrapper {
        margin-top: -15px;
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.article-card figure.dg-post-thumbnail:before {
    padding-top: 75%;
}

.archive .pagination {
    padding-left: 5px;
}

.dg-footer-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.dg-footer-logos-grid > img {
    width: 120px;
    max-width: 100%;
}

.dg-custom-notice {
    font-size: .9rem;
}

body.error404 .top-hero .top-hero__image, body.is-404 .top-hero .top-hero__image, body.search .top-hero .top-hero__image {
    height: inherit;
}

.dg-customer-story-nosto.no-featured-image .dg-content-column {
    flex-basis: 100% !important;
}

.tablepress>:where(thead,tfoot)>tr>* {
    background-color: transparent !important;
}

.tablepress-wrapper {
    padding: 10px;
    background-color: #f1f1f1;
    overflow-x: auto;
    margin: 20px 0;
}

@media (max-width: 991px) {
    body .top-hero {
        min-height: auto;
    }
}