/* @media only screen and (min-width: 1024px) { */
@media only screen and (min-width: 1025px) {
  .path-frontpage:not(.header-animated) .site-header {
    position: absolute;
    top: 0;
    left: 0;
    transition: none;
  }

  /* .path-frontpage.header-animated header:not(.scrolling-down) {
    transition: none;
  } */

  .path-frontpage header {
    transition: top .5s ease, background-color .5s ease;
  }

  .path-frontpage.scrolling-down header {
    top: -110px;
    transition: none;
  }

  .path-frontpage.scrolling-up header {
    top: 0;
  }


  /*  ********************************  */
  header {
    transition: top .5s ease;
  }

  .scrolling-down header {
    top: -110px;
  }

  /* focus fix  */
  .search-area:not(.searchActive) .button,
  .search-area:not(.searchActive) .form-search {
    visibility: hidden;
  }
}

@media only screen and (min-width: 1400px) {
  .menu-section li:not(:last-child) {
    margin-right: 30px;
  }
}

@media (min-width: 1024px) and (max-width: 1400px) {
  .menu-section li:not(:last-child) {
    margin-right: 16px;
  }

  .right-section {
    margin-left: 3px;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .menu-section a {
    font-size: 15px;
  }

  header #block-donate a {
    font-size: 12px;
  }
}

@media only screen and (max-width: 1300px) {
  .site-header {
    padding: 0 70px;
  }
}

@media only screen and (max-width: 1200px) {
  .site-header {
    padding: 0 40px;
  }

  .menu-section li:not(:last-child) {
    /* margin-right: 18px; */
    margin-right: 15px;
  }

  .right-section {
    margin: 0 0 6px 5px;
    margin-left: 0px;
  }
}

@media only screen and (max-width: 1100px) {
  .menu-section {
    margin-left: 20px;
  }
}

/* @media only screen and (min-width: 991px) { */
@media only screen and (min-width: 1025px) {

  /* menu click isssue  */
  /* header .menu-section a.dropdown-toggle:not(.show-only-lg) { */
  header .menu-section a.dropdown-toggle.show-only-lg {
    display: none;
  }

  /* menu click isssue  */

  .menu-section .dropdown-menu a {
    color: #fff !important;
  }

  .menu-section a:not(.dropdown-item)::after {
    top: calc(100% + 5px);
  }

  .menu-section a.dropdown-item::after {
    height: 1px;
  }

  .menu-section a.dropdown-item.is-active,
  .menu-section a.dropdown-item:hover {
    color: #4dc2fb !important;
  }

  .menu-section a.dropdown-item:hover::after {
    background-color: #4dc2fb;
  }

  .menu-section .dropdown-menu {
    /* left: 50%;
    transform: translateX(-50%); */
    /* inset: unset !important; */
    left: 50% !important;
    transform: translateX(-50%) !important;

    padding: 45px 20px 10px;
  }

  .menu-section .dropdown-menu:after {
    height: calc(100% - 29px);
  }


  .back-li,
  .parent-link {
    display: none !important;
  }

  .toggler {
    display: none;
  }

  .menu-search-section .menu-section a.nav-link {
    padding: 0;
  }

  .menu-section ul {
    position: relative;
    top: -4px;
  }

  .menu-section .dropdown-menu {
    top: calc(100% + 25px) !important;
    pointer-events: none;
  }

  .dropdown-focused .dropdown-menu,
  .menu-section li.dropdown:hover .dropdown-menu {
    /* top: 100%; */
    top: 100% !important;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
  }

  .menu-section .dropdown-menu a:hover {
    background: transparent;
  }

  /* .menu-section ul>li:first-child { */
  .menu-section .menu--main>ul>li:first-child {
    display: none;
  }

}

