/*
Theme Name: EWS Child
Description: EWS Child Theme
Author: Effective Web Solutions
Author URI: https://www.effectivewebsolutions.biz/
Template: EWS-Theme
Version: 1.4.0 "Medusa"
Text Domain: EWS-Child
*/

/* Custom styles go here */

/* CSS VARIABLES */
:root {
  --line-height-set: 1.5;
  --theme-font-main: 'Source Sans 3', sans-serif;
  --theme-font-headings: 'Libre Baskerville', serif;
  --theme-font-menu: 'Source Sans 3', sans-serif;
  --primary-color: #ba2624;
  --secondary-color: #bebbbb;
  --tertiary-color: #cdd6dd;
  --button-color: #000;
  --button-bg: transparent;
  --button-font: 'Source Sans 3', sans-serif;
  --button-shadow: inset 0 25px 20px -10px rgba(255, 255, 255, 0.3);
  --button-shadow-hover: inset 0 25px 20px -10px rgba(0, 0, 0, 0.1);
  --gradient-grey: radial-gradient(
    circle farthest-corner at 17% 39%,
    rgba(50, 50, 50, 0.78) 0%,
    rgba(50, 50, 50, 0.12) 81.9%
  );
  --space: 1.6;
  --vspace: calc(var(--space) * 1rem);
  --vspace-0: calc(3 * var(--space) * 1rem);
  --vspace-1: calc(2 * var(--space) * 1rem);
  --vspace-2: calc(1.5 * var(--space) * 1rem);
  --vspace-3: calc(0.5 * var(--space) * 1rem);

  --themed-bg-color: #ba2624;
  --themed-bg-secondary: #bebbbb;
  --themed-bg-tertiary: #cdd6dd;
}

