:where([class^="ri-"])::before {
  content: "\f3c2";
}

body {
  font-family: "Inter", sans-serif;
  color: #374151;
}
.slider-item {
  transition: opacity 1s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

.hero-section {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.95) 40%,
      rgba(255, 255, 255, 0.8) 60%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../img/other/slidera.JPG");
  background-size: cover;
  background-position: center right;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: auto;
  z-index: 150000;
  padding: 5px 30px;
}

.nav-item:hover .mega-menu {
  display: block;
}

.search-input:focus {
  outline: none;
}
li:hover .mega-menu {
  display: block;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #1e3a8a;
  border-radius: 4px;
  transition: all 0.2s;
}

.custom-checkbox.checked {
  background-color: #1e3a8a;
}

.custom-checkbox.checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.custom-switch-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  border-radius: 34px;
  transition: 0.3s;
}

.custom-switch-thumb {
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.custom-switch.active .custom-switch-track {
  background-color: #1e3a8a;
}

.custom-switch.active .custom-switch-thumb {
  transform: translateX(20px);
}
