/* Normalize the headings spacing */
h1,
.title-h1,
h2,
.title-h2,
h3,
.title-h3,
h4,
.title-h4,
h5,
.title-h5,
h6,
.title-h6 {
  margin-top: 0;
  margin-bottom: 18px;
  text-wrap: balance;
  line-height: 1.1 !important;
}

/* Text Colors */
.text-white {
  color: white;
}
.text-black {
  color: black;
}

/* Text Sizes */
.text-xs {
  font-size: 0.75em;
  line-height: 1.3;
}
.text-sm {
  font-size: 0.84em;
  line-height: 1.3;
}
.text-md {
  font-size: 1.3em;
  line-height: 1.3;
}
.text-lg {
  font-size: 1.6em;
  line-height: 1.3;
}
.text-xl {
  font-size: 2.2em;
  line-height: 1.3;
}

/* Text Wheight */
.text-300 {
  font-weight: 300;
}
.text-400 {
  font-weight: 400;
}
.text-500 {
  font-weight: 500;
}
.text-600 {
  font-weight: 600;
}
.text-700 {
  font-weight: 700;
}
.text-800 {
  font-weight: 800;
}

/* Text Transform */
.text-uppercase {
  text-transform: uppercase;
}
.text-lowercase {
  text-transform: lowercase;
}
.text-capitalize {
  text-transform: capitalize;
}
.text-normal {
  text-transform: none;
}

/* Text Align */
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-justify {
  text-align: justify;
}

/* Text Adjust */
.text-balance {
    text-wrap: balance;
}
.text-pretty {
    text-wrap: pretty;
}

/* Rounded Images */
.rounded-img img {
  border-radius: 15px;
  box-shadow: 0 6px 15px -6px rgba(0,0,0,0.33);
}

/* THEGEM THEME FIXES */
p {
    text-wrap: pretty;
}
/* Fix the max width of images on text-blocks */
p img {
  max-width: 100%;
  height: auto;
}
/* Remove the top padding of rows */
.vc_section.vc_section-has-fill,
.vc_section.vc_section-has-fill + .vc_row-full-width + .vc_section,
.vc_section.vc_section-has-fill + .vc_section,
.vc_row-has-fill > .vc_column_container > .vc_column-inner {
  padding-top: 0;
}
/* Remove the bottom margin of content elements */
.wpb_row,
.wpb_content_element,
.vc_tta-container {
  margin-bottom: 0 !important;
}
/* Remove bottom padding of custom menus */
.thegem-menu-custom ul.nav-menu-custom li:last-child > span,
.thegem-menu-custom ul.nav-menu-custom li:last-child a {
  padding-bottom: 0;
}

/*** CUSTOM STYLES ***/
/* Page Layout */
#page {
    max-width: 1660px;
    margin-inline: auto !important;
}
/* Footer Copyright */
.footer-copyright {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-copyright a {
  color: inherit;
}

/* Testimonials */
.gem-testimonial-image {
  border-radius: 50%;
  background-color: #f1f1f1;
}
.gem-testimonial-wrapper {
  padding-bottom: 0 !important;
}
.style1 .gem-testimonial-wrapper::after,
.style2 .gem-testimonial-wrapper p::after {
  display: none !important;
}
.gem-testimonial-text {
  max-width: 960px;
  margin-inline: auto;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .gem-testimonial-text {
    padding: 15px 0 0 0 !important;
  }
}
@media (max-width: 600px) {
  body .gem-testimonial-text {
    font-size: 15px;
    line-height: 1.2 !important;
  }
}

/* ContactForm 7 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 15px;
}
.wpcf7-form input[type="submit"]:not(.gem-button-wpcf-custom) {
  width: fit-content !important;
  margin-inline: auto !important;
  margin-top: 15px;
  margin-bottom: 0;
  display: block;
}
.cf7-without-labels {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}