
/* Global */
body {
  margin: 0;
    font-family: 'Segoe UI', sans-serif;
}


/* Header */
.coding-quizzes-header {
  background: linear-gradient(to bottom, #edd2f8, #bdd3ff);
  text-align: center;
  padding: 70px 20px;
}

.ai-feedback-badge {
  display: inline-block;
  font-size: 0.9rem;
  background: #f4f4f6;
  color: #7a7a7a;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgb(226, 224, 224);
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.ai-feedback-badge span {
  font-weight: bold;
  color: #937bca;
}

.coding-quizzes-header h1 {
  max-width: 1000px;
  font-size: 50px;
  line-height: 1.2;
  margin: auto;
}

.coding-quizzes-header p {
  font-size: 1.2rem;
  margin: 20px auto;
  max-width: 800px;
  line-height: 1.5;
  color: #333;
}

.coding-quizzes-highlight {
  background: linear-gradient(to right, #6366f1, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.coding-quizzes-hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.coding-quizzes-btn {
  padding: 0.75rem 4rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.coding-quizzes-btn.start-btn {
  background: linear-gradient(to right, #6366f1, #ec4899);
  color: white;
}

.coding-quizzes-btn.explore-btn {
  background-color: #ffffff;
  color: #191717;
}

.coding-quizzes-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ================= HERO HEADER ================= */
.coding-quizzes-header {
  position: relative;
  overflow: hidden;
  padding: 80px 20px 140px;
  text-align: center;
}

/* Keep hero content above waves */
.coding-quizzes-header > *:not(.waves) {
  position: relative;
  z-index: 2;
}

/* ================= WAVES ================= */
.waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  z-index: 1;
}

/* Parallax animation */
.parallax > use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

/* Keyframes */
@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .coding-quizzes-header {
    padding: 80px 15px 110px;
  }

  .waves {
    height: 60px;
    min-height: 50px;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .coding-quizzes-header {
    padding: 50px 16px;
  }

  .coding-quizzes-header h1 {
    text-align: left;
    font-size: 2rem;
    margin-left: 10px;
  }

  .coding-quizzes-header p {
    font-size: 1rem;
  }

  .coding-quizzes-hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 20px;
  }

  .coding-quizzes-btn {
    width: 100%;
    max-width: 320px;
  }

  .coding-quizzes-features-container {
    grid-template-columns: 1fr;
  }
}



    .quiz-section {
        max-width: 1300px;
        margin: auto;
        padding: 40px 20px;
        text-align: center;
      }

      .quiz-heading {
        font-size: 2rem;
        margin-bottom: 20px;
      }

      .quiz-filters {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        padding-top: 30px;
        margin-bottom: 30px;
      }

      .quiz-filters select,
      .quiz-filters button {
        padding: 10px 15px;
        font-size: 1rem;
        border-radius: 8px;
        border: 1px solid #ccc;
      }

      .quiz-filters button {
        background: linear-gradient(to right, #6366f1, #ec4899);
        color: white;
        cursor: pointer;
        border: none;
      }

      .quiz-card-container {
        display: grid;
        gap: 25px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
      }

      .quiz-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;

        text-align: left;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
          rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
        transition: all 0.3s ease;
      }

      .quiz-card:hover {
        transform: translateY(-5px);
      }

      .quiz-image {
        position: relative;
      }

      .quiz-image img {
        width: 100%;
        height: auto;
        display: block;
      }

      .badge {
        position: absolute;
        background: white;
        padding: 4px 8px;
        font-size: 0.8rem;
        border-radius: 5px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);

      }

      .badge.left {
        top: 10px;
        left: 10px;
      }

      .badge.right {
        top: 10px;
        right: 10px;
      }

      .quiz-content {
        padding: 15px;
      }

      .quiz-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
      }

      .quiz-content p {
        font-size: 0.9rem;
        margin: 5px 0;
        color: #444;
      }

      .play-btn {
        margin-top: 10px;
        background: linear-gradient(to right, #6366f1, #ec4899);
        color: white;
        border: none;
        padding: 10px 26px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
      }

      .play-btn:hover {
        background-color: #e43e3e;
      }