/* Start Services Page Code CSS */
.mortgage-banner {
 position: relative;
 padding: 5% 0;
 background-size: cover;
}
.services-intro-new p 
{
 font-size: 16px;
 line-height: 25px;
 margin-bottom: 10px;
}
.services-banner-content {
 z-index: 2;
}

.mortgage-banner h1 {
 font-size: 2.6rem;
}

.mortgage-banner p {
 font-size: 1.05rem;
}
.media-btn {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 18px;
 border-radius: 6px;
 background: #00457F;
 color: #fff;
 text-decoration: none;
 transition: all 0.3s ease;
}

.media-btn .icon {
 font-size: 1.2rem;
}

.media-btn:hover {
 background: #dc3545; /* Red hover */
 color: #fff;
}
@media (max-width: 768px) {
 .mortgage-banner {
  text-align: center;
 }
 .banner-content {
  padding-top: 60px;
  padding-bottom: 60px;
 }
 .mortgage-banner p {
  margin: auto;
 }
}
/* End Services Page Code CSS */

/* Start Services Card CSS */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 51, 102, 0.9),
    rgba(0, 51, 102, 0.6),
    rgba(0, 51, 102, 0.2)
  );
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
}
.service-card:hover::after {
  opacity: 1;
}
.service-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 31px;
    padding: 0px 25px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.45s ease;
}
.service-overlay h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.service-overlay p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: #ffffff;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.service-card:hover .service-overlay {
  transform: translateY(-25px); /* move heading + paragraph up */
}
.service-card:hover .service-overlay p {
  max-height: fit-content;
  opacity: 1;
  margin-top: 8px;
}
@media (max-width: 576px) {
  .service-card {
    min-height: auto;
    margin-bottom: 0px;
  }
  .service-card:hover .service-overlay {
    transform: translateY(-38px);
  }
  .service-overlay
  {
   bottom: 30px;
  }
  .service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0;
}
}
/* End Services Card CSs */

/*  Start Whychoose Code CSS */
.why-choose p {
    line-height: 25px;
    margin: 0 0 10px;
    font-size: 15px;
}
.why-choose h2 {
    font-weight: 700;
    line-height: 36px;
    margin: 0 0 15px 0;
    text-transform: capitalize;
}
.why-choose .d-flex img 
{
     width: 32px;
}
/*  End Why Choose Code CSS */

/* Start What Maked Code CSS */
.preferred-partners h3 {
    font-size: 2.2rem;
    color: #00457F !important;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #00457F;
}

.bg-light-blue {
  background: #eaf3ff;
}

.bg-light-purple {
  background: #f1ecff;
}

.bg-light-green {
  background: #e9f8ef;
}

.preferred-partners h3 {
  font-size: 2.2rem;
}

.preferred-partners .divider {
  position: absolute;
  right: 30px;
  height: 100%;
  width: 1px;
  top: 0;
  background: #ddd;
}

/* End What Makes Code CSS */

/* Start CTA Banner CSS Code */
.cta-banner {
  background-image:url("../../images/loss-mitigation/cta-bg.webp");
  border-radius: 12px;
  padding: 27px 24px;
  background-size: cover;
  color: #fff;
}

.cta-text h2 {
  line-height: 1.3;
  font-weight: 700;
}

.services-btn {
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 600;
  background-color: #d8192c;
  border: none;
  transition: all 0.3s ease;
}

.services-btn:hover {
  background-color: #b51525;
  transform: translateX(6px);
}

/* Mobile */
@media (max-width: 767px) {
  .cta-banner {
    text-align: center;
    padding: 30px 20px;
  }

  .cta-text h3 {
    font-size: 1.25rem;
  }
}
/* End CTA Banner CSS Code */


/* Start Video Testimonials Code CSS */
.testimonials-section h2 {
  font-size: 2rem;
  color: #333;
}

/* Video Wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 0; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* YouTube iframe */
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Play Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Play Button */
.play-btn {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.play-btn::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 24px;
  border-style: solid;
  border-width: 16px 0 16px 24px;
  border-color: transparent transparent transparent #d8192c;
}

/* Mobile */
@media (max-width: 767px) {
  .testimonials-section h2 {
    font-size: 1.6rem;
  }

  .play-btn {
    width: 64px;
    height: 64px;
  }

  .play-btn::before {
    left: 26px;
    top: 20px;
    border-width: 12px 0 12px 18px;
  }
}

/* End Video Testimonials Code CSS */

