/* Main page styles */

/**
 * =======================================
 * Home section
 * =======================================
 */

.hero-img {
  z-index: 0;
  position: absolute;
  inset: 0;
  flex: 1;
  width: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
}

.hero-img img {
  z-index: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center center;
}

#carousel-img-1 {
  transform: translateX(-400vw);
}

#carousel-img-2 {
  transform: translateX(-300vw);
}

#carousel-img-3 {
  transform: translateX(-200vw);
}

#carousel-img-4 {
  transform: translateX(-100vw);
  z-index: 2;
}

#carousel-img-5 {
  transform: translateX(0vw);
}

#carousel-img-6 {
  transform: translateX(100vw);
}

#carousel-img-7 {
  transform: translateX(200vw);
}

#carousel-img-8 {
  transform: translateX(300vw);
}

#carousel-img-9 {
  transform: translateX(400vw);
}

#carousel-img-10 {
  transform: translateX(500vw);
}

#carousel-img-11 {
  transform: translateX(600vw);
}

#carousel-img-12 {
  transform: translateX(700vw);
}

#hero-carousel {
  position: relative;
  width: 100vw;
  height: 100%;
  min-height: 20rem;
  overflow-x: hidden;
}

#hero-carousel > .carousel-control {
  z-index: 5;
  position: absolute;
  top: 0;
  bottom: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--snow);
  cursor: pointer;
}

#hero-carousel > .carousel-control > .icon {
  width: 2.5rem;
  height: 2.5rem;
}

#hero-carousel > .carousel-control.left {
  left: 0.25rem;
}

#hero-carousel > .carousel-control.right {
  right: 0.25rem;
}

#hero-carousel > .carousel-dots {
  z-index: 5;
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#hero-carousel > .carousel-dots > .carousel-dot {
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--snow);
  border: 1px solid var(--snow);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition: all 0.6s ease-in-out;
}

#hero-carousel > .carousel-dots > .carousel-dot.selected {
  background-color: var(--red);
}

#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background-color: transparent;
}

.hero-text {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 6rem 1rem 1rem 1rem;
  background-color: var(--snow);
}

.hero-h1 {
  color: var(--black);
  font-weight: 600;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.25rem;
  flex-shrink: 1;
  margin-bottom: 0.75rem;
}

.hero-btns {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

/**
 * =======================================
 * About section
 * =======================================
 */
#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-verse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.about-verse .arabic {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-verse .translation {
  font-size: 1.25rem;
  color: var(--text);
}

.about-verse .source {
  font-size: 1rem;
  font-weight: 600;
  color: var(--red-dark);
}

.welcome {
  width: 100%;
}

.welcome h2 {
  text-align: center;
}

/**
 * =======================================
 * What we offer section
 * =======================================
 */
#offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.offer-intro {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.5rem;
}

/**
 * =======================================
 * Testimonials section
 * =======================================
 */
#testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.testimonial-intro {
  z-index: 2;
  background-color: var(--snow);
}

#testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-carousel-control {
  background-color: var(--red-a00);
  border: 2px solid var(--black-a30);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.testimonial-carousel-control:hover, .testimonial-carousel-control:focus {
  background-color: var(--red-a10);
}

.testimonial-carousel-control > .icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--black);
}

.testimonial {
  padding: 0.125rem;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  transition: all 0.5s ease-in-out;
}

#testimonial-1 {
  transform: translateX(-400%);
}

#testimonial-2 {
  transform: translateX(-300%);
}

#testimonial-3 {
  transform: translateX(-200%);
}

#testimonial-4 {
  transform: translateX(-100%);
}

#testimonial-5 {
  position: relative;
  transform: translateX(0%);
}

#testimonial-6 {
  transform: translateX(100%);
}

#testimonial-7 {
  transform: translateX(200%);
}

#testimonial-8 {
  transform: translateX(300%);
}

.testimonial .figure {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial > .icon {
  margin: -0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--red-dark);
  transform: rotate(180deg);
}

.testimonial .quote {
  font-size: 1.5rem;
}

.testimonial-1 .quote, .testimonial-3 .quote {
  font-size: 1.25rem;
}

.testimonial .author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.testimonial .author > .icon {
  width: 3rem;
  height: 3rem;
  color: var(--red);
  opacity: 0.5;
}

.testimonial .caption {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial .name {
  font-size: 1.25rem;
  font-weight: 600;
}

.testimonial .title {
  font-size: 0.9rem;
}

/**
 * =======================================
 * Join our community section
 * =======================================
 */
#join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

/**
 * =======================================
 * Media queries
 * =======================================
 */

/* width >= 400px */
@media (min-width: 25rem) {
}

/* width >= 640px */
@media (min-width: 40rem) {
}

/* width >= 768px */
@media (min-width: 48rem) {
  .hero-text {
    padding: 6rem 2.5rem 1rem 2.5rem;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .about-verse .arabic {
    font-size: 2.5rem;
  }

  .testimonial > .icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .testimonial .quote {
    font-size: 2rem;
  }

  .testimonial-1 .quote, .testimonial-3 .quote {
    font-size: 1.65rem;
  }

  .testimonial .author > .icon {
    width: 3.75rem;
    height: 3.75rem;
  }

  .testimonial .name {
    font-size: 1.5rem;
  }

  .testimonial .title {
    font-size: 1rem;
  }
}

/* width >= 1024px */
@media (min-width: 64rem) {
  .hero-text {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 14.5rem;
  }

  #testimonials {
    flex-direction: row-reverse;
  }

  #testimonials .section-btns {
    margin-top: 0.5rem;
  }

  .testimonial > .icon {
    width: 4rem;
    height: 4rem;
  }

  .testimonial-carousel-control {
    width: 3.75rem;
    height: 3.75rem;
  }

  .testimonial-carousel-control > .icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* width >= 1280px */
@media (min-width: 80rem) {
  .hero-text {
    padding: 6rem 6rem 1rem 6rem;
  }

  .hero-h1 {
    font-size: 2.75rem;
  }

  #about {
    gap: 3rem;
  }

  .about-verse {
    gap: 0.5rem;
    margin-top: -0.5rem;
  }

  .about-verse .arabic {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .about-verse .translation {
    font-size: 1.25rem;
  }

  .about-verse .source {
    font-size: 1rem;
  }

  .welcome {
    width: 60rem;
  }

  #offer {
    gap: 3rem;
  }

  #testimonials {
    gap: 4rem;
  }

  #join {
    gap: 3rem;
    padding-bottom: 6rem;
  }
}

/* width >= 1536px */
@media (min-width: 96rem) {
}

/* width >= 1920px */
@media (min-width: 120rem) {
}
