h1,
h2,
h3,
p {
  font-family: Noto Sans !important;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  line-height: 1.2;
  padding-top: clamp(5px, 2vw, 20px);
  padding-bottom: clamp(5px, 2vw, 20px);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  padding-top: clamp(10px, 2vw, 5px);
  padding-bottom: clamp(10px, 2vw, 5px);
}

h3 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.2;
  padding-top: clamp(5px, 2vw, 20px);
  padding-bottom: clamp(5px, 2vw, 20px);
}

h4 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.4;
}

p {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0rem;
  width: 100%;
  color: #1f323d;
}

/* Header and Header menu */
#masthead .inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.search-top {
  display: none;
}

.header-logo-image {
  max-width: 200px;
  width: 100%;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 5px;
}

#featured-slider img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: top;
  height: 100%;
  aspect-ratio: unset;
}

.slider-image-wrap {
  height: 100%;
}

.slider-cycle {
  height: 500px;
}

#controllers a {
  height: unset;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

/* -------- Next Gen Slider ----------- */

.ngg-slideshow.slick-slider {
  width: 100%;
}

/* -------- Next Gen Slider END ---- */

/* Main navigation */
#main {
  padding-top: 0;
  margin-bottom: 0;
}

.inner-wrap {
  max-width: none;
  width: 100%;
}

.home .site-header {
  border-bottom: 0;
}

.site-branding {
  align-content: center;
}

a:hover,
a:focus,
a:active {
  text-decoration: underline;
}

.main-navigation {
  padding-top: 0;

  ul {
    align-content: center;

    li {
      font-size: 24px;

      &:hover > ul,
      &.focus > ul {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
      }
    }

    ul {
      top: 9rem;

      a {
        width: 250px;
        border-right: 0;
        border-left: 0;
        border-bottom: 0;
      }
    }
  }

  li {
    &:nth-child(1).current-menu-item a,
    &:nth-child(5).current-menu-item a {
      text-decoration: underline;
      color: #1f323d;
    }

    &:nth-child(2) {
      &.current-menu-item > a {
        text-decoration: underline;
        color: #ff8e00;
      }

      &:hover > a,
      &:hover > .sub-toggle {
        color: #ff8e00;
      }
    }

    &:nth-child(3) {
      &.current-menu-item > a {
        text-decoration: underline;
        color: #769fb6;
      }

      &:hover > a,
      &:hover > .sub-toggle {
        color: #769fb6;
      }
    }

    a {
        color: #1f323d;
    }
  }

  > ul > li {
    &:nth-child(4) > a,
    &:nth-child(5) > a {
      color: #ffffff;
      padding: 0px 25px;
      border-radius: 6px;
      margin: 20px 0 20px 10px;
      font-weight: 600;
      font-size: 20px;
    }

    &:nth-child(4) > a {
      background-color: #769fb6;
    }

    &:nth-child(5) > a {
      background-color: #ff8e00;
    }
  }

  .sub-menu li:not(:last-child) {
    padding-right: 0;
  }
}

.nav-menu {
  > ul > li {
    &:nth-child(4) > a,
    &:nth-child(5) > a {
      color: #ffffff;
      padding: 0px 25px;
      border-radius: 6px;
      margin: 20px 0 20px 10px;
      font-weight: 600;
      font-size: 20px;
    }

    &:nth-child(4) > a {
      background-color: #769fb6;
    }

    &:nth-child(5) > a {
      background-color: #ff8e00;
    }
  }

  > li {
    &:nth-child(2) {
      &.current_page_item > a,
      &.current-menu-ancestor > a {
        text-decoration: underline;
        color: #ff8e00;
      }
    }

    &:nth-child(3) {
      &.current_page_item > a,
      &.current-menu-ancestor > a {
        text-decoration: underline;
        color: #769fb6;
      }
    }
  }

  li ul.sub-menu li {
    a {
      font-size: clamp(12px, 2vw, 20px);
      padding: 0 30px;
    }

    &.current-menu-item a,
    &.current_page_item a {
      text-decoration: underline !important;
    }
  }
}

.nav-menu > ul > li > a,
.menu > ul > li > a {
  height: unset;
  line-height: clamp(0, 2vw, 40px);
  padding-top: clamp(5px, 2vw, 20px);
  padding-bottom: clamp(5px, 2vw, 20px);
}

.sub-toggle {
  display: none;
}

.sub-menu {
  border-top: 0px !important;
}

#nav-menu li ul.sub-menu li a {
  color: #ffffff;
  background: none;
  padding: 10px 20px;
  display: block;
}

.hentry {
  margin: 0 0 0;
}

.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: unset;

  p {
    padding-top: clamp(5px, 2vw, 20px);
    padding-bottom: clamp(5px, 2vw, 20px);
  }
}

.no-sidebar-full-width #primary .entry-content > .alignfull.wp-block-cover,
.no-sidebar-full-width
  #primary
  .entry-content
  > .alignfull.wp-block-cover-image,
.no-sidebar #primary .entry-content > .alignfull.wp-block-cover,
.no-sidebar #primary .entry-content > .alignfull.wp-block-cover-image {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.hgroup-wrap {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
}

