/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevents horizontal scrollbars */
}
@font-face {
  font-family: "Grifter";
  src: url("/assets/fonts/GRIFTERBold.woff2") format("woff2"),
    url("/assets/fonts/GRIFTERBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Medium";
  src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: normal; /* This defines the Black weight */
  font-style: normal;
}
* {
  font-family: "Grifter", sans-serif;
}

p {
  font-family: "Poppins Medium", sans-serif;
  color: #07084c;
}
.testimonials-page {
  background-color: #f0f3fa;
  height: 100vh;
  height: fit-content;
  min-height: 1150px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding-bottom: 10%;
  padding-top: 5%;
}

.number-container-large-screen {
  display: inline-block;
  margin-top: 10%;
  margin-bottom: 2%;
}

.number-container-small-screen {
  background-image: url("/assets/images/testimonials/Rectangle-1559.svg");
  background-size: cover; /* Ensure the image covers the section */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent repeating the image */
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5%;
  margin-bottom: 5%;
  display: none;
}

.number-container-small-screen .title-small-screen {
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  color: #f0f3fa;
}

.number-container-small-screen .number {
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  color: #07084c;
}

.number-container {
  position: relative; /* Make the container a positioning context */
  display: inline-block; /* Ensures the content wraps tightly around the text */
  font-size: 2rem; /* Adjust the size as per your design */
  line-height: 1; /* Ensures the text height doesn't add extra spacing */
}

.number {
  position: relative; /* Keep the text flow normal but allow z-index control if needed */
  font-weight: 700;
  font-size: 128px;
  line-height: 18px;
  color: #40b59e;
  width: 100%;
}

.number-img {
  width: 75.39px;
  height: 55.44px;
  transform: rotate(-34.25deg); /* Applies the rotation */
  position: absolute; /* Allows precise positioning over the 0 */
  top: -70px; /* Adjust this value to control vertical placement */
  left: 92%; /* Position it after the text */
  transform: translateX(-50%); /* Centers the image horizontally on the '0' */
}

.number-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 35px;
  color: #07084c;
  margin: 5% auto 14% auto;
  text-align: center;
}

/* Card Container */
.testimonial-card {
  width: 420px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 4px 27px 0px #00000026;
  text-align: center;
  padding: 20px;
  margin: 40px auto;
}

.profile-image {
  margin-top: -20%; /* Move the image up */
  display: inline-block;
  border-radius: 50%;
}

/* Default styles (for larger screens) */
.profile-image img {
  width: 105.73px;
  height: 105.17px;
  object-fit: cover;
  border-radius: 50%;
}

/* Name and Role */
.testimonial-name {
  color: #5042a6;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02%;
  margin-top: 2%;
  line-height: 26px;
}

/* Quote Styling */
.testimonial-quote {
  font-weight: 400;
  font-family: "Poppins Medium", sans-serif;
  line-height: 20px;
  letter-spacing: -0.05em;
  font-size: 16px;
  color: #000000;
  margin-top: 10px;
}

.testimonials-row {
  display: flex;
  gap: 1.5rem;
  padding-left: 2%;
  padding-right: 2%;
}
/* Desktop Animation (Only for screens larger than 768px) */
@media (min-width: 769px) {
  .row-1 {
    animation: slideRightToLeft 20s linear infinite;
  }

  .row-2 {
    animation: slideLeftToRight 20s linear infinite;
  }
}

/* Keyframes for Desktop */
@keyframes slideRightToLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes slideLeftToRight {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}


@media (max-width: 768px) {

  #footer-container{
    display: none;
  }

  .testimonials-page {
    padding-top: 20%;
  }
  .number-container-large-screen {
    display: none;
  }

  .number-container-small-screen {
    display: flex;
  }
  .profile-image {
    margin-top: -25%; /* Move the image up */
  }

  .profile-image img {
    width: 50px;
    height: 51px;
  }

  .testimonial-card {
    width: 302px;
    height: 136px;
  }

  .testimonial-quote {
    font-size: 13.5px;
    line-height: 15px;
    letter-spacing: -0.04em;
  }
  .testimonials-row {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .testimonial-name {
    font-size: 15px;
    line-height: 15px;
  }

  /* for animation */
  .testimonial-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
}
