@media (max-width: 575.98px) {}

@media (max-width: 768px) {

  /************ start home page **********************/
  .navbar-brand {
    margin-right: 5px;
  }

  header .navbar-brand img {
    max-width: 100px;
    height: auto;
  }

  .tailor-made .btn-effect {
    font-size: 14px;
    padding: 7px;
  }

  .lang-toggle {
    padding: 5px;
    font-size: 14px;
  }
  .login-nav {
    font-size: 12px;
  }
  .login-nav span {
    display: none;
  }
  .padding-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .section-title span:after,
  .section-title span:before {
    display: none;
  }

  .section-title span {
    display: block;
    font-size: 12px;
    margin: 5px auto 20px;
    width: 100%;
    text-align: center;
  }

  .scroll-top.active {
    bottom: 80px;
    right: 10px;
  }

  /* start navbar*/
  .navbar-icons {
    justify-content: center;
    width: 100%;
    gap: 10%;
  }

  .lang-toggle span {
    display: none;
  }

  .navbar-icons span {
    display: none;
  }

  .navbar-main {
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .mega-search{
  flex: 0 0 67%;
  }
  .website-logo{
    flex: 0 0 20%;
  }
  .right-navbar-menu {
    flex: 0 0 100%;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    border: none;
  }

  .navbar-toggler {
    border: none;
    background-color: transparent;
  }
  /* why choose us*/

  .tour-swiper .swiper-wrapper {
    flex-wrap: nowrap;
  }

  .tour-swiper .swiper-wrapper .swiper-slide {
    width: 100%;
  }
  .tour-swiper .swiper-wrapper  .swiper-slide-active {
    width: 80%;
  }

  /************* End Home page ***********************/

  /*********** start contact page *******************/
  .contact-info h4 {
    text-align: center;
  }

  .contact-boxes {
    flex-direction: column;
  }

  .contact-boxes>* {
    margin-bottom: 1rem;
  }

  /*********** end contact page *********************/

  /* start tour Details Page */
  .tour-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    position: relative;
    max-height: auto;
  }

  .tour-gallery .tour-img:nth-child(1) {
    grid-area: 1 / 1 / 2 / 3;
  }

  .tour-gallery .tour-img:nth-child(2) {
    grid-area: 2 / 1 / 3 / 2;
  }

  .tour-gallery .tour-img:nth-child(3) {
    grid-area: 2 / 2 / 3 / 3;
  }

  .tour-gallery .tour-img:nth-child(n+4) {
    display: none;
  }

  .include-content {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .booking-section {
    position: static;
    min-width: 100%;
  }

  .itinerary-section {
    margin: 2.5rem 0;
    padding: 0;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: none;
    border: none;
  }

  .timeline-marker {
    margin-right: 5px;
  }

  .section-content {
    display: block !important;
  }

  .reviews-list {
    grid-template-columns: repeat(1, 1fr);
  }

  /* End tour Details Page */
  /* Start profile page */
  .profile-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .profile-sidebar .nav-link.active::before {
    transform: rotate(90deg);
    top: 100%;
    left: 50%;
    margin: -5px 0 0 0;
  }

  .sidebar-content {
    padding: 1rem 0 0 0;
  }

  .sidebar-content .profile-head {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .profile-sidebar .nav-link {
    text-align: center;
  }

  .profile-sidebar .nav-link i {
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }

  .probile-tabs {
    display: flex;
    align-items: center;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
  }

  /* End Profile Page */

  .chat-main,
  .left-sidebar,
  .right-panel,
  .messenger-container {
    height: 100%;
  }

}

@media screen and (min-width: 992px) and (max-width: 1400px) {
  header .navbar .container {
    max-width: 1400px !important;
    margin: auto;
    padding: 0 72px !important;
  }

  .navbar-nav>li.nav-item {
    padding: 10px !important;
  }

  .lang-toggle {
    padding: 5px;
  }

}

@media (max-width: 768px) {
  .why-choose-us .row.why-choose-us-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    animation: autoScroll 30s linear infinite;
  }

  .why-choose-us .row.why-choose-us-row:hover {
    animation-play-state: paused;
  }

  .choose-us-item {
    flex: 0 0 80%;
  }

  .choose-us-head {
    flex-direction: column;
    text-align: center;
  }

  .choose-us-icon {
    flex: none;
  }

  /* الحركة */
  @keyframes autoScroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-400%);
    }
  }
}

@supports (-webkit-touch-callout: none) {
  @media only screen 
    and (max-device-width: 430px)
    and (-webkit-min-device-pixel-ratio: 2)
    and (orientation: portrait) {
    .choose-us-item {
      flex: 0 0 100%;
    }
  }
}
