/* FONTS & NORMALIZE */
@font-face {
  font-family: "Nunito";
  src: url("/themes/loanalia/fonts/index_mm/Nunito.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: "IBMPlexSans";
  src: url("/themes/loanalia/fonts/index_mm/IBMPlexSans.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "IBMPlexSans", sans-serif;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.5;
  background-color: #fff;
  color: #000;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: "IBMPlexSans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

p {
  font-family: "IBMPlexSans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* REUSABLE */
.container {
  width: 100%;
  padding: 0 16px;
  margin-left: auto;
  margin-right: auto;
}

.primary_button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  width: 100%;
  background-color: #d97706;
  color: #ffffff;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  transition: background-color 0.3s ease;
}

.tertiary_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background-color: #e7e7e7;
  color: #2a2a2a;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  border-radius: 14px;
  padding: 0px 40px;
  transition: background-color 0.3s ease;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-family: "Nunito", sans-serif;
  display: flex;
  gap: 4px;
  padding: 32px 0px 24px 0px;
}

.breadcrumbs > *:not(:last-child)::after {
  content: "/";
  padding-left: 4px;
  color: #000000;
}

.breadcrumbs__back {
  font-weight: 700;
  transition: color 0.2s ease;
}

.breadcrumbs__current {
  font-family: "Nunito", sans-serif;
  color: #a6acb4;
  font-weight: 600;
}

/* FIRST SCREEN */
header {
  padding: 16px 0px;
  border-bottom: 1px solid #84cc16;
}

header.is--light {
  background-color: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.header_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_logo {
  height: 24px;
}

.header_actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header_button {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0px 24px;
  background-color: #d97706;
  border-radius: 8px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease, border 0.3s ease;
}

.header_button.is--light {
  border: none;
}

.header_button-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.header_button-icon.is--light {
  border: none;
  background-color: rgba(217, 119, 6, 0.2);
}

.firstcreen_photo {
  display: none;
}

.firstscreen {
  position: relative;
  padding-bottom: 80px;
  background: rgb(101, 163, 13);
  background: -moz-linear-gradient(
    180deg,
    rgba(101, 163, 13, 1) 0%,
    rgba(163, 230, 53, 1) 100%
  );
  background: -webkit-linear-gradient(
    180deg,
    rgba(101, 163, 13, 1) 0%,
    rgba(163, 230, 53, 1) 100%
  );
  background: linear-gradient(
    180deg,
    rgba(101, 163, 13, 1) 0%,
    rgba(163, 230, 53, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#65a30d",endColorstr="#a3e635",GradientType=1);
}

.firstscreen::after {
  background-image: url("/themes/loanalia/images/index_mm/wave.svg");
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  bottom: -3px;
  content: "";
  display: block;
  height: auto;
  left: 0;
  padding-bottom: 15%;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.firstscreen_headings {
  text-align: center;
  padding: 24px 0px 32px 0px;
}

.firstscreen_heading {
  font-size: 32px;
  line-height: 38px;
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 16px;
}

.firstscreen_subheading {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0px 4px 5px rgba(0, 0, 0, 0.3);
}

/* STEPS */
.steps {
  padding-bottom: 40px;
}

.steps_heading {
  position: relative;
  z-index: 1;
  margin-top: -16px;
  text-align: center;
  font-size: 24px;
  line-height: 28px;
  font-weight: 900;
  color: #65a30d;
}

.steps_items {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.steps_item-single {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 0px;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
  border-radius: 12px;
}

.steps_item-image {
  height: 88px;
}

.steps_item-heading {
  font-size: 20px;
  line-height: 24px;
  font-weight: 900;
  color: #65a30d;
  margin-bottom: 8px;
}

.steps_item-text {
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
  font-weight: 500;
}

.steps_item-counter {
  position: absolute;
  top: -12px;
  left: 0;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d97706;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  border-radius: 9999px;
}

.steps_button_wrapper {
  margin-top: 20px;
}

/* REVIEWS */
.reviews {
  padding: 32px 0px 36px 0px;
  background-color: #fdf8f4;
}

.reviews_heading_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews_heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
}

.reviews_heading::after {
  display: block;
  content: "";
  width: 24px;
  height: 24px;
  background-image: url("/themes/loanalia/images/index_mm/verification.svg");
}

.reviews_rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
}

.reviews_rating-image {
  height: 174px;
}

.reviews_rating_values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: center;
}

.reviews_rating_score {
  font-family: "Nunito", sans-serif;
  font-size: 54px;
  line-height: 54px;
  font-weight: 900;
}

.reviews_rating_stars {
  height: 24px;
}

.reviews_rating_description {
  font-size: 14px;
  color: #4b5563;
  font-weight: 550;
}

.testimonials {
  padding-top: 40px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: 16px;
  padding-right: 16px;
  scroll-padding-left: 32px;
}

.testimonials::-webkit-scrollbar {
  display: none;
}

.testimonials_item {
  flex: 0 0 auto;
  width: calc(80vw - 24px);
  scroll-snap-align: start;
  padding: 12px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.testimonials_header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials_header_avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}

.testimonials_header_name {
  font-size: 14px;
  font-weight: 550;
}

.testimonials_stars {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0px;
}

.testimonials_header_sum {
  font-size: 14px;
  color: #9ca3af;
}

.testimonials_stars_image {
  height: 12px;
}

.testimonials_stars_date {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}

.testimonials_text {
  font-size: 14px;
  line-height: 20px;
}

.testimonials_likes {
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.testimonials_likes_image {
  height: 20px;
}

.testimonials_likes_counter {
  font-size: 12px;
  padding-top: 2px;
  font-weight: 600;
  color: #757780;
}

/* REQUIREMENTS */
.requirements {
  padding: 40px 0px;
}

.requirements_content {
  margin-top: 24px;
}

.requirements_image {
  height: 158px;
  margin: 0 auto;
}

.requirements_heading {
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
  color: #65a30d;
  margin-bottom: 12px;
}

.requirements_text {
  font-size: 16px;
}

.requirements_list {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
}

.requirements_bullet {
  padding-top: 3px;
}

.requirements_list_text {
  font-weight: 550;
}

/* FAQ */
.faq_heading {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.faq_item {
  border-bottom: 1px solid #e5e7eb;
}

.faq_item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq_question {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 16px 20px 0px;
  width: 100%;
  color: #000000;
  transition: color 0.3s ease;
  text-align: left;
  transition: color 0.3s ease;
}

.faq_icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq_answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  padding: 0px 16px 0 36px;
  opacity: 0;
}

.faq_item.open .faq_answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 16px 16px 36px;
}

.faq_item.open .faq_question {
  color: #65a30d;
}

.faq_item.open .faq_icon {
  content: url("/themes/loanalia/images/index_mm/plus_filled.svg");
}

/* BLOG */
.blog {
  padding: 32px 0px 36px 0px;
  margin-top: 56px;
  background-color: #fdf8f4;
}
.blog_heading {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}
.blog__cards_wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.blog__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background-color: #ffffff;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease;
}
.blog__card_heading {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.blog__card_preview {
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
  font-weight: 450;
  margin-top: 4px;
}
.blog__card_button {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #d97706;
  margin-top: 16px;
}

.blog__link {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* LEGAL TEXT */
.legal_text {
  padding: 32px 0px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  color: #4b5563;
}

/* FOOTER */
footer {
  padding: 24px 0px;
  background-color: #f3f4f6;
}

.footer_logo {
  margin: 0 auto;
}

.footer_links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer_link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9ca3af;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

.copyright {
  padding-top: 24px;
  font-size: 14px;
  text-align: center;
  color: #4b5563;
}

/* BLOG PAGE */
.heading_2xl {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}

.blog__cards_wrapper.is--single {
  margin: 32px 0px 64px 0px;
}

.blog__article_wrapper {
  margin-bottom: 40px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05),
    0px 1px 4px rgba(12, 12, 13, 0.1);
}

/* Tablet S */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  .firstscreen {
    padding-bottom: 120px;
  }
  .testimonials_item {
    width: calc(45vw - 24px);
  }
}

/* Tablet M */
@media (min-width: 640px) {
  .container {
    max-width: 600px;
  }
  .testimonials_item {
    width: calc(40vw - 24px);
  }
  .steps_button_wrapper {
    display: flex;
    justify-content: center;
  }
  .primary_button {
    width: fit-content;
    padding: 0px 80px;
  }
  .blog__cards_wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
  }
  .blog__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 0;

  }
  .blog__cards_wrapper.is--single .blog__card {
    flex: 1 1 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
  .tertiary_btn {
    width: fit-content;
  }
  .blog__article_wrapper {
    margin: 0px 0px 64px 0px;
    padding: 32px;
  }
}

/* Tablet L */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .firstscreen {
    padding-bottom: 168px;
  }
  .steps_items {
    flex-direction: row;
    gap: 16px;
  }
  .steps_item-single {
    flex: 1;
    flex-direction: column;
    padding: 20px 16px 16px 16px;
  }
  .steps_item_bottom {
    text-align: center;
  }
  .steps_item-heading {
    font-size: 18px;
  }
  .steps_item-counter {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
  }
  .steps_button_wrapper {
    margin-top: 32px;
  }
  .heading_2xl {
    font-size: 40px;
  }
}

/* Laptop */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
  .calculator_wrapper {
    min-width: 328px;
  }
  .first_screen_wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 64px 0px 24px 0px;
  }
  .firstcreen_photo {
    position: absolute;
    bottom: -20%;
    left: 5%;
    display: block;
    height: 360px;
    z-index: 0;
  }
  .firstscreen_headings {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-top: 0px;
  }
  .firstscreen_heading {
    font-size: 56px;
    line-height: 64px;
  }
  .firstscreen_subheading {
    font-size: 20px;
    max-width: 60%;
  }
  .steps_heading {
    font-size: 32px;
    line-height: 38px;
  }
  .steps_items {
    padding-top: 56px;
  }
  .steps {
    margin-top: -56px;
  }
  .reviews {
    padding: 40px 0px;
  }
  .testimonials {
    max-width: 960px;
    margin: auto auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow: visible;
    padding-top: 40px;
  }
  .testimonials_item {
    width: 100%;
  }
  .reqirements_wrapper {
    display: flex;
    align-items: center;
    gap: 56px;
  }
  .requirements_heading {
    font-size: 32px;
    line-height: 40px;
  }
  .requirements_content {
    margin-top: 0px;
    max-width: 50%;
  }
  .requirements_image {
    height: 320px;
  }
  .is--2nd {
    justify-content: flex-start;
  }
  .faq_heading {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 32px;
    margin-top: 40px;
  }
  .faq {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .faq_item {
    width: 70%;
  }
  .blog_heading {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 32px;
  }
}

