:root {
  --hp-red: #d0202f;
  --hp-dark: #1a1a1a;
  --hp-body: #4f4f4f;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--hp-body);
  background-color: #f7f5f3;
}

/* Hero */
.hp-hero {
  position: relative;
  background: #f2ece9 url('../images/homepage/hero-bg.webp') no-repeat center center / cover;
  padding: 70px 0 0;
  overflow: hidden;
}

.hp-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 12px;
}

.hp-hero__label img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hp-hero__heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  color: var(--hp-dark);
  margin-bottom: 22px;
}

.hp-hero__heading span {
  color: var(--hp-red);
  font-weight: 600;
}

.hp-hero__text {
  font-size: 16px;
  color: #333;
  max-width: 470px;
  margin-bottom: 30px;
  font-weight: 400;
  font-family: "Figtree", sans-serif;
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.hp-btn--primary {
  background: #c8102e;
  color: #ffffff;
}

.hp-btn--primary:hover {
  background: #a50d26;
  color: #ffffff;
}

.hp-btn--secondary {
  background: #ffffff;
  color: #1a1a1a;
}

.hp-btn--secondary:hover {
  background: #f1f1f1;
  color: #1a1a1a;
}

/* Rating */
.hp-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-rating__stars {
  display: flex;
  gap: 2px;
  width: 100%;
  margin-bottom: 2px;
}

.hp-rating__stars svg {
  width: 16px;
  height: 16px;
}

.hp-rating__score {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--hp-dark);
}

.hp-rating__caption {
  font-size: 12px;
  line-height: 1.4;
  color: #5a5a5a;
  font-family: "Figtree", sans-serif;
}

.hp-rating__avatars {
  height: 30px;
  width: auto;
  object-fit: contain;
}

/* Hero image */
.hp-hero__image {
  width: 100%;
  height: auto;
  display: block;
}

.hp-stats {
  padding-top: 90px;
}

/* Stats */

.hp-stat {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.hp-stat::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 62px;
  height: 3px;
  background: var(--hp-red);
}

.hp-stat__value {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 6px;
  font-family: "Figtree", sans-serif;
}

.hp-stat__label {
  font-size: 17px;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 0;
  font-family: "Figtree", sans-serif;
}

/* Services & Solutions */
.hp-services {
  padding: 70px 0;
}

.hp-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 6px;
}

.hp-section-label img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hp-section-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  color: #2b2b2b;
  margin-bottom: 0;
}

.hp-section-heading strong {
  font-weight: 600;
  color: #1a1a1a;
}

.hp-services__grid {
  margin-top: 44px;
}

.hp-service {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 28px 26px 30px;
  transition: background 0.25s ease;
}

.hp-service__icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f4f0ee;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  transition: background 0.25s ease;
}

.hp-service__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hp-service__icon img.is-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hp-service__title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.hp-service__text {
  font-size: 16px;
  color: #333;
  margin-bottom: 22px;
  transition: color 0.25s ease;
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  line-height: 23px;
}

.hp-service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--hp-red);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hp-service:hover {
  background: #cf1725;
}

.hp-service:hover .hp-service__icon {
  background: rgba(255, 255, 255, 0.12);
}

.hp-service:hover .hp-service__icon img.is-default {
  opacity: 0;
}

.hp-service:hover .hp-service__icon img.is-hover {
  opacity: 1;
}

.hp-service__icon img.is-default {
  transition: opacity 0.25s ease;
}

.hp-service:hover .hp-service__title,
.hp-service:hover .hp-service__text,
.hp-service:hover .hp-service__link {
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .hp-services {
    padding: 50px 0;
  }

  .hp-services__grid {
    margin-top: 30px;
  }
}

/* Industries We Serve */
.hp-industries {
  padding: 30px 0 70px;
  overflow: hidden;
}

.hp-industries__head {
  margin-bottom: 34px;
}

.hp-industries__text {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 22px;
  font-family: "Figtree", sans-serif;
}

.hp-industries__nav {
  display: flex;
  gap: 12px;
}

.hp-nav-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e7e2de;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.hp-nav-btn:hover {
  background: #d8d2cd;
}

.hp-nav-btn svg {
  width: 18px;
  height: 18px;
}

.hp-nav-btn.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
}

.hp-industries__slider {
  overflow: hidden;
}

.hp-industry {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 0 0;
  overflow: hidden;
  height: 100%;
}

.hp-industry__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 14px;
}

.hp-industry__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 0;
}

.hp-industry__mark {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.35;
  flex-shrink: 0;
}

.hp-industry__image {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 992px) {
  .hp-industries__nav {
    justify-content: flex-end;
  }

  .hp-industries__text {
    text-align: left;
  }
}