.page-title-bar {
  display: none;
}

/* ---------- Color for breadcrumb ----------- */
.aioseo-breadcrumbs,
.aioseo-breadcrumbs a,
.aioseo-breadcrumbs span {
  color: #1f323d !important;
}

body:has(.main-navigation > div > ul > li:nth-child(2).current-menu-item)
  .aioseo-breadcrumbs
  .aioseo-breadcrumb:last-of-type,
body:has(.main-navigation > div > ul > li:nth-child(2).current-menu-ancestor)
  .aioseo-breadcrumbs
  .aioseo-breadcrumb:last-of-type {
  color: #ff8e00 !important;
}

body:has(.main-navigation > div > ul > li:nth-child(3).current-menu-item)
  .aioseo-breadcrumbs
  .aioseo-breadcrumb:last-of-type,
body:has(.main-navigation > div > ul > li:nth-child(3).current-menu-ancestor)
  .aioseo-breadcrumbs
  .aioseo-breadcrumb:last-of-type {
  color: #769fb6 !important;
}
/* ---------- Color for breadcrumb END ----------- */

/* wp overrides */
.wp-block-heading {
  align-content: center;
  width: 100%;
}

.wp-block-button {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: clamp(1.8rem, 2vw, 2.4rem) !important;
}

.wp-block-buttons {
  width: 100%;
}

.wp-block-media-text > .wp-block-media-text__content {
  padding: 0 3%;
}

.wp-block-video {
  width: 100%;
}

.tg-one-third,
.tg-one-third a {
  margin-right: 0;
  width: 50%;
  text-align: start;
  padding-left: 5%;
  padding-right: 5%;
}

.tg-one-third-last {
  display: none;
}

.widget {
  width: 100%;
}

.is-layout-grid {
  gap: 0.5em !important;
}

.wp-block-columns {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  gap: 1em;
}

.wp-block-separator {
  width: 100%;
}

.wp-block-image > a {
  display: contents;
}

#colophon .widget a {
  color: unset !important;
}

#colophon ul li a::before {
  color: #ffffff;
}

.ngg-gallery-thumbnail-box {
  width: 16%;
}

.ngg-gallery-thumbnail {
  margin: 0 auto !important;
  border: none !important;
}

.ngg-gallery-thumbnail img {
  border: 1px solid #a9a9a9;
  padding: 3px !important;
  margin: 0 auto !important;
}

.slideshowlink {
  text-align: center !important;
  margin: 0 auto 10px !important;
}

/*
Padding for Container on Start page
*/
.container-inline {
  padding: 1.25em 1.375em !important;
}

/* Container */
.centered-limited-container {
  max-width: 1100px !important;
  width: 100%;
  text-align: start;
  padding-top: clamp(1rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 4vw, 3rem);
  padding-right: 25px;
  padding-left: 25px;
  margin-left: auto;
  margin-right: auto;
}

.hyphenate {
  hyphens: auto;
}

.full-width-container {
  width: 100% !important;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.grid-custom {
  grid-template-columns: 1fr 4fr !important;
}

/* Image */
.hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: clamp(250px, 35vw, 530px);
  overflow: hidden;
}

.hero-img img {
  object-fit: cover;
  object-position: center;
}

.resize-image {
  max-width: 140px;
  padding-right: 10px;
}

.image-container-row,
.image-container {
  height: 100%;
  max-height: 205px;
  overflow: hidden;
}

/* Text */
.text-container {
  height: 100%;
  max-height: 115px;
  padding: 1.25em 0.375em !important;
  align-content: center;
}

/* Button */
.button-custom-big {
  max-width: 400px;
  width: 100%;
  height: 200px;
  padding: 20px 10px 20px 10px;
}

.round-button {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  padding: 5px;
  border-radius: 50%;
  box-sizing: border-box;
  transform: rotate(10deg);
}

/* Footer */
.footer-image {
  height: 40px;
  width: 40px;
}

.footer-button {
  width: 185px;
  height: 185px;
  border-radius: 50%;
  display: flex;
  padding: 10px;
  box-sizing: border-box;
}

.footer-text {
  font-size: 16px;

  a {
    padding-left: 0;
    padding-right: 0;
  }
}

.custom-mobile-toggle,
.custom-mobile-drawer,
.mobile-menu-overlay {
  display: none;
}

