:root {
  --dark-blue: hsl(240, 38%, 20%);
  --grayish-blue: hsl(240, 18%, 77%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

.background-pattern {
  position: absolute;
  z-index: -1;
}

.pattern-curve {
  bottom: 0;
  left: 0;
  width: 100%;
}

.pattern-bg {
  top: 0;
  right: 0;
}

.slider-container {
  max-width: 1110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
}

.testimonial {
  position: relative;
  padding-top: 60px;
}

.testimonial-text {
  font-size: 32px;
  color: var(--dark-blue);
  line-height: 1.3;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.pattern-quotes {
  position: absolute;
  top: 0;
  left: 100px;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-name {
  color: var(--dark-blue);
  font-weight: 700;
}

.author-title {
  color: var(--grayish-blue);
}

.image-container {
  position: relative;
  background: url('./images/pattern-bg.svg') no-repeat center;
  background-size: contain;
  padding: 60px;
}

.slider-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 30px 50px -25px rgba(36, 36, 113, 0.25);
}

.slider-buttons {
  position: absolute;
  bottom: 60px;
  left: 60px;
  background: white;
  border-radius: 28px;
  display: flex;
  box-shadow: 0 15px 20px -10px rgba(36, 36, 113, 0.15);
}

.btn {
  border: none;
  background: white;
  padding: 16px 20px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.75;
}

.btn-prev {
  border-radius: 28px 0 0 28px;
}

.btn-next {
  border-radius: 0 28px 28px 0;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.attribution {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 11px;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 1024px) {
  .slider-container {
    grid-template-columns: 1fr;
    max-width: 550px;
    gap: 50px;
  }

  .testimonial {
    order: 2;
    text-align: center;
    padding-top: 40px;
  }

  .testimonial-text {
    font-size: 24px;
  }

  .pattern-quotes {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
  }

  .testimonial-author {
    flex-direction: column;
    gap: 5px;
  }

  .image-container {
    order: 1;
    padding: 30px;
  }

  .slider-buttons {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .pattern-bg {
    width: 100%;
    height: auto;
  }
}
