/* SLIDER */ 

#slider {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.slide-overlay {
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 4rem;
  left: 1.25rem;
  right: 1.25rem;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .slide-content {
    bottom: 5rem;
    left: 5rem;
    right: auto;
  }
}

.slide-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

.slider-arrow {
  display: none;
}

@media (min-width: 768px) {
  .slider-arrow {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    border-radius: 4px;
  }

  #slider:hover .slider-arrow {
    opacity: 1;
  }

  .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .arrow-left  { left: 1rem; }
  .arrow-right { right: 1rem; }
}

.slide-content button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
    margin-top: 1rem;
}

.slide-content button {
    padding: 0.5rem 0.9rem;
    border-radius: var(--border-radius-standard);
    font-size: 1rem;
}

.slide-content button:hover {
  background: rgba(255, 255, 255, 0.4);
  color: white;
}