@media screen and (max-width: 1199px) {
  .banner_btn {
    .elementor-button {
      .elementor-button-icon {
        position: relative;
        top: -1px;
        svg {
          width: 12px;
          height: 10px;
        }
      }
    }
  }
  #afoa-megamenu-container {
    .megamenu-fixed-wrapper {
      padding: 0px 25px 50px;
      ul {
        a {
          font-size: 16px;
          line-height: 45px;
        }
      }
      .logo-search-flex-wrapper {
        padding-top: 70px;
      }
      .desktop-tablet-megamenu-wrapper {
        .col-1,
        .col-2 {
          .menu {
            > .menu-item-has-children {
              > a {
                font-family: var(--poppins);
                font-weight: 700;
                font-size: 20px;
                line-height: 100%;
                text-transform: uppercase;
              }
              > .sub-menu {
                margin-top: 15px;
              }
            }
          }
        }
        .col-1 {
          padding-right: 40px;
          padding-top: 25px;
          border-right: 1px solid #ffffff80;
          .menu {
            > .menu-item {
              &:not(:last-child) {
                margin-bottom: 20px;
              }
              > a {
                font-size: 26px;
                line-height: 100%;
              }
              &.contact_btn {
                margin-top: 30px;
                a {
                  font-size: 20px;
                  line-height: 100%;
                }
              }
            }
          }
          .casino_social_icons {
            .casino_social_icons_ul {
              li {
                height: 34px;
                width: 34px;
              }
            }
          }
        }
        .col-2 {
          padding-left: 40px;
          padding-top: 15px;
          flex: 1;
          .menu {
            > .menu-item-has-children {
              > a {
                color: var(--white);
                font-family: var(--font-eaves);
                font-weight: 400;
                font-size: 20px;
                line-height: 100%;
                position: relative;
                padding-bottom: 15px;
                &::before {
                  content: "";
                  position: absolute;
                  left: 0;
                  bottom: 0;
                  width: 150px;
                  height: 2px;
                  border-bottom: 2px solid var(--green);
                }
                span {
                  font: inherit;
                  font-family: var(--font-eaves-ot);
                  color: inherit;
                  font-style: italic;
                  text-transform: lowercase;
                }
              }
              > .sub-menu {
                display: flex;
                flex-wrap: wrap;
                margin-top: 30px;
                .menu-item {
                  flex: 0 0 50%;
                }
              }
            }
            .view-btn {
              margin-top: 4cqmin;
              a {
                font-size: 22px;
              }
            }
          }
        }
      }
    }
  }
  .span_green,
  .span_green2,
  .span_white {
    span {
      font-size: 36px;
    }
    &.builder {
      span {
        font-size: 36px;
      }
    }
  }
  .span_lightgreen {
    span {
      font-size: 36px;
    }
  }
  .span_green2 {
    span {
      padding-right: 0;
    }
  }
  /* Home Page */
  #home_testimonial {
    .elementor-swiper-button {
      svg {
        width: 23px;
        height: 47.35px;
      }
    }
  }
  /* Lafaye Living */
  #lafaye-living-loop {
    .investment-slider-container {
      .investment-slider-wrapper {
        .investment-slider-image-container {
          height: 280px;
        }
      }
      .slider-button-wrapper {
        .left-arrow,
        .right-arrow {
          cursor: pointer;
          width: 28px;
        }
      }
    }
  }
}

