﻿/* ===== KIDS QUIZ SECTION ===== */
.kids-quiz-section {
  padding: var(--section-padding);
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Shapes */
.quiz-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.quiz-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.1;
}

.quiz-shape.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.quiz-shape.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  bottom: -50px;
  right: 10%;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

.quiz-shape.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--primary-color);
  top: 30%;
  right: -50px;
  animation: float 7s ease-in-out infinite;
  animation-delay: 2s;
}

/* Quiz Content */
.quiz-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Quiz Text */
.quiz-text {
  padding-right: 20px;
}

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--btn-primary-text);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.quiz-text h2 {
  font-size: 2.8rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.quiz-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}

/* Quiz Features */
.quiz-features {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
}

.quiz-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 25px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal), background-color 0.3s ease;
}

.quiz-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quiz-feature i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.quiz-feature span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

/* Quiz Button */
.quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: #ff5722;
  /* Prominent Orange */
  background: linear-gradient(45deg, #ff5722, #ff9800);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
  transition: var(--transition-normal), background-color 0.3s ease;
  text-decoration: none;
}

.quiz-btn:hover {
  background: var(--quiz-btn-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 152, 0, 0.5);
}

.quiz-btn i {
  font-size: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Quiz Buttons Container */
.quiz-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Quiz Image */
.quiz-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.quiz-image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Floating Badges */
.quiz-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  animation: float 4s ease-in-out infinite;
}

.quiz-floating-badge i {
  font-size: 1.2rem;
}

.quiz-floating-badge.badge-1 {
  top: 30px;
  left: -30px;
  animation-delay: 0s;
}

.quiz-floating-badge.badge-1 i {
  color: #ffc107;
}

.quiz-floating-badge.badge-2 {
  bottom: 50px;
  right: -30px;
  animation-delay: 1s;
}

.quiz-floating-badge.badge-2 i {
  color: var(--secondary-color);
}

/* ===== PROGRESS BAR STYLING ===== */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  border-radius: var(--radius-md);
  transition: width 0.3s ease;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== RESPONSIVE QUIZ ===== */
@media (max-width: 1200px) {
  .quiz-content {
    gap: 50px;
  }

  .quiz-text h2 {
    font-size: 2.4rem;
  }

  .quiz-image-wrapper img {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .quiz-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .quiz-text {
    padding-right: 0;
    order: 1;
  }

  .quiz-image {
    order: 0;
  }

  .quiz-features {
    justify-content: center;
  }

  .quiz-image-wrapper {
    max-width: 400px;
  }

  .quiz-image-wrapper img {
    height: 350px;
  }

  .quiz-floating-badge.badge-1 {
    left: 10px;
  }

  .quiz-floating-badge.badge-2 {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .quiz-text h2 {
    font-size: 2rem;
  }

  .quiz-text p {
    font-size: 1rem;
  }

  .quiz-features {
    flex-wrap: wrap;
    gap: 15px;
  }

  .quiz-feature {
    padding: 15px 20px;
  }

  .quiz-image-wrapper img {
    height: 300px;
  }

  .quiz-floating-badge {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .quiz-text h2 {
    font-size: 1.7rem;
  }

  .quiz-features {
    flex-direction: column;
    align-items: center;
  }

  .quiz-feature {
    width: 100%;
    max-width: 200px;
  }

  .quiz-btn {
    width: 100%;
    justify-content: center;
  }

  .quiz-floating-badge {
    display: none;
  }
}
/* High-Quality Card Styling */
.quiz-feature {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-width: 140px;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-feature:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Feature Icons with Glow */
.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.icon-game i { color: #FF9800; filter: drop-shadow(0 4px 6px rgba(255, 152, 0, 0.3)); }
.icon-trophy i { color: #FFC107; filter: drop-shadow(0 4px 6px rgba(255, 193, 7, 0.3)); }
.icon-book i { color: #4CAF50; filter: drop-shadow(0 4px 6px rgba(76, 175, 80, 0.3)); }

.quiz-feature span {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
}

/* Button Group Styling */
.quiz-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.btn-primary-quiz {
  background: linear-gradient(135deg, #ff6f00, #ff8f00);
  box-shadow: 0 8px 20px rgba(255, 111, 0, 0.4);
}

.btn-secondary-quiz {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  box-shadow: 0 8px 20px rgba(67, 160, 71, 0.4);
}

.quiz-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .quiz-actions {
    flex-direction: column;
    width: 100%;
  }
  .quiz-btn {
    width: 100%;
    justify-content: center;
  }
  .quiz-features {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .quiz-feature {
    min-width: 120px;
    padding: 20px;
  }
}

