.home {
  background:
    linear-gradient(
      40deg,
      rgba(var(--overlay), 0.95) 0%,
      rgba(var(--overlay), 0.6) 50%,
      rgba(var(--overlay), 0) 100%
    ),
    url("../images/index/bg-index.jpeg");
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
  height: 70vh;
}

.form-control::placeholder {
  color: var(--text);
}

.card:hover {
  transform: translateY(-4px);
}

/* Popular Countries */
.popular-countries {
  width: 100%;
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.section-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.7rem;
}

.section-header a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Slider Wrapper */
.slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 25px;
}

/* Countries Slider */
.countries-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  padding: 0.5rem 0 1rem;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.countries-slider::-webkit-scrollbar {
  display: none;
}

/* Country Card */
.country-card {
  flex: 0 0 calc((100% - 4rem) / 5);
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
}

.country-card img.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.country-card .card-body {
  white-space: nowrap;
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--primary);

  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -5px;
}

.next-btn {
  right: -5px;
}

/* Tablet */
@media (max-width: 991.98px) {
  .country-card {
    flex: 0 0 calc((100% - 2rem) / 3);
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .slider-wrapper {
    padding: 0 15px;
  }

  .country-card {
    flex: 0 0 75%;
  }

  .country-card img.card-img-top {
    height: 200px;
  }

  .slider-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .prev-btn {
    left: -5px;
  }

  .next-btn {
    right: -5px;
  }

  .section-header h3 {
    font-size: 1.3rem;
  }
}
