:root {
  --the-green: #009652;
  --the-white: #fff;
  --the-black: #000;
  --the-light-green: #6ec051;
  --the-grey: #f9f9fa;
}

html {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
}
/* Insurance Section */
.insurance-section {
  padding-top: 3em;
  padding-bottom: 9em;
}
.the-insurance h4 {
  text-transform: uppercase;
}

/* menu */
#mega-menu-primary .mega-current-menu-item a,
.mega-menu-primary li a {
  position: relative !important;
  transition: 500ms;
}

@media (min-width: 1150px) {
  #mega-menu-primary > li.mega-current_page_parent > a::before {
    content: "";
    position: absolute !important;
    border-bottom: 4px solid var(--the-green) !important;
    width: 100% !important;
    left: 0 !important;
    bottom: -22px !important;
    z-index: 9999;
  }

  #mega-menu-primary > li > a:hover::before {
    content: "";
    position: absolute !important;
    border-bottom: 4px solid var(--the-green) !important;
    width: 100% !important;
    left: 0 !important;
    bottom: -22px !important;
    z-index: 9999;
  }

  #mega-menu-primary .mega-menu-primary li a:hover::before {
    content: "";
    position: absolute !important;
    border-bottom: 4px solid var(--the-green) !important;
    width: 100% !important;
    left: 0 !important;
    bottom: -22px !important;
    z-index: 9999;
  }
  #mega-menu-primary li ul li ul li a:hover::before {
    content: none !important;
    border-bottom: 0px !important;
    position: absolute !important;
  }

  .mega-menu-row:nth-child(1) {
    border-top: 2px solid #bfbfbf !important;
    padding: 30px 0 60px 0 !important;
  }
}

@media(max-width: 1150px){
  ul#mega-menu-primary {
    padding-top: 30px !important;
}
}

#mega-menu-primary li ul li ul .mega-current-menu-item a {
  color: var(--the-light-green) !important;
}

#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner, #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::before, #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::after {
 
  background-color: var(--the-green);
}

#mega-menu-wrap-primary,
#mega-menu-wrap-primary #mega-menu-primary,
#mega-menu-wrap-primary #mega-menu-primary ul.mega-sub-menu,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-row,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-column,
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary span.mega-menu-badge {
  position: initial;
}
.mega-sub-menu {
  background: var(--the-white) !important;
}

#mega-menu-primary li ul {
  position: relative;
  /* top: 120px !important; */
  padding: 20px 3px !important;
}
#mega-menu-primary li ul li a {
  /* border-top: 2px solid #bfbfbf !important; */
  height: 4em !important;
  display: flex !important;
  align-items: center;
  text-transform: capitalize !important;
  font-weight: 400 !important;
  position: relative !important;
}
#mega-menu-primary li ul li a::before {
  content: "\e808";
  position: absolute !important;
  right: 0;
  width: 100%;
  font-family: "pncicons" !important;
}
.mega-sub-menu li ul li a {
  border-bottom: 1px solid #bfbfbf !important;
}
.mega-sub-menu li ul li:first-of-type a {
  border-top: 1px solid #bfbfbf !important;
}
#mega-menu-wrap-primary
  #mega-menu-primary
  li.mega-menu-megamenu
  > ul.mega-sub-menu
  > li.mega-menu-row
  .mega-menu-column
  > ul.mega-sub-menu
  > li.mega-menu-item {
  padding: 0px 15px 0px 15px;
  width: 100%;
}

.mega-sub-menu h4 {
  display: none !important;
}

/* Contact Us */
.uppercase h4 {
  text-transform: uppercase;
}
.uppercase {
  position: relative;
  margin-bottom: 4em;
}
.uppercase.first::before {
  content: "";
  position: absolute;
  border-bottom: 1px solid var(--the-green);
  width: 100%;
  bottom: -15px;
}
.uppercase.second {
  margin-top: 5em;
}
.con-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.wpcf7-form-control.wpcf7-text {
  height: 3em;
  padding: 10px;
}
.wpcf7-form-control.wpcf7-select {
  height: 3em;
}
.con-flex p {
  width: 100%;
}
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required {
  width: 100%;
}
.wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required {
  border-radius: 0px;
  border: 1px solid #6c757d;
  padding: 10px;
  background: var(--the-white);
  color: #6c757d;
}
.the-form li::before {
  content: "\e80c";
  font-family: "pncicons";
  position: relative;
  top: 0px;
  color: var(--the-light-green);
}
.wpcf7-form-control.has-spinner.wpcf7-submit {
  background: var(--the-green);
  text-shadow: none;
  color: var(--the-white);
  padding: 10px 40px;
  border: none;
  border-radius: 50px;
  display: inline-block;
  margin-top: 2em;
  transition: 500ms;
}
.wpcf7-form-control.wpcf7-textarea {
  padding: 10px;
  width: 100%;
}
.the-form {
  margin-bottom: 7em;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  width: 30px;
  height: 30px;
  display: inline-block;
  position: relative;
  top: 7px;
  left: -17px;
}
@media (min-width: 800px) {
  .con-flex p {
    width: 49%;
  }
  .wpcf7-form-control.wpcf7-text,
  .wpcf7-form-control.wpcf7-textarea,
  .wpcf7-form-control.wpcf7-select.wpcf7-validates-as-required {
    width: 99%;
  }
}

