.home-container {
  margin: 5rem 0 0;
}

.home {
  display: flex;
  justify-content: center;
  background: url(../img/home.jpg);
  background-size: cover;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 !important;
  background-position: top;
  background-attachment: fixed;
}

.home ::selection {
  background: #f5f5f5;
  color: #3e467b;
}

.home-intro {
  display: flex;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  padding: 6rem 1rem;
}

.intro {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 0;
  width: 50%;
}

.buttons {
  display: flex;
  justify-content: space-between;
  width: 65%;
}

.buttons button {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: auto;
  border: none;
  outline: none;
  font-weight: 600;
  transition: all 0.3s ease-in-out;

  &:hover {
    cursor: pointer;

    a:before {
      top: 0;
    }

    span {
      color: #fff;
    }
  }
}

.buttons button a {
  display: block;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
  z-index: 1;
  justify-content: center;
  border-radius: 3rem;
  color: #f5f5f5;
  padding: 0.8rem 1rem;
  transition: all 0.3s linear;
}

.buttons button a:before {
  content: "";
  position: absolute;
  top: 106%;
  border: none;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #3e467b;
  transition: top 0.3s;
  z-index: -1;
}

.buttons button a span {
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

#why {
  width: 12rem;
  background-color: #3e467b;
}

#why a {
  display: block;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
  z-index: 1;
  justify-content: center;
  border-radius: 3rem;
  color: #f5f5f5;
  padding: 0.8rem 1rem;
}

#why a:before {
  content: "";
  position: absolute;
  top: 106%;
  border: none;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ff4500;
  transition: top 0.3s;
  z-index: -1;
}

#why a span {
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

#why:hover {
  cursor: pointer;
}

#why:hover a:before {
  top: 0;
}

#why:hover a span {
  color: #fff;
}

#how {
  width: 10rem;
  background: #ff4500;
}

#tagline {
  color: #ffc5b0;
}

#tagline {
  margin: 1rem 0 3rem;
  color: #ffc5b0;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.5;
}

#h4 {
  margin: 1rem 0 3rem;
  color: #3e467b;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.intro h1 {
  margin: 1rem 0 0.5rem;
  font-size: 4rem;
  line-height: 1;
  color: #f5f5f5;
  width: 50%;
  font-weight: 700;
}

.intro h4 {
  font-size: 1.7rem;
  margin: 1rem 0 1.5rem;
  color: #f5f5f5;
}

.calculator {
  background: #f5f5f5;
  width: 32%;
  padding: 40px 30px;
}

.calculator h2 {
  font-size: 1.5rem;
  text-align: center;
  width: 80%;
  margin: auto;
}

.calculator h5 {
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
  color: #3e467b;
}

form {
  display: flex;
  flex-direction: column;
  margin: auto;
  justify-content: center;
  align-content: center;
}

form button {
  margin: 2rem auto 3rem;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

#border-bottom {
  border-bottom: 2px solid;
  height: 1rem;
  color: #3e467b;
  border-radius: 0.5rem;
}

#border-top {
  border-top: 2px solid;
  height: 1rem;
  color: #3e467b;
  border-radius: 0.5rem;
  margin: 1rem 0 0;
}

#monthlyRepayment {
  background: #ff6d38c0;
}

#totalRepayment {
  background: #ff6e38;
}

#reset {
  display: flex;
  padding: 0.1rem 0.2rem;
  margin: 1rem 0 0 auto;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: #ff4500;
  text-align: right;
  float: right;
}

@media (min-width: 928px) and (max-width: 1185px) {
  .calculator {
    width: 35% !important;
  }

  .calculator button {
    margin: 2rem auto 3rem !important;
  }

  .buttons {
    width: 80% !important;
  }
}