@media screen and (max-width: 767px) {
  #afoa-megamenu-container {
    .megamenu-fixed-wrapper {
      padding: 0px 45px 50px;
      background-image: url(/wp-content/uploads/2026/04/Mega-Menu-Mobile-Expanded.png) !important;
      .logo-search-flex-wrapper {
        padding-top: 50px;
        padding-bottom: 50px;
        justify-content: center;
        align-items: center;
        .close-button {
          position: absolute;
          top: 25px;
          right: 25px;
        }
      }
      .desktop-tablet-megamenu-wrapper {
        display: none;
      }
      .mobile-megamenu-wrapper {
        display: block;
        .col-1 {
          .menu-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            a {
              font-family: var(--font-eaves);
              font-weight: 400;
              font-size: 34px;
              line-height: 100%;
              color: var(--white);
              text-transform: uppercase;
            }
            &.gallery-menu {
              > a {
                position: relative;
                width: 100%;
                display: inline-block;
                span {
                  font-size: inherit;
                  color: inherit;
                  line-height: inherit;
                  font-family: var(--font-eaves-ot);
                  text-transform: lowercase;
                  font-style: italic;
                }
                .arrow-up {
                  content: "";
                  position: absolute;
                  width: 20px;
                  height: 20px;
                  display: inline-block;
                  background-image: url(/wp-content/uploads/2026/04/Group-68.png) !important;
                  background-repeat: no-repeat;
                  background-position: right;
                  background-size: contain;
                  top: 51%;
                  right: 0;
                  transform: translate(0%, -50%);
                  z-index: 99;
                }
                .arrow-down.arrow-up {
                  content: "";
                  position: absolute;
                  width: 20px;
                  height: 20px;
                  display: inline-block;
                  background-image: url(https://thelevelfg.com/wp-content/uploads/2024/08/toggle-minus-1.svg) !important;
                  background-repeat: no-repeat;
                  background-position: right;
                  background-size: contain;
                  top: 51%;
                  right: 0;
                  transform: translate(0%, -50%);
                  z-index: 99;
                  opacity: 0.7;
                }
              }
              > .sub-menu {
                display: none;
                margin-top: 20px;
                .menu-item {
                  margin: 0;
                  padding: 0;
                  a {
                    font-family: var(--font-proxima);
                    font-weight: 400;
                    font-size: 18px;
                    line-height: 36px;
                    color: var(--white);
                    text-transform: capitalize;
                  }
                }
              }
            }
            &.contact_btn {
              margin-top: 20px;
              a {
                font-family: var(--font-eaves);
                font-weight: 400;
                font-size: 22px;
                line-height: 100%;
                background: var(--green);
                color: var(--white);
                padding: 11px 17.1px;
                &:hover {
                  background: var(--blue);
                }
              }
            }
          }
          .view-btn {
            margin-top: 10px;
            a {
              position: relative;
              font-family: var(--font-eaves);
              font-weight: 400;
              font-size: 24px;
              line-height: 100%;
              text-transform: uppercase;
              color: var(--white);
              padding-right: 35px;
              &::after {
                content: "";
                position: absolute;
                right: 0;
                top: 2px;
                width: 21px;
                height: 16px;
                background-image: url(/wp-content/uploads/2026/04/Vector-6.svg);
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                transition: 0.5s all;
                transform: translateX(0);
              }
            }
          }
        }
        .casino_social_icons {
          .casino_social_icons_ul {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 40px;
            li {
              cursor: pointer;
              transition: 0.5s all;
              height: 28px;
              width: 28px;
              a {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100%;
                width: 100%;
              }
            }
            li:hover {
              transform: translateY(-8px);
            }
          }
        }
      }
    }
  }
  /* Home Page */
  #home_testimonial {
    .elementor-swiper-button {
      top: 125% !important;
      svg {
        width: 18px;
        height: 47.35px;
      }
      &.elementor-swiper-button-prev {
        left: 10% !important;
      }
      &.elementor-swiper-button-next {
        right: 10% !important;
      }
    }
  }
  /* Lafaye Living */
  #lafaye-living-loop {
    .investment-slider-container {
      .investment-slider-wrapper {
        .investment-slider-image-container {
          height: 280px;
        }
      }
      .slider-button-wrapper {
        justify-content: center;
        gap: 30px;
        .left-arrow,
        .right-arrow {
          cursor: pointer;
          width: 20px;
        }
      }
    }
  }
  /* Contact Page */
  .contact_form {
    .gform-body {
      .gform_fields {
        .gfield {
          &.gfield--type-name {
            .ginput_container {
              gap: 16px;
            }
          }
        }
      }
    }
  }
}

@media screen and (max-width: 500px) {
  /* Home Page */
  #home_testimonial {
    .elementor-swiper-button {
      top: 123% !important;
      svg {
        width: 18px;
        height: 47.35px;
        scale: 0.7;
      }
    }
  }
}
