* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}

header {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  top: 0;
  z-index: 100;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e92330;
}

.logo span {
  color: #333;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: #000;
}

.nav-links a {
  text-decoration: none;

  font-weight: 500;
}

.hero {
  padding: 30px 0;
  text-align: center;
  color: black;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.search_container {
  margin: 0 auto;
  background: #007bff;
  border-radius: 0 0 8px 8px;
  padding: 10px;
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 70%;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.location-input {
  width: 30%;
  min-width: 150px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
  background-repeat: no-repeat;
  background-position: 10px center;
  padding-left: 35px;
}

.search-button {
  padding: 12px;
  background-color: #e92330;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.ad-slider-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}
.custom-ad-slider {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.custom-ad-slide img {
  width: 100%;
  height: 40vh;
  border-radius: 10px;
}
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  color: white !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Position Arrows Correctly */
.swiper-button-next {
  right: 15px;
}

.swiper-button-prev {
  left: 15px;
}

/* Custom Arrow Shapes */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border-top: 3px solid white;
  border-right: 3px solid white;
}

.swiper-button-next::after {
  display: none;
}

.swiper-button-prev::after {
  display: none;
}

/*  categories section start */
.categories {
  margin: 60px 0;
}

.section-title {
  margin-bottom: 20px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.category-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #e92330;
}
/*  categories section end */

/* top cities start */
.city-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}
.city-card:hover {
  transform: scale(1.05);
}
.city-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}
.city-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 10px;
  /* font-size: 18px; */
  font-weight: bold;
  border-radius: 0 0 10px 10px;
}

.city-name a {
  text-decoration: none;
}
/* top cities end */

/* popular search start */
.popular-search-card {
  /* display: flex; */
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  font-weight: 600;
}
.popular-search-card:hover {
  background: #007bff;
  color: white;
  transform: scale(1.05);
}
.popular-search-card i {
  font-size: 32px;
  margin-bottom: 10px;
}

/* popular search end */

/* product start */
.products {
  margin: 60px 0;
}
.product_area {
  border: 1px solid #b8b4b4;
  border-radius: 5px;
  text-align: center;
  padding: 0 30px;
}
.product_area h4 {
  font-weight: bold;
  text-align: left;
  padding: 10px 5px;
}
.featured_card{
  overflow: hidden;
}
.featured_card img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}
.featured_card:hover img{
  transform: scale(1.05);
}
/* product end */

/* Services near you start */
.featured-services {
  margin: 60px 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
.service-card:hover{
  transform: scale(1.05);
}
.service-img {
  /* height: 160px; */
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}
.service-img img {
  width: 100%;
  height: 250px;
}
.service-info {
  padding: 15px;
}

.service-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.service-rating {
  color: #f9a825;
  margin-bottom: 10px;
}

.service-address {
  font-size: 14px;
  color: #666;
}
/* services near you end */

/* articles start */
.mySwiper {
  width: 100%;
  padding: 40px 0;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-content {
  padding: 15px;
}
.article-content h5 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}
.article-content p {
  font-size: 14px;
  color: #555;
  max-height: 45px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  z-index: 10;
}
.custom-arrow:hover {
  background: #007bff;
}
.swiper-button-prev-custom {
  left: 10px;
}
.swiper-button-next-custom {
  right: 10px;
}
/* articles end */
footer {
  background: #333;
  color: white;
  padding: 60px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #999;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
  }
  .search-bar{
    flex-wrap: nowrap;
    width: 100%;
  }
  .login_button{
    width: 40%;
  }
  .location-input {
    width: 100%;
  }
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .product_area {
    margin-bottom: 30px;
  }
  .city-card {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: 0.3s ease-in-out;
  }

  .city-card:hover {
    transform: scale(1.05);
  }

  /* Left Image Section */
  .city-card img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  /* Right Content Section */
  .city-name {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: none;
    text-align: center;
  }

  .city-name h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
  }

  .city-name a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    /* display: flex; */
    align-items: center;
    margin-top: 5px;
    text-align: center;
  }

  .city-name a i {
    margin-left: 5px;
    transition: 0.3s;
  }

  .city-name a:hover i {
    transform: translateX(5px);
  }
}
