/* SKJEE common lesson, course and tool page styles — Version 1072 */

/* Page wrapper and main title */
.lesson-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 20px;
}

.lesson-main-title {
  margin: 30px auto 20px;
  color: #143044;
  font-size: 42px;
  line-height: 1.15;
  text-align: center;
}

/* Common content box */
.lesson-box {
  margin-bottom: 28px;
  padding: 26px;
  background: #ffffff;
  border: 3px solid #d9eeee;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.lesson-box h2 {
  margin-bottom: 12px;
  color: #143044;
}

.lesson-box p {
  margin-bottom: 12px;
  color: #5f7280;
}

/* Introduction box */
.lesson-intro-box {
  background: linear-gradient(135deg, #eefafa, #ffffff);
  border-color: #0b9a92;
}

/* Common list */
.lesson-list {
  padding-left: 22px;
  color: #5f7280;
}

.lesson-list li {
  margin-bottom: 8px;
}

/* Lesson at a glance */
.lesson-glance-box {
  background: linear-gradient(135deg, #f8ffff, #ffffff);
  border-color: #bfe7e4;
}

.lesson-glance-box > h2 {
  margin: 0 0 16px;
}

.lesson-glance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: stretch;
  gap: 22px;
  width: 100%;
}

.lesson-glance-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid #d9eeee;
  border-bottom: 1px solid #d9eeee;
}

.lesson-glance-row {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 4px;
  border-bottom: 1px solid #d9eeee;
}

.lesson-glance-row:last-child {
  border-bottom: 0;
}

.lesson-glance-label {
  min-width: 0;
  margin: 0;
  color: #087c76;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-glance-value {
  min-width: 0;
  margin: 0;
  color: #143044;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.lesson-glance-value a {
  color: #087c76;
  font-weight: 800;
  text-decoration: none;
}

.lesson-glance-value a:hover {
  color: #0b9a92;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lesson-glance-value a:focus {
  outline: none;
}

.lesson-glance-value a:focus-visible {
  outline: 3px solid rgba(11, 154, 146, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.lesson-glance-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #d9eeee;
  border-radius: 18px;
}

.lesson-glance-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

/* Static lesson examples */
.lesson-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.lesson-example-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 16px;
  background: #ffffff;
  border: 2px solid #d9eeee;
  border-radius: 18px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
}

.lesson-example-card:nth-child(3n + 1) {
  border-color: #ffb15c;
  background: #fffaf4;
}

.lesson-example-card:nth-child(3n + 2) {
  border-color: #a978e8;
  background: #faf7ff;
}

.lesson-example-card:nth-child(3n) {
  border-color: #4bc97b;
  background: #f5fff8;
}

