* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #512da8, #1976d2, #283593);
  color: white;
}

header {
  text-align: center;
  padding: 60px 20px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
}

section {
  padding: 60px 20px;
}

h2.slider-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: white;
}

.card-container {
  background: #fff;
  display: flex;
  align-items: center;
  position: relative;
  width: 80vh;
  max-width: 720px;
  height: 230px;
  border-radius: 10px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.card-slider {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 86%;
  margin: auto;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.card-slider p {
  color: #888;
  text-align: justify;
  font-size: 15px;
}

.card-slider img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card-slider h3 {
  color: #333;
  font-size: 15px;
  margin-bottom: 2px;
  text-align: center;
}

.card-slider h6 {
  color: #777;
  font-weight: 500;
  text-align: center;
  font-size: 12px;
}

.card-container button {
  font-size: 28px;
  height: 48px;
  width: 48px;
  background: #fff;
  border: none;
  position: absolute;
  color: #512da8;
  cursor: pointer;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}

.card-container button#card-next {
  right: -33px;
}

.card-container button#card-prev {
  left: -33px;
}

.drag-container {
  background: #fff;
  width: 80%;
  max-width: 818px;
  height: 80vh;
  overflow: hidden;
  cursor: grab;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 10px;
  margin: auto;
}

.drag-slider {
  width: 200%;
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

.drag-slide {
  width: 800px;
  height: 500px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border-radius: 10px;
}

.drag-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-container {
  background: #fff;
  width: 60%;
  min-width: 420px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin: auto;
}

.image-slider img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: none;
}

.image-slider img.active {
  display: block;
}

.image-dots {
  width: 120px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-around;
}

.image-dots button {
  height: 12px;
  width: 20px;
  border: 3px solid #000;
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
}

.image-container button#image-prev,
.image-container button#image-next {
  height: 40px;
  width: 40px;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
  position: absolute;
  font-size: 18px;
  font-weight: bold;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.image-container {
  position: relative;
}

.image-container button#image-prev {
  left: -30px;
}
.image-container button#image-next {
  right: -30px;
}

@media screen and (max-width: 720px) {
  .card-container {
    height: 360px;
  }

  .card-slider {
    flex-direction: column;
  }

  .card-slider p {
    font-size: 13px;
  }
}