@media (max-width: 991.98px) {
  .hp-industries {
    padding: 20px 0 50px;
  }

  .hp-industries__head {
    margin-bottom: 26px;
  }

  .hp-industries__text {
    margin-top: 16px;
  }
}

@media (max-width: 575.98px) {
  .hp-industry__top {
    gap: 8px;
    padding: 0 12px 10px;
  }

  .hp-industry__title {
    font-size: 13px;
  }

  .hp-industry__mark {
    width: 16px;
    height: 16px;
  }
}

/* Technology That Works Inside The Mortgage Process */
.hp-tech {
  padding: 30px 0 70px;
}

.hp-tech__inner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 60px 45px 60px;
  background: #171313;
  background-image: radial-gradient(120% 94% at 50% 118%, rgba(190, 42, 34, 0.75) 0%, rgba(70, 20, 18, 0.35) 45%, rgba(23, 19, 19, 0) 75%);
}

.hp-tech__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.hp-tech__label img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hp-tech__heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  color: #f3eeec;
  margin-bottom: 0;
}

.hp-tech__heading strong {
  font-weight: 600;
  color: #ffffff;
}

.hp-tech__body {
  margin-top: 50px;
}

/* Diagram */
.hp-tech__diagram {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hp-tech__diagram-img {
  width: 100%;
  height: auto;
  display: block;
}

.hp-tech__pill {
  position: absolute;
  top: -18.5%;
  border: 1px solid #cf1725;
  padding: 10px 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
  border-radius: 50px;
}

.hp-tech__node {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1.35;
  color: #e7dedb;
  text-align: center;
  white-space: nowrap;
}

.hp-tech__node--cost {
  top: 68%;
  left: 7.4%;
}

.hp-tech__node--scalable {
  top: 68%;
  left: 93.6%;
}

.hp-tech__node--turnaround {
  top: 104%;
  left: 35%;
}

.hp-tech__node--accuracy {
  top: 104%;
  left: 65.7%;
}

/* Feature cards */
.hp-feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.hp-feature:last-child {
  margin-bottom: 0;
}

.hp-feature__icon {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  background: #C31E25;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-feature__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hp-feature__title {
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.hp-feature__text {
  font-size: 16px;
  color: #333;
  margin-bottom: 0;
  font-family: "Figtree", sans-serif;
}

@media (max-width: 1199.98px) {

  .hp-tech__node,
  .hp-tech__pill {
    font-size: 11px;
  }
}

@media (max-width: 991.98px) {
  .hp-tech {
    padding: 20px 0 50px;
  }

  .hp-tech__inner {
    padding: 40px 22px 45px;
    border-radius: 18px;
  }

  .hp-tech__body {
    margin-top: 80px;
  }

  .hp-tech__cards {
    margin-top: 66px;
  }

  .hp-tech__pill,
  .hp-tech__node {
    font-size: 12px;
  }

  .hp-tech__heading br {
    display: none;
  }

  .insights-section {
    background-color: #f7f6f2;
    padding-top: 0px !important;
  }
}

@media (max-width: 575.98px) {
  .hp-feature {
    flex-direction: column;
    gap: 14px;
  }

  .hp-tech__pill,
  .hp-tech__node {
    font-size: 10px;
  }
}

/* Why Mortgage Leaders Choose Flatworld */
.hp-why {
  padding: 30px 0 70px;
  text-align: center;
}

.hp-why__hub {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 46px auto 0;
  border-radius: 50%;
  background: #cf1725;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-why__hub::before {
  content: '';
  position: absolute;
  top: -9px;
  right: -9px;
  bottom: -9px;
  left: -9px;
  border: 1px dashed #c6b9b5;
  border-radius: 50%;
}

.hp-why__hub img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hp-why__rail {
  position: relative;
  height: 93px;
  margin-top: -42px;
}

.hp-why__elbow {
  position: absolute;
  bottom: 0;
  border-top: 1px dashed #b9aeaa;
}

.hp-why__elbow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-red);
}

.hp-why__elbow--l1,
.hp-why__elbow--l2 {
  border-left: 1px dashed #b9aeaa;
  border-top-left-radius: 12px;
}

.hp-why__elbow--r1,
.hp-why__elbow--r2 {
  border-right: 1px dashed #b9aeaa;
  border-top-right-radius: 12px;
}

.hp-why__elbow--l1::after,
.hp-why__elbow--l2::after {
  left: -4px;
}

.hp-why__elbow--r1::after,
.hp-why__elbow--r2::after {
  right: -4px;
}

