@media only screen and (max-width: 1650px) {
  .wrapper {
    max-width: 90%;
  }

  #top_banner > .text > div {
    left: 10%;
  }

  .main-menu .services {
    gap: 25px;
    width: fit-content;
  }

  #pic_text_repeat .wrapper > div > .pic > img {
    width: 90%;
  }

  .template-resources .item {
    width: 100%;
  }

  .main-menu .more {
    width: 500px;
  }

  .template-homepage #blue_strip .wrapper {
    margin-left: 5%;
  }

  #pic_text_repeat .wrapper > div > span {
    padding-right: 0%;
  }
}

@media only screen and (max-width: 1450px) {
  #top_banner > .banner_pic {
    width: 45%;
  }
}

@media only screen and (max-width: 1280px) {
  #pic_text_repeat .wrapper > div > span {
    width: 100% !important;
  }

  .main-menu .more {
    display: none !important;
  }

  .main-menu .service img {
    opacity: 1 !important;
  }

  .main-menu .service.active > p {
    color: #fff !important;
  }

  .main-menu .service.active::after,
  .main-menu .service.active::before {
    display: none;
  }

  .template-resources .items .wrapper {
    margin-block: 50px;
  }

  .template-resources .items .wrapper {
    grid-template-columns: 1fr;
  }

  .contact-row .wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .contact-row .gform_wrapper {
    width: 100%;
    padding-right: 0;
  }

  .contact-row .wrapper {
    margin-block: 50px;
  }

  .template-layout-1 #blue_strip .flex-row {
    flex-direction: column;
    gap: 25px;
  }

  .template-layout-1 #blue_strip .team-members {
    gap: 50px;
  }

  .template-courses .pic_text h2 {
    margin-top: 25px !important;
  }

  .template-news .pic_text h2 {
    margin-top: 25px;
  }

  .team-members {
    margin-top: 25px;
  }

  #top_banner a {
    margin-bottom: 25px;
  }

  .team-member .bio {
    width: 90%;
    height: fit-content;
    max-height: 90%;
    padding-inline: 5%;
    padding-block: 50px;
  }

  .team-member .profile-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  #top_banner > .banner_pic {
    width: 100% !important;
  }

  #blue_strip:has(.gform_wrapper) .wrapper {
    flex-direction: column;
    gap: 0;
  }

  .single-course .content .wrapper {
    flex-direction: column;
    margin-top: 50px;
  }

  .single-course .form {
    width: 100%;
  }

  .related-course .wrapper {
    flex-direction: column-reverse;
    gap: 25px;
  }

  .single-course .related-course {
    margin-block: 50px !important;
  }

  .related-course .pic span {
    display: none;
  }

  .single-course .form {
    padding-inline: 5%;
  }

  .related-course img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  .related-course .text {
    width: 100%;
  }

  .single-course .text-blocks {
    width: 100%;
  }

  .other-services .flex-row {
    flex-direction: column;
  }

  .other-services .row {
    gap: 50px;
    margin-block: 0 !important;
  }

  .single-service .other-services .service {
    width: 100%;
  }

  .single-service .other-services img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  #blue_strip .gform_wrapper {
    width: 100%;
  }

  #top_banner .filter {
    background: black;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
  }

  .main-menu .main {
    flex-direction: column;
    gap: 50px;
  }

  .main-menu .right {
    width: fit-content;
    gap: 25px;
    align-items: center;
  }

  .main-menu .right a {
    font-size: 18px;
  }

  .main-menu .nav ul a {
    font-size: 30px;
  }

  .template-homepage #top_banner > .text {
    padding-top: 130px;
  }

  p {
    margin: 25px 0 !important;
  }

  #top_banner > .text {
    width: 100%;
    padding-inline: 5%;
    z-index: 4;
    max-width: 100%;
  }

  #top_banner {
    height: fit-content !important;
    padding-bottom: 50px;
  }

  .square_image_1 {
    display: none;
  }

  .square_image_2 {
    display: none;
  }

  #pic_text_repeat {
    width: 100%;
    float: left;
    margin-top: 50px;
  }

  .pic_text .pic span {
    display: none;
  }

  #top_banner > .text .wrapper {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
  }

  #top_banner > .text * {
    color: white;
  }

  .pic_text .pic,
  .pic_text .text {
    width: 100% !important;
  }

  .pic_text .pic img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  .template-homepage .wrapper > div > span {
    padding-right: 0;
  }

  .single-service .other-services {
    padding-block: 0;
    padding-bottom: 50px;
  }

  .service-slider {
    width: 100%;
    float: left;
  }

  .template-homepage #blue_strip .wrapper {
    margin-inline: 5%;
  }

  #blue_strip .text {
    max-width: 100%;
  }

  .template-homepage #blue_strip .slick-list {
    margin-left: 0;
  }

  #latest_thing .wrapper .text {
    width: 100%;
  }

  #latest_thing .wrapper .pic {
    width: 100%;
    float: left;
  }

  #latest_thing .wrapper .pic img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  #latest_thing > .wrapper {
    display: flex;
    flex-direction: column-reverse;
  }

  #pic_text_repeat .wrapper > div {
    margin-bottom: 50px;
  }

  #latest_thing .wrapper > .pic span {
    display: none;
  }

  .single-course .text-blocks .text {
    margin-bottom: 0;
  }

  #blue_strip {
    padding: 0 !important;
    padding-block: 25px !important;
  }

  .main-menu .squares {
    display: none;
  }

  .main-menu #menu-services {
    flex-direction: column;
    gap: 25px;
  }

  .main-menu .services img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  .home #header {
    background: white;
  }

  .main-menu .services {
    width: 100% !important;
  }

  .call-popup {
    width: 90% !important;
  }

  .main-menu .main {
    margin-top: 50px;
  }

  .single-insight .content .wrapper {
    flex-direction: column-reverse;
    gap: 50px;
    margin-block: 50px;
  }

  .single-insight .text {
    width: 100%;
  }

  footer {
    padding-top: 50px;
  }

  footer .services {
    gap: 25px;
    flex-direction: column;
  }

  footer > .wrapper:not(#copyright) {
    flex-direction: column;
    gap: 50px;
  }

  .main-menu #logo {
    transform: none;
  }

  .single-insight .text .button_link {
    margin-top: 0;
  }

  .single-insight .profile img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  #pic_text_repeat {
    margin-bottom: 0px;
  }

  #latest_thing {
    margin-block: 50px;
  }

  #copyright {
    margin-top: 50px;
  }
}