@media only screen and (min-width: 1px) {
  /* NEW WEBSITE CODES - KC 06-25-2024 */

  .icon-sm {
    font-size: 16px !important;
  }

  .icon-md {
    font-size: 24px !important;
  }

  i.icon-lg,
  .icon-lg {
    font-size: 40px !important;
  }

  /* RESET */

  strong,
  b {
    font-weight: 700;
  }

  /* apply a natural box layout model to all elements, but allowing components to change */
  html {
    box-sizing: border-box;
  }
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }
  ::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #525252;
    font-style: normal;
    font-size: 0.8em;
    font-weight: 400;
  }
  .results {
    font-family: var(--theme-font-main);
  }
  .blog .meta {
    display: none;
  }
  span.rt-reading-time {
    display: none !important;
  }
  #a14aab
    > div
    > div.ultp-block-items-wrap.slick-initialized.slick-slider.slick-dotted
    > ul {
    display: none !important;
  }
  #content
    ul
    li:not(.fa):not(.fas):not(.fab):not(.far):not(.fal):not(.fad):before,
  div.block-text-wrapper
    ul
    li:not(.fa):not(.fas):not(.fab):not(.far):not(.fal):not(.fad):before {
    content: '';
    font-size: 0.8em;
    float: left;
    margin-left: -20px;
    line-height: var(--line-height-set);
  }

  .single-post .category-case-studies ul {
    margin: 0 0 20px 20px;
    list-style-position: outside;
    font-weight: 300;
  }

  .single-post iframe {
    max-width: 100%;
  }

  a {
    color: #0645ad;
    font-weight: 600;
    text-decoration: none;
  }
  a.button.header-phone-one-click {
    display: none;
  }
  /* #content > div.content-section > div > div:nth-child(5) { */
  .homepage-badges {
    padding: 4rem;
    display: flex;
    align-items: center;
    /* flex-direction: column; */
    margin: 10px auto;
    justify-content: center;
    flex-wrap: wrap;
  }

  .homepage-badges .wp-block-ewsblocks-ewscolumns.one_fifth {
    margin: 0;
  }

  .ub-block-post-grid {
    margin: 0 0 1.2em;
    position: relative;
    display: flex;
    justify-content: center;
  }
  .ub-block-post-grid .is-grid.columns-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
  }
  .ub-post-grid-item {
    background: #eee;
    padding: 2rem !important;
    border-radius: 5px !important;
  }
  .ub-post-grid-item:hover {
    box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
  }
  .ti-name {
    display: none;
  }
  .named-grid #Logo {
    padding: 0 2rem;
  }
  .ub-block-post-grid .is-grid {
    display: block !important;
  }
  /* New Blog Archive Styles */

  .row {
    max-width: 80%;
    margin: auto;
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 4rem;
    max-width: 90%;
    margin: auto;
  }
  .blog-grid .blog-post {
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    padding: 2rem;
  }
  .nav-links {
    display: flex;
    justify-content: space-evenly;
    padding: 3rem;
    max-width: 320px;
    margin: auto;
  }

  /* New Blog Archive Styles */

  .building-block:nth-of-type(even) .block-column:last-of-type {
    order: 0;
  }
  .building-block:nth-of-type(even) .block-column:first-of-type {
    order: 1;
  }
  h1.page-title {
    text-align: center;
    display: block;
    padding: 1rem;
    line-height: 1.5;
  }

  #post-204
    > div
    > div.wp-block-ultimate-post-post-grid-2.ultp-block-79d704
    > div
    > div.ultp-block-items-wrap.ultp-block-row,
  #content
    > div.content-section
    > div
    > div.wp-block-ultimate-post-post-grid-2.ultp-block-4cad49
    > div
    > div.ultp-block-items-wrap.ultp-block-row {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  }
  a:hover {
    text-decoration: underline;
  }
  #content ul li:not(.fa),
  div.block-text-wrapper ul li:not(.fa) li.cv-pageitem-number {
    background-color: #fff;
  }
  #header > div.top-bar > a {
    color: #fff;
  }
  h3,
  .fauxthree {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
  }
  .fauxtwo,
  h2 {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.7;
  }
  .home .home-header-wrapper h1 {
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    color: #313131;
    line-height: 24px;
  }
  .bfr-svc-frm {
    background-color: var(--primary-color);
    top: 125px;
    position: relative;
    width: auto;
    max-width: auto;
    margin: 0 auto;
  }

  #gform_submit_button_1 {
    background-color: #ffffff !important;
    width: fit-content;
  }

  #field_1_4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #gform_1 {
    margin: 1rem auto;
    max-width: 486px;
  }

  .bfr-svc-frm
    .gform_wrapper.gravity-theme
    .gfield_required.gfield_required_text {
    color: #dcdcdc;
  }

  #gform_wrapper_3 form {
    font-family: var(--theme-font-main);
  }

  input,
  textarea,
  select {
    /* border-radius: 2.5px; */
    padding: 8px;
  }

  input,
  input::placeholder,
  textarea,
  textarea::placeholder {
    font-weight: 300;
    font-size: 15px;
  }

  /* #gform_wrapper_1 {
        background-color: var(--primary-color);

    } */

  /* #wpcf7-f11409-o1 {
        background-color: var(--primary-color);
    } */

  .form-row-2-col {
    display: flex;
    flex-wrap: nowrap;
    width: 100% !important;
  }

  .form-row-2-col > p {
    width: 50%;
  }

  .logos {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }
  div.postmetadata::before {
    content: '\f02c';
    font-family: FontAwesome;
  }
  .rt-reading-time {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 4px;
    width: max-content;
    margin-bottom: 1rem;
  }
  .rt-reading-time::before {
    content: '\f017';
    font-family: FontAwesome;
    color: #fff;
    padding-right: 10px;
  }
  .hdr-areas-served,
  .top-bar {
    text-align: center;
    font-size: 15px;
    font-family: var(--theme-font-headings);
    padding-top: 1rem;
  }

  .top-bar {
    line-height: 1.5;
  }

  .ugb-e08357d .ugb-block-description {
    font-size: 15px;
    color: #ffffff;
  }
  .fauxtwo,
  h2 {
    font-size: 15px;
    font-weight: 400;
    line-height: 28px;
  }
  .panel > ul {
    font-size: 14px;
    font-weight: 400;
    font-family: var(--theme-font-main);
  }

  .ftr-cta {
    padding: 2rem 1rem;
  }

  .ftr-cta a.footer-cta-click,
  .ftr-cta h3 a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
  }
  .ftr-cta a.footer-cta-click:hover,
  .ftr-cta h3 a:hover {
    text-decoration: underline;
  }
  .before-section {
    top: -195px;
    padding: 0;
    position: relative;
  }
  .after-services,
  .page-id-2613 .before-services,
  .before-services {
    clear: both;
    padding: 60% 2%;
  }
  .wp-block-ewsblocks-ewscolumns.one_full.client-reviews {
    background-color: #313131;
    background-image: url(../../uploads/2019/11/criminal-defense.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    min-width: 320px;
    left: 0;
    padding: 2em;
    margin: auto;
  }
  i.fa {
    padding-right: 10px;
  }
  div.textwidget:nth-child(1)
    > div:nth-child(1)
    > div:nth-child(1)
    > div:nth-child(1)
    > span:nth-child(1) {
    font-size: 1.3rem;
    font-family: var(--theme-font-headings);
  }
  .banner-bar {
    display: none;
  }
  .pt-cv-wrapper .pagination > .active > a:focus,
  .pt-cv-wrapper .pagination > .active > a:hover,
  .pt-cv-wrapper .pagination > .active > span,
  .pt-cv-wrapper .pagination > .active > span:focus,
  .pt-cv-wrapper .pagination > .active > span:hover,
  .pt-cv-wrapper .pagination > .active > a {
    z-index: 2;
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    cursor: default;
  }
  .button,
  .woocommerce header a.button {
    background: transparent;
    display: inline-block;
    padding: 8px 20px;
    font-size: 1.2em;
    color: #000;
    border-radius: 4px;
    font-weight: bold;
    font-family: var(--button-font), sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: var(--button-shadow);
    /* transition: box-shadow 0.7s; */
    transition: all 0.3s;
  }
  .panel > ul {
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    font-family: var(--theme-font-main);
  }
  #footer .textwidget.custom-html-widget {
    text-align: left;
    line-height: 1.3rem;
  }
  div.content-section > div > p:nth-child(3),
  div.content-section > div > p:nth-child(4),
  div.content-section > div > p:nth-child(5),
  div.content-section > div > p:nth-child(6) {
    max-width: 320px;
    margin: 1rem auto;
  }

  .menu-ftr a,
  #footer a {
    color: #fff;
  }

  .menu-ftr a:hover,
  #footer a:hover {
    color: #fff;
    text-decoration: underline;
  }

  #Vancouver-Address::before {
    content: '\f041';
    font-family: FontAwesome;
    padding-right: 0.5rem;
  }
  /* body:not(.home) #content .entry {
        max-width: 320px;
        margin: 0 auto;
    } */
  #Vancouver-Hours::before {
    content: '\f017';
    font-family: FontAwesome;
    padding-right: 0.5rem;
  }
  #Vancouver-Location {
    text-align: left;
    line-height: 1.4rem;
  }
  #Vancouver-Phone::before {
    content: '\f095';
    font-family: FontAwesome;
    padding-right: 0.5rem;
  }
  #Fax-Phone:before {
    content: '\f1ac';
    font-family: FontAwesome;
    padding-right: 0.5rem;
  }
  .hero-q {
    position: relative;
  }
  .hero-q > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
  }

  .hero-q li::marker {
    color: #444;
  }

  #wpcs_content_main_2645 > #wpcs_content_inner_2645 {
    min-height: calc(100% - 160px);
  }

  /* .before-services label {
        font-size: 18px;
    } */

  .before-services .gform_wrapper #gform_1 legend,
  .before-services .gform_wrapper #gform_1 label {
    font-size: 18px;
    font-family: var(--theme-font-headings);
  }

  .wp-block-image img {
    max-width: 100%;
    border-radius: 5px;
  }
  .ugb-main-block.ugb--has-block-background.alignfull.alignfull.alignfull.alignfull {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 5px;
    padding-top: 70px;
    padding-bottom: 70px;
  }
  li {
    padding: 0.5rem;
  }

  #content li:nth-child(odd) {
    background-color: #eeeeee;
  }

  .home div.building-block:nth-child(2) .block-column.block-item-1 {
    background-image: url('../../uploads/2019/11/criminal-defense-2.jpg');
    background-size: 100% auto;
    height: auto;
    padding: 31% 5%;
    background-position: top;
  }
  #header > div.before-services > div > div.hero-q > div > div.panel {
    max-width: max-content;
    /* background-color: #eeeeee; */
    background-color: #ddd;
  }

  div.ews-sc.panel {
    box-shadow: none;
  }

  .bfr-svc-frm-w {
    position: relative;
    top: 125px;
    background: var(--primary-color);
  }
  h3.ftr-serving-title {
    font-size: 11px;
    text-align: center;
    line-height: 1.2rem;
  }
  .ftr-serving-title {
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
  }
  /* #content .page-id-1109,
.content-section,
.entry {
	background-color: #fff !important;
	background-image: none !important;
	width: 100% !important;
	max-width: 100%;
	padding: 0 !important;
} */
  .postmetadata > p:nth-child(2) {
    padding-left: 2rem;
  }
  .postmetadata {
    display: inline-flex;
    align-items: baseline;
  }
  .ugb-icon-list.ugb-icon-list--v2 li {
    text-indent: 0 !important;
  }
  .ugb-blog-posts__title {
    line-height: 1.5;
  }
  .home div.accordion,
  .page-id-2613 div.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    font-size: 1rem;
    padding: 18px;
    font-family: var(--theme-font-headings);
    width: calc(100% - 36px);
    text-align: center !important;
    border: none;
    outline: 0;
    /* transition: background-color 0.4s; */
    transition: all 0.3s;
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -ms-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
  }
  .home .accordion:after {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    font-family: FontAwesome;
    content: '\f078';
    float: right;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }
  .ugb-727e283 .ugb-inner-block {
    text-align: center;
  }
  .main-navigation {
    text-align: center;
    position: relative;
    z-index: 10;
  }
  div.accordion:not(.home) {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    font-size: 14px;
    padding: 18px;
    font-family: var(--theme-font-headings);
    width: calc(100% - 36px);
    text-align: left;
    border: none;
    outline: 0;
    /* transition: background-color 0.3s; */
    transition: all 0.3s;
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -ms-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
  }
  .accordion:not(.home)::after {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    font-family: FontAwesome;
    content: '\f078';
    float: right;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }
  div.blocks-sctn
    .block-row-wrapper
    div:not(.block-text-wrapper):not(.standard-image-wrapper)
    img {
    max-height: 100%;
  }
  li.nav-image {
    display: none;
  }
  .home .accordion.active:after {
    content: '\f077';
  }

  body > div:nth-child(1) > div.wrap > div.svc-sctn > div.home-header-wrapper {
    margin-top: 10px;
  }
  h1.page-title {
    font-size: 0.8rem;
    max-width: 1400px;
    margin: 0 auto;
  }
  .pt-cv-readmore {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border: none !important;
  }
  .entry {
    padding: 0 5%;
  }
  .pt-cv-ifield {
    background: #fff;
    padding: 45px;
  }
  #content ul li:not(.fa)::before {
    content: '';
  }
  #content ul li:not(.fa),
  div.block-text-wrapper ul li:not(.fa) {
    margin: 5px 0;
    line-height: 1.5rem;
    padding-left: 25px;
  }
  .meta {
    font-size: 0.8rem;
    padding: 1rem;
    border: #eee 1px solid;
    border: 5px;
    max-width: fit-content;
    background: #eee;
  }
  .home-service-box {
    background-color: var(--primary-color);
    padding: 1%;
  }
  .home-service-box h2 {
    color: #fff;
  }
  .head-section {
    grid-row-gap: 0;
  }
  .before-services .fauxtwo {
    background-color: unset;
    padding: 1rem;
  }
  .bfr-svc-frm > .fauxtwo:first-of-type {
    background-color: rgba(0, 0, 0, 0.423);
    /* padding: 0.5rem; */
    margin-bottom: 0;
  }
  .ultp-block-d6684f .ultp-block-row {
    grid-template-columns: repeat(1, 1fr);
  }
  #header > div.before-services > div > p > span {
    background-image: linear-gradient(
      to right bottom,
      var(--primary-colorr),
      #000
    );
    color: #fff;
    margin: 0 auto;
    padding: 1%;
  }
  .fauxtwo,
  h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.7rem;
  }
  .before-services {
    /* background-image: url(../../uploads/2019/11/criminal-defense-attorney.jpeg); */
    background-image: url(../../uploads/2024/07/criminal-defense-attorney-mobile.jpg);
    /* background-position: center; */
    background-position: left;
    background-size: cover;
  }

  #header {
    background-color: var(--primary-color);
    color: #fff;
  }
  div#custom_html-3 {
    max-width: 320px;
    width: 100%;
    margin: 4%;
  }
  .widget-container {
    margin-bottom: 10px;
    margin-left: 30px;
  }
  .home h1 {
    color: #fff;
    font-size: 3.8em;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .home-service-box img {
    max-width: 100%;
  }
  #footer {
    background-image: linear-gradient(
      to right bottom,
      var(--primary-color),
      var(--primary-color),
      var(--primary-color),
      var(--primary-color),
      var(--primary-color)
    );
    color: #fff;
  }
  .ews_grid.wgaps {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  }
  .button.header-phone-one-click {
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
  }
  a.button.header-phone-one-click {
    background-color: transparent;
    color: #fff;
    border-radius: 5px;
    border: 2px solid #fff;
  }
  a.button.header-phone-one-click:hover {
    background-color: #ba2624;
    color: #fff;
    border: 2px solid #ba2624;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    /* transition: 0.8s; */
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }
  a.serviceboxlink .btn-cntnr .button {
    background-color: transparent;
    color: #ba2624;
    border-radius: 5px;
    border: 2px solid #ba2624;
  }
  a.serviceboxlink .btn-cntnr .button:hover {
    background-color: #ba2624;
    color: #fff;
    border: 2px solid #ba2624;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }

  .home a.serviceboxlink:hover {
    color: #fff;
  }

  /* input.wpcf7-form-control.wpcf7-submit  */
  #post-685 div.form-field.wpmtst-submit > label > input,
  input#gform_submit_button_1,
  #gform_submit_button_3.button:not(.wp-block-button):not(#menubutton) {
    background-color: #fff;
    color: #ba2624;
    border-radius: 5px;
    border: 2px solid #ba2624;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }
  /* input.wpcf7-form-control.wpcf7-submit:hover  */
  #post-685 div.form-field.wpmtst-submit > label > input:hover,
  input#gform_submit_button_1:hover,
  #gform_submit_button_3.button:not(.wp-block-button):not(#menubutton):hover {
    background-color: #ba2624;
    color: #fff;
    border: 2px solid #ba2624;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }
  i.fa.fa-facebook-official {
    font-size: 2rem;
    color: #fff;
  }
  i.fa.fa-facebook-official:hover {
    transform: scale(1.4);
    -webkit-transform: scale(1.4);
    -moz-transform: scale(1.4);
    -ms-transform: scale(1.4);
    -o-transform: scale(1.4);
  }
  i.fa.fa-twitter {
    font-size: 2rem;
    color: #fff;
  }
  i.fa.fa-twitter:hover {
    transform: scale(1.4);
    -webkit-transform: scale(1.4);
    -moz-transform: scale(1.4);
    -ms-transform: scale(1.4);
    -o-transform: scale(1.4);
  }
  i.fa.fa-youtube {
    font-size: 2rem;
    color: #fff;
  }
  i.fa.fa-youtube:hover {
    transform: scale(1.4);
    -webkit-transform: scale(1.4);
    -moz-transform: scale(1.4);
    -ms-transform: scale(1.4);
    -o-transform: scale(1.4);
  }

  footer .logos a > img {
    transition: 0.3s;
  }

  footer .logos a:hover > img {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
  }

  #Logo {
    grid-area: logo;
    -ms-grid-column-align: center;
    justify-self: center;
    padding: 1rem;
  }
  .cbox {
    color: #ba2624;
    background: 0 0;
  }
  .cbox i {
    color: #ba2624;
    background: 0 0;
  }
  .cbox a {
    color: #ba2624;
  }
  .share-bar {
    display: none;
  }
  .after-services {
    background-image: radial-gradient(
      circle farthest-corner at 10% 20%,
      rgba(179, 179, 179, 0.39) 0,
      rgba(255, 255, 255, 1) 90%
    );
  }
  /* #content,
    body:not(.home) #content {
        padding: 0;
        background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(179, 179, 179, .39) 0, rgba(255, 255, 255, 1) 90%);
    } */
  .testimonial.post-1177.masonry-brick {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    background: #fff;
  }
  #wpmtst_submit_testimonial {
    background-color: transparent;
    color: #ba2624;
    border-radius: 5px;
    border: 2px solid #ba2624;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }
  #wpmtst_submit_testimonial:hover {
    background-color: #ba2624;
    color: #fff;
    border: 2px solid #ba2624;
  }

  .strong-form .wpmtst-submission-form .required.symbol:after {
    color: var(--primary-color);
  }

  .strong-rating .star:not(.star0)::before,
  .strong-rating label[title^='No stars']:before {
    display: none;
  }

  .button.menu-toggle.button {
    background-color: #fff;
    color: #ba2624;
    border: 2px solid #ba2624;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }
  .button.menu-toggle.button:hover {
    background-color: #ba2624;
    color: #fff;
    border: 2px solid #ba2624;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }
  .home-service-box:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  }
  .flex-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .flex-hero {
    background: linear-gradient(to bottom, #fff, rgba(255, 0, 0, 0));
  }
  .banner-cta {
    font-family: 'Open Sans', sans-serif;
  }
  div#wpcs_tab_2645 {
    display: none;
  }
  .ultp-block-3b94b2 .ultp-block-row {
    grid-gap: 1em !important;
  }
  .wp-block-ewsblocks-ewscolumns.one_full:not(
      .single-post .wp-block-ewsblocks-ewscolumns.one_full
    ) {
    padding: 4rem;
  }
  #post-12198 .wp-block-ewsblocks-ewscolumns.one_full {
    padding: unset;
  }

  li.menu-item-has-children > a::after {
    content: '';
    display: block;
    float: right;
    width: 0px;
    height: 0px;
    opacity: 0.3;
    transition: opacity 0.3s;
    margin-top: 5px;
    border-top: 8px solid rgba(0, 0, 0, 0.5);
    border-left: 6px solid transparent;
    border-right: 5px solid transparent;
  }

  #content.html-sitemap ul li a:hover {
    text-decoration: underline;
  }

  div.ti-widget.ti-goog .ti-widget-container .ti-date,
  div.ti-widget.ti-goog .ti-read-more span {
    color: #444;
    opacity: unset;
  }

  .home .local-acc .ews-sc.accordion {
    color: #444;
  }

  /* .homepage-badges {
    flex-direction: column;
  } */

  .homepage-badges img {
    width: 100%;
    max-width: 175px;
  }

  .widget-container {
    margin-bottom: 10px;
    margin-left: 0;
  }

  div#custom_html-3 {
    margin: 4% auto;
  }

  #footer .textwidget.custom-html-widget {
    text-align: center;
  }

  body:not(.home) #content .entry {
    max-width: unset;
  }

  .error .digit {
    background-color: var(--primary-color);
  }

  .wp-block-cover.results-cta-container p:not(.has-text-color),
  .results-cta-container p {
    font-family: 'Libre Baskerville', Sans-serif !important;
    font-size: 2.5rem !important;
    /* color: #FFFFFA; */
    color: #eeeeee;
    font-weight: 400;
    font-style: italic;
  }

  .results-cta-container a {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 5px;
  }

  h3.ugb-blog-posts__title {
    /* font-size: 1rem; */
    font-size: 15px;
  }

  /* div div.ugb-324ddf1 .ugb-blog-posts__readmore a,
  div div.ugb-c3570d8 .ugb-blog-posts__readmore a,
  div div.ugb-e129c68 .ugb-blog-posts__readmore a,
  div div.ugb-6d0433b .ugb-blog-posts__readmore a {
    color: #0645ad !important;
  } */

  .blog-container .post.type-post {
    height: 100%;
  }

  .blog .post h2 {
    line-height: 1.5;
  }

  .blog .post h2 a:hover {
    text-decoration: underline;
  }

  .blog-container .post.type-post > div:nth-child(4) {
    margin-block-start: auto;
  }

  .blog-container .category-case-studies {
    position: relative;
  }

  .blog .blog-container .category-case-studies:after {
    content: 'Case Study';
    color: #656565;
    font-size: 14px;
    position: absolute;
    bottom: 0.5rem;
    right: 0;
    border: 1px solid;
    padding: 0.5rem;
    font-style: italic;
  }

  .blog-post-section .entry {
    gap: 0.5rem;
  }

  .single-post.postid-12422 .entry {
    padding: 0;
  }
  .single-post.postid-12422 .ftr-img {
    display: none;
  }

  .single-post.postid-12422 .content-section.with-fi {
    margin-top: 0;
  }

  .single-post.postid-12422 .content-section.with-fi #subhead {
    width: 100%;
    padding: 25px 4%;
  }

  .single-post.postid-12422 h1.page-title {
    margin: 0 auto;
    background: #eee;
    padding: 2rem;
    font-weight: 700;
    max-width: unset;
  }

  .single-post.postid-12422 .wp-block-media-text.is-stacked-on-mobile {
    gap: 0.5rem;
  }

  .single-post
    #gform_submit_button_3.button:not(.wp-block-button):not(#menubutton) {
    background-color: #ba2624;
    color: #fff;
    border: 2px solid #ba2624;
    box-shadow: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
  }

  .single-post
    #gform_submit_button_3.button:not(.wp-block-button):not(#menubutton):hover {
    background-color: #fff;
    color: #ba2624;
    border: 2px solid #ba2624;
    box-shadow: none;
    transition: 0.3s;
    -webkit-transition: 0.3s;
  }
	
	.ginput_container_radio {
		padding-top: 8px;
	}
	
	.gfield--type-radio .gfield_radio {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
  
	.gfield--type-radio .gchoice {
		min-width: 100px;
		font-size: 0.85em;
		font-weight: 400;
	}
  
	.gfield--type-radio .gchoice label, .before-services .gform_wrapper #gform_1 label  {
		font-size: 0.85em;
	}
	
	div.gfield_description {
		font-weight: 400;
	}
  
}

