/* Auto Swiper Start */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 20px auto;
}

.card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  text-align: center;
  /* height: 250px; */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: center;
  padding-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover img {
  transform: scale(1);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card:hover .card-overlay {
  opacity: 1;
}
/* Auto Swiper End */

.container-fluid {
  position: relative;
}

.swiper h1 {
  margin: 15px 0px;
}

.Popular-swiper .swiper-button-next {
  width: 37px;
  height: 60px;
  background: rgba(191, 190, 190, 0.9);
  color: #222222;
  padding: 0;
  text-align: center;
  border-radius: 5px 0 0 5px;
  position: absolute;
  top: 10px;
  z-index: 10;

  &:after {
    font-size: 1rem;
    font-weight: 700;
  }
}

.Popular-swiper .swiper-button-prev {
  width: 37px;
  height: 60px;
  background: rgba(191, 190, 190, 0.9);
  color: #222222;
  padding: 10px;
  text-align: center;
  border-radius: 0 5px 5px 0;
  position: absolute;
  top: 10px;
  z-index: 10;

  &:after {
    font-size: 1rem;
    font-weight: 700;
  }
}

.Popular-swiper .swiper-button-prev,
.Popular-swiper .swiper-button-next {
  position: absolute;
  top: 70%;
  z-index: 10;
  transform: translateY(-50%);
}

.Popular-swiper .swiper-button-prev {
  left: 8px;
}

.Popular-swiper .swiper-button-next {
  right: 8px;
}

.Popular-swiper .swiper-button-prev:hover,
.Popular-swiper .swiper-button-next:hover {
  background: rgba(218, 217, 217, 0.9);
}

.image-card {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  /* transition: transform 0.3s ease; */
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Transparent gradient at the bottom */
.image-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Bottom-left view icon */
.top-pack-nmae {
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    padding: 10px 10px;
  }

.top-pack-nmae:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    text-decoration: none;
}

.top-pack-nmae i {
    margin-right: 10px;
    font-size: 16px;
    color: #27ace4;
}

/* Bottom-right location icon */
.bottom-right {
  position: absolute;
  bottom: 10px;
  right: 16px;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  z-index: 1;
}

.bottom-left i,
.bottom-right i {
  margin-right: 5px;
}

/* Hover effect */

@media (max-width: 1200px) {
  /* For medium screens */
  .slide-container {
    width: 220px;
    height: 250px;
  }

  .custom-card {
    margin: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  /* For tablets */
  .slide-container {
    width: 180px;
    height: 220px;
  }

  .centered {
    top: 70%;
    font-size: 14px;
  }

  .custom-card {
    margin: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  /* For mobile screens */
  .slide-container {
    width: 150px;
    height: 200px;
  }

  .centered {
    top: 65%;
    font-size: 12px;
  }

  .bottom-left,
  .bottom-right {
    font-size: 14px;
  }

  .custom-card {
    margin: 1rem;
    padding: 1rem;
  }
}
/* end swiper */

.swiper-containerss {
  width: 100%;
  margin: auto;
  /* padding: 20px; */
  position: relative;
  overflow: hidden;
  background-color: #f8f8fc;
}

.swiper-button-nexts {
  width: 45px;
  height: 37px;
  background: #27ace4;
  color: #f8f4f4;
  padding: 0;
  text-align: center;
  border-radius: 0px 30px 30px 0px;
  position: absolute;
  top: 0px;
  z-index: 10;

  &:after {
    font-size: 1rem;
    font-weight: 700;
  }
}

.swiper-button-prevs {
  width: 45px;
  height: 37px;
  background: #27ace4;
  color: #f8f4f4;
  padding: 0;
  text-align: center;
  border-radius: 30px 0px 0px 30px;
  position: absolute;
  top: 0px;
  z-index: 10;

  &:after {
    font-size: 1rem;
    font-weight: 700;
  }
}

.swiper-button-prevs {
  /* margin-top: 40px; */
  left: auto;
  right: 50px;
  z-index: 10;
}

.swiper-button-nexts {
  /* margin-top: 40px; */
  right: 0px;
  z-index: 10;
}

.swipericons {
  font-size: 20px;
  padding-top: 7px;
}

.swiper-button-prevs:hover,
.swiper-button-nexts:hover {
  background: #189cd4;
  color: #f8f4f4;
}

/* Card styling */
.custom-cardss {
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s ease;
  /* Smooth transition for hover effect */
}

.custom-cardss:hover {
  transform: scale(1.01);
  /* Slight zoom effect on hover */
}

/* Image container for hover effect */
.card-img-container {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.card-img-container img:first-child {
  display: block;
}

/* Card body styling */
.card-bodyss {
  padding: 15px;
  background-color: #f9f9f9;
  text-align: center;
}

.card-title {
  margin: 10px 0;
  font-weight: bold;
  font-size: 18px;
}

.card-text {
  font-size: 14px;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #189cd4;
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
}

/* Responsive Styling */
@media (max-width: 1300px) {
  .swiper-containerss {
    padding: 20px;
  }

  .swiper-button-prevs {
    margin-top: 20px;
    left: auto;
    right: 67px;
    z-index: 10;
  }

  .swiper-button-nexts {
    margin-top: 20px;
    right: 20px;
    z-index: 10;
  }
}

@media (max-width: 1024px) {
  .swiper-containerss {
    padding: 20px;
  }

  .swiper-button-prevs {
    margin-top: 40px;
    left: auto;
    right: 67px;
    z-index: 10;
  }

  .swiper-button-nexts {
    margin-top: 40px;
    right: 20px;
    z-index: 10;
  }

  .swiper-slide {
    width: 100% !important;
    /* Ensures full width of each slide */
  }

  .card-img-container {
    height: 220px;
    /* Adjust height for smaller screens */
  }

  .card-title {
    font-size: 16px;
  }

  .card-text {
    font-size: 12px;
  }

  .btn-primary {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .swiper-containerss {
    padding: 20px;
  }

  .swiper-button-prevs {
    margin-top: 40px;
    left: auto;
    right: 67px;
    z-index: 10;
  }

  .swiper-button-nexts {
    margin-top: 40px;
    right: 20px;
    z-index: 10;
  }

  .swiper-slide {
    width: 100% !important;
  }

  .card-img-container {
    height: 200px;
    /* Further adjust for mobile screens */
  }

  .card-title {
    font-size: 14px;
  }

  .card-text {
    font-size: 12px;
  }

  .btn-primary {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .swiper-containerss {
    padding: 45px 0px 0px 0px;
  }

  .swiper-button-prevs {
    margin-top: 40px;
    left: auto;
    right: 67px;
    z-index: 10;
  }

  .swiper-button-nexts {
    margin-top: 40px;
    right: 20px;
    z-index: 10;
  }

  .card-img-container {
    height: 200px;
    /* Adjust height for very small screens */
  }

  .card-title {
    font-size: 14px;
  }

  .card-text {
    font-size: 11px;
  }

  .btn-primary {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* end last index Swiper  */
