/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-width: 320px) and (max-width: 991px) {
  :root {
    --sectionpadding: 30px;
  }
  .section-padding-half {
    padding: calc(var(--sectionpadding) / 2) 0;
  }
  .section-padding {
    padding: var(--sectionpadding) 0;
  }
  .section-padding-2x {
    padding: calc(var(--sectionpadding) * 2) 0;
  }
  .section-padding-3x {
    padding: calc(var(--sectionpadding) * 3) 0;
  }
  .section-padding-2 {
    padding: calc(var(--sectionpadding) + 20px) 0;
  }
  .section-padding-4 {
    padding: calc(var(--sectionpadding) + 40px) 0;
  }
  .section-padding-n2 {
    padding: calc(var(--sectionpadding) - 20px) 0;
  }
  .section-padding-n4 {
    padding: calc(var(--sectionpadding) - 40px) 0;
  }
  .section-padding-bottom {
    padding-bottom: var(--sectionpadding);
  }
  .section-padding-top {
    padding-top: var(--sectionpadding);
  }
  .section-padding-bottom-half {
    padding-bottom: calc(var(--sectionpadding) / 2);
  }
  .section-padding-bottom-2 {
    padding-bottom: var(--sectionpadding);
  }
  .section-padding-bottom-4 {
    padding-bottom: calc(var(--sectionpadding) + 40px);
  }
  .section-padding-bottom-n2 {
    padding-bottom: calc(var(--sectionpadding) - 20px);
  }
  .section-padding-bottom-n4 {
    padding-bottom: calc(var(--sectionpadding) - 40px);
  }
  .top-header {
    background: #e1f5fe !important;
    padding: 8px 0;
  }
  .top-header .logo-wrapper {
    padding-left: 0 !important;
    padding-top: 0 !important;
  }
  .logo-wrapper img {
    max-width: 60%;
  }
  .trip-details-item-content p {
    font-size: 14px;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  .mobile-menu-list li {
    padding-bottom: 0 !important;
    margin-bottom: 1rem !important;
  }
  .tanhero {
    height: 100%;
  }
  .tanhero h1 {
    font-size: 2rem;
  }
  .tanhero h2 {
    font-size: 5rem;
  }
  .tanhero img {
    height: 100%;
  }
  .section-especialize {
    padding: 250px 0 0px 0 !important;
  }
  .section-especialize h2 {
    font-size: 40px;
  }
  .section-especialize p {
    font-size: 25px;
  }
  .section-about {
    display: block;
    height: auto;
  }
  .content-image {
    border-radius: 24px;
  }
  .wysiwyg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section-about .container > .row.d-flex,
  .content-wrapper .container > .row.d-flex {
    gap: 50px;
  }
  .section-about-bg {
    display: none;
  }
  .content-wrapper {
    height: 100%;
  }
  .content-wrapper .container > .row.d-flex > .pe-5 {
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
  }
  .region-image img {
    width: 100%;
  }

  .popular-treks-list > div {
    padding: 0;
  }
  .popular-treks-swiper .swiper-slide {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .popular-treks-swiper .swiper-button-next,
  .popular-treks-swiper .swiper-button-prev {
    color: var(--primarycolor);
  }
  .popular-treks-swiper .swiper-button-next:after,
  .popular-treks-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
  }
  .popular-treks-swiper .swiper-button-next {
    right: -5px;
  }
  .popular-treks-swiper .swiper-button-prev {
    left: -5px;
  }
  .section-why-choose-us .vh-100 {
    display: none;
  }
  .why-choose-us-content {
    width: 100%;
  }
  .why-choose-us-content ul li {
    font-size: 20px;
    line-height: 30px;
  }
  .section-includes-excludes {
    background: linear-gradient(
      180deg,
      rgba(232, 245, 233, 1) 50%,
      rgba(255, 243, 224, 1) 50%
    ) !important;
  }
  .section-includes-excludes .slide-in-left {
    padding-right: 0 !important;
    background: rgba(232, 245, 233, 1);
    margin-bottom: 3rem;
  }
  .section-includes-excludes .slide-in-right {
    padding-left: 0.75rem !important;
  }
  .faq-sidebar {
    margin-bottom: 3rem;
  }
  .section-line-marquee {
    width: 100% !important;
    overflow: hidden !important;
    padding: 15px 0;
    z-index: 9;
    margin-left: 0 !important;
    left: 0 !important;
  }
  .section-line-marquee > .container-fluid {
    padding: 0;
  }
  .loop-line-wrapper {
    font-size: 24px;
    padding: 30px 0;
  }
  .mqrquee-blue {
    background: #977ebd;
    transform: rotate(-3deg);
    margin-left: 0;
    margin-top: -2.75vw;
    width: 100%;
  }
  section.breadcrumbs {
    padding-top: calc(var(--sectionpadding) * 4);
  }
  .section-breadcrumbs::before {
    height: 200px;
  }
  .breadcrumbs h1 {
    font-size: 40px;
  }
  section.breadcrumbs .trip-deatails {
    padding: 10px;
  }
  .breadcrumbs-cat .breadcrumbs-bgimage img {
    height: 50vh;
    object-fit: cover;
    width: 100%;
  }
  .cat-breadcrumb-space {
    display: none;
  }
  .trek-list-wrapper .cat-trek-item {
    width: 100% !important;
  }
  .cat-trek-item-block {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 1rem;
  }
  .trip-deatails ul {
    flex-wrap: wrap;
  }
  .trip-deatails ul li {
    width: 50%;
    padding: 0;
  }
  .trip-details-item {
    min-height: 30px;
    background: none;
    flex-direction: row;
    padding: 0;
  }
  .trip-details-item-icon {
    margin-top: 0;
    padding: 0;
    border-radius: 4px;
  }
  .trip-details-item-icon img {
    width: 20px;
  }
  .trip-details-item-content span {
    font-size: 16px;
    font-weight: 400;
  }
  .trip-map {
    margin-top: 50px;
  }
  .tan-counter-animation {
    flex-direction: column;
  }
  .tan-counter-animation .counter-item {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  .tan-counter-animation .counter-item:last-child {
    border-bottom: none !important;
  }
  .process-step-row .process-content {
    margin-bottom: 2rem;
  }
  footer {
    position: relative;
    background: none;
    margin-top: -80px;
  }
  footer h3 {
    font-size: 20px;
  }
  .footer-cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin-top: 50px;
    filter: blur(10px);
    transform: scale(1.1);
  }
  .hero-card .card-body {
    position: absolute;
    top: 100px;
    left: 0;
    right: 20px;
    padding-left: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
  }
  .btm-footer {
    position: relative;
    font-size: 15px;
    text-align: center;
    margin-top: 50px;
  }
  .footer-btm {
    height: auto;
    position: absolute;
    flex-direction: column;
    bottom: 0;
    left: 0;
    z-index: 999;
    opacity: 0.8;
  }
  .address-block {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    width: 100%;
    flex-wrap: wrap;
  }
  .footer-widget {
    font-size: 16px;
  }
  .powered {
    float: none;
  }
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-width: 321px) {
  /* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width: 320px) {
  /* Styles */
}
@media (min-width: 768px) {
}
/* iPads (portrait and landscape) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .section-farwestern,
  .section-manaslu,
  .section-langtang,
  .section-everest,
  .section-abc,
  .section-greathimalayan {
    display: flex;
    align-items: center;
  }
  .section-line-marquee {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    z-index: 9;
  }
  .section-line-marquee > .container-fluid {
    padding: 0;
  }
  .loop-line-wrapper {
    font-size: 24px;
    padding: 30px 0;
  }
  .mqrquee-blue {
    background: #977ebd;
    transform: rotate(-3deg);
    margin-left: 0;
    margin-top: -2.75vw;
    width: 100%;
  }
  footer {
    position: relative;
    background: none;
    margin-top: -45px;
  }
  footer h3 {
    font-size: 20px;
  }
  .footer-cta {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin-top: 50px;
    filter: blur(10px);
    transform: scale(1.1);
  }
  .hero-card .card-body {
    position: relative;
    top: 0;
    left: 0;
    right: 20px;
    padding: 30px;
    border-radius: 12px;
    width: 60%;
    display: flex;
    flex: initial;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    background: #75757578;
  }
  .hero-card .card-body .sub_title {
    color: var(--purewhite);
  }
  .btm-footer {
    position: relative;
    font-size: 15px;
    text-align: center;
    margin-top: 50px;
  }
  .footer-btm {
    height: auto;
    position: absolute;
    flex-direction: column;
    bottom: 0;
    left: 0;
    z-index: 999;
    opacity: 0.8;
    width: 100%;
  }
  .address-block {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    width: 100%;
    flex-wrap: wrap;
  }
  .footer-widget {
    font-size: 16px;
  }
  .powered {
    float: none;
  }
}

/* iPads (landscape) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
}

/* iPads (portrait) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  /* Styles */
}
/**********
iPad 3
**********/
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
  /* Styles */
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  /* Styles */
}
/* Desktops and laptops ----------- */
@media only screen and (min-width: 1224px) {
  /* Styles */
}

