/* ===================
   Global Styles
=================== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f3f8fc;
  color: #002f5c;
}

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================
   Hero Section
=================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  margin: 1rem 0 3rem 0;
  background: none;
  box-shadow: 0 10px 30px rgba(0, 47, 92, 0.15);
  animation: fadeInUp 1s ease-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/img/slide1.webp') center center/cover no-repeat;
  z-index: 1;
  height: 100%;
  filter: brightness(0.9) contrast(1.);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 4rem 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  max-width: 90%;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin-bottom: 1rem;
  animation: slideInFromTop 1.2s ease-out;
}

.hero-text p {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 2rem;
  animation: slideInFromBottom 1.2s ease-out 0.3s both;
}

.cta-button {
  background: #005bb5;
  color: #fff;
  font-size: 1.15rem;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,64,128,0.08);
  transition: all 0.3s ease;
  animation: slideInFromBottom 1.2s ease-out 0.6s both;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover {
  background: #003f7d;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,64,128,0.25);
}

.cta-button:hover::before {
  left: 100%;
}


/* ===================
   Benefits Section
=================== */
.benefits-section {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 47, 92, 0.08);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #002f5c;
  font-weight: 700;
}

.benefit-card {
  margin: 2rem auto;
  max-width: 400px;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 47, 92, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 47, 92, 0.1);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 47, 92, 0.15);
}

.benefit-card img {
  height: 60px;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.2rem;
  color: #002f5c;
  font-weight: 600;
}

.benefit-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Row container for benefit cards - desktop view */
.benefits-row-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.benefits-row-container .benefit-card {
  flex: 1;
  margin: 0; /* Override the auto margin */
  width: calc(33.33% - 14px); /* Account for gap */
}

/* Mobile adjustments for benefits row */
@media (max-width: 768px) {
  .benefits-row-container {
    flex-direction: column;
  }
  
  .benefits-row-container .benefit-card {
    width: 100%;
    margin: 1.5rem auto; /* Restore the original margin for mobile */
  }
}

/* ===================
   How It Works
=================== */
.how-it-works {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 3rem 2rem;
  gap: 2rem;
  margin-top: 3rem;
  border-radius: 10px;
}

.how-it-works-text {
  flex: 1 1 350px;
  max-width: 550px;
}


.how-it-works-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #002f5c;
}

.how-it-works-text > p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #333333;
  line-height: 1.6;
}


.how-it-works-steps {
  list-style-type: decimal;
  padding-left: 1.5rem;    
  margin-bottom: 1.5rem;
}

.how-it-works-steps li {
  margin-bottom: 1rem;        
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}


.how-it-works-steps li strong {
  color: #002f5c;
}


.platform-fee {
  font-size: 0.95rem;
  color: #004b91;
  margin-bottom: 1.5rem;
  font-style: italic;
}


.cta-outline {
  padding: 12px 24px;
  border: 2px solid #004b91;
  color: #004b91;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-outline:hover {
  background-color: #004b91;
  color: #ffffff;
}


.how-it-works-extra {
  flex: 1 1 300px;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.how-it-works-tagline {
  font-size: 1rem;
  color: #005b9f;
  font-style: italic;
  margin-bottom: 1rem;
}


.how-it-works-image img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===================
   Independent Estimate
=================== */
.independent-estimate {
  background-color: #f1f7fc;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.independent-estimate h2 {
  font-size: 1.6rem;
  color: #002f5c;
  margin-bottom: 1rem;
}

.independent-estimate p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.testimonials {
  background: #f3f8fc;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.testimonials .section-title {
  font-size: 28px;
  color: #002f5c;
  margin-bottom: 40px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  flex: 1 1 300px;
  max-width: 360px;
  background: #fff;
  border-left: 5px solid #0074d9;
  padding: 25px 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.testimonial-card p {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.testimonial-card strong {
  font-weight: 600;
  color: #004080;
  font-size: 15px;
}

.testimonials-carousel {
  background: #f3f8fc;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.testimonials-carousel .section-title {
  font-size: 28px;
  color: #002f5c;
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-card {
  flex: 0 0 100%;
  padding: 30px 20px;
  background: #ffffff;
  border-left: 5px solid #0074d9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: left;
}

.carousel-card p {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.carousel-card strong {
  font-weight: 600;
  color: #004080;
  font-size: 15px;
}




/* ===================
   Animations
=================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Enhanced hover effects */
.benefit-card {
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 47, 92, 0.03), transparent);
  transition: left 0.5s ease;
}

.benefit-card:hover::before {
  left: 100%;
}

/* Enhanced testimonial cards */
.testimonial-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 116, 217, 0.05), transparent);
  transition: left 0.8s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 116, 217, 0.15);
}

.testimonial-card:hover::before {
  left: 100%;
}

.carousel-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 116, 217, 0.05), transparent);
  transition: left 0.8s ease;
}

.carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 116, 217, 0.12);
}

.carousel-card:hover::before {
  left: 100%;
}


/* =================================
   Mobile‐Specific Spacing Fixes
    ================================= */
   @media (max-width: 768px) {
    .page-wrapper {
    max-width: auto;
    margin: 0 auto;
    padding:1rem;
  }
    .hero {
      min-height: 80vh;
      margin: 1rem 0 1rem 0;
      border-radius: 15px;
    }

    .hero-text {
      padding: 2.5rem 1.5rem;
      max-width: 95%;
    }

    .hero-text h1 {
      font-size: 2rem;
    }

    .hero-text p {
      font-size: 1.1rem;
    }

    .cta-button {
      font-size: 1rem;
      padding: 0.9rem 2rem;
    }
  
    .benefits-section {
      margin-top: 1.5rem;  
      padding: 1.5rem 1rem;   
    }

    .benefit-card {
      padding: 1.5rem;
      margin: 1.5rem auto;
    }

      .how-it-works-text {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
      }

      .how-it-works-text ol {
        padding-left: 0;
        list-style-position: inside;
      }

      .how-it-works-text .cta-outline {
        margin-top: 1.5rem;
      }
   
    .independent-estimate {
      margin-top: 1.5rem; 
      padding: 1.5rem 1rem;
    }

      .testimonials {
    padding: 40px 15px;
  }

  .testimonial-card {
    max-width: 100%;
  }

  .testimonials .section-title {
    font-size: 24px;
  }
  testimonials-carousel {
    padding: 40px 15px;
  }

  .carousel-card {
    padding: 25px 15px;
  }

  .testimonials-carousel .section-title {
    font-size: 24px;
  }
  }