@media (min-width: 769px) and (max-width: 927px) {
  .home {
    height: 65% !important;
  }

  .home-intro {
    margin: 0% auto !important;
    justify-content: space-between !important;
  }

  .buttons {
    width: 80% !important;
    flex-direction: column;
  }

  .buttons button {
    margin: 0 0 1.5rem !important;
  }

  .calculator {
    width: 50% !important;
  }

  .calculator button {
    margin: 2rem auto 5rem !important;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .home-intro {
    flex-direction: column !important;
    padding: 5rem 1rem !important;
    margin: 10% auto !important;
    justify-content: normal !important;
  }

  .calculator {
    width: 89% !important;
  }

  .calculator button {
    margin: 2rem auto 5rem !important;
  }

  .intro {
    width: 100% !important;
  }

  .buttons {
    width: 55% !important;
    margin: 0 0 2rem;
  }

  .intro h1 {
    width: 100% !important;
  }

  .intro h4 {
    font-size: 1.5rem;
  }
}

@media (min-width: 400px) and (max-width: 767px) {
  .home-intro {
    flex-direction: column !important;
    padding: 2rem 0 !important;
    margin: 10% auto !important;
    justify-content: normal !important;
  }

  .calculator {
    width: 90% !important;
  }

  .calculator button {
    margin: 2rem auto 5rem !important;
  }

  .intro {
    width: 100% !important;
  }

  .intro h4 {
    font-size: 1.5rem;
  }

  .intro h1 {
    width: 100% !important;
  }

  .buttons {
    flex-direction: column !important;
  }

  .buttons button {
    margin: 0 0 2rem !important;
  }
}

@media (min-width: 360px) and (max-width: 399px) {
  .home-intro {
    flex-direction: column !important;
    padding: 2rem 0;
    margin: 20% auto !important;
    justify-content: normal !important;
  }

  .calculator {
    width: 100% !important;
  }

  .calculator button {
    margin: 2rem auto 5rem !important;
  }

  .intro {
    width: 100% !important;
  }

  .intro h4 {
    font-size: 1.5rem;
  }

  .intro h1 {
    width: 100% !important;
  }

  .buttons {
    flex-direction: column !important;
  }

  .buttons button {
    margin: 0 0 2rem !important;
  }
}

@media (max-width: 359px) {
  .home-intro {
    flex-direction: column !important;
    padding: 2rem 0;
    margin: 20% auto !important;
    justify-content: normal !important;
  }

  .calculator {
    width: 100% !important;
  }

  .calculator button {
    margin: 2rem auto 5rem !important;
  }

  .intro {
    width: 100% !important;
  }

  .intro h4 {
    font-size: 1.5rem;
  }

  .intro h1 {
    width: 100% !important;
  }

  .buttons {
    flex-direction: column !important;
  }

  .buttons button {
    margin: 0 0 2rem !important;
  }
}

.home-grid {
  display: flex;
  justify-content: space-evenly;
  margin: 4rem auto 2rem;
  text-align: center;
  width: 90%;
}

.home-grid .anywhere,
.home-grid .direct,
.home-grid .secure {
  width: 30%;
  padding: 0.5rem;
}

.home-grid .anywhere img,
.home-grid .direct img,
.home-grid .secure img {
  margin: 1.2rem auto;
}

.home-grid .anywhere h3,
.home-grid .direct h3,
.home-grid .secure h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.home-grid .anywhere p,
.home-grid .direct p,
.home-grid .secure p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.home-grid .anywhere h4,
.home-grid .direct h4,
.home-grid .secure h4 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
}

.home-grid .anywhere h4 a,
.home-grid .direct h4 a,
.home-grid .secure h4 a {
  color: #434486;
}

@media screen and (max-width: 768px) {
  .home-grid {
    flex-direction: column;
  }

  .home-grid .anywhere,
  .home-grid .direct,
  .home-grid .secure {
    width: 100%;
  }
}

.why {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  padding: 5rem 1rem;
  background: #ffc5b0;
}

.why::selection {
  background: #ff4500;
  color: #f5f5f5;
}

.why h2 {
  margin: 0 0 0.9rem;
  font-weight: 500;
  font-size: 2.2rem;
}

.why h4 {
  font-weight: 500;
  text-transform: uppercase;
  color: #3e467b;
}

.why .reasons {
  display: flex;
  justify-content: space-evenly;
  padding: 3rem;
}

.why .reasons .reason-item {
  width: 25%;
  background: #f5f5f5;
  box-shadow: 0 0 5px #3e467b7b;
  padding: 3rem 2rem 2rem;
  position: relative;
  display: flex;
}

.why .reasons .reason-item .inner-image {
  display: inline;
  left: -30px;
  position: absolute;
  background: #ff895e;
  box-shadow: 0 0 5px #3e467b7b;
  border-radius: 50%;
  padding: 0.7rem 0.9rem 0.2rem;
  top: 40%;
  opacity: 0;
  transform: scale(0.5);
}

.why .reasons .reason-item .inner-image img {
  width: 20px;
}

.why .reasons .reason-item .animate-1 {
  opacity: 1;
  transform: scale(1.2);
  transition: opacity 1.5s, transform 1.5s;
}

.why .reasons .reason-item .container h3 {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1rem;
  color: #3e467b;
  margin: 0 0 0.5rem;
  text-align: center;
}

.why .reasons .reason-item .container p {
  margin: 0 0 1rem;
}

.why .reasons .reason-item .container a {
  color: #3e467b;
  text-transform: uppercase;
  margin: 1rem 0;
}

