/* Spain The Forgotten - Lightweight Hero Slider (Vanilla CSS) */
.stf-hero-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
  max-height: 640px;
  overflow: hidden;
  background-color: #1a1714;
}

.stf-slider-track {
  position: relative;
  width: 100%;
  height: 520px;
}

.stf-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stf-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.stf-slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(20,15,12,0.45) 0%, rgba(20,15,12,0.65) 100%);
  z-index: 1;
}

.stf-slide-container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
}

.stf-slide-media {
  flex: 0 0 45%;
  text-align: center;
  animation: stfFadeInLeft 0.8s ease;
}

.stf-slide-media img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.stf-slide-content {
  flex: 0 0 52%;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  animation: stfFadeInRight 0.8s ease;
}

.stf-slide-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e5b972;
  margin-bottom: 12px;
}

.stf-slide-text {
  font-size: 21px;
  line-height: 1.55;
  color: #f7f5f0;
  margin-bottom: 24px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
}

.stf-slide-cta .stf-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #8b0000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #a81c1c;
  box-shadow: 0 4px 15px rgba(139,0,0,0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.stf-slide-cta .stf-btn:hover {
  background: #a30000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,0,0,0.6);
}

/* Controls */
.stf-slider-prev,
.stf-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stf-slider-prev:hover,
.stf-slider-next:hover {
  background: #8b0000;
  border-color: #8b0000;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.stf-slider-prev { left: 20px; }
.stf-slider-next { right: 20px; }

.stf-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.stf-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.stf-dot.active {
  background: #e5b972;
  width: 28px;
  border-radius: 8px;
}

/* Animations */
@keyframes stfFadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes stfFadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .stf-slider-track { height: auto; min-height: 560px; }
  .stf-slide { position: relative; display: none; height: auto; padding: 40px 0; }
  .stf-slide.active { display: flex; }
  .stf-slide-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .stf-slide-media { flex: 0 0 100%; }
  .stf-slide-media img { max-height: 250px; }
  .stf-slide-content { flex: 0 0 100%; }
  .stf-slide-text { font-size: 17px; }
  .stf-slider-prev { left: 8px; width: 36px; height: 36px; font-size: 16px; }
  .stf-slider-next { right: 8px; width: 36px; height: 36px; font-size: 16px; }
}

