:is(.service-content, .editor-styles-wrapper) {
    --mrd-green: #19C674;
    --mrd-green-hover: #12a861;
    --mrd-light: #eaf9f2;
    --mrd-dark: #102120;
    --mrd-gray: #f3f5f4;
    --mrd-text: #212529;
    --mrd-gap: 30px;
    --mrd-w: 100%;
    --mrd-pad: 15px;
}
@media (min-width: 576px)  { :is(.service-content, .editor-styles-wrapper) { --mrd-w: 540px; } }
@media (min-width: 768px)  { :is(.service-content, .editor-styles-wrapper) { --mrd-w: 720px; } }
@media (min-width: 992px)  { :is(.service-content, .editor-styles-wrapper) { --mrd-w: 960px; } }
@media (min-width: 1200px) { :is(.service-content, .editor-styles-wrapper) { --mrd-w: 1140px; } }
@media (min-width: 1300px) { :is(.service-content, .editor-styles-wrapper) { --mrd-w: 1680px; --mrd-pad: 65px; } }

.service-content { display: contents; color: var(--mrd-text); }
.service-content > :first-child:not(section):not(.grid-section) { margin-top: 45px; }
.service-content > :last-child:not(section):not(.grid-section) { margin-bottom: 45px; }

.service-content > :is(p, ul, ol, h2, h3, h4, h5, figure, blockquote, pre, [class*="wp-block-"]):not(.alignfull) {
    width: 100%;
    max-width: var(--mrd-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--mrd-pad);
    padding-right: var(--mrd-pad);
    box-sizing: border-box;
}
.service-content > .alignfull { width: 100%; max-width: none; box-sizing: border-box; }
.service-content .alignfull.wp-block-group,
.service-content .alignfull.wp-block-cover { padding-top: 45px; padding-bottom: 45px; padding-left: 0; padding-right: 0; }
.service-content .alignfull.wp-block-group > *:not(.alignfull),
.service-content .alignfull.wp-block-cover .wp-block-cover__inner-container > * {
    width: 100%;
    max-width: var(--mrd-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--mrd-pad);
    padding-right: var(--mrd-pad);
    box-sizing: border-box;
}
.service-content .alignfull.faqs,
.service-content .alignfull.home-contact-form { padding-left: 0; padding-right: 0; }

:is(.service-content, .editor-styles-wrapper) h2.wp-block-heading {
    font-size: 26px;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 25px;
}
:is(.service-content, .editor-styles-wrapper) h2.wp-block-heading::before {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-bottom: 15px;
    background: var(--mrd-green);
    border-radius: 5px;
}
:is(.service-content, .editor-styles-wrapper) h2.wp-block-heading.has-text-align-center::before { margin-left: auto; margin-right: auto; }
:is(.service-content, .editor-styles-wrapper) h2.wp-block-heading.has-text-align-right::before { margin-left: auto; }
:is(.service-content, .editor-styles-wrapper) h3.wp-block-heading { font-size: 20px; line-height: 1.25; margin: 20px 0 10px; }
:is(.service-content, .editor-styles-wrapper) h4.wp-block-heading { font-size: 17px; line-height: 1.3; margin: 16px 0 8px; }
:is(.service-content, .editor-styles-wrapper) :is(.wp-block-column, .wp-block-media-text__content) > :is(h2, h3, h4).wp-block-heading:first-child { margin-top: 0; }

:is(.service-content, .editor-styles-wrapper) :is(p, li, td, th) { font-size: 14px; line-height: 1.6; }
:is(.service-content, .editor-styles-wrapper) p { margin: 0 0 1rem; }
:is(.service-content, .editor-styles-wrapper) .has-text-align-center { text-align: center; }
:is(.service-content, .editor-styles-wrapper) .has-text-align-right { text-align: right; }
.service-content a:not(.wp-block-button__link) { color: var(--mrd-green-hover); text-decoration: underline; }
.service-content img { max-width: 100%; height: auto; }
.service-content :is(ul.wp-block-list, ol.wp-block-list) { padding-left: 1.4rem; margin-bottom: 1rem; }
.service-content :is(ul.wp-block-list, ol.wp-block-list) li { margin-bottom: .35rem; }
.service-content ul.wp-block-list li::marker { color: var(--mrd-green); }

:is(.service-content, .editor-styles-wrapper) .wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--mrd-gap);
    margin-bottom: 1.5rem;
}
:is(.service-content, .editor-styles-wrapper) .wp-block-column { flex: 1 1 0; min-width: 0; }
:is(.service-content, .editor-styles-wrapper) .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
:is(.service-content, .editor-styles-wrapper) .wp-block-columns.are-vertically-aligned-center { align-items: center; }
@media (max-width: 781px) {
    :is(.service-content, .editor-styles-wrapper) .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-direction: column; flex-wrap: wrap; gap: 20px; }
    :is(.service-content, .editor-styles-wrapper) .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; width: 100%; }
}

:is(.service-content, .editor-styles-wrapper) .wp-block-media-text {
    display: grid;
    grid-template-columns: 50% 1fr;
    align-items: center;
    gap: var(--mrd-gap);
    margin-bottom: 1.5rem;
}
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { grid-column: 2; grid-row: 1; }
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 1; }
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text__media { margin: 0; }
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text__media img,
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text__media video { width: 100%; height: auto; display: block; border-radius: 10px; }
:is(.service-content, .editor-styles-wrapper) .wp-block-media-text__content { padding: 0; }
@media (max-width: 600px) {
    :is(.service-content, .editor-styles-wrapper) .wp-block-media-text.is-stacked-on-mobile,
    :is(.service-content, .editor-styles-wrapper) .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right { grid-template-columns: 100%; gap: 20px; }
    :is(.service-content, .editor-styles-wrapper) .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
    :is(.service-content, .editor-styles-wrapper) .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { grid-column: 1; grid-row: 2; }
}

