/* === Refactored features.css for clean responsiveness === */

.features {
  padding: 60px 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}

.feature-intro {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to bottom, #ffffff 0%, #f9f9fb 100%);
}

.intro-container {
  max-width: 820px;
  margin: 0 auto;
}

.intro-heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.intro-subtext {
  font-size: 18px;
  color: #4a4a4a;
  line-height: 1.6;
}

.feature-row,
.feature-row-reverse {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.feature-row-reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.feature-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #333;
  display: block;
  margin: 0 auto;
}

.feature-text {
  flex: 1 1 50%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
  height: auto;
  max-height: 100%;
  box-sizing: border-box;
}

.feature-text h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.feature-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.feature-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-text ul li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  padding: 5px 0;
  text-align: left;
}

.feature-text ul li::before {
  content: url('/assets/check-icon-6.svg');
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  align-self: center;
  margin-top: -10px;
}

.metrics-section {
  background-color: #f8f9fb;
  padding: 40px 20px;
  text-align: center;
}

.metrics-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #222;
}

.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.metric-item {
  flex: 1 1 80px;
  min-width: 140px;
  max-width: 200px;
}

.metric-item h3 {
  font-size: 32px;
  color: #00707b;
  margin-bottom: 4px;
}

.metric-item p {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .feature-row,
  .feature-row-reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }

  .feature-text {
    text-align: left;
    gap: 12px;
    height: auto !important;
    max-height: none !important;
    flex: 0 1 auto;
  }

  .feature-image {
    min-width: 100%;
    padding: 0 16px;
    height: auto !important;
    max-height: 100% !important;
    align-self: flex-start;
    flex: 0 0 auto;
  }

  .feature-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .metrics-grid {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .metric-item {
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  .feature-text {
    text-align: left;
  }
}