@media only screen and (min-width: 768px) {
  .content-section,
  .post.type-post {
    display: flex;
  }
  .fullwidth-page .content-section,
  .fullwidth-page .post.type-post,
  .fullwidth-page .page.type-page {
    width: 100%;
    max-width: 90%;
    padding-top: 0;
  }
  .before-section {
    top: -85px;
    padding: 5% 2%;
    position: relative;
  }

  .bfr-svc-frm {
    width: max-content;
  }
  div#wpcs_tab_2645 {
    display: block;
  }
  /* body:not(.home) #content .entry {
        max-width: 640px;
        margin: 2rem auto;
    } */
  .home .before-services {
    background-image: url(../../uploads/2019/11/criminal-defense-attorney.jpeg);
    padding: 30% 2%;
    background-position: center;
  }
  .ultp-block-9eb975 .ultp-block-row {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  /* .with-sidebar .hentry {
        width: 80%;
        padding: 1rem 12% 0 3%;
		float: none;	
    } */
  .ultp-block-3b94b2 .ultp-block-row {
    grid-gap: 1em !important;
  }
  div.accordion {
    font-size: 2rem;
    padding: 18px;
  }
  .accordion::after {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
  }
  div.accordion:not(.home) {
    font-size: 1rem;
  }
  .content-section,
  .post.type-post {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 92%;
    margin: 0 auto;
  }
  .ews_grid.wgaps {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  }

  .single-post
    .with-sidebar
    #sidebar
    .gform_wrapper.gravity-theme
    .gform_footer {
    padding: 16px 0 0;
  }

  .single-post
    .with-sidebar
    #sidebar
    .gform_wrapper.gravity-theme
    .gform_footer
    input {
    margin-bottom: 0;
  }

  .single-post .with-sidebar #sidebar form {
    margin-bottom: 0;
  }

  .single-post .with-sidebar #sidebar {
    /* width: 85%; */
    width: 83%;
    margin: 0 auto;
    /* max-width: 1400px; */
    max-width: 800px;
    /* padding: 40px 1% 0; */
    padding: 2%;
    background-color: #bebbbb;
  }
  .single-post
    .with-sidebar
    #sidebar
    .gform_wrapper.gravity-theme
    .gfield_required {
    color: #8b1f07;
  }

  .single-post .with-sidebar #sidebar #field_3_6,
  .single-post .with-sidebar #sidebar #field_3_4,
  .single-post .with-sidebar #sidebar #field_3_3,
  .single-post .with-sidebar #sidebar #field_3_7 {
    grid-column: span 6;
  }

  .centered-desktop-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .centered-desktop-row
    .wp-block-ewsblocks-ewscolumns.one_fourth.secondarybg.addpad.mediumround.nscenter {
    /* min-width: 184px; */
    min-width: 160px;
    width: calc(50% - 40px);
    margin: 20px auto;
  }
}