.why .reasons .reason-item .container a span {
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 1040px) {
  .why .reasons {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .reason-item .container {
    margin: 0 0 0 0.5rem;
  }

  .why .reasons .reason-item .inner-image {
    left: -20px !important;
  }

  .why .reasons .reason-item {
    width: 100%;
    flex-direction: column;
    margin: 0 0 1rem;
  }
}

.sponsors-content {
  background: #ff4500;
  padding: 4rem 6rem 3rem;
}

.sponsors-content .inner-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sponsors-content .inner-container .image-container {
  width: 25%;
}

.sponsors-content .inner-container .image-container .inner-image {
  opacity: 0;
  transform: translateY(20px);
  margin: 10px;
}

.sponsors-content .inner-container .image-container .animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s, transform 1.5s;
}

.sponsors-content .inner-container::before {
  content: "";
  position: absolute;
  margin-top: 12rem;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 9;
  left: 50%;
  border-width: 0 25px 25px 25px;
  border-color: transparent transparent #ff4500 transparent;
  transform: rotate(180deg);
}

@media screen and (max-width: 1040px) {
  .sponsors-content {
    padding: 4rem 3rem 3rem;
    overflow-x: scroll;
    scrollbar-color: #ff4500 #ff4500;
  }

  .sponsors-content .inner-container {
    justify-content: start;
  }

  .sponsors-content .inner-container .image-container {
    margin: 0 5rem 0 0;
    padding: 0 2rem;
    width: 50%;
  }

  .sponsors-content .inner-container .image-container .inner-image {
    margin: 0 5rem;
  }

  .sponsors-content .inner-container::before {
    margin-top: 11rem;
    left: 45%;
  }
}

@media screen and (max-width: 500px) {
  .sponsors-content {
    padding: 3rem 1rem 2rem;
  }

  .sponsors-content .inner-container::before {
    margin-top: 9rem;
    left: 45%;
  }

  .sponsors-content .inner-container .image-container {
    margin: 0;
    padding: 0;
    width: 100%;
  }
}

.success-story {
  display: flex;
  background: url(../img/home-background-1.jpg);
  background-size: cover;
  width: 100%;
  height: 100%;
  position: relative;
  background-position: top;
  background-attachment: fixed;
}

.success-story::selection {
  background: #f5f5f5;
  color: #3e467b;
}

.success-story .container {
  margin: 5rem auto;
  padding: 0 5rem;
  width: 100%;
}

.success-story .container h2 {
  color: #f5f5f5;
  font-weight: 100;
  margin: 0 0 1.5rem;
  font-size: 2.8rem;
}

.success-story .container h3 {
  font-size: 2.8rem;
  font-weight: 100;
  color: #ff6e38;
}

.success-story .container .counts {
  margin: 8rem 0;
  display: flex;
  justify-content: center;
}

.success-story .container .counts .count-item {
  width: 25%;
}

.success-story .container .counts .count-item h2 {
  color: #f5f5f5;
  font-weight: 600;
  font-size: 2.8rem;
  margin: 1.5rem 0 0.5rem;
}

.success-story .container .counts .count-item h2 span {
  font-size: 2.8rem;
  font-weight: 600;
}

.success-story .container .counts .count-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
  text-transform: uppercase;
}

@media screen and (max-width: 1024px) {
  .success-story .container {
    padding: 0 1rem;
  }

  .success-story .container h2 {
    font-size: 2rem;
  }

  .success-story .container h3 {
    font-size: 2rem;
  }

  .success-story .container .counts {
    flex-wrap: wrap;
    margin: 3rem 0;
  }

  .success-story .container .counts .count-item {
    width: 50%;
    margin: 2rem 0 0;
  }

  .success-story .container .counts .count-item h2 {
    font-size: 2rem;
  }

  .success-story .container .counts .count-item h2 span {
    font-size: 2rem;
  }
}

@media screen and (max-width: 540px) {
  .success-story .container h2 {
    font-size: 2rem;
  }

  .success-story .container h3 {
    font-size: 2rem;
  }

  .success-story .container .counts {
    flex-wrap: wrap;
    margin: 3rem 0;
  }

  .success-story .container .counts .count-item {
    width: 50%;
    margin: 2rem 0 0;
  }

  .success-story .container .counts .count-item h2 {
    font-size: 2rem;
  }

  .success-story .container .counts .count-item h2 span {
    font-size: 2rem;
  }
}

.what-next-4 {
  display: flex;
  justify-content: center;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 !important;
  background-position: top;
}

.what-next-4::selection {
  background: #3e467b;
  color: #f5f5f5;
}

.what-next-4 .content {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  padding: 3rem 0 0;
}

.what-next-4 .content h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  font-weight: 500;
  color: #333;
}

.what-next-4 .content h4 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.what-next-4 .content h4 a {
  color: #3e467b;
}

