.chant-books-section {
  background: linear-gradient(135deg, #b30000, #ff6600, #000);
  color: #fff;
  display: flex;
  justify-content: center; /* จัดแนวนอนให้อยู่กลาง */
  align-items: center; /* จัดแนวตั้งให้อยู่กลาง */
  /*min-height: 100vh;*/ /* ให้ section สูงเต็มหน้าจอ */
  text-align: center;
  padding: 20px;
}

.container {
  max-width: 1100px;
  width: 100%;
}

.section-title {
  font-size: 2.5rem; /* ขนาดใหญ่ขึ้น */
  font-weight: 800; /* หนาขึ้น */
  color: #fff700; /* สีเหลืองทองเด่น */
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* เพิ่มเงาให้อ่านง่าย */
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.chant-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.chant-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.chant-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
}

.chant-item i {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
  color: #ffe000;
}

.chant-item span {
  display: block;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
  .chant-item {
    padding: 20px 10px;
  }
  .chant-item i {
    font-size: 1.8rem;
  }
}

/*--------------LearnBooks*/
.learnbook {
  background: linear-gradient(
    135deg,
    #000000,
    #ff6600,
    #b30000
  ); /* สลับเฉดจากของเดิม */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  /*min-height: 100vh;*/
  text-align: center;
  padding: 20px;
}

.learnbook .container {
  max-width: 1100px;
  width: 100%;
}

.learnbook .section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffeb3b; /* เหลืองทองสดใส */
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.learnbook .section-subtitle {
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.95;
  margin-bottom: 45px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.learnbook-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
}

.learnbook-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 35px 20px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.learnbook-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
}

.learnbook-item i {
  font-size: 2.6rem;
  margin-bottom: 12px;
  display: block;
  color: #ffe600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.learnbook-item span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .learnbook .section-title {
    font-size: 1.8rem;
  }
  .learnbook-item {
    padding: 25px 15px;
  }
  .learnbook-item i {
    font-size: 2rem;
  }
}