/* Desktop */
@media (min-width: 1280px) {
  .container {
    max-width: 1024px;
  }
  .firstscreen {
    padding-bottom: 210px;
  }
  .steps {
    margin-top: -80px;
  }
  .firstcreen_photo {
    left: 5%;
    height: 420px;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1120px;
  }
  .firstscreen {
    padding-bottom: 80px;
    overflow: hidden;
  }
  .firstcreen_photo {
    height: 540px;
    bottom: -45%;
    left: 0%;
  }
  .steps {
    margin-top: 0px;
    padding-top: 56px;
  }
  .firstscreen::after {
    background-image: url("/themes/loanalia/images/index_mm/wave_desktop.svg");
  }
}

/* HOVER EFFECTS */
@media (hover: hover) and (pointer: fine) {
  .breadcrumbs__back:hover {
    color: #d97706;
  }
  .primary_button:hover {
    background-color: #f59e0b;
  }
  .tertiary_btn:hover {
    background-color: #d9d8d8;
  }
  .header_button:hover {
    background-color: #b45309;
  }
  .header_button-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  .header_button-icon.is--light:hover {
    background-color: rgba(217, 119, 6, 0.4);
  }
  .calculator_button:hover {
    background-color: #f59e0b;
  }
  .calculator_amount_select:hover {
    background-color: #fffbeb;
  }
  .calculator_term_select:hover {
    background-color: #fffbeb;
  }
  .faq_question:hover {
    color: #65a30d;
  }
  .blog__card:hover {
    box-shadow: 0px 4px 4px rgba(12, 12, 13, 0.03),
      0px 16px 32px rgba(12, 12, 13, 0.06);
  }
  .footer_link:hover {
    text-decoration-color: #d97706;
  }
}