:is(.service-content, .editor-styles-wrapper) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0; }
:is(.service-content, .editor-styles-wrapper) .wp-block-buttons.is-content-justification-center,
:is(.service-content, .editor-styles-wrapper) .wp-block-buttons[class*="justify"] { justify-content: center; }
:is(.service-content, .editor-styles-wrapper) .wp-block-button__link {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 5px;
    background: var(--mrd-green);
    color: #fff !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid var(--mrd-green);
    cursor: pointer;
    transition: background .2s, color .2s;
}
:is(.service-content, .editor-styles-wrapper) .wp-block-button__link:hover { background: var(--mrd-green-hover); border-color: var(--mrd-green-hover); }
:is(.service-content, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link { background: transparent; color: var(--mrd-green-hover) !important; }
:is(.service-content, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link:hover { background: var(--mrd-green); color: #fff !important; }

.is-style-mrd-light { background: var(--mrd-light); }
.is-style-mrd-dark { background: var(--mrd-dark); color: #fff; }
.is-style-mrd-dark :is(h2, h3, h4, p, li, td, a:not(.wp-block-button__link)) { color: #fff; }
.is-style-mrd-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    margin-bottom: 1.5rem;
}
.service-content .has-mrd-green-background-color { background-color: var(--mrd-green); }
.service-content .has-mrd-dark-green-background-color { background-color: var(--mrd-green-hover); }
.service-content .has-mrd-light-background-color { background-color: var(--mrd-light); }
.service-content .has-mrd-gray-background-color { background-color: var(--mrd-gray); }
.service-content .has-mrd-white-background-color { background-color: #fff; }
.service-content .has-mrd-text-background-color { background-color: var(--mrd-dark); }
.service-content .has-mrd-green-color { color: var(--mrd-green); }
.service-content .has-mrd-dark-green-color { color: var(--mrd-green-hover); }
.service-content .has-mrd-white-color { color: #fff; }
.service-content .has-mrd-text-color { color: var(--mrd-text); }

.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; overflow: hidden; color: #fff; }
.wp-block-cover .wp-block-cover__image-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-block-cover .wp-block-cover__background { position: absolute; inset: 0; background: var(--mrd-dark); opacity: .5; }
.wp-block-cover .wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; }
.wp-block-cover :is(h2, h3, h4, p) { color: #fff; }

.service-content .wp-block-table { overflow-x: auto; margin: 0 0 1.5rem; }
.service-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.service-content .wp-block-table th,
.service-content .wp-block-table td { padding: 10px 14px; border: 1px solid #dfe5e2; text-align: left; }
.service-content .wp-block-table thead th { background: var(--mrd-light); }
.service-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--mrd-gray); }
@media (max-width: 600px) {
    .service-content .wp-block-table table { min-width: 460px; }
}

.service-content .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 15px; margin: 0 0 1.5rem; padding-top: 0; list-style: none; }
.service-content .wp-block-gallery .wp-block-image { flex: 1 1 calc(33.333% - 15px); margin: 0; padding: 0; width: auto; max-width: none; }
.service-content .wp-block-gallery.columns-2 .wp-block-image { flex-basis: calc(50% - 15px); }
.service-content .wp-block-gallery.columns-4 .wp-block-image { flex-basis: calc(25% - 15px); }
.service-content .wp-block-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; border-radius: 10px; }
@media (max-width: 600px) {
    .service-content .wp-block-gallery .wp-block-image,
    .service-content .wp-block-gallery[class*="columns-"] .wp-block-image { flex-basis: calc(50% - 15px); }
}

.service-content .wp-block-image { margin: 0 0 1.5rem; }
.service-content .wp-block-image img { border-radius: 10px; }
.service-content .wp-block-image figcaption,
.service-content .wp-element-caption { font-size: 12px; color: #6c757d; margin-top: 6px; text-align: center; }
.service-content .wp-block-image.aligncenter { text-align: center; }

.service-content .wp-block-embed__wrapper { position: relative; }
.service-content .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.service-content .wp-has-aspect-ratio .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-content .wp-block-video video { max-width: 100%; height: auto; }
.service-content .mrd-video { margin: 0 auto 1.5rem; }
.service-content .mrd-video-frame { position: relative; padding-top: 56.25%; background: var(--mrd-dark); border-radius: 10px; overflow: hidden; }
.service-content .mrd-video .video-wapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; }
.service-content .mrd-video .video-wapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-content .mrd-video .video-wapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.service-content .wp-block-separator { border: 0; height: 1px; background: #dfe5e2; background-clip: content-box; margin-top: 2rem; margin-bottom: 2rem; }
.service-content .wp-block-quote { position: relative; margin-bottom: 1.5rem; font-style: italic; padding-top: 4px; padding-bottom: 4px; border: 0; }
.service-content > .wp-block-quote { padding-left: calc(var(--mrd-pad) + 20px); }
.service-content .wp-block-quote::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--mrd-pad); width: 5px; background: var(--mrd-green); border-radius: 3px; }
.service-content .wp-block-quote p { font-size: 16px; }
.service-content .wp-block-html { margin-bottom: 1.5rem; }

@media (max-width: 767px) {
    .service-content .alignfull.wp-block-group,
    .service-content .alignfull.wp-block-cover { padding-top: 30px; padding-bottom: 30px; }
    :is(.service-content, .editor-styles-wrapper) h2.wp-block-heading { font-size: 22px; }
    .wp-block-cover { min-height: 240px; }
    .is-style-mrd-card { padding: 18px; }
}
