/* DESKTOP / TABLET */
.tanweer-slider-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #000 !important;
}

.tanweer-slider-backgrounds {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slider-bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000 !important;
  z-index: 1;
  opacity: 0;
  transform: scale(1, 1);
  transform-origin: center center;
}

.slider-bg-item.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1, 1);
}

.slider-bg-item.outgoing {
  animation: animate-out 0.6s ease forwards !important;
  z-index: 3;
}

.slider-bg-item.incoming {
  animation: animate-in 0.6s ease forwards !important;
  z-index: 4;
  opacity: 1;
}

@keyframes animate-out {
  0% {
    transform: scale(1, 1) translateX(0);
    opacity: 1;
    left: 0;
    width: 100%;
  }
  10% {
    transform: scale(1, 0.002) translateX(0);
    opacity: 0.7;
    left: 0;
    width: 100%;
  }
  25% {
    transform: scale(0.2, 0.002) translateX(-50%);
    opacity: 0.3;
    left: 50%;
    width: 20%;
  }
  100% {
    transform: scale(0.2, 0.002) translateX(-50%);
    opacity: 0;
    left: 50%;
    width: 20%;
  }
}

@keyframes animate-in {
  0% {
    transform: scale(0.2, 0.002) translateX(-50%);
    opacity: 0;
    left: 50%;
    width: 20%;
  }
  50% {
    transform: scale(1, 0.002) translateX(0);
    opacity: 0.3;
    left: 0;
    width: 100%;
  }
  80% {
    transform: scale(1, 0.002) translateX(0);
    opacity: 0.7;
    left: 0;
    width: 100%;
  }
  100% {
    transform: scale(1, 1) translateX(0);
    opacity: 1;
    left: 0;
    width: 100%;
  }
}

.slider-bg-item img,
.slider-bg-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 100%;
  min-height: 100vh;
}

.slider-title {
  font-size: 74px;
  font-weight: bold;
  color: #fff;
  display: block;
}

.slider-year {
  padding-top: 20px;
  font-size: 22px;
  color: #ccc;
  margin-left: 10px;
}

.tanweer-slider-menu {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
}

.tanweer-slider-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tanweer-slider-item {
  display: flex;
  margin: -25px 0 0 40px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tanweer-slider-item a:hover {
  color: #ffffff;
}

.tanweer-slider-item:hover {
  opacity: 0.6;
}

.tanweer-slider-item.active .slider-title,
.tanweer-slider-item.active .slider-year {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 768px) {
  .slider-title {
    font-size: 44px;
    white-space: normal;
    overflow: hidden;
  }

  .slider-year {
    font-size: 13px;
    padding-top: 10px;
  }
}

/* MOBILE */
.tanweer-slider-wrapper-mobile {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: #000 !important;
}

.tanweer-slider-scroll-area {
  width: 100%;
}

.tanweer-slider-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.slider-bg-item-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #000 !important;
  z-index: 1;
  transform: translateY(100%) !important;
  opacity: 0;
}

.slider-bg-item-mobile.active {
  opacity: 1;
  z-index: 2;
  transform: translateY(0) !important;
}

.slider-bg-item-mobile.outgoing {
  animation: push-out-up-mobile 1.0s ease forwards !important;
  z-index: 3;
}

.slider-bg-item-mobile.incoming {
  animation: push-in-from-bottom-mobile 1.0s ease forwards !important;
  z-index: 4;
  opacity: 1;
}

@keyframes push-out-up-mobile {
  0% {
    transform: translateY(0) !important;
  }
  100% {
    transform: translateY(calc(-100% - 50px)) !important; /* 50px black gap */
  }
}

@keyframes push-in-from-bottom-mobile {
  0% {
    transform: translateY(calc(100% + 50px)) !important; /* 50px gap */
  }
  100% {
    transform: translateY(0) !important;
  }
}

.slider-bg-item-mobile img,
.slider-bg-item-mobile iframe {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.mobile-slide-text-mobile {
  position: absolute;
  bottom: 160px;
  left: 20px;
  z-index: 10;
  color: #fff;
  padding: 20px 0 0 20px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.mobile-slide-title-mobile {
  width: 80%;
  font-size: 42px;
  font-weight: normal;
  color: #fff;
  text-decoration: none;
  display: block;
}

.mobile-slide-year-mobile {
  font-size: 14px;
  color: #ccc;
  margin-top: 5px;
}

.mobile-slide-indicator-mobile {
  position: fixed;
  right: 20px;
  bottom: 20px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  z-index: 100;
}

.scroll-hint-mouse {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  display: flex;
}

.mouse {
  width: 28px;
  height: 48px;
  border: 2px solid white;
  border-radius: 14px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot-anim 1.5s infinite;
  opacity: 0.8;
}

@keyframes scroll-dot-anim {
  0% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.5; }
  100% { top: 8px; opacity: 1; }
}

@media (max-width: 768px) {
  .scroll-hint-mouse {
    display: block;
  }
}