/* Large screens ----------- */
@media only screen and (min-width: 1824px) {
  /* Styles */
}

/* iPhone 4 ----------- */
@media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
  /* Styles */
}

@media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
  /* Styles */
}

/* iPhone 5 ----------- */
@media only screen and (min-width: 320px) and (max-device-height: 568px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

@media only screen and (min-width: 320px) and (max-device-height: 568px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

/* iPhone 6, 7, 8 ----------- */
@media only screen and (min-width: 375px) and (max-device-height: 667px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

@media only screen and (min-width: 375px) and (max-device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

/* iPhone 6+, 7+, 8+ ----------- */
@media only screen and (min-width: 414px) and (max-device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

@media only screen and (min-width: 414px) and (max-device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

/* iPhone X ----------- */
@media only screen and (min-width: 375px) and (max-device-height: 812px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

@media only screen and (min-width: 375px) and (max-device-height: 812px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

/* iPhone XS Max, XR ----------- */
@media only screen and (min-width: 414px) and (max-device-height: 896px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

@media only screen and (min-width: 414px) and (max-device-height: 896px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

/* Samsung Galaxy S3 ----------- */
@media only screen and (min-width: 320px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

@media only screen and (min-width: 320px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
  /* Styles */
}

/* Samsung Galaxy S4 ----------- */
@media only screen and (min-width: 320px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

@media only screen and (min-width: 320px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

/* Samsung Galaxy S5 ----------- */
@media only screen and (min-width: 360px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

@media only screen and (min-width: 360px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
  /* Styles */
}

@media only screen and (min-width: 1024px) {
  .popular-treks-list .swiper-wrapper {
    gap: 30px;
  }
  .popular-treks-list .swiper-slide {
    width: 33.33333333% !important;
  }
  .popular-treks-swiper .swiper-button-next,
  .popular-treks-swiper .swiper-button-prev {
    color: var(--primarycolor);
    display: flex; /* Ensure they are displayed */
  }
  .popular-treks-swiper .swiper-button-next:after,
  .popular-treks-swiper .swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
  }
}

@media only screen and (min-width: 320px) and (max-width: 991px) {
  /* Sticky Menu Nav Dropdown for Mobile */
  .sticky-menu-nav {
    background: transparent !important;
    top: 10px !important;
    z-index: 1000001 !important;
    pointer-events: none;
    padding: 0 !important;
  }

  .sticky-menu-nav .container-fluid {
    pointer-events: none;
    padding: 0;
  }

  .sticky-menu-nav .nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: var(--whitecolor);
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--grayborder);
    margin: 0 auto !important;
    max-width: 180px;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .sticky-menu-nav .nav-item {
    display: none; /* Hide all by default */
    width: 100%;
    margin: 0 !important;
  }

  .sticky-menu-nav .nav-item.active {
    display: block !important; /* Show active item */
    order: -1; /* Keep it at the top */
  }

  .sticky-menu-nav .nav-item.active .nav-link {
    background-color: var(--pureblack);
    color: var(--purewhite);
    border-radius: 0;
    position: relative;
    padding: 8px 35px 8px 15px; /* Adjusted padding */
    width: 100%;
    justify-content: flex-start;
    font-size: 13px; /* Slightly smaller for mobile pill */
  }

  .sticky-menu-nav .nav-item.active .nav-link img {
    filter: brightness(0) invert(1);
    width: 18px; /* Smaller icons */
  }

  /* Arrow icon for the active item */
  .sticky-menu-nav .nav-item.active .nav-link::after {
    content: "\f107"; /* FontAwesome angle-down */
    font-family: "FontAwesome";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 14px;
  }

  /* When dropdown is open */
  .sticky-menu-nav .nav.is-open {
    max-width: 220px; /* Expand slightly when open */
  }

  .sticky-menu-nav .nav.is-open .nav-item {
    display: block !important;
  }

  .sticky-menu-nav .nav.is-open .nav-item .nav-link {
    border-radius: 0;
    border-bottom: 1px solid var(--grayborder);
    width: 100%;
    justify-content: flex-start;
    padding: 10px 15px;
    font-size: 14px;
  }

  .sticky-menu-nav .nav.is-open .nav-item.active .nav-link::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .sticky-menu-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
}
