.loan-section {
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 24px;
}

.loan-section-main {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: #333;
}

@media (width <= 1440px) {
  .loan-section-main {
    padding: 0 32px;
  }
}

.loan-section-main h2,
.loan-section-main h3,
.loan-section-main h4,
.loan-section-main h5 {
  font-weight: 500;
  line-height: 32px;
  color: #242424;
  margin-bottom: 15px;
}

.loan-section-main h2 {
  font-size: 23px;
}

.loan-section-main h3 {
  font-size: 21px;
}

.loan-section-main h4 {
  font-size: 21px;
}

.loan-section-main h5 {
  font-size: 21px;
}

.loan-section-main p {
  font-size: 18px;
  margin-bottom: 16px;
}

@media screen and (min-width: 744px) {
  .loan-section-main p {
    font-size: 18px;
  }
}

.loan-section-main a {
  text-decoration: underline;
  color: #d91e18;
}

.loan-section-main .green-list li::marker {
  color: #14a83e;
}

.loan-section-main .red-list li::marker {
  color: #d91e18;
}

.loan-section-main ul {
  margin-bottom: 16px;
  list-style: outside;
  margin-left: 15px;
}

.loan-section-main ul li {
  margin-bottom: 8px;
}

.loan-section-main ol {
  margin-bottom: 16px;
  margin-left: 15px;
}

.loan-section-main ol li {
  margin-bottom: 8px;
}

.loan-section-main .button,
.loan-section-main .wp-block-button__link {
  border: 2px solid #d91e18;
  border-radius: 6px;
  background-color: #d91e18;
  color: #fff;
  transition: background-color ease-in-out 200ms;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  height: auto;
  margin: 10px 0;
  width: 100%;
  padding: 10px;
  white-space: normal;
}

.loan-section-main .button:hover, .loan-section-main .button:focus, .loan-section-main .button:active,
.loan-section-main .wp-block-button__link:hover,
.loan-section-main .wp-block-button__link:focus,
.loan-section-main .wp-block-button__link:active {
  background-color: #fff;
  color: #d91e18;
  text-decoration: none;
}

.loan-section-main .button:hover:not(:active), .loan-section-main .button:focus:not(:active), .loan-section-main .button:active:not(:active),
.loan-section-main .wp-block-button__link:hover:not(:active),
.loan-section-main .wp-block-button__link:focus:not(:active),
.loan-section-main .wp-block-button__link:active:not(:active) {
  box-shadow: none;
}

.loan-section-main .wp-block-image img {
  margin-bottom: 16px !important;
  margin-top: 16px !important;
}

.loan-section-main .wp-block-pullquote,
.loan-section-main .wp-block-quote,
.loan-section-main .wp-block-finelf-faq-block {
  position: relative;
  border: 1px solid #f1f5f8;
  border-radius: 3px;
  padding: 16px;
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  text-align: start;
}

.loan-section-main .wp-block-finelf-faq-block {
  font-size: 17px;
  line-height: 150%;
  color: #333;
}

@media screen and (min-width: 744px) {
  .loan-section-main .wp-block-finelf-faq-block {
    font-size: 17px;
  }
}

.loan-section-main .wp-block-finelf-faq-block .faq-question .faq-question-text {
  font-weight: 600;
}

.loan-section-main .wp-block-finelf-faq-block .faq-question .faq-question-text.dropped-faq {
  display: flex;
  margin-bottom: 0;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.loan-section-main .wp-block-finelf-faq-block .faq-question .faq-question-text.dropped-faq::after {
  content: url("./../../../public/images/article/arrow-down.svg");
  display: block;
  margin: 0 20px;
}

.loan-section-main .wp-block-finelf-faq-block .faq-question .faq-question-text.dropped-faq.active::after {
  content: url("./../../../public/images/article/arrow-up.svg");
}

.loan-section-main .wp-block-finelf-faq-block .faq-question::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 10px;
  background-image: url("./../../../public/images/article/faq.svg");
}

@media screen and (min-width: 1280px) {
  .loan-section-main .wp-block-finelf-faq-block .faq-question::before {
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
    padding: 10px;
  }
}

.loan-section-main .wp-block-finelf-faq-block .faq-question.dropped-faq {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

@media screen and (min-width: 1280px) {
  .loan-section-main .wp-block-finelf-faq-block .faq-question.dropped-faq {
    flex-direction: row;
  }
  .loan-section-main .wp-block-finelf-faq-block .faq-question.dropped-faq::before {
    margin: 3px 10px 0 0;
  }
}

.loan-section-main .wp-block-finelf-faq-block .faq-question.dropped-faq:hover {
  cursor: pointer;
}

.loan-section-main .wp-block-finelf-faq-block .faq-answer {
  font-weight: 400;
}

.loan-section-main .wp-block-finelf-faq-block .faq-answer.dropped-faq {
  display: none;
  margin-top: 16px;
}

.loan-section-main .wp-block-finelf-faq-block .faq-answer.dropped-faq.active {
  display: block;
}

.loan-section-main .wp-block-quote .wp-block-quote-text {
  display: block !important;
}

.loan-section-main .wp-block-quote .wp-block-quote-wrapper {
  min-height: 60px;
}

@media screen and (min-width: 1280px) {
  .loan-section-main .wp-block-quote .wp-block-quote-wrapper {
    min-height: 90px;
  }
}

.loan-section-main .wp-block-quote p {
  font-size: 15px;
  font-weight: 600;
  line-height: 150%;
  color: #333;
  text-align: center;
  margin-bottom: 0;
}

@media screen and (min-width: 744px) {
  .loan-section-main .wp-block-quote p {
    font-size: 17px;
  }
}

.loan-section-main .wp-block-pullquote::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 10px;
  background-image: url("./../../../public/images/article/pullquote.svg");
}