/* ------- the contact form ------- */
.wpcf7 {
  .cf7-grid-wrapper {
    display: flex;
    gap: 50px;
    align-items: stretch;
    padding-top: 20px;
    padding-bottom: 20px;

    p,
    span {
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
    }
  }

  .cf7-col-left,
  .cf7-col-right {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .cf7-col-left {
    justify-content: space-between;
  }

  .cf7-field-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
  }

  input[type="text"],
  input[type="email"] {
    width: 100%;
    height: 40px;
    border: 2px solid #ff8e00;
    box-sizing: border-box;
    border-radius: 10px;
  }

  textarea {
    width: 100%;
    height: 140px;
    border: 2px solid #ff8e00;
    box-sizing: border-box;
    border-radius: 10px;
    resize: none;
  }

  .cf7-btn-row {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    width: 100%;

    p,
    span {
      flex: 1;
      display: flex;
      margin: 0;
      padding: 0;
    }
  }

  input[type="submit"],
  input[type="reset"],
  .wpcf7-reset {
    width: 45%;
    background-color: #ff8e00;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    border-radius: 10px;
    box-sizing: border-box;
  }

  span.wpcf7-not-valid-tip {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 11px;
    color: #dc3232;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  input.wpcf7-not-valid,
  textarea.wpcf7-not-valid {
    border-color: #dc3232;
  }

  form.invalid .wpcf7-response-output,
  form.failed .wpcf7-response-output {
    margin-top: 15px;
    border-color: #dc3232;
    border-radius: 10px;
  }

  .wpcf7-spinner {
    background: none;
    margin: 0 0 0 10px;
  }

  .wpcf7-spinner::before {
    border-radius: 50%;
    border: 3px solid rgba(255, 142, 0, 0.2);
    border-top-color: #ff8e00;
    top: 0px;
    left: 5px;
    width: 15px;
    height: 15px;
    transform-origin: unset;
  }

  .wpcf7-list-item {
    margin: 0 0 0 0;
  }
}
/* ------- the contact form END ----- */

@media screen and (max-width: 1040px) {
  #site-navigation .nav-menu,
  #site-navigation ul,
  .main-navigation .menu-primary-container,
  #site-navigation button.menu-toggle,
  .better-responsive-menu .menu-toggle {
    display: none !important;
  }

  #masthead .inner-wrap,
  #header-text-nav-wrap {
    flex-direction: unset !important;
    position: relative;
  }

  .nav-menu li a,
  .nav-menu li ul.sub-menu li a {
    color: #1f323d !important;
    padding-bottom: 5px;
    border-bottom: none;
    font-size: 20px;
  }

  .nav-menu li:nth-child(2) ul.sub-menu li a,
  .nav-menu li:nth-child(3) ul.sub-menu li a {
    font-size: 16px;
  }

  .nav-menu li:nth-child(2) a,
  .nav-menu li:nth-child(2) ul.sub-menu li a {
    color: #ff8e00 !important;
  }

  .nav-menu li:nth-child(3) a,
  .nav-menu li:nth-child(3) ul.sub-menu li a {
    color: #769fb6 !important;
  }

  .nav-menu > li:nth-child(2) ul.sub-menu,
  .nav-menu > li:nth-child(3) ul.sub-menu {
    background-color: #ffffff !important;
  }

  .custom-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    background: transparent !important;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    z-index: 9999;
  }

  .custom-mobile-toggle .bar {
    display: block;
    width: 100%;
    height: 6px;
    background-color: #ff8e00;
    border-radius: 2px;
  }

  .custom-mobile-drawer {
    display: block;
    position: fixed;
    right: -100%;
    width: 95%;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transition: right 0.3s ease-in-out;
    padding: 30px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    margin: 10px;
  }

  .custom-mobile-drawer.is-active {
    right: 0;
  }

  .custom-mobile-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 28px;
    background: none;
    cursor: pointer;
    color: #1f323d;
    z-index: 1000000;
  }

  .custom-mobile-close:hover,
  .custom-mobile-close:focus,
  .custom-mobile-close:active {
    background: transparent;
  }

  .custom-mobile-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .custom-mobile-drawer li {
    padding-top: 3px;
  }

  .custom-mobile-drawer a {
    text-decoration: none;
  }

  .mobile-menu-overlay {
    display: none;
  }

  .mobile-menu-overlay.is-active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999998;
  }

  .tg-one-third {
    display: none;
  }

  .tg-one-third-last {
    margin-right: 0;
    width: 100%;
    text-align: start;
    padding-left: 5%;
    padding-right: 5%;
    display: flex;
  }

  .footer-button {
    color: #ffffff;
    width: clamp(130px, 30vw, 200px) !important;
    height: clamp(130px, 30vw, 200px) !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 768px) {
  .centered-limited-container {
    gap: 0em;
  }

  .hero-img {
    aspect-ratio: 16 / 9;
    height: clamp(200px, 50vw, 320px) !important;
  }

  .column-custom-size-image {
    flex-basis: 30% !important;
  }

  .column-custom-size-text {
    flex-basis: 70% !important;
  }

  .image-container {
    min-height: 350px !important;
  }

  .text-container {
    height: 100%;
    max-height: 50px !important;
    padding: 0 5px 0 5px !important;
    hyphens: auto;
    font-size: 12px;
  }

  .button-custom-big {
    max-width: 350px !important;
    height: 200px !important;
  }

  .round-button {
    width: clamp(130px, 39vw, 170px) !important;
  }

  .wp-block-column {
    padding-bottom: 30px;
  }

  .menu-toggle {
    top: 10px;
    right: 50px;
    position: unset;
    display: flex;
    align-items: center;
  }

  .menu-toggle::before {
    font-size: 40px;
    position: unset;
  }

  .wp-block-spacer {
    flex-basis: 0 !important;
  }
}
