/* Desktop search suggestions */
.tc-navbar-style2 .nav-search-box .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    z-index: 1000; /* Higher z-index to stay above other elements */
    max-height: 300px; /* Fixed maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: none;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #ccc #fff; /* Thumb and track colors */
}

/* Mobile search suggestions */
.side_menu_style4 .side_search .search-suggestions-mobile {
    position: absolute;
    top: 100%;
    left: 15px;
    right: 20px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000; /* Higher z-index for mobile */
    max-height: 300px; /* Fixed maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    display: none;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #ccc #fff; /* Thumb and track colors */
}

/* Custom scrollbar for WebKit browsers (Chrome, Safari) */
.tc-navbar-style2 .nav-search-box .search-suggestions::-webkit-scrollbar,
.side_menu_style4 .side_search .search-suggestions-mobile::-webkit-scrollbar {
    width: 8px;
}

.tc-navbar-style2 .nav-search-box .search-suggestions::-webkit-scrollbar-track,
.side_menu_style4 .side_search .search-suggestions-mobile::-webkit-scrollbar-track {
    background: #fff;
}

.tc-navbar-style2 .nav-search-box .search-suggestions::-webkit-scrollbar-thumb,
.side_menu_style4 .side_search .search-suggestions-mobile::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tc-navbar-style2 .nav-search-box .search-suggestions::-webkit-scrollbar-thumb:hover,
.side_menu_style4 .side_search .search-suggestions-mobile::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Prevent page scrolling when hovering over suggestions */
.tc-navbar-style2 .nav-search-box .search-suggestions:hover,
.side_menu_style4 .side_search .search-suggestions-mobile:hover {
    overflow-y: auto; /* Ensure scrolling works on hover */
}

/* Shared suggestion item styles */
.tc-navbar-style2 .nav-search-box .suggestion-item,
.side_menu_style4 .side_search .suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #000;
    transition: background-color 0.2s ease;
}

.tc-navbar-style2 .nav-search-box .suggestion-item:hover,
.side_menu_style4 .side_search .suggestion-item:hover {
    background-color: #f5f5f5;
}

.tc-navbar-style2 .nav-search-box .suggestion-item img,
.side_menu_style4 .side_search .suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid #ccc;
}

.tc-navbar-style2 .nav-search-box .suggestion-item .d-flex,
.side_menu_style4 .side_search .suggestion-item .d-flex {
    flex-direction: column;
}

.tc-navbar-style2 .nav-search-box .suggestion-item span,
.side_menu_style4 .side_search .suggestion-item span {
    font-size: 14px;
    font-weight: 500; /* Match fw-semibold */
}

.tc-navbar-style2 .nav-search-box .suggestion-item small,
.side_menu_style4 .side_search .suggestion-item small {
    font-size: 12px;
    color: #666; /* Match text-muted */
}

/* Shared no-results styles */
.tc-navbar-style2 .nav-search-box .no-results,
.side_menu_style4 .side_search .no-results {
    padding: 10px 15px;
    color: #666;
    font-size: 14px;
    text-align: center;
}

/* Ensure form is positioned relatively for absolute positioning of suggestions */
.tc-navbar-style2 .nav-search-box .form-group,
.side_menu_style4 .side_search form {
    position: relative;
}














