.why-aniston {
  background-color: #f5f7fa;
  padding: 6rem 2rem;
  text-align: center;
}

.why-aniston h2 {
  font-size: 4rem;
  margin-bottom: 4rem;
  letter-spacing: 1px;
  font-weight: 500;
  color: #111;
}

.why-aniston h2 strong {
  font-size: 4.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  margin: 0 auto;
  overflow: hidden;
}

.why-slide {
  display: none;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
  margin-bottom: 2rem;
}

.why-slide.active {
  display: flex;
}

.why-slide img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.why-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0 2rem;
  max-width: 600px;
}

.why-content h3 {
  font-size: 3rem;
  color: #000;
  margin-bottom: 1rem;
  text-align: left;
}

.why-content p {
  font-size: 1.6rem;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

.why-controls {
  position: absolute;
  width: 100%;
  top: 30%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.why-controls button {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  padding-top: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.why-controls button:hover {
  background: #000;
  color: white;
}

.why-controls button:hover i {
  color: white;
}

.why-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 10px;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.why-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.why-dot.active {
  background-color: #000;
}

@media (max-width: 468px) {
  .why-slide {
    gap:1rem;
    flex-direction: column;
  }

  .why-controls{
    display: none;
  }
}