.lesson-example-card strong {
  display: block;
  margin-bottom: 6px;
  color: #143044;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.lesson-example-card span {
  color: #5f7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* How-to comparison steps */
.lesson-steps {
  margin: 18px 0;
  padding-left: 24px;
  color: #5f7280;
}

.lesson-steps li {
  margin-bottom: 10px;
  padding: 12px 14px;
  background: #f8ffff;
  border-left: 4px solid #0b9a92;
  border-radius: 0 14px 14px 0;
  line-height: 1.6;
}

.lesson-steps li:last-child {
  margin-bottom: 0;
}

/* Lesson word bank */
.lesson-word-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.lesson-word-item {
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #f8ffff;
  border: 2px solid #d9eeee;
  border-radius: 16px;
}

.lesson-word-term {
  margin: 0 0 5px;
  color: #143044;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-word-meaning {
  margin: 0;
  color: #5f7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* Related lessons */
.lesson-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lesson-related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 100%;
  padding: 22px 16px;
  color: #143044;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #d9eeee;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-related-card:nth-child(1) {
  border-color: #ff9f43;
}

.lesson-related-card:nth-child(2) {
  border-color: #9b5de5;
}

.lesson-related-card:nth-child(3) {
  border-color: #2ecc71;
}

.lesson-related-card:hover {
  color: #143044;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.lesson-related-card:focus {
  outline: none;
}

.lesson-related-card:focus-visible {
  outline: 3px solid rgba(11, 154, 146, 0.3);
  outline-offset: 4px;
}

.lesson-related-icon {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.lesson-related-card h3 {
  margin: 0 0 8px;
  color: #143044;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-related-card p {
  margin: 0;
  color: #5f7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

/* Trusted outbound sources */
.trusted-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.trusted-source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 100%;
  padding: 22px 18px;
  color: #143044;
  background: #ffffff;
  border: 2px solid #d9eeee;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trusted-source-card:nth-child(1) {
  background: #eefafa;
  border-color: #0b9a92;
}

.trusted-source-card:nth-child(2) {
  background: #f5efff;
  border-color: #9b5de5;
}

.trusted-source-card:nth-child(3) {
  background: #fff6e8;
  border-color: #ff9f43;
}

.trusted-source-card:hover {
  color: #143044;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.trusted-source-card:focus {
  outline: none;
}

.trusted-source-card:focus-visible {
  outline: 3px solid rgba(11, 154, 146, 0.3);
  outline-offset: 4px;
}

.trusted-source-card h3,
.trusted-source-name {
  display: block;
  margin: 0 0 8px;
  color: #143044;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.trusted-source-card p,
.trusted-source-card .trusted-source-description {
  margin: 0;
  color: #5f7280;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* Centered lesson image */
.lesson-image-frame {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px;
  background: #ffffff;
  border: 5px solid #f6c343;
  border-radius: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.lesson-image-frame img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #ffffff;
  border: 5px solid #22a6f2;
  border-radius: 20px;
}

/* Split lesson hero */
.lesson-split-hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 28px;
}

.lesson-split-hero-content {
  min-width: 0;
}

.lesson-split-hero-content h2 {
  margin: 0 0 14px;
  color: #143044;
  font-size: 32px;
  line-height: 1.25;
}

.lesson-split-hero-content p {
  margin-bottom: 18px;
  color: #5f7280;
  font-size: 17px;
  line-height: 1.7;
}

.lesson-split-hero-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lesson-split-hero-image {
  padding: 8px;
  background: #ffffff;
  border: 5px solid #f6c343;
  border-radius: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.lesson-split-hero-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #ffffff;
  border: 5px solid #22a6f2;
  border-radius: 20px;
}

/* SKJEE branded divider */
.skjee-brand-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 34px;
  padding: 0;
  box-sizing: border-box;
}

.skjee-brand-divider-line {
  flex: 1 1 0;
  min-width: 0;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'%3E%3Cpath d='M0 8 C4 3 8 3 12 8 S20 13 24 8 S32 3 36 8 S44 13 48 8' fill='none' stroke='%230b9a92' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 48px 16px;
}

.skjee-brand-divider-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Black text pill */
.skjee-brand-divider-text {
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: #ffffff;
  background: #000000;
  border: 2px solid #000000;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* Teal circular SKJEE logo badge */
.skjee-brand-divider-logo-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  padding: 3px;
  overflow: hidden;
  background: #0b9a92;
  border: 2px solid #0b9a92;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(11, 154, 146, 0.2);
}

/* Full SKJEE logo visible inside circle */
.skjee-brand-divider-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Mobile */
@media (max-width: 700px) {
  .skjee-brand-divider {
    gap: 6px;
    margin: 20px 0 28px;
    padding: 0;
  }

  .skjee-brand-divider-line {
    height: 14px;
    background-size: 38px 14px;
  }

  .skjee-brand-divider-center {
    gap: 5px;
  }

  .skjee-brand-divider-text {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .skjee-brand-divider-logo-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    flex-basis: 40px;
    padding: 3px;
  }

  .skjee-brand-divider-logo {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }
}

/* FAQ */
.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid #d9eeee;
  border-radius: 16px;
}

.faq-question {
  width: 100%;
  padding: 16px;
  color: #143044;
  background: #eefafa;
  border: 0;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 16px;
  color: #5f7280;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Previous, home and next navigation */
.skjee-page-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 35px auto;
  padding: 18px;
}

.skjee-page-nav-btn {
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #d9eeee;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  font-weight: 800;
  text-align: center;
  transition: 0.2s ease;
}

.skjee-page-nav-btn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.skjee-prev {
  color: #6c5ce7;
  border-color: #6c5ce7;
}

.skjee-home {
  color: #0b9a92;
  border-color: #0b9a92;
}

.skjee-next {
  color: #34b86b;
  border-color: #34b86b;
}

/* Tablet */
@media (max-width: 900px) {
  .lesson-glance-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.82fr);
    gap: 16px;
  }

  .lesson-glance-row {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 10px;
    min-height: 40px;
    padding: 7px 3px;
  }

  .lesson-glance-label {
    font-size: 12px;
  }

  .lesson-glance-value {
    font-size: 14px;
  }

  .lesson-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-word-bank {
    gap: 12px;
  }

  .lesson-related-grid,
  .trusted-source-grid {
    gap: 14px;
  }

  .lesson-related-card,
  .trusted-source-card {
    padding: 18px 12px;
  }

  .lesson-related-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }

  .lesson-related-card h3,
  .trusted-source-card h3,
  .trusted-source-name {
    font-size: 16px;
  }

  .lesson-related-card p,
  .trusted-source-card p,
  .trusted-source-card .trusted-source-description {
    font-size: 13px;
  }

  .lesson-split-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lesson-split-hero-content h2 {
    font-size: 28px;
  }

  .lesson-split-hero-image {
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .lesson-wrap {
    padding: 22px 14px;
  }

  .lesson-main-title {
    font-size: 32px;
  }

  .lesson-box {
    padding: 20px;
  }

  .lesson-glance-box > h2 {
    margin-bottom: 12px;
  }

  .lesson-glance-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lesson-glance-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    min-height: 38px;
    padding: 7px 2px;
  }

  .lesson-glance-label {
    font-size: 12px;
  }

  .lesson-glance-value {
    font-size: 14px;
    line-height: 1.35;
  }

  .lesson-glance-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-radius: 16px;
  }

  .lesson-example-grid,
  .lesson-word-bank {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lesson-word-item {
    padding: 14px;
  }

  .lesson-example-card {
    padding: 16px 14px;
  }

  .lesson-steps {
    padding-left: 20px;
  }

  .lesson-steps li {
    padding: 10px 12px;
  }

  .lesson-related-grid,
  .trusted-source-grid {
    grid-template-columns: 1fr;
  }

  .lesson-related-card,
  .trusted-source-card {
    padding: 20px 16px;
  }

  .lesson-related-icon {
    width: 70px;
    height: 70px;
  }

  .lesson-related-card h3,
  .trusted-source-card h3,
  .trusted-source-name {
    font-size: 18px;
  }

  .lesson-related-card p,
  .trusted-source-card p,
  .trusted-source-card .trusted-source-description {
    font-size: 14px;
  }

  .lesson-image-frame img {
    max-height: 300px;
  }

  .lesson-split-hero {
    gap: 20px;
  }

  .lesson-split-hero-content h2 {
    font-size: 25px;
  }

  .lesson-split-hero-content p {
    font-size: 16px;
  }

  .lesson-split-hero-image img {
    max-height: 300px;
  }

  .skjee-page-nav {
    grid-template-columns: 1fr;
    margin: 25px 20px;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .lesson-glance-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    min-height: 36px;
    padding: 6px 2px;
  }

  .lesson-glance-label {
    font-size: 11.5px;
  }

  .lesson-glance-value {
    font-size: 13px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lesson-related-card,
  .trusted-source-card,
  .skjee-page-nav-btn {
    transition: none;
  }

  .lesson-related-card:hover,
  .trusted-source-card:hover,
  .skjee-page-nav-btn:hover {
    transform: none;
  }
}