/* Grade Pages Specific CSS */

.grade-hero {
  padding: 60px 0;
  text-align: center;
  background-color: var(--secondary-bg);
  border-radius: 0 0 20px 20px;
  margin-bottom: 40px;
}

.grade-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--accent-color), var(--accent-color-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.grade-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--secondary-text);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.section-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--secondary-text);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.chapter-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.chapter-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--border-glow);
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--accent-color), var(--accent-color-2));
}

.chapter-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent-color-2);
  display: inline-block;
}

.chapter-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.chapter-card p {
  margin-bottom: 20px;
  color: var(--secondary-text);
  font-size: 0.95rem;
}

/* Animation for chapter cards */
.chapter-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chapter-card:nth-child(1) { animation-delay: 0.1s; }
.chapter-card:nth-child(2) { animation-delay: 0.2s; }
.chapter-card:nth-child(3) { animation-delay: 0.3s; }
.chapter-card:nth-child(4) { animation-delay: 0.4s; }
.chapter-card:nth-child(5) { animation-delay: 0.5s; }
.chapter-card:nth-child(6) { animation-delay: 0.6s; }
.chapter-card:nth-child(7) { animation-delay: 0.7s; }
.chapter-card:nth-child(8) { animation-delay: 0.8s; }
.chapter-card:nth-child(9) { animation-delay: 0.9s; }
.chapter-card:nth-child(10) { animation-delay: 1.0s; }
.chapter-card:nth-child(11) { animation-delay: 1.1s; }
.chapter-card:nth-child(12) { animation-delay: 1.2s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .grade-hero h1 {
    font-size: 2rem;
  }
  
  .grade-hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .chapters-grid {
    grid-template-columns: 1fr;
  }
}



/* Grade 5 Specific Background Color for Light Theme */
.theme-light body.grade-5 {
  background-color: #ADD8E6; /* Light Blue */
}

/* Grade 5 Specific Background Color for ColorSplash Theme */
.theme-colorsplash body.grade-5 {
  background-color: var(--primary-bg); /* Or var(--secondary-bg) if more appropriate for ColorSplash */
}
