/* why Hero Section */
.why-hero {
  position: relative;
  padding: 120px 0;
  color: white;
  overflow: hidden;
}

.why-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      var(--light-gray) 0%,
      rgba(165, 195, 238, 0.9) 80%
    ),
    url("/images/why-hero-bg.jpg") center/cover no-repeat;
  z-index: -1;
}

.why-hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.why-hero-text {
  flex: 0 0 65%; /* Takes 65% of the width and doesn't grow/shrink */
  max-width: 65%;
  padding-right: 40px; /* Adds some spacing between text and image */
}

.why-hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--primary);
}

.why-hero-subtitle {
    font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--text);
  max-width: 100%; /* Adjusted to take full width of text container */
  font-weight: 500;
}

.why-hero-image {
  flex: 0 0 35%; /* Takes 35% of the width and doesn't grow/shrink */
  max-width: 35%;
  position: relative;
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: flex-end; /* Aligns image to the right */
}

.why-hero-image img {
  width: 70%; /* Image takes full width of its container */
  max-width: 70%; /* Prevents image from overflowing */
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* Reasons Section */
.why-dexill-reasons {
  padding: 80px 0;
  background-color: #f9f9fb;
  text-align: center;
}

.why-dexill-reasons .section-header {
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.why-dexill-reasons .section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.why-dexill-reasons p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
}

.reasons-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.reason-item {
  background: white;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
  width: 220px;
  transition: transform 0.3s ease;
  cursor: default;
}

.reason-item:hover {
  transform: translateY(-8px);
}

.reason-item i {
  font-size: 3rem;
  color: #5a7bd6;
  margin-bottom: 15px;
}

.reason-item h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.reason-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.4;
}

/* Testimonials Section */
.why-dexill-testimonials {
  background-color: #fff;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto 80px auto;
  text-align: center;
}

.why-dexill-testimonials .section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #333;
}

.testimonials-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.testimonial {
  max-width: 400px;
  font-style: italic;
  color: #444;
  background-color: #f5f7fb;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
}

.testimonial footer {
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .reasons-grid,
  .testimonials-grid {
    flex-direction: column;
    align-items: center;
  }

  .reason-item,
  .testimonial {
    width: 100%;
    max-width: 350px;
  }
}
