body {
    font-family: 'Quicksand', sans-serif !important;
}
.carousel-caption {
    position: absolute;
    right: 15%;
    bottom:  2%;
    left: 15%;
    z-index: 10;
    padding: 20px;
    text-align: center;
    border: var(--main-color);
}
.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--slogan-color);
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
}
@media (max-width: 576px) {
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
}
.numbers-section {
  background-color: var(--secondary-color-1);
  padding: 3rem 1rem; /* Reduced from p-5 (5rem) for mobile */
}

.numbers-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(145, 114, 178, 0.15);
  box-shadow: 0 8px 24px -4px rgba(145, 114, 178, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.numbers-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px -4px rgba(145, 114, 178, 0.25);
}

.numbers-card i {
  color: var(--main-color);
  font-size: 2.5rem; /* Controlled size */
}

.stat-label {
  font-family: 'Lalezar', cursive;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--main-color);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.stat-value {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--main-color);
  color: white;
  padding: 6px 15px;
  border-radius: 25px;
  display: inline-block;
  transition: transform 0.3s ease, background 0.3s ease;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.stat-value:hover {
  transform: scale(1.05);
  background: var(--primary-color);
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .numbers-section {
    padding: 2rem 0.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .numbers-card {
    padding: 1rem !important;
  }

  .numbers-card i {
    font-size: 2rem;
  }

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

  .stat-value {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

/* Override inline styles for original HTML */
@media all {
  .numbers-card {
    padding: 1.5rem !important; /* Override p-4 */
  }

  .numbers-card i {
    font-size: 2.5rem !important; /* Override fa-3x */
  }

  .stat-label {
    color: var(--main-color) !important;
  }

  .stat-value {
    background: var(--main-color) !important;
    color: white !important;
    padding: 6px 15px !important;
    border-radius: 25px !important;
  }
}

/* Updated mobile styles for both services and activities */
@media (max-width: 991px) {
  .carousel-item:nth-child(3) img {
    content: url("/static/Photos/Header/Home_mobile1.jpg");
  }
  .carousel-item:nth-child(2) img {
      content: url("/static/Photos/Header/Home_mobile2.jpg");
  }
  .carousel-caption {
    bottom: 10%;
    padding: 10px;
}
.carousel-caption h3 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}
  .services-container {
      display: none;
  }

  .mobile-toggle-btn{
      display: block !important;
      width: 80%;
      margin: 0 auto 20px !important;
  }

  .services-container.visible{
      display: block !important;
  }
}

/* Desktop styles */
@media (min-width: 992px) {
    .services-container {
        display: block !important;
    }

    .mobile-toggle-btn {
        display: none !important;
    }
}

.equal-height {
  height: 100%; 
}

.clamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100%;
}
