@media screen and (max-width: 1279px) {
  .navigation ul li a {
    font-size: 12px;
  }

  .submenu-title,
  .submenu-title a {
    font-size: 14px !important;
  }
}

@media screen and (max-width: 991px) {
  .button-primary.small {
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 16px;
  }

  .button-primary.small .arrow svg {
    width: 14px;
  }

  .header-navigation-wrapper {
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    right: 0;
    z-index: -1;
    transform: translateY(-150%);
    transition: all 0.4s ease;
    background: #ffffffe6;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    max-height: calc(100vh - 55px);
    overflow: auto;
    padding: 0 16px 10px;
  }

  .navigation>ul {
    display: block;
  }

  .navigation>ul>li {
    display: block;
    padding: 8px 0;
  }

  .navigation>ul>li>a {
    font-size: 14px !important;
  }

  .submenu.menu-small li a {
    padding: 8px;
  }

  header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 0.5px solid #000;
  }

  .header-search.for-desktop {
    display: none;
  }

  .header-action {
    display: inline-block;
    margin-top: 8px;
  }

  .container-wrapper {
    padding: 0 16px;
  }

  header .container-wrapper {
    background-color: #fff;
  }

  .submenu.menu-large {
    display: block;
    max-height: 70vh;
    overflow: scroll;
    padding: 16px;
    max-width: 100%;
  }

  .submenu.menu-large .submenu-inner {
    width: 100%;
  }

  .submenu.menu-large .submenu-inner:not(:last-child) {
    margin-bottom: 16px;
  }

  .submenu.menu-small {
    max-width: 100%;
  }

  .has-submenu>a {
    justify-content: space-between;
  }

  button.arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow.active {
    background: #dedede;
    border-radius: 4px;
  }

  .arrow.active svg,
  .arrow.active img {
    transform: rotate(180deg);
    /* or any visual cue for toggle */
  }

  .submenu,
  .submenu.menu-large {
    display: none;
    margin-top: 12px;
  }

  .header-navigation-wrapper.active {
    transform: translateY(-1px);
    top: 100%;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }

  .submenu-inner.submenu-with-image {
    padding-top: 18px;
    border-top: 1px solid #a2a2a2;
  }

  .submenu-inner-image img {
    max-width: 100px;
  }

  .mobile-navigation-wrapper {
    gap: 10px;
  }
}

@media screen and (min-width: 992px) {
  .submenu {
    overflow: hidden;
    background-color: var(--grayBG);
    border-style: none;
    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: -webkit-transform 0.4s ease;
    transition: transform 0.4s ease;
    transition: transform 0.4s ease, -webkit-transform 0.4s ease;
    position: absolute;
    top: 100%;
    left: 0;
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
    pointer-events: none;
    max-height: none;
    z-index: 999;
  }

  .submenu.menu-large {
    overflow: auto;
    max-height: calc(100vh - 64px);
  }

  .navigation>ul>li:hover .submenu {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    transform: translateY(0);
    pointer-events: auto;
  }

  .has-submenu:hover .arrow svg {
    transform: rotate(180deg);
  }

  .navigation>ul>li>a:hover {
    text-decoration: underline;
  }

  .mobile-navigation-wrapper {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 36px;
    line-height: 1;
  }

  h2 {
    font-size: 16px;
    line-height: 1.5;
  }

  h3 {
    font-size: 15px;
    line-height: 1.5;
  }

  h4 {
    font-size: 14px;
    line-height: 1.5;
  }

  .main-line {
    font-size: 36px;
    line-height: 1;
  }

  .section-heading {
    font-size: 16px;
    line-height: 1.5;
  }

  .header-inner {
    gap: 20px;
  }

  .background-graphics-orange::before {
    width: 164px;
    height: 203px;
    left: auto;
    right: 0;
    top: 0;
    background-position: top right;
    bottom: auto;
    transform: rotate(180deg);
  }

  .button-primary,
  .button-ghost {
    font-size: 16px;
    line-height: 24px;
  }

  .button-secondary {
    font-size: 14px;
    line-height: 20px;
    padding: 10px 18px;
  }

  .hero-slider,
  .hero-slider.text-slider {
    height: 412px;
    min-height: auto;
  }

  .text-slider .swiper-slide {
    padding: 40px 0;
  }
}

@media screen and (max-width: 639px) {

  .hero-slider,
  .hero-slider.text-slider {
    height: auto;
    min-height: 412px;
  }

  .content {
    max-height: 380px;
  }
}

@media screen and (max-width: 390px) {
  .overlapped-tabs .main-line {
    font-size: 28px;
    line-height: 1;
  }
}