.spacer {
  display: block;
  position: relative;
  width: 20px;
  height: 40px;
  background: var(--bs-white);
  z-index: 0;
  overflow: hidden;
}
.spacer::after {
  content: "";
  display: block;
  position: absolute;
  top: -5px;
  left: -10%;
  width: 120%;
  height: 50%;
  background: var(--bs-primary);
  border-radius: 0 0 50px 50px;
}
.spacer::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -5px;
  left: -10%;
  width: 120%;
  height: 50%;
  background: var(--bs-primary);
  border-radius: 50px 50px 0 0;
}
.spacer.light {
  background: var(--bs-dark);
}
.spacer.light::after {
  background: var(--bs-body-bg);
}
.spacer.light::before {
  background: var(--bs-body-bg);
}

.search-bar:focus {
  outline: none;
}

.btn.theme-btn {
  position: relative;
  transition: background-color 0.6s ease;
  overflow: hidden;
  color: #fff;
  background: var(--bs-success);
}
.btn.theme-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--bs-secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}
.btn.theme-btn:hover::before {
  width: 300px;
  height: 300px; /* Maintains a 16:9 aspect ratio based on the parent's width */
}
.btn.theme-btn span {
  position: relative;
}

.themed-scroll::-webkit-scrollbar {
  width: 8px;
}
.themed-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 20px !important;
  transition: 0.5s background;
}
.themed-scroll:hover::-webkit-scrollbar-thumb {
  background: var(--bs-success);
}
.themed-scroll::-webkit-scrollbar-thumb:hover {
  background-color: var(--bs-success);
}
.themed-scroll::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 20px !important;
}
.themed-scroll::-webkit-scrollbar-button {
  display: none;
}

.hero-jobs {
  display: flex;
  position: relative;
  padding-top: 20%;
  max-height: 550px;
  overflow: visible;
  overflow-y: scroll;
  flex-direction: column;
  padding-right: 20px;
  padding-bottom: 20%;
}

.fade-overlay-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: rgb(255, 255, 255);
  background: -moz-linear-gradient(180deg, transparent 0%, var(--bs-primary) 90%);
  background: -webkit-linear-gradient(180deg, transparent 0%, var(--bs-primary) 90%);
  background: linear-gradient(180deg, transparent 0%, var(--bs-primary) 90%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
  pointer-events: none;
  z-index: 1;
}
.fade-overlay-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: rgb(255, 255, 255);
  background: -moz-linear-gradient(0deg, transparent 0%, var(--bs-primary) 90%);
  background: -webkit-linear-gradient(0deg, transparent 0%, var(--bs-primary) 90%);
  background: linear-gradient(0deg, transparent 0%, var(--bs-primary) 90%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
  pointer-events: none;
  z-index: 1;
}

.corner-button {
  display: block;
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: var(--bs-body-bg);
  padding: 10px 0px 0px 10px;
  border-radius: 20px 0 0 0;
  flex-shrink: 0;
}
.corner-button a {
  display: block;
  position: relative;
  padding: 5px 20px;
  background: var(--bs-success);
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  transition: background-color 0.6s ease;
}
.corner-button a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--bs-secondary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}
.corner-button a:hover::before {
  width: 200px;
  height: 200px;
}
.corner-button a span {
  position: relative;
}
.corner-button .corner-left, .corner-button .corner-top {
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
}
.corner-button .corner-left path, .corner-button .corner-top path {
  fill: var(--bs-body-bg);
}
.corner-button .corner-left.corner-left, .corner-button .corner-top.corner-left {
  bottom: 0px;
  left: -20px;
}
.corner-button .corner-left.corner-top, .corner-button .corner-top.corner-top {
  top: -20px;
  right: 0px;
}
.corner-button.dark {
  background: var(--bs-primary);
}
.corner-button.dark .corner-left path, .corner-button.dark .corner-top path {
  fill: var(--bs-primary);
}

.closed {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.bordered-rounded {
  border-radius: 60px 0 0 60px;
}

.image-bordered-rounded {
  border-radius: 0 60px 60px 0;
}

.icon-fill path, .icon-fill line, .icon-fill polygon, .icon-fill rect, .icon-fill circle, .icon-fill ellipse, .icon-fill polyline {
  stroke: var(--bs-success) !important;
}

@media (max-width: 767px) {
  
  .bordered-rounded {
    border-radius: 60px 60px 0 0;
  }
  .image-bordered-rounded {
    border-radius: 0 0 60px 60px;
  }
}