/* @media only screen and (max-width: 991px) { */
@media only screen and (max-width: 1024px) {

  /* menu click isssue  */
  /* header .menu-section a.dropdown-toggle.show-only-lg { */
  header .menu-section a.dropdown-toggle:not(.show-only-lg) {
    display: none;
  }

  /* menu click isssue  */

  .menu-section a.dropdown-item.is-active {
    color: var(--pale-1) !important;
  }

  .menu-section ul>li:first-child a {
    text-transform: uppercase;
  }

  .path-frontpage .menu-section ul>li:first-child a {
    color: var(--pale-1);
    font-weight: 700;
  }

  body {
    padding-top: 100px;
  }

  .logo-section img {
    width: 80px;
    height: 80px;
  }

  .search-area {
    margin-top: 20px;
  }

  /****************************** temp code for disable search  ******************************/
  /* .search-area::after {
    content: "";
    position: absolute;
    background: transparent;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 9;
  }
 */

  /****************************** temp code for disable search  ******************************/

  .menu-search-section {
    flex-direction: column-reverse;
    background: var(--primary);
    position: fixed;
    right: 0;
    align-items: unset;
    width: 300px;
    /* min-height: 600px; */


    padding-bottom: 25px;

    justify-content: flex-end;
    top: 100px;
    right: -100%;
    transition: right .25s;
  }

  header .menu--main>ul {
    min-height: 390px;
  }

  .show-menu {
    right: 0;
  }

  header .social-media {
    display: none;
  }

  .site-header {
    height: 100px;
    padding: 0 20px;
    border-top: none;
  }

  .menu-section ul {
    display: block;
    position: relative;
  }

  .menu-section {
    margin: 20px 0 0;
  }

  .right-section {
    margin: 0;
    padding: 0 20px;
  }

  .menu-section li:not(:last-child) {
    margin: 0;
  }

  .menu-search-section .menu-section a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    position: relative;
  }

  .menu-section a:after {
    height: 1px;
    width: calc(100% - 40px);
  }

  /* .menu-section a:active {
    background: var(--secondary);
  }
 */

  .search-area input {
    width: 100%;
    border-radius: 5px;
  }

  .toggler {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .toggler span {
    height: 2px;
    /* width: 28px; */
    width: 25px;
    display: block;
    background: var(--secondary);
    transition: all .25s;
  }

  .toggler span:not(:last-child) {
    margin-bottom: 7px;
  }

  .toggle-open .line-2 {
    opacity: 0;
  }

  .toggle-open .line-1 {
    /* transform: rotate(45deg) translate(3px, 9px); */
    transform: rotate(45deg) translate(5px, 8px);
  }

  .toggle-open .line-3 {
    /* transform: rotate(-45deg) translate(0px, -8px); */
    transform: rotate(-45deg) translate(5px, -8px);
  }

  .search-area button {
    background: url(../img/search_mob.png) no-repeat center center;
    width: 18px;
    height: 18px;
  }

  .right-section .search-area .form-search {
    width: 168px;
    opacity: 1;
  }

  #block-donate {
    order: 1;
    position: relative;
    top: 2px;
    margin-left: 15px;
  }

  .path-frontpage:not(.header-animated) .toggler span {
    background: var(--white);
  }

  .menu-section .dropdown-menu {
    position: absolute;
    left: auto;
    right: -150%;
    top: 0;
    /* height: calc(100vh - 100px); */
    min-width: auto;
    width: calc(100% - 20px);
    padding: 20px 10px;
    background: var(--white);
    display: block;
    transition: right .25s;
    z-index: 1;
    right: -100% !important;
    left: auto !important;
    opacity: 1;
    visibility: visible;
    height: calc(100% + 25px);
  }

  .menu-section .dropdown-menu:after {
    display: none;
  }

  .menu-section .dropdown-menu.show {
    top: 0 !important;
    transform: none !important;
    right: 0px !important;
    z-index: 12;
  }

  .menu-section .back-li a:after {
    display: none;
  }

  .back-li {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
  }

  .menu-section .back-li .back-btn {
    padding: 0;
    background: url(../img/back-arr.png) no-repeat left center;
    width: 80px;
    text-align: right;
  }

  .menu-section li.dropdown {
    position: static;
  }

  .menu-section a:hover::after {
    width: calc(100% - 40px);
  }

  .menu-section .dropdown-menu .parent-link a {
    font-weight: 600;
  }

  .menu-section li.dropdown>a:before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: url(../img/menu-drop.png) no-repeat center center;
    width: 16px;
    height: 16px;
    background-size: contain;
  }

  header #block-donate a {
    padding: 8px 10px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 12px;
    padding: 7px 5px;
  }

  /*  */
  header #block-donate a,
  .path-frontpage:not(.header-animated) header #block-donate a {
    color: var(--pale-1);
    background: var(--white);
    border: transparent;
  }
}

@media only screen and (max-width: 767px) {
  body {
    /* padding-top: 50px; */
    padding-top: 70px;
  }

  .logo-section img {
    /* width: 40px;
    height: 40px; */
    width: 100px;
    height: 100px;
    border: 5px solid white;
    border-radius: 50%;
    position: relative;
    top: 15px;
    background-color: #fff;
    transition: all 0.5s linear 0s;
  }

  .site-header {
    /* height: 50px; */
    height: 70px;
    transition: height 0.5s linear 0s;
  }

  .menu-search-section {
    /* top: 50px; */
    top: 70px;
  }

  .header-animated .site-header {
    height: 44px;
  }

  .header-animated .logo-section img {
    width: 70px;
    height: 70px;
  }

  .header-animated .menu-search-section {
    top: 44px;
  }

  .logo-section svg {
    width: 170px;
    display: inline-block;
    transition: width .8s ease;
  }

  .header-animated .logo-section svg {
    width: 115px;
  }
}
