/* Learn with Lucas page styling, scoped to .lwl-rit */
.lwl-rit {
  --blue: #0FADF6;
  --blue-h: #0c95d4;
  --navy: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --off: #f8fafc;
  --line: #e2e8f0;
  --card-bdr: #bae6fd;
  --green-bg: #E6FEF0;
  --green-tx: #1A7A3C;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
  line-height: 1.65;
  font-size: 17px;
}

.lwl-rit .lwl-hero {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 20px 0 26px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .12);
}
.lwl-rit .lwl-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.lwl-rit h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 14px;
}

.lwl-rit h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.lwl-rit h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 32px 0 8px;
}

.lwl-rit p { margin: 0 0 14px; }

/* The answer straight under the title */
.lwl-rit .lwl-answer {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
  background: linear-gradient(135deg, #eff9fe, #dbf1fd);
  border: 1px solid var(--card-bdr);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.lwl-rit .lwl-updated {
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 8px;
}

/* Example sentences */
.lwl-rit ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.lwl-rit ul li {
  position: relative;
  padding: 9px 0 9px 24px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.lwl-rit ul li:last-child { border-bottom: none; }
.lwl-rit ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.lwl-rit a { color: var(--blue-h); }

/* The one call to action */
.lwl-rit .lwl-cta {
  background: linear-gradient(135deg, #eff9fe, #dbf1fd);
  border: 1px solid var(--card-bdr);
  border-radius: var(--r-md);
  padding: 18px 20px;
  font-size: 15px;
  color: #0b5f85;
}
.lwl-rit .lwl-cta a {
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
}
.lwl-rit .lwl-cta a:hover { background: var(--blue-h); }

/* Rank Math FAQ block */
.lwl-rit .rank-math-faq-item {
  background: var(--off);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.lwl-rit .rank-math-question {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  padding: 0;
  border: none;
}
.lwl-rit .rank-math-answer { font-size: 15px; color: var(--muted); }

@media (max-width: 640px) {
  .lwl-rit { font-size: 16px; padding-bottom: 40px; }
  .lwl-rit .lwl-hero img { aspect-ratio: 16 / 9; }
}

/* Lesson hub, [zet_hub] */
.zet-hub {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  margin: 28px 0 0;
}

.zet-hub .zet-hub-head h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
}
.zet-hub .zet-hub-head p { color: #475569; font-size: 15px; margin: 0 0 8px; }

.zet-hub .zet-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 28px;
  padding: 14px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.zet-hub .zet-hub-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #0FADF6;
  text-decoration: none;
}
.zet-hub .zet-hub-nav a:hover { color: #078fd0; text-decoration: underline; }

.zet-hub .zet-hub-section { scroll-margin-top: 24px; margin: 0 0 36px; }

.zet-hub .zet-hub-group {
  margin: 0 0 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.zet-hub .zet-hub-list { display: block; }

/* Flex instead of grid, because page builders like to override grid columns. */
.zet-hub .zet-hub-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
}
.zet-hub .zet-hub-item:last-child { border-bottom: 0; }

.zet-hub .zet-hub-item > a { flex: 0 0 156px; display: block; line-height: 0; }

.zet-hub .zet-hub-image {
  display: block;
  width: 156px;
  max-width: 156px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}
.zet-hub .zet-hub-image-empty { flex: 0 0 156px; border: 1px solid #e2e8f0; }

.zet-hub .zet-hub-body { flex: 1 1 auto; min-width: 0; }
.zet-hub .zet-hub-body h4 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.zet-hub .zet-hub-body h4 a { color: #0f172a; text-decoration: none; }
.zet-hub .zet-hub-body h4 a:hover { color: #078fd0; }
.zet-hub .zet-hub-body p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.zet-hub .zet-hub-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0FADF6;
  text-decoration: none;
}
.zet-hub .zet-hub-link:hover { color: #078fd0; text-decoration: underline; }

@media (max-width: 560px) {
  .zet-hub .zet-hub-item { flex-direction: column; gap: 12px; }
  .zet-hub .zet-hub-item > a,
  .zet-hub .zet-hub-image,
  .zet-hub .zet-hub-image-empty {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
  }
  .zet-hub .zet-hub-body h4 { font-size: 16px; }
}

/* Read next carousel */
.zet-car {
  max-width: 860px;
  margin: 48px auto 8px;
  padding: 26px 16px 0;
  border-top: 2px solid #e2e8f0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

.zet-car-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.zet-car-top h3 {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.zet-car-btns { display: flex; gap: 8px; }
.zet-car-btns button {
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border: 1px solid #bae6fd;
  background: #fff;
  color: #0FADF6;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.zet-car-btns button:hover { background: #eff9fe; }
.zet-car-btns button:disabled { opacity: .35; cursor: default; }

.zet-car-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.zet-car-track::-webkit-scrollbar { height: 0; }

/* Three cards fit the row, the rest waits to the right. */
.zet-car-card {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  background: #fff;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.zet-car-card:hover {
  border-color: #bae6fd;
  box-shadow: 0 6px 20px rgba(15, 173, 246, .12);
  transform: translateY(-2px);
}
.zet-car-card img,
.zet-car-empty {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 10px;
}
.zet-car-title {
  display: block;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 4px;
}
.zet-car-blurb { display: block; font-size: 13px; line-height: 1.5; color: #475569; }

@media (max-width: 860px) {
  .zet-car-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .zet-car-card { flex-basis: 78%; }
  .zet-car-card img, .zet-car-empty { height: 140px; }
}

/* Recommended card in the carousel */
.zet-car-card { position: relative; }
.zet-car-card--rec {
  border: 2px solid #0FADF6;
  box-shadow: 0 6px 22px rgba(15, 173, 246, .18);
  background: #f7fdff;
}
.zet-car-flag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 100px;
  background: #0FADF6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
