@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #bbc6fa;
}

.quote-box {
  background: #fff;
  max-width: 95%; /* Use max-width for responsiveness */
  position: relative;
  margin: 20px auto; /* Center horizontally on all devices */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 20px 0px rgba(0, 0, 0, 0.15);
}

.quote-box h2 {
  font-size: clamp(
    1.8rem,
    2.8vw,
    2.5rem
  ); /* Use clamp() for responsive font size */
  margin-bottom: 40px;
  position: relative;
}

.quote-box h2::after {
  content: "";
  width: 75px;
  height: 3px;
  border-radius: 3px;
  background: rgb(23, 124, 229);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.quote-box blockquote {
  font-size: clamp(
    1rem,
    1.5vw,
    1.2rem
  ); /* Use clamp() for responsive font size */
  min-height: 110px;
}

.quote-box blockquote::before,
.quote-box blockquote::after {
  content: '"';
}

.quote-box span {
  display: block;
  margin-top: 10px;
  font-style: italic; /* Use italic instead of float for author name */
}

.quote-box span::before {
  content: "";
  display: none; /* Remove unnecessary line decoration */
}

.quote-box div {
  width: 100%; /* Ensures full width on all devices */
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.quote-box button {
  background: rgb(23, 124, 229);
  color: #fff;
  border-radius: 25px;
  border: 1px solid rgb(23, 124, 229);
  padding: 10px 20px; /* Adjust padding for better button size on smaller screens */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  cursor: pointer;
}

.quote-box img {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  border-radius: 50%;
}

.quote-box button:nth-child(2) {
  background: transparent;
  color: #333;
}