/* Start Success Stories Code CSS */
.success-stories {
  background: #f8f9fb;
}

.story-card {
  background: #ffffff;
  padding: 32px 28px 25px;
  border-radius: 14px;
  height: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.story-card img {
  margin-top: 15px;
  transition: transform 0.4s ease;
}

.story-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  margin: 5px 0 10px;
  transition: color 0.4s ease;
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0d3b66;
  display: inline-block;
  margin-bottom: 0px;
  transition: color 0.4s ease;
}

/* Hover & Active State */
.story-card:hover,
.story-card.active {
  background: #0a4a7a;
}

.story-card:hover h3,
.story-card.active h3,
.story-card:hover .badge-text,
.story-card.active .badge-text {
  color: #ffffff;
}

.story-card:hover img {
  transform: scale(1.02);
}

.story-card .btn {
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
}

/* End Success Stories Code CSS */

/* Start Services Page FAQS Code CSS */
.accordion {
    width: auto;
    margin: auto;
}
.services-page-faqs .accordion .card-header {
    cursor: pointer;
    background: #fff;
    border-radius: 0px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
.services-page-faqs .accordion .btn-link {
    width: 100%;
    text-decoration: none;
    color: #2c2929;
    font-weight: 600 !important;
    padding: 10px 0px;
    border-radius: 10px;
    text-transform: capitalize;
    box-shadow: none;
    font-size: 17px;
    text-align: left;
}
.services-page-faqs .accordion:hover .btn-link {
    width: 100%;
    text-decoration: none;
    color: #2c2929;
    padding: 10px 0px;
    font-weight: 600 !important;
    border-radius: 10px;
    text-transform: capitalize;
    box-shadow: none;
    font-size: 17px;
    text-align: left;
}
.services-page-faqs .card-body-acc {
    background: #ebedee;
    border-radius: 10px;
    padding: 3%;
    color: #171717;
}

/* End Services Page FAQS Code CSS */

/* Start Superchange Code CSS */
.cta-box {
  background: linear-gradient(180deg, #0b5c99 0%, #064b84 100%);
  border-radius: 18px;
  padding: 40px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Wave Layer */
.cta-box::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -80px;
  width: 140%;
  height: 200px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

/* Heading */
.cta-box h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Paragraph */
.cta-box p {
  max-width: 760px;
  margin: 0 auto 5px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
}

/* Button */
.cta-btn {
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
      .cta-box {
        padding: 35px 20px;
    }
  .cta-box h2 {
    font-size: 28px;
  }

  .cta-box p {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

/* End Superchange Code CSS */

/*  Start Responsive CSS Mobile and Tab */
/* Hide on mobile */
@media (max-width: 576px) {
.cta-banner .text-end 
{
  text-align: center !important;
}
.cta-btn {
    padding: 0px 0px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 16px;
}
.preferred-partners .media-box
{
  text-align: left;
}
.preferred-partners .icon-circle
{
  margin-right: 20px;
}
.preferred-partners
{
  padding-bottom: 30px !important;
}
.success-stories .mb-5 
{
  margin-bottom: 30px !important;
}
.preferred-partners .mb-5 
{
  margin-bottom: 30px !important;
}
.services-section h2 br 
{
  display: none;
}
}

/* Center content on mobile */
@media (min-width: 576px) and (max-width: 767px) {
  .center-mobile {
    text-align: center;
  }
  .cta-btn {
    padding: 0px 0px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 16px;
}
.scroll-box .text-end
{
  text-align: left !important;
}
.preferred-partners
{
  padding-bottom: 30px !important;
}
.services-section
{
 padding-bottom: 10px !important;
}
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0px;
        margin-bottom: 0px;
}
.services-intro-new
{
  padding-bottom: 10px !important;
}
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  .center-mobile {
    text-align: center;
  }
  .cta-btn {
    padding: 0px 0px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 16px;
}
.scroll-box .text-end
{
  text-align: left !important;
}
.preferred-partners
{
  padding-bottom: 30px !important;
}
.services-section
{
 padding-bottom: 10px !important;
}
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0px;
        margin-bottom: 0px;
}
.services-intro-new
{
  padding-bottom: 10px !important;
}
}
/*  End Responsive CSS Mobile and Tab */

/* Start Scroll Up CSS */
.scroll-box {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-in-out;
}

/* Active Animation */
.scroll-box.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .scroll-up {
    transform: translateY(35px);
    transition: 0.5s ease;
  }
}
/* End Scroll Up Code */