/* Stats Banner for CrossMax Template */
.stats-banner {
  background-color: var(--color-dark-secondary);
  position: relative;
  padding: 3.5rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add texture overlay */
.stats-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.stats-banner .container {
  position: relative;
  z-index: 1;
}

/* Clean, Modern Stats Layout */
.stats-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  gap: 1rem;
}

.stat-box {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1.75rem 1rem;
  position: relative;
  transition: all 0.3s ease;
  margin: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--color-primary);
  overflow: hidden;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at bottom right,
    rgba(255, 87, 34, 0.1),
    transparent 70%
  );
  z-index: -1;
}

.stat-box:hover {
  transform: translateY(-5px);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  color: var(--color-primary);
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  background-color: rgba(255, 87, 34, 0.15);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.stat-box:hover .stat-icon {
  background-color: rgba(255, 87, 34, 0.25);
  transform: scale(1.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.stat-number span {
  color: var(--color-primary);
  font-size: 2.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stats-wrapper {
    padding: 0 1rem;
  }

  .stat-box {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .stat-number span {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .stats-banner {
    padding: 2.5rem 0;
  }

  .stats-wrapper {
    flex-wrap: wrap;
  }

  .stat-box {
    flex: 1 0 50%;
    margin-bottom: 1.5rem;
  }

  .stat-box:nth-child(2)::after {
    display: none;
  }

  .stat-box:nth-child(1)::after,
  .stat-box:nth-child(3)::after {
    display: block;
  }

  .stat-box:nth-child(3)::after,
  .stat-box:nth-child(4)::after {
    top: auto;
    bottom: 100%;
    left: 20%;
    right: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 87, 34, 0.5),
      transparent
    );
  }
}

@media (max-width: 576px) {
  .stats-banner {
    padding: 2rem 0;
  }

  .stat-box {
    flex: 1 0 100%;
    padding: 1rem 0;
  }

  .stat-box::after {
    display: none !important;
  }

  .stat-icon {
    height: 40px;
    width: 40px;
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-number span {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stats-item {
  text-align: center;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border-bottom: 3px solid var(--color-primary);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stats-small .stats-item {
  padding: 1rem;
  border-radius: calc(var(--radius-md) - 2px);
}

.stats-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-primary)
  );
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.stats-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.stats-small .stats-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.3);
}

.stats-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background-color: rgba(255, 87, 34, 0.1);
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.stats-item:hover .stats-icon {
  /* Removed rotation effect as requested */
  background-color: rgba(255, 87, 34, 0.2);
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  line-height: 1;
}

.stats-text {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .stats-banner {
    padding: 4rem 0;
  }

  .stats-banner-title h2 {
    font-size: 2rem;
  }

  .stats-item {
    padding: 1.5rem;
  }

  .stats-number {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-banner {
    padding: 3rem 0;
  }

  .stats-banner-title h2 {
    font-size: 1.75rem;
  }
}

/* Simplified Stats Banner styling */
.stats-small {
  padding: 2rem 0;
}

.stats-small .stats-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.stats-small .stats-item {
  padding: 1rem;
}

.stats-small .stats-icon {
  height: 50px;
  width: 50px;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.stats-small .stats-number {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.stats-small .stats-text {
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Responsive adjustments for simplified stats */
@media (max-width: 768px) {
  .stats-small .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stats-small .stats-item {
    padding: 0.75rem;
  }

  .stats-small .stats-icon {
    height: 40px;
    width: 40px;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .stats-small .stats-number {
    font-size: 1.8rem;
  }

  .stats-small .stats-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .stats-small .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stats-small .stats-item {
    padding: 0.5rem;
  }

  .stats-small .stats-icon {
    height: 35px;
    width: 35px;
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .stats-small .stats-number {
    font-size: 1.5rem;
  }

  .stats-small .stats-text {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }
}

/* Extra small stats for even more compact display */
.stats-extra-small {
  padding: 1.5rem 0;
}

.stats-extra-small .stats-grid {
  max-width: 600px;
}

.stats-extra-small .stats-item {
  padding: 0.75rem;
}

.stats-extra-small .stats-icon {
  height: 45px;
  width: 45px;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.stats-extra-small .stats-number {
  font-size: 1.8rem;
  margin-bottom: 0.1rem;
}

.stats-extra-small .stats-text {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.stats-small .stats-item {
  padding: 0.75rem;
}

.stats-small .stats-icon {
  height: 50px;
  width: 50px;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stats-small .stats-number {
  font-size: 2rem;
}

.stats-small .stats-text {
  font-size: 0.7rem;
}
