.home-slider-section {
  position: relative;
  padding: 95px 0;
  background: #fafafa;
  overflow: hidden;
}

.home-slider-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.home-slider-head span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  background: #fafafa;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
}

.home-slider-head h2 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
  color: #181818;
}

.home-slider-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #667085;
}

.home-slider {
  position: relative;
  display: block;
}

.home-slider-viewport {
  overflow: hidden;
  width: 100%;
  padding: 10px 0 14px;
}

.home-slider-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.home-slide {
  min-width: calc((100% - 64px) / 5);
  flex: 0 0 calc((100% - 64px) / 5);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.home-slide-image {
  aspect-ratio: 2 / 3;
  height: auto;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  padding: 18px;
  border-bottom: 1px solid #e4e7ec;
}

.home-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.home-slide:hover .home-slide-image img {
  transform: scale(1.04);
}

.home-slide-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.home-slide-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: #181818;
  min-height: calc(17px * 1.35 * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.home-slide-content p {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: #475467;
  min-height: 24px;
}

.home-slide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  background: #fafafa;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.home-slide-link:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* OKLAR BURADA DÜZELTİLDİ */
.home-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.home-slider-btn:hover {
  background: #333;
  transform: translateY(-50%) scale(1.05);
}

.home-slider-btn.prev {
  left: -24px;
}

.home-slider-btn.next {
  right: -24px;
}

/* ok karakterlerinin merkezde daha düzgün görünmesi için */
.home-slider-btn span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

.home-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.home-slider-dot {
  position: relative;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.home-slider-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d0d5dd;
  transition: width 0.3s ease, background 0.3s ease;
}

.home-slider-dot.active {
  width: 36px;
  background: transparent;
}

.home-slider-dot.active::before {
  width: 28px;
  background: #111;
}

@media (max-width: 1200px) {
  .home-slide {
    min-width: calc((100% - 48px) / 4);
    flex: 0 0 calc((100% - 48px) / 4);
  }

  .home-slider-btn.prev {
    left: -12px;
  }

  .home-slider-btn.next {
    right: -12px;
  }
}

@media (max-width: 1024px) {
  .home-slider-section {
    padding: 80px 0;
  }

  .home-slider-head h2 {
    font-size: 34px;
  }

  .home-slide {
    min-width: calc((100% - 16px) / 2);
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .home-slide-image {
    min-height: 280px;
  }

  .home-slider-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .home-slider-btn.prev {
    left: -8px;
  }

  .home-slider-btn.next {
    right: -8px;
  }
}

@media (max-width: 768px) {
  .home-slider-section {
    padding: 56px 0;
  }

  .home-slider-head h2 {
    font-size: 28px;
  }

  .home-slider-head p {
    font-size: 14px;
  }

  .home-slide {
    min-width: 100%;
    flex: 0 0 100%;
  }

  .home-slide-image {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .home-slider-btn {
    display: none;
  }

  .home-slider-dots {
    gap: 2px;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .home-slider-section {
    padding: 48px 0;
  }

  .home-slider-head {
    margin-bottom: 28px;
  }

  .home-slider-head span {
    margin-bottom: 10px;
    padding: 6px 11px;
    letter-spacing: 1.5px;
  }

  .home-slider-head h2 {
    font-size: 26px;
  }

  .home-slide-content {
    padding: 15px 15px 16px;
  }

  .home-slide-content p {
    min-height: 0;
  }
}