@media screen and (min-width: 1280px) {
  .loan-section-main .wp-block-pullquote::before {
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
  }
}

.loan-section-main .wp-block-pullquote p {
  font-size: 15px;
  font-weight: 600;
  line-height: 150%;
  color: #333;
  text-align: center;
}

@media screen and (min-width: 744px) {
  .loan-section-main .wp-block-pullquote p {
    font-size: 17px;
  }
}

.loan-section-main .wp-block-table {
  font-size: 14px;
  line-height: 150%;
  font-weight: 400;
  text-align: center;
  color: #333;
  margin-bottom: 16px !important;
}

@media screen and (min-width: 744px) {
  .loan-section-main .wp-block-table {
    font-size: 17px;
  }
}

.loan-section-main .wp-block-table thead {
  border-radius: 3px;
  font-weight: 600;
}

.loan-section-main .wp-block-table thead tr {
  background: rgba(241, 245, 248, 0.4980392157) !important;
}

.loan-section-main .wp-block-table td,
.loan-section-main .wp-block-table th {
  border: 0;
  padding: 16px;
}

.loan-section-main .wp-block-table tr:nth-child(even) {
  background: rgba(241, 245, 248, 0.4980392157);
  border-top: 1px solid rgba(195, 215, 225, 0.1490196078);
  border-bottom: 1px solid rgba(195, 215, 225, 0.1490196078);
}

.loan-section-main .wp-block-table tr:nth-child(odd) {
  background: #fff;
  border: 0;
}

.loan-section-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
}

.loan-section-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.loan-card {
  flex: 1 1 calc(33.333% - 20px);
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

@media (width <= 1440px) {
  .loan-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (width <= 767px) {
  .loan-card {
    flex: 100%;
  }
}

.loan-card-thumbnail-figure {
  height: 120px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loan-card-thumbnail-image {
  height: auto;
  max-height: 120px;
  width: auto;
  max-width: 150px;
}

.loan-card-content-header-title-link {
  font-size: 17px;
  line-height: 28px;
  color: #242424 !important;
  font-weight: 500;
  text-decoration: none !important;
}

.loan-card-content-header-excerpt {
  font-size: 16px !important;
  line-height: 28px;
  color: #333;
  font-weight: 400;
  padding: 16px 0;
  height: 180px;
  overflow: hidden;
  margin-bottom: 28px;
}

.loan-card-content-button {
  display: block;
}

.loan-card-content-button .details-view {
  background: transparent;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 15px;
}

.loan-card-content-button .favorite-button__text {
  display: none;
}

.loan-card-content-button .favorite-button {
  background: #fff;
  box-shadow: 8px 8px 24px 0 #e4e4e4;
  border-radius: 4px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-gap: 8px;
  gap: 8px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1000;
}

.loan-card-content-button .favorite-button__icon .favorite-icon--outline {
  display: block;
}

.loan-card-content-button .favorite-button__icon .favorite-icon--filled {
  display: none;
}

.loan-card-content-button .favorite-button.is-favorite .favorite-icon--outline {
  display: none;
}

.loan-card-content-button .favorite-button.is-favorite .favorite-icon--filled {
  display: block;
}

.loan-card-content-button .offer-button {
  color: #fff;
  text-decoration: none;
}

@media (width <= 991px) {
  .loan-card-content-button .offer-button {
    font-size: 14px;
  }
}

.loan-pagination {
  text-align: center;
  display: flex;
  font-weight: 500;
  font-size: 14px;
  justify-content: center;
  margin: 48px 0;
}

.loan-pagination .page-numbers {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 3px;
  line-height: 48px;
  text-align: center;
  margin: 0 4px;
}

.loan-pagination .page-numbers:hover {
  background-color: #f1f5f8;
}

.loan-pagination .page-numbers.current {
  background-color: #d91e18;
  color: #fff;
}

.loan-pagination .page-numbers.current:hover {
  opacity: 0.9;
}

.loan-pagination .pagination-icon.prev, .loan-pagination .pagination-icon.next {
  border: 1px solid #f1f5f8;
}

.loan-pagination .pagination-icon.prev {
  rotate: 180deg;
}

.loan-details-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 100vh;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  padding: 1.5rem;
  z-index: 10000;
}

.loan-details-dialog-content {
  max-width: 50%;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  z-index: 1000;
}

@media (width <= 991px) {
  .loan-details-dialog-content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
  }
}

.loan-details-dialog[hidden] {
  display: none;
}

.loan-details-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (width <= 991px) {
  .loan-details-dialog-close {
    top: 35px;
    right: 35px;
  }
}

.loan-details-dialog-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  text-align: center;
}

.loan-details-dialog-table {
  width: 100%;
  border-collapse: collapse;
}

.loan-details-dialog-table .thead {
  background-color: #f1f5f8;
}

.loan-details-dialog-table .parameter-col {
  border: 1px solid #e4e4e4;
  padding: 0.5rem;
  text-align: left;
}

@media (width <= 767px) {
  .loan-details-dialog-table .parameter-col {
    font-size: 14px;
  }
}

.loan-details-dialog-tooltip {
  display: inline-block;
  margin-left: 0.25rem;
  cursor: help;
  font-weight: bold;
  color: #333;
}

.loan-details-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

.loan-details-overlay[hidden] {
  display: none;
}