@media only screen and (min-width: 900px) {
  /* WEBSITE CODES */

  .centered-desktop-row {
    /* display: flex; */
    justify-content: center;
    align-items: stretch;
  }

  .centered-desktop-row
    .wp-block-ewsblocks-ewscolumns.one_fourth.secondarybg.addpad.mediumround.nscenter {
    /* min-width: 184px; */
    min-width: 160px;
    width: calc(23% - 40px);
    margin: 20px auto;
  }

  .ews_grid.wgaps {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  }
  .ub-block-post-grid .is-grid {
    display: grid !important;
  }
  /* body:not(.home) #content .entry {
        max-width: 768px;
        margin: 0 auto;
    } */
  #menu-item-1726 > a {
    border-radius: 5px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }
  .ultp-block-d6684f .ultp-block-row {
    grid-template-columns: repeat(3, 1fr);
  }
  #Logo {
    padding: 1rem 0;
  }
  .ultp-block-79d704 .ultp-block-row {
    grid-template-columns: repeat(3, 1fr) !;
  }
  .head-section {
    grid-template-columns: 1fr 200px 600px 1fr;
    max-width: 100%;
    grid-template-areas: 'empty logo site-navigation empty2';
  }
  #site-navigation > button {
    margin-bottom: -20px;
  }
  div.content-section > div > p:nth-child(3),
  div.content-section > div > p:nth-child(4),
  div.content-section > div > p:nth-child(5),
  div.content-section > div > p:nth-child(6) {
    max-width: 100%;
    margin: 1rem auto;
  }
  .building-block:nth-of-type(even) .block-column:last-of-type {
    order: 1;
  }
  .building-block:nth-of-type(even) .block-column:first-of-type {
    order: 1;
  }
  .page-id-2613 .svc-sctn {
    padding-top: 0;
  }

  .homepage-badges {
    /* flex-direction: row; */
    justify-content: center;
  }

  .widget-container {
    margin-bottom: 10px;
    margin-left: 30px;
  }

  div#custom_html-3 {
    margin: 4%;
  }

  #footer .textwidget.custom-html-widget {
    text-align: left;
  }
}

