/* Features Section - Modern Compact Design */
.key-features {
  padding: 60px 0;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.key-features .section-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding: 0 15px;
}

.key-features .section-title {
  font-size: 2.2rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.key-features .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  border-radius: 3px;
}

.key-features .section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 0 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #1e3a8a);
  opacity: 0;
  transition: opacity 0.3s ease;
} */

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 2.5em;
  height: 2.5em;
  /* background: linear-gradient(135deg, #f0f9ff, #e0f2fe); */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #1e3a8a;
  font-size: 2rem;
  transition: all 0.3s ease;
}

/* .feature-card:hover .feature-icon {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
} */

.feature-content h3 {
  color: #1e293b;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-content h3 {
  color: #1e3a8a;
}

.feature-content p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 991px) {
  .key-features {
    padding: 50px 0;
  }

  .key-features .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .key-features .section-title {
    font-size: 1.75rem;
  }

  .key-features .section-subtitle {
    font-size: 1rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(5) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(6) {
  animation-delay: 0.3s;
}