/* --------------- portfolio pg style1 --------------- */
.blog-pg-style1 {
  position: relative;
}
.blog-pg-style1 .tc-main-slider-style1 {
  padding: 150px 3vw 0;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider {
  position: relative;
  overflow: hidden;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .swiper-slide-active .slider-card .content {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .arrows {
  position: absolute;
  right: 10vw;
  bottom: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background-color: #000;
  padding: 15px 10px;
  border-radius: 30px;
  z-index: 20;
  min-width: 140px;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .arrows .swiper-button-prev,
.blog-pg-style1 .tc-main-slider-style1 .main-slider .arrows .swiper-button-next {
  position: static;
  margin: 0;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .arrows .swiper-button-prev::after,
.blog-pg-style1 .tc-main-slider-style1 .main-slider .arrows .swiper-button-next::after {
  font-size: 10px;
  color: #fff;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .swiper-pagination {
  position: absolute;
  color: #fff;
  left: auto;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  right: calc(10vw + 58px);
  bottom: 90px;
  z-index: 50;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .slider-card {
  position: relative;
  height: 800px;
  min-height: -webkit-max-content;
  min-height: -moz-max-content;
  min-height: max-content;
  border-radius: 30px;
  overflow: hidden;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .slider-card::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#000000af), color-stop(#0000005c), to(transparent));
  background-image: linear-gradient(to top, #000000af, #0000005c, transparent);
  z-index: 1;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .slider-card .bg {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
}
.blog-pg-style1 .tc-main-slider-style1 .main-slider .slider-card .content {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  color: #fff;
  z-index: 5;
  padding: 70px 0;
  -webkit-transform: translateY(100px);
          transform: translateY(100px);
  opacity: 0;
  -webkit-transition: all 0.6s ease;
  transition: all 0.6s ease;
}
.blog-pg-style1 .tc-latest-posts-style1 .content {
  position: relative;
  padding: 150px 0;
  border-bottom: 1px solid #ccc;
}
.blog-pg-style1 .tc-latest-posts-style1 .content .arrows {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}
.blog-pg-style1 .tc-latest-posts-style1 .content .arrows .swiper-button-prev,
.blog-pg-style1 .tc-latest-posts-style1 .content .arrows .swiper-button-next {
  position: static;
  margin: 0;
  -webkit-margin-start: 40px;
          margin-inline-start: 40px;
}
.blog-pg-style1 .tc-latest-posts-style1 .content .arrows .swiper-button-prev::after,
.blog-pg-style1 .tc-latest-posts-style1 .content .arrows .swiper-button-next::after {
  font-size: 18px;
  color: #000;
}
.blog-pg-style1 .tc-latest-posts-style1 .content .posts-slider {
  position: relative;
  overflow: hidden;
}
.blog-pg-style1 .tc-latest-posts-style1 .content .post-card:hover .img img {
  -webkit-transform: scale(1.5);
          transform: scale(1.5);
}
.blog-pg-style1 .tc-latest-posts-style1 .content .post-card .img img {
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: all 10s linear;
  transition: all 10s linear;
}
.blog-pg-style1 .tc-filter-posts-style1 {
  position: relative;
  padding: 150px 0;
}
.blog-pg-style1 .tc-filter-posts-style1 .filter .links a {
  font-size: 18px;
  line-height: 24px;
  color: #666;
  background-color: transparent;
  padding: 0;
  -webkit-margin-end: 50px;
          margin-inline-end: 50px;
  text-transform: uppercase;
}
.blog-pg-style1 .tc-filter-posts-style1 .filter .links a.active {
  color: var(--color-green1);
}
.blog-pg-style1 .tc-filter-posts-style1 .search-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-bottom: 1px solid #222;
}
.blog-pg-style1 .tc-filter-posts-style1 .search-group .form-control {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  padding: 10px 0;
  font-size: 14px;
}
.blog-pg-style1 .tc-filter-posts-style1 .search-group button {
  border: 0;
  background-color: transparent;
}

@media screen and (max-width: 991px) {
  .blog-pg-style1 .tc-main-slider-style1 {
    padding-top: 100px;
  }
  .blog-pg-style1 .fsz-45 {
    font-size: 25px;
  }
  .blog-pg-style1 .tc-main-slider-style1 .main-slider .slider-card {
    height: 400px;
  }
  .blog-pg-style1 .tc-main-slider-style1 .main-slider .arrows {
    bottom: 15px;
  }
  .blog-pg-style1 .tc-main-slider-style1 .main-slider .swiper-pagination {
    bottom: 25px;
  }
  .blog-pg-style1 .tc-latest-posts-style1 .content .arrows .swiper-button-prev,
.blog-pg-style1 .tc-latest-posts-style1 .content .arrows .swiper-button-next {
    -webkit-margin-start: 0;
            margin-inline-start: 0;
    -webkit-margin-end: 30px;
            margin-inline-end: 30px;
  }
  .blog-pg-style1 .tc-latest-posts-style1 .content {
    padding: 100px 0;
  }
  .blog-pg-style1 .tc-filter-posts-style1 {
    padding: 100px 0;
  }
  .blog-pg-style1 .tc-filter-posts-style1 .filter .links a {
    font-size: 12px;
    -webkit-margin-end: 25px;
            margin-inline-end: 25px;
    font-weight: bold;
  }
}