.what-next-4 .content h4 a:hover {
  color: #ff4500;
}

.what-next-4 .content .more-content {
  display: flex;
  margin: 5rem auto 0;
  padding: 5rem;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  background: #434486;
}

.what-next-4 .content .more-content::selection {
  background: #f5f5f5;
  color: #ff6e38;
}

.what-next-4 .content .more-content img {
  width: 20rem;
  position: relative;
}

.what-next-4 .content .more-content .description {
  display: flex;
  text-align: left;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.what-next-4 .content .more-content .description h4 {
  color: #f5f5f5;
  text-transform: capitalize;
  margin: 0 1rem 0 0;
  font-size: 1.5rem;
}

.what-next-4 .content .more-content .description .input {
  display: flex;
}

.what-next-4 .content .more-content .description .input input {
  width: 100%;
  color: #f5f5f5;
}

.what-next-4 .content .more-content .description .input input:focus {
  background: #ff8a5fbb;
  color: #f5f5f5;
}

.what-next-4 .content .more-content .description .input button {
  background: #ff4500;
  width: 10rem;
  border-radius: 0;
}

.what-next-4 .content .more-content .description .input button a {
  color: #f5f5f5;
  width: 100%;
  padding: 1rem;
}

.what-next-4 .content .more-content .description .input button:hover {
  cursor: pointer;
}

.what-next-4 .content .more-content::before {
  content: "";
  position: absolute;
  top: 11.5rem;
  width: 0;
  height: 0;
  border-style: solid;
  left: 50%;
  border-width: 0 25px 25px 25px;
  border-color: transparent transparent #434486 transparent;
  transform: rotate(0deg);
  z-index: 1;
}

@media screen and (max-width: 1040px) {
  .what-next-4 .content .more-content {
    width: 100% !important;
  }
}

@media screen and (max-width: 1024px) {
  .what-next-4 .content .more-content {
    padding: 5rem 2rem !important;
  }

  .what-next-4 .content .more-content .description {
    justify-content: center !important;
  }
}

@media screen and (max-width: 768px) {
  .what-next-4 .content .more-content {
    flex-direction: column;
    width: 100% !important;
  }

  .what-next-4 .content .more-content .description {
    width: 100% !important;
    flex-direction: column;
  }

  .what-next-4 .content .more-content .description h4 {
    width: 100%;
    margin: 1rem 0 !important;
  }

  .what-next-4 .content .more-content .description .input {
    width: 100% !important;
  }
}

@media screen and (max-width: 450px) {
  .what-next-4 .content .more-content::before {
    top: 13.5rem;
    left: 45%;
  }

  .review .content .review-item {
    padding: 2rem 0.5rem !important;
  }

  .review .content p {
    font-size: 1rem !important;
  }
}

.review {
  display: flex;
  justify-content: center;
  background: url(../img/home-testimonials1.jpg);
  background-size: cover;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 !important;
  background-attachment: fixed;
  background-position: top;
}

.review::selection {
  background: #f5f5f5;
  color: #ffc5b0;
}

.review .content {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  padding: 8rem 0 5rem;
}

.review .content h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  font-weight: 500;
  color: #f5f5f5;
}

.review .content h4 {
  font-size: 1.1rem;
  color: #ff6e38;
  font-weight: 500;
  text-transform: uppercase;
}

.review .content .review-carousel {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.review .content .carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.review .content .carousel-slide {
  flex: 0 0 auto;
  width: 100%;
}

.review .content .carousel-slide.active {
  display: block;
}

.review .content .carousel-container {
  transition: transform 0.5s ease;
}

.review .content .carousel-slide {
  flex: 0 0 auto;
  width: 100%;
  display: none;
  transition: transform 0.5s ease;
  overflow: hidden;
}

.review .content .carousel-slide.active {
  display: flex;
  transform: translateX(0);
}

.review .content .review-item {
  padding: 2rem;
  margin: 0 auto;
  width: 80%;
}

.review .content .quotes {
  color: #ff6e38;
  font-size: 8rem;
  font-style: italic;
  display: flex;
  justify-content: center;
  margin: 3rem 0 0;
}

.review .content p {
  font-size: 1.2rem;
  color: #dbdbdb;
}

.review .content .author {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
  color: #ff6e38;
}

.review .content .position {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.review .content .prev-btn,
.review .content .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  box-shadow: none;
  color: #ff4500;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 18px;
}

.review .content .prev-btn {
  left: 0;
}

.review .content .next-btn {
  right: 0;
}

.review .content .indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.review .content .indicator {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.review .content .indicator.active {
  background: #ff4500;
}

.inner-image {
  opacity: 0;
  transform: translateY(20px);
}

.animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.5s, transform 1.5s;
}
