* {
  font-family: "Poppins", sans-serif;
}

.service-card {
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://manpower.ae/wp-content/uploads/2024/12/purple-background3663-Copy.png");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.service-card-content {
  position: relative;
  z-index: 1;
}

.stats-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.core-area-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.core-area-card:hover .core-area-overlay {
  opacity: 0.9;
}

.core-area-card:hover .core-area-title {
  transform: translateY(-10px);
}

.core-area-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0.7;
  transition: all 0.3s ease;
}

.core-area-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  transition: all 0.3s ease;
}

.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

@media (max-width: 1023px) {
  .mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
      padding 0.3s ease;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .mobile-menu.active {
    max-height: 2000px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in, padding 0.3s ease;
  }

  /* Make sure the menu is visible when active, even if it also has the hidden class */
  .mobile-menu.active.hidden {
    display: flex !important;
  }

  /* Dropdown animation */
  .mobile-dropdown-menu,
  .mobile-subdropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
  }

  .mobile-dropdown-menu.show,
  .mobile-subdropdown-menu.show {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
  }

  /* Improved mobile menu styling */
  .mobile-dropdown-toggle,
  .mobile-subdropdown-toggle {
    position: relative;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
  }

  .mobile-dropdown-toggle:hover,
  .mobile-subdropdown-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .mobile-dropdown-toggle.active,
  .mobile-subdropdown-toggle.active {
    color: var(--primary-color);
  }

  /* Improved contact links */
  .mobile-menu .fas {
    width: 20px;
    text-align: center;
  }
}