@media only screen and (max-width: 800px) {
  .service-slider a {
    width: 100%;
  }

  .service-slider a img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100% !important;
    height: auto;
    max-height: 400px;
  }

  .main-menu .nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .main-menu .contacts {
    display: none;
  }

  footer > .wrapper:not(#copyright) {
    gap: 25px;
  }

  #logo {
    width: 100px;
  }

  #menu_open img {
    height: 35px;
  }

  h1 {
    color: #000;
    font-size: 35px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1px;
  }

  h2 {
    color: #000;
    font-size: 25px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -1.6px;
  }

  #pic_text_repeat {
    margin-top: 25px;
  }

  #top_banner h1 {
    margin-top: 25px;
  }

  .template-resources .items .wrapper {
    margin-block: 25px;
    gap: 25px;
  }

  #blue_strip {
    padding-bottom: 25px;
    padding-top: 0;
  }

  .single-course .content .wrapper {
    margin-top: 25px;
  }

  #latest_thing {
    margin-block: 25px !important;
  }

  #pic_text_repeat .wrapper > div {
    margin-bottom: 25px !important;
  }

  #top_banner {
    padding-bottom: 0;
  }

  .main-menu .nav ul a {
    font-size: 25px;
  }

  .main-menu .nav ul {
    gap: 0px;
  }

  .main-menu .main {
    margin-top: 25px;
  }

  .contact-row .wrapper {
    margin-block: 25px;
  }

  .single-insight .content .wrapper {
    margin-block: 25px;
  }

  .contact-row h2 {
    font-size: 20px;
  }

  .template-resources .item h3 {
    font-size: 20px;
    line-height: normal;
  }

  .call-popup {
    padding: 25px !important;
  }

  .gform_wrapper.gravity-theme .gform_footer,
  .gform_wrapper.gravity-theme .gform_page_footer {
    padding-bottom: 0;
  }

  .call-popup form {
    gap: 15px;
  }

  .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 15px !important;
  }

  p {
    font-size: 16px;
  }

  ul li {
    font-size: 16px;
  }

  footer .contacts a {
    font-size: 16px;
  }
}
