


.slider {
  position: relative;
  width: 95%;
  height: 50%; /* Slider yüksekliği 250px */
  overflow: hidden; /* Taşan içeriği gizler */
  border-radius: 20px;
  color: white;
  margin-left: 2.5%;
  background-image: url("section-6-bg.png"); /* Arka plan resmi */
  background-size: 100% 100%;
  background-position: center; /* Görseli ortalar */
  background-repeat: no-repeat; /* Görselin tekrarını engeller */
}
/* Slider heading text */
.slider-heading {
  position: absolute;
  top: 10%;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.slider-heading h2 {
  font-size: 32px;
  color: white;
  margin: 0;
  font-family: Arial, sans-serif;
}
/* Wrapper for slides */
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Yumuşak geçiş */
  height: 100%; /* Wrapper yüksekliği slider ile aynı */
  align-items: flex-start; /* Tüm öğeleri üst hizaya sabitler */
}

/* Each slide contains 4 items */
.slide {
  display: flex;
  min-width: 100%; /* Her slayt tam genişlik kaplar */
  justify-content: center; /* Tüm itemleri yatayda ortalar */
  align-items: flex-start; /* Tüm itemleri dikeyde ortalar */
  gap: 20px; /* Itemler arası boşluk */
  padding: 0 150px; /* Slayt kenar boşlukları */
  box-sizing: border-box; /* Hesaplamayı tam kontrol et */
  height: 100%; /* Slayt yüksekliği slider ile aynı */
  margin-top: 15%;
}

/* Slider item styles */
.slider-item {
  flex: 0 0 calc(25% - 20px); /* Her bir item genişliği */
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  position: relative; /* Konumlandırma için relative */
  transition: height 0.3s ease; /* Yumuşak geçiş efekti */
  cursor: pointer;
  height: 90px; /* Varsayılan yükseklik */
  overflow: hidden; /* Taşan içerik gizlenir */
  box-sizing: border-box; /* Padding ve border genişliği dahil */
  transform-origin: top; /* Referans noktası yukarı */
}

.slider-item:hover {
  height: 300px; /* Hover ile sadece aşağı doğru büyüme */
  z-index: 1;
}

/* İçerik hizalama */
.slider-item h3 {
  margin: 10px 0;
}

.slider-item p {
  font-size: 18px;
}

/* Slider controls (dots) */
.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 10%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.slider-detail {
  position: absolute;
  bottom: 20px;
  right: 1%;
  display: flex;
  width: 400px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("details-black.png");
}

.dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  width: 30px;
  border-radius: 30%;
}
.pawy-market {
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("pawy-market.png");
  text-align: center;
}
.pawy-social {
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("pawy-social.png");
  text-align: center;
}
.pawy-health {
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("pawy-health.png");
  text-align: center;
}
.pawy-walking {
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("pawy-walking.png");
  text-align: center;
}
.pawy-brand {
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("pawy-brand.png");
  text-align: center;
}
.pawy-game {
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("pawy-game.png");
  text-align: center;
}

.slider-detail,
.slider,
.slider-heading,
.slide {
  opacity: 0; /* Başlangıçta görünmez */
  transform: translateY(50px); /* Hafif aşağıda başlar */
  transition: opacity 1s ease, transform 1.6s ease; /* Animasyon */
}
.parallax-active {
  opacity: 1; /* Görünür hale gelir */
  transform: translateY(0); /* Yukarı doğru hareket eder */
}
.hidden {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.active {
  opacity: 1;
}

@media screen and (max-width: 1150px) {
  .slider-heading h2 {
    font-size: var(--font-size-small-medium-);
  }
  .slider-item p {
    font-size: 12px;
  }
  .slider-item {
    height: 80px;
    padding: 15px;
  }
  .slider-item:hover {
    height: 200px;
  }
}

@media screen and (max-width: 440px) {
  .slider {
    position: relative;
    width: 95%;
    height: 50%; /* Slider yüksekliği 250px */
    overflow: hidden; /* Taşan içeriği gizler */
    border-radius: 20px;
    color: white;
    margin-left: 2.5%;
    background-image: url("section-6-bg.png"); /* Arka plan resmi */
    background-size: 100% 100%;
    background-position: center; /* Görseli ortalar */
    background-repeat: no-repeat; /* Görselin tekrarını engeller */
  }
  /* Slider heading text */
  .slider-heading {
    position: absolute;
    top: 10%;
    width: 100%;
    text-align: center;
    z-index: 2;
  }

  .slider-heading h2 {
    font-size: 10px;
    color: white;
    margin: 0;
    font-family: Arial, sans-serif;
  }
  /* Wrapper for slides */
  .slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Yumuşak geçiş */
    height: 100%; /* Wrapper yüksekliği slider ile aynı */
  }

  /* Each slide contains 4 items */
  .slide {
    display: flex;
    min-width: 100%; /* Her slayt tam genişlik kaplar */
    justify-content: center; /* Tüm itemleri yatayda ortalar */
    align-items: flex-start; /* Tüm itemleri dikeyde ortalar */
    gap: 20px; /* Itemler arası boşluk */
    padding: 0 150px; /* Slayt kenar boşlukları */
    box-sizing: border-box; /* Hesaplamayı tam kontrol et */
    height: 100%; /* Slayt yüksekliği slider ile aynı */
    margin-top: 15%;
  }

  /* Slider item styles */
  .slider-item {
    flex: 0 0 70px; /* Her bir item genişliği */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0px;
    text-align: center;
    border-radius: 15px;
    position: relative;
    transition: height 0.3s ease; /* Sadece yükseklik için geçiş efekti */
    cursor: pointer;
    height: 20px; /* Varsayılan yükseklik */
    overflow: hidden; /* İçerik taşmasını engelle */
    box-sizing: border-box; /* Padding ve border genişliği dahil */
    transform-origin: top; /* Referans noktası yukarıda */
  }

  .slider-item:hover {
    height: 90px; /* Sadece aşağı doğru büyür */
    z-index: 1;
  }

  /* İçerik hizalama */
  .slider-item h3 {
    margin: 10px 0;
  }

  .slider-item p {
    font-size: 5px;
  }

  /* Slider controls (dots) */
  .slider-controls {
    position: absolute;
    bottom: 40px;
    left: 10%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  .slider-detail {
    position: absolute;
    bottom: -10px;
    right: 10px;
    display: flex;
    width: 100px;
    /* height: 10px; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("details-black.png");
  }

  .dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .dot.active {
    width: 30px;
    border-radius: 30%;
  }
  .pawy-market {
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("pawy-market.png");
    text-align: center;
  }
  .pawy-social {
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("pawy-social.png");
    text-align: center;
  }
  .pawy-health {
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("pawy-health.png");
    text-align: center;
  }
  .pawy-walking {
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("pawy-walking.png");
    text-align: center;
  }
  .pawy-brand {
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("pawy-brand.png");
    text-align: center;
  }
  .pawy-game {
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("pawy-game.png");
    text-align: center;
  }

  .slider-detail,
  .slider,
  .slider-heading,
  .slide {
    opacity: 0; /* Başlangıçta görünmez */
    transform: translateY(50px); /* Hafif aşağıda başlar */
    transition: opacity 1s ease, transform 1.6s ease; /* Animasyon */
  }
  .parallax-active {
    opacity: 1; /* Görünür hale gelir */
    transform: translateY(0); /* Yukarı doğru hareket eder */
  }
  .hidden {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .active {
    opacity: 1;
  }
}
