.stats--two .stats-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.stats--two .stats-text {
  flex: 1;
  max-width: 50%;
}

.stats--two .stats-desc p {
  margin-bottom: 8px;
  margin-top: 0;
}

.stats--two .stats-desc > p:last-child {
  margin-bottom: 0;
}

.stats--two .button-group {
  margin-top: 24px;
}

.stats--two .stats-two-button {
  border-radius: 4px;
  background: var(--button1-background, #685dff);
  padding: 14px 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -0.18px;
  text-transform: capitalize;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}

.stats--two .stats-two-button:hover {
  background: var(--button1-hover, rgb(72, 60, 250));
}
.stats--two .stat-value h1, .stats--two .stat-value h2, .stats--two .stat-value h3, .stats--two .stat-value h4, .stats--two .stat-value h5, .stats--two .stat-value h6 {
  margin-bottom: 0px;
  background-color: transparent!important;
}

.stats--two .stats-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.stats--two .stat-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border-color, #000);
  background:  #fff;
  min-height: 120px;
  border-radius: 8px;
  min-width: 0;
}

.stats--two .stat-icon {
  display: inline-block;
  line-height: 0;
  margin-bottom: 16px;
  color: inherit;
}

.stats--two .stat-icon path {
  fill: currentColor;
}

.stats--two .stat-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Apply icon color to SVG icons */
.stats--two .stat-icon svg path {
  fill: currentColor;
  color: currentColor;
}

.stats--two .stat-icon-placeholder {
  border-radius: 4px;
}

/* Loader styles */
.stats--two .loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.stats--two .stat-label p {
  margin: 0 0 0 0;
}

/* Device-specific styles for tablet and mobile */

/* Large Desktop (1200px+) */
@media screen and (min-width: 1200px) {
  .stats--two .stats-content {
    gap: 80px;
  }

  .stats--two .stats-title h1,
  .stats--two .stats-title h2,
  .stats--two .stats-title h3,
  .stats--two .stats-title h4,
  .stats--two .stats-title h5,
  .stats--two .stats-title h6 {
    margin-bottom: 20px;
  }

  .stats--two .stats-desc {
    margin-bottom: 20px;
  }

  .stats--two .stats-grid {
    gap: 24px;
  }

  .stats--two .stat-card {
    padding: 20px;
    min-height: 140px;
  }
}

/* Tablet (768px - 1199px) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .stats--two .stats-content {
    flex-direction: column;
    gap: 50px;
  }

  .stats--two .stats-text {
    max-width: 100%;
    text-align: center;
  }

  .stats--two .stats-title h1,
  .stats--two .stats-title h2,
  .stats--two .stats-title h3,
  .stats--two .stats-title h4,
  .stats--two .stats-title h5,
  .stats--two .stats-title h6 {
    margin-bottom: 20px;
    text-align: center;
  }

  .stats--two .stats-desc {
    text-align: center;
    margin-bottom: 20px;
  }

  .stats--two .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0 auto;
  }

  .stats--two .stat-card {
    padding: 18px;
    min-height: 130px;
  }

  .stats--two .stats-desc:last-child {
    margin-bottom: 0;
  }

  .stats--two .stats-desc + .stats-desc {
    margin-top: 0;
  }
}

/* Mobile (320px - 767px) */
@media screen and (max-width: 767px) {
  .stats--two .stats-content {
    flex-direction: column;
    gap: 40px;
  }

  .stats--two .stats-text {
    max-width: 100%;
    text-align: center;
  }

  .stats--two .stats-title h1,
  .stats--two .stats-title h2,
  .stats--two .stats-title h3,
  .stats--two .stats-title h4,
  .stats--two .stats-title h5,
  .stats--two .stats-title h6 {
    margin-bottom: 16px;
    text-align: center;
  }

  .stats--two .stats-desc {
    text-align: center;
    margin-bottom: 16px;
  }

  .stats--two .stats-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    max-width: 100%;
  }

  .stats--two .stat-card {
    min-height: 120px;
    padding: 16px;
  }

  .stats--two .stat-icon {
    margin-bottom: 12px;
  }

  .stats--two .stat-icon img {
    width: 20px;
    height: 20px;
  }

  .stats--two .stat-value {
    margin-bottom: 6px;
  }

  .stats--two .stat-value h1, .stats--two .stat-value h2, .stats--two .stat-value h3, .stats--two .stat-value h4, .stats--two .stat-value h5, .stats--two .stat-value h6 {
    margin-bottom: 0px;
    background-color: transparent!important;
  }

  .stats--two .stats-desc:last-child {
    margin-bottom: 0;
  }

  .stats--two .stats-desc + .stats-desc {
    margin-top: 0;
  }
}

/* Small Mobile (320px - 480px) */
@media screen and (max-width: 480px) {
  .stats--two {
    padding: 40px 0;
  }

  .stats--two .stats-content {
    gap: 30px;
  }

  .stats--two .stats-title {
    margin-bottom: 12px;
  }

  .stats--two .stats-desc {
    margin-bottom: 12px;
  }

  .stats--two .stat-card {
    min-height: 100px;
    padding: 14px;
  }
}