/* Services Section */
.services-section {
  position: relative;
  margin-top: 3em;
}
.services-image img {
  max-width: 780px;
  max-height: 630px;
}
.services-section::before {
  content: "";
  background: var(--the-grey);
  height: 120%;
  width: 100%;
  position: absolute;
  z-index: -1;
  left: -9vw;
  top: -40px;
}
.services-image img {
  transform: scale(1.1);
  transition: 900ms;
}
.services-image img:hover {
  transform: scale(1);
}
.services-image {
  overflow: hidden;
}
@media (max-width: 899px) {
  .services-image img {
    height: 300px;
    width: 318px;
    object-fit: cover;
  }
  .services-image {
    margin-bottom: 1em;
  }
}
@media (min-width: 900px) {
  .services-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px 25px;
    grid-template-areas:
      "big-image small-image-one"
      "big-image small-image-two";
  }
  .services-holder:nth-child(1) {
    grid-area: big-image;
  }
  .services-holder:nth-child(2) {
    grid-area: small-image-one;
  }
  .services-holder:nth-child(3) {
    grid-area: small-image-two;
  }

  .services-holder:nth-child(2) img {
    max-height: 300px;
    object-fit: cover;
  }
  .services-holder:nth-child(3) img {
    max-height: 300px;
    object-fit: cover;
  }
  .services-holder:nth-child(1) img {
    min-height: 630px;
    object-fit: cover;
  }
}
.services-image {
  position: relative;
}
@media (max-width: 760px) {
  .services-holder {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}
.services--text-align {
  padding: 0px 40px;
}
.services--text-align p {
  position: absolute;
  bottom: 40px;
  color: var(--the-grey);
  font-size: 1.5em;
}
.insights-outer {
  margin: 4em 0em;
}

/* Insights */
.insights-tex-flex {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.insights {
  margin-top: 11em;
}
.insights-wrapper {
  margin: 3em 0;
}
.insights-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 2em;
}
.insights-image img {
  transition: 900ms;
  transform: scale(1.2);
}
.insights-image img:hover {
  transform: scale(1.1);
}
.the-text-align {
  padding: 5px 20px;
}
.the-text-align p {
  position: absolute;
  bottom: 47px;
  color: var(--the-grey);
  font-size: 1.5em;
}
.insights-text h4 {
  text-transform: uppercase;
  font-weight: 600;
}

/* Apply and submit section */
.apply-and-submit {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 7em;
  margin-top: 5em;
}
.the-bttn a {
  background: var(--the-green);
  padding: 10px 20px;
  display: inline-block;
  color: var(--the-white);
  border-radius: 50px;
  width: 150px;
  text-align: center;
  margin-top: 1.5em;
  transition: 500ms;
}
.apply-text {
  display: inline-block;
  margin-top: 1.5em;
}
.apply-title h5 {
  text-transform: uppercase;
  font-weight: 600;
}
.apply-image img {
  height: 425px;
  width: 100%;
  object-fit: cover;
}
/* @media (min-width: 1400px) {
  .apply-image img {
    max-height: 489px;
    max-width: 651px;
    object-fit: cover;
  }
} */

/* Newsletter */

.the-newsletter-button i {
  margin-right: 7px;
}
.news-letter-holder {
  background: var(--the-light-green);
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.news-letter-text .the-daimond i,
.news-letter-text {
  color: var(--the-white);
}
.the-newsletter-button a {
  background: var(--the-white);
  padding: 10px 20px;
  display: inline-block;
  width: 160px;
  text-align: center;
  border-radius: 50px;
  color: var(--the-light-green);
  transition: 500ms;
}
.the-newsletter-button a:hover {
  background: var(--the-black);
  color: var(--the-white);
}
.news-letter-text h4 {
  text-transform: uppercase;
}
@media (min-width: 1200px) {
  .news-letter-holder {
    padding: 50px 60px;
    margin-top: 2em;
  }
}

/* How can we help section */
.the-daimond i {
  color: var(--the-light-green);
  margin-right: 5px;
}
.get-intouch h4 {
  text-transform: uppercase;
}
.border-link a {
  color: var(--the-green);
  border-bottom: 3px solid;
}
.get-intouch {
  padding-bottom: 4em;
  margin-top: 4em;
}

/* Footer */
.fluid-container.footer-holder h5 {
  text-transform: uppercase;
}
.green-section {
  background: var(--the-light-green);
  padding: 45px 0px;
}
.footer-social-icons a {
  background: var(--the-grey);
  padding: 15px 14px;
  border-radius: 50%;
  margin: 6px;
  color: var(--the-light-green);
}
#menu-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}
#menu-footer-menu li a {
  color: var(--the-white);
}
.the-copy-right p {
  color: var(--the-white);
}
#menu-footer-menu li {
  margin-left: 0;
}
.the-copy-right {
  margin-top: 5em;
  position: relative;
}
.the-copy-right::before {
  content: "";
  border-top: 1px solid var(--the-white);
  position: absolute;
  left: -25vw;
  height: 2px;
  width: 150vw;
  top: -45px;
}
#button {
  position: absolute;
  bottom: 100px;
  right: 0;
  top: -57px;
}
.the-copy-right #button a {
  background: var(--the-grey);
  padding: 15px 13px;
  border-radius: 50%;
  color: var(--the-light-green);
}
.menu-about-us-footer-menu-container li {
  margin-left: 0;
}
#menu-about-us-footer-menu li a {
  color: var(--the-black);
  line-height: 2;
}
.the-footer-button a {
  background: var(--the-green);
  padding: 12px 20px;
  color: var(--the-white);
  display: inline-block;
  margin-top: 1.5em;
  border-radius: 50px;
  width: 200px;
  text-align: center;
  transition: 500ms;
  position: relative;
  overflow: hidden;
  z-index: 9;
}
.the-footer-button a::before {
  content: "";
  position: absolute;
  background: var(--the-light-green);
  width: 100%;
  height: 100%;
  transition: 800ms;
  left: -100%;
  top: 0;
  z-index: -1;
}
.the-footer-button a:hover::before {
  left: 0%;
}
