/* ============================================
   Edumeter Egypt - Main Stylesheet
   ============================================ */

/* === Font Families === */
body {
  font-family: "Cairo", sans-serif;
}

.lang-en body {
  font-family: "Nunito", sans-serif;
}

/* === Text Gradient Effect === */
.text-gradient {
  background: linear-gradient(135deg, #5f2ded 0%, #f7c32e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* === Card Hover Effects === */
.edu-card {
  transition: all 0.4s ease;
}

.edu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(95, 45, 237, 0.15);
}

/* === Partner Logos === */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* === Process Steps with Numbers === */
.process-step {
  position: relative;
  counter-increment: step-counter;
}

/* Number badge above the icon */
.process-step::before {
  content: counter(step-counter);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5F2DED 0%, #F7C32E 100%);
  color: white;
  font-weight: 900;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(95, 45, 237, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
}

/* Hover effect on number badge */
.process-step:hover::before {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(95, 45, 237, 0.5);
}

/* Reset counter on container */
#process .grid {
  counter-reset: step-counter;
}

/* === FAQ Accordion === */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  padding-top: 0;
}

.faq-answer.active {
  max-height: 200px;
  padding-top: 1rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.active {
  transform: rotate(45deg);
}

/* === Fade In Animation === */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Image Loading Skeleton === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === Responsive Media Queries === */
@media (max-width: 768px) {
  /* Ensure number badge is visible on mobile */
  .process-step::before {
    width: 32px;
    height: 32px;
    font-size: 14px;
    top: -12px;
  }
}