.hp-why__elbow--l1 {
  top: 0;
  left: 10%;
  right: calc(50% + 52px);
}

.hp-why__elbow--l2 {
  top: 0px;
  left: 30%;
  right: calc(50% + 52px);
}

.hp-why__elbow--r1 {
  top: 0;
  left: calc(50% + 52px);
  right: 10%;
}

.hp-why__elbow--r2 {
  top: 0px;
  left: calc(50% + 52px);
  right: 30%;
}

.hp-why__elbow--c {
  top: 53px;
  left: 50%;
  border-top: 0;
  border-left: 1px dashed #b9aeaa;
}

.hp-why__elbow--c::after {
  left: -4px;
}

.hp-why-card {
  position: relative;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 70px 20px 30px;
}

.hp-why-card__icon {
  position: absolute;
  top: -31px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f6d5d4 100%);
  box-shadow: 0 0 0 7px rgba(246, 213, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-why-card__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hp-why-card__title {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.hp-why-card__text {
  font-size: 15px;
  color: #333;
  margin-bottom: 0;
  font-family: "Figtree", sans-serif;
}

.hp-why__cta {
  margin-top: 40px;
}

@media (min-width: 992px) {
  .hp-why__cards {
    margin-top: 34px;
  }
}

@media (max-width: 991.98px) {
  .hp-why {
    padding: 20px 0 50px;
  }

  .hp-why__hub {
    margin-top: 30px;
  }

  .hp-why__rail {
    display: none;
  }

  .hp-why-card__icon {
    box-shadow: none;
  }

  .hp-why__cards {
    margin-top: 30px;
  }

  .hp-why-card {
    padding: 26px 20px 28px;
  }

  .hp-why-card__icon {
    position: static;
    transform: none;
    margin: 0 auto 18px;
  }

  .hp-why__cta {
    margin-top: 10px;
  }

  .hp-hero__heading br {
    display: none;
  }
}

/* Client Testimonials */
.hp-testi {
  padding: 30px 0 70px;
  overflow: hidden;
}

.hp-testi__head {
  text-align: center;
  margin-bottom: 34px;
}

.hp-testi__slider {
  position: relative;
  overflow: visible;
}

.hp-testi__slider::before,
.hp-testi__slider::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  width: 50vw;
  z-index: 5;
  pointer-events: none;
}

.hp-testi__slider::before {
  right: 100%;
  background: linear-gradient(to left, rgba(247, 245, 243, 0) 0%, #f7f5f3 45%);
}

.hp-testi__slider::after {
  left: 100%;
  background: linear-gradient(to right, rgba(247, 245, 243, 0) 0%, #f7f5f3 45%);
}

.hp-testi__slider .swiper-slide {
  height: auto;
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.hp-testi__slider .swiper-slide-active {
  opacity: 1;
}

.hp-testi-card {
  display: flex;
  height: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}

.hp-testi-card__media {
  width: 48%;
  flex-shrink: 0;
}

.hp-testi-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.hp-testi-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 20px 30px;
}

.hp-testi-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.hp-testi-card__stars svg {
  width: 16px;
  height: 16px;
}

.hp-testi-card__title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.hp-testi-card__quote {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 26px;
  font-family: "Figtree", sans-serif;
}

.hp-testi-card__quote::before {
  content: '\201C';
  position: absolute;
  top: 2px;
  left: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 34px;
  line-height: 0.8;
  color: #c9c2be;
}

.hp-testi-card__author {
  margin-top: auto;
  padding-left: 14px;
  border-left: 2px solid var(--hp-red);
}

.hp-testi-card__name {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--hp-red);
  margin-bottom: 2px;
}

.hp-testi-card__role {
  font-size: 12px;
  color: #6a6a6a;
  margin-bottom: 0;
}

.hp-testi__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

.hp-testi__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--hp-red);
  text-decoration: none;
}

.hp-testi__nav {
  display: flex;
  gap: 12px;
}

@media (max-width: 991.98px) {
  .hp-testi {
    padding: 20px 0 50px;
  }

  .hp-testi__slider .swiper-slide {
    opacity: 1;
  }

  .hp-testi-card {
    flex-direction: column;
  }

  .hp-testi-card__media {
    width: 100%;
  }

  .hp-testi-card__media img {
    height: 280px;
  }

  .hp-testi-card__body {
    padding: 22px 10px 6px;
  }

  .hp-testi__foot {
    margin-top: 26px;
  }
}