@media only screen and (min-width: 970px) {
  .home .before-services {
    background-image: url(../../uploads/2019/11/criminal-defense-attorney.jpeg);
    padding: 23% 2%;
  }
  .after-services,
  .page-id-2613 .before-services,
  .before-services {
    clear: both;
    padding: 10% 2%;
  }
}

@media only screen and (min-width: 1240px) {
  .home .before-services {
    padding: 13% 2%;
  }
  /* body:not(.home) #content .entry {
        max-width: 960px;
        margin: 0 auto;
    } */
  .flex-hero {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to bottom, #fff, rgba(255, 0, 0, 0));
    padding: 2rem;
  }
}

@media only screen and (min-width: 1280px) {
  .ugb-main-block.ugb--has-block-background.alignfull.alignfull.alignfull.alignfull.ugb-main-block--inner-wide
    > .ugb-inner-block {
    min-width: unset;
  }
}

@media only screen and (min-width: 1400px) {
  .single-post .with-sidebar #sidebar {
    display: flex;
    max-width: 100%;
    gap: 1rem;
    /* justify-content: space-between; */
    justify-content: center;
    max-width: 1400px;
  }

  .single-post .with-sidebar #sidebar #block-3 {
    width: 40%;
  }

  .single-post .with-sidebar #sidebar #block-3 .sidebar-title {
    font-size: 2rem;
    font-weight: 700;
  }

  .single-post .with-sidebar #sidebar #block-4 {
    width: 60%;
    max-width: 800px;
  }
}

@media only screen and (min-width: 1620px) {
  .named-grid .head-section {
    grid-template-columns: calc(50% - 800px) 350px 1250px calc(50% - 800px);
    grid-template-areas: 'lspace logo site-navigation social-navigation rspace';
    gap: 1rem;
    padding-bottom: 1rem;
  }
  /* .head-section {
        grid-template-columns: 1fr 300px 1000px 1fr;
        max-width: 100%;
        grid-template-areas: "empty logo site-navigation empty2";
    } */
  /* body:not(.home) #content .entry {
        max-width: 1280px;
	} */
  /* .with-sidebar .hentry {
		width: 80%;
		padding: 20px 11%;
		float: none;
	} */
}

@media only screen and (min-width: 1399px) {
  .menu-toggle {
    display: none;
  }

  #site-navigation > div {
    border-top: 0;
  }
  #site-navigation nav.main-navigation .nav-menu ul.menu li {
    border-right: 0;
  }
  .sub-menu {
    flex-direction: column;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
  }
  li.menu-item-has-children:hover > .sub-menu {
    display: flex;
  }
  .main-navigation {
    display: block;
    line-height: 0;
    color: #fff;
    z-index: 5;
    background-color: transparent;
  }
  div.nav-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  nav.main-navigation .nav-menu ul.menu,
  nav.main-navigation .nav-menu ul.menu.toggled-on {
    background: inherit;
    position: relative;
    top: inherit;
    left: inherit;
    display: flex;
    right: inherit;
    padding: 0;
    width: 100%;
    border: 0;
    margin: 0;
    max-width: 100%;
    box-shadow: none;
  }
  nav.main-navigation .nav-menu ul.menu li a {
    display: flex;
    padding: 20px 25px;
    line-height: 1;
    text-shadow: none;
    width: auto;
    background-color: transparent;
    justify-content: space-between;
  }
  ul.sub-menu {
    background-color: var(--primary-color);
  }
  ul.sub-menu ul.sub-menu {
    margin-top: -1px;
  }
  nav.main-navigation .nav-menu ul.menu li {
    width: auto;
    background-color: transparent;
  }
  nav.main-navigation .nav-menu ul.menu li a {
    display: flex;
    line-height: 1;
    text-shadow: none;
    background-color: transparent;
    justify-content: space-between;
  }
  .main-navigation .sub-menu > li:first-of-type {
    border-top: none;
  }

  .main-navigation ul {
    margin: 0;
    text-indent: 0;
  }
  .main-navigation ul.menu {
    border: none;
  }
  .main-navigation li,
  .main-navigation li a {
    display: inline-block;
    text-decoration: none;
  }
  .main-navigation li a {
    border-bottom: 0;
    color: #fff;
    white-space: nowrap;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
  }
  .main-navigation li a:focus,
  .main-navigation li a:hover {
    color: #f7f7f7;
    /* box-shadow: inset 0 0 0 1px #000; */
    box-shadow: inset 0 0 0 1px #fff;
    width: max-content;
  }
  li#menu-item-1449 {
    width: max-content;
  }
  .main-navigation li {
    margin: 0;
    position: relative;
    border-bottom: none;
    background: 0 0;
    font-size: 15px;
    font-weight: 400;
    box-shadow: none;
  }
  .main-navigation li.menu-item-has-children a:after {
    margin-top: 4px;
    margin-left: 10px;
  }
  .main-navigation ul.sub-menu li.menu-item-has-children a:after {
    margin-top: 4px;
    margin-left: 10px;
    border-top: 5px solid transparent;
    border-left: 7px solid rgba(255, 255, 255, 0.5);
    border-bottom: 5px solid transparent;
  }
  li.menu-item-has-children > a::after {
    content: '';
    display: block;
    float: right;
    width: 0px;
    height: 0px;
    opacity: 0.3;
    transition: opacity 0.3s;
    margin-top: 5px;
    border-top: 8px solid rgba(255, 255, 255, 0.5);
    border-left: 6px solid transparent;
    border-right: 5px solid transparent;
  }
  .main-navigation li ul {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    z-index: 1;
    /* overflow: hidden;
        clip: rect(1px, 1px, 1px, 1px); */
  }
  .main-navigation li ul ul {
    top: 0;
    left: 100%;
  }
  .main-navigation .focus > ul,
  .main-navigation ul li:focus > ul,
  .main-navigation ul li:hover > ul {
    border-left: 0;
    clip: inherit;
    overflow: inherit;
    height: inherit;
    width: inherit;
  }
  .main-navigation li ul li a {
    color: #fff;
    display: block;
    font-size: 0.8rem;
    white-space: normal;
  }
  .main-navigation li ul li a:focus,
  .main-navigation li ul li a:hover {
    color: #fff;
  }
  #menu-item a {
    color: #fff;
  }
  #menu-item a:hover {
    color: #fff;
  }
  .main-navigation .current-menu-ancestor > a,
  .main-navigation .current-menu-item > a,
  .main-navigation .current_page_ancestor > a,
  .main-navigation .current_page_item > a {
    color: #fff;
    font-weight: 700;
  }
  nav.main-navigation .nav-menu ul.menu > li > ul {
    margin-left: -1px;
    width: inherit;
  }
  nav.main-navigation .nav-menu ul.menu li ul li {
    border-left: 0;
  }
  nav.main-navigation .nav-menu ul.menu li ul li ul {
    width: 100%;
  }
  nav.main-navigation .nav-menu ul.menu li ul li ul li {
    display: flex;
    width: calc(100% - 2px);
  }
  .sub-menu li a {
    width: 100%;
    margin-left: 0;
  }
  .sub-menu .menu-item-has-children {
    border-top: 0;
  }
  .sub-menu li .sub-menu li a {
    width: 100%;
    margin-left: 0;
  }
  nav.main-navigation .nav-menu ul.menu li {
    border-right: 0;
  }
  nav.main-navigation .nav-menu ul.menu > li:last-child {
    border-right: 0;
  }
  /* div#Logo.in-nav {
        display: none;
    } */
  .main-navigation div.nav-menu > ul,
  .main-navigation ul.menu {
    display: flex;
    justify-content: flex-end;
  }
  nav.main-navigation.has-logo .nav-menu ul.menu,
  nav.main-navigation.has-logo .nav-menu ul.menu.toggled-on {
    margin: 0 auto;
  }
  .main-navigation.has-logo div.nav-menu > ul.menu > li,
  .main-navigation.has-logo ul.menu > li {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .main-navigation li.nav-image {
    margin-right: auto;
  }
  /* .main-navigation.has-logo ul.menu .sub-menu {
        display: block;
    } */
  .main-navigation .current-menu-ancestor > a,
  .main-navigation .current-menu-item > a,
  .main-navigation .current_page_ancestor > a,
  .main-navigation .current_page_item > a {
    color: #fff;
  }

  .nav-menu {
    background-color: var(--primary-color);
  }
}
