/* =========================================================
   SKJEE Common Lesson / Course / Tool Page Styles
   Version: 1019
   Used for reusable page blocks across SKJEE
   ========================================================= */


/* =========================================================
   1. Common Page Wrapper and Main Title
   ========================================================= */

.lesson-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 20px;
}

.lesson-main-title {
  text-align: center;
  font-size: 42px;
  line-height: 1.15;
  margin: 30px auto 20px;
  color: #143044;
}


/* =========================================================
   2. Common Content Box
   ========================================================= */

.lesson-box {
  background: #ffffff;
  border: 3px solid #d9eeee;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 28px;
}

.lesson-box h2 {
  margin-bottom: 12px;
  color: #143044;
}

.lesson-box p {
  color: #5f7280;
  margin-bottom: 12px;
}


/* =========================================================
   3. Introduction Box
   ========================================================= */

.lesson-intro-box {
  border-color: #0b9a92;
  background: linear-gradient(135deg, #eefafa, #ffffff);
}


/* =========================================================
   4. Common List Design
   ========================================================= */

.lesson-list {
  padding-left: 22px;
  color: #5f7280;
}

.lesson-list li {
  margin-bottom: 8px;
}


/* =========================================================
   5. Related Lessons / Related Tools Grid
   ========================================================= */

.lesson-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lesson-related-card {
  border: 3px solid #d9eeee;
  border-radius: 18px;
  padding: 18px;
  font-weight: 800;
  text-align: center;
  background: #f8ffff;
  transition: .2s ease;
}

.lesson-related-card:hover {
  transform: translateY(-3px);
  border-color: #0b9a92;
  background: #eafffb;
}


/* =========================================================
   6. Trusted / Outbound Source Block
   ========================================================= */

.trusted-source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trusted-source-card {
  border: 3px solid #d9eeee;
  border-radius: 18px;
  padding: 18px;
  font-weight: 800;
  text-align: center;
  background: #f8ffff;
  transition: .2s ease;
}

.trusted-source-card:nth-child(1) {
  border-color: #0b9a92;
  background: #eefafa;
}

.trusted-source-card:nth-child(2) {
  border-color: #9b5de5;
  background: #f5efff;
}

.trusted-source-card:nth-child(3) {
  border-color: #ff9f43;
  background: #fff6e8;
}

.trusted-source-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


/* =========================================================
   7. Lesson / Page Hero Image Frame
   ========================================================= */

.lesson-image-frame {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px;
  border: 5px solid #f6c343;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.lesson-image-frame img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  display: block;
  border: 5px solid #22a6f2;
  border-radius: 20px;
  background: #ffffff;
}


/* =========================================================
   8. FAQ Block
   ========================================================= */

.faq-item {
  border: 2px solid #d9eeee;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #eefafa;
  border: 0;
  padding: 16px;
  text-align: left;
  font-weight: 800;
  color: #143044;
  cursor: pointer;
  font-size: 16px;
}

.faq-answer {
  display: none;
  padding: 16px;
  color: #5f7280;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  display: block;
}


/* =========================================================
   9. Bottom Page Navigation
   Used for Previous / Home / Next Lesson
   ========================================================= */

.skjee-page-nav {
  max-width: 900px;
  margin: 35px auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skjee-page-nav-btn {
  text-align: center;
  padding: 14px 12px;
  border-radius: 16px;
  font-weight: 800;
  border: 2px solid #d9eeee;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.skjee-page-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.skjee-prev {
  color: #6c5ce7;
  border-color: #6c5ce7;
}

.skjee-home {
  color: #0b9a92;
  border-color: #0b9a92;
}

.skjee-next {
  color: #34b86b;
  border-color: #34b86b;
}


/* =========================================================
   10. Tablet Responsive
   ========================================================= */

@media (max-width: 900px) {
  .lesson-related-grid,
  .trusted-source-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   11. Mobile Responsive
   ========================================================= */

@media (max-width: 700px) {
  .lesson-wrap {
    padding: 22px 14px;
  }

  .lesson-main-title {
    font-size: 32px;
  }

  .lesson-box {
    padding: 20px;
  }

  .lesson-image-frame img {
    max-height: 300px;
  }

  .skjee-page-nav {
    grid-template-columns: 1fr;
    margin: 25px 20px;
  }
}