@media (max-width: 575.98px) {
  .hp-testi__foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 992px) {
  .hp-hero {
    background: #f2ece9 url('/images/homepage/hero-image.webp') no-repeat center top / 100% auto;
    padding: 180px 0 70px;
    background-size: cover;
    align-items: center;
    display: flex;
    min-height: 100vh;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
  }

  .hp-hero__visual {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hp-hero {
    padding: 120px 0 0;
  }

  .hp-hero__visual {
    margin-top: 30px;
  }

  .hp-hero__text {
    max-width: 100%;
  }

  .hp-stats {
    margin-top: 30px;
    padding-bottom: 40px;
    padding-top: 0px;
  }

  .hp-stat {
    border-top-color: rgba(0, 0, 0, 0.12);
  }

  .hp-stat__value,
  .hp-stat__label {
    color: #fff;
  }

  .hp-stat__label {
    color: #fff;
  }
}

@media (max-width: 575.98px) {
  .hp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-btn {
    justify-content: center;
  }
}

/* Start Mortgage Operations Code CSS */
/* Section Background */
.insights-section {
  background-color: #f7f6f2;
  /* Off-white / light cream background */
}

.padd {
  padding: 10px 20px 0;
}

/* Subtitle / Category Label */
.section-subtitle {
  color: #515257;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Main Section Heading */
.section-title {
  color: #222222;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 400;
}

.section-title strong {
  font-weight: 600;
}

/* Top Right Button */
.btn-explore {
  background-color: #b82528;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  border: none;
  transition: background-color 0.2s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-explore:hover {
  background-color: #931d20;
  color: #ffffff;
}

/* Card Customizations */
.custom-card {
  border: none;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  /* height: 100%; */
}

.card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #727272;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: "Figtree", sans-serif;
}

.card-text {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  font-family: "Figtree", sans-serif;
}

/* Read Insight Link */
.read-insight-link {
  color: #b82528;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease-in-out;
}

.read-insight-link:hover {
  color: #83181a;
}

/* Card Image styling (at bottom) */
.card-img-bottom-custom {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* ENd Mortgage Operations Code CSS */

/* Vendor Risk CTA */
.vendor-cta {
  background: #211e1f url('/images/trust-and-security/cta-bg.webp') no-repeat center bottom / cover;
  padding: 20px 0 90px;
  text-align: center;
}

.vendor-cta__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #3f3f3f;
  margin-bottom: 12px;
}

.vendor-cta__label svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.vendor-cta__heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 2.75rem);
  line-height: 1.2;
  color: #2b2b2b;
  margin-bottom: 18px;
}

.vendor-cta__heading strong {
  font-weight: 600;
  color: #1a1a1a;
}

.vendor-cta__text {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  max-width: 620px;
  margin: 0 auto 32px;
  font-family: "Figtree", sans-serif;
}

.vendor-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.vendor-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.vendor-cta__btn--primary {
  background: #c8102e;
  color: #ffffff;
}

.vendor-cta__btn--primary:hover {
  background: #a50d26;
  color: #ffffff;
}

.vendor-cta__btn--secondary {
  background: #ffffff;
  color: #1a1a1a;
}

.vendor-cta__btn--secondary:hover {
  background: #f2f2f2;
  color: #1a1a1a;
}

@media (max-width: 991.98px) {
  .vendor-cta {
    padding: 45px 0 60px;
  }
}

@media (max-width: 575.98px) {
  .vendor-cta__actions {
    flex-direction: column;
  }

  .vendor-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Video Section */
.hp-video {
  padding: 30px 0 70px;
}

.hp-video__wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hp-video__thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hp-video__btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 26, 26, 0.92);
  color: #ffffff;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hp-video__wrap:hover .hp-video__btn {
  background: #c8102e;
  transform: scale(1.02);
}

.hp-video__play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-video__play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.hp-video__label {
  line-height: 1.3;
  max-width: 180px;
}

.hp-video__player {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.hp-video__wrap.is-playing {
  cursor: default;
}

.hp-video__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.95);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Podcast video popup */
.hp-podcast-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hp-podcast-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hp-podcast-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.hp-podcast-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.hp-podcast-modal.show .hp-podcast-modal__dialog {
  transform: scale(1);
}

.hp-podcast-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hp-podcast-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.95);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .hp-video {
    padding: 20px 0 40px;
  }

  .hp-video__wrap,
  .hp-video__player {
    border-radius: 16px;
  }

  .hp-video__btn {
    bottom: 12px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 6px 14px 6px 8px;
    font-size: 12px;
    border-radius: 999px;
    max-width: calc(100% - 24px);
    gap: 6px;
  }

  .hp-video__play {
    width: 30px;
    height: 30px;
  }

  .hp-video__play svg {
    width: 12px;
    height: 12px;
  }

  .hp-video__label {
    max-width: 120px;
  }
}