/* =========================
   TRAINING TEMPLATE BASE
   Shared across all HTML lessons
========================= */

/* Body */
body {
    font-family: "Jost", Arial, sans-serif;
    font-weight: 400;
    color: #3e2a16;
    line-height: 1.6;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    max-width: 760px; /* constrains reading column so % -based image widths have a sane reference size */
}

/* Headings */
h1, h2, h3 {
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    color: #2b1a0f;
    margin-top: 24px;
    margin-bottom: 12px;
}

h4, h5, h6 {
    font-family: "Lora", Georgia, serif;
    font-weight: 600;
    color: #2b1a0f;
}

/* Paragraphs */
p {
    margin-bottom: 14px;
    font-size: 16px;
}

/* Strong text */
strong {
    font-weight: 600;
}

/* Lists */
li {
    margin-bottom: 8px;
}

/* Links */
a {
    color: #2f5d50;
    text-decoration: underline;
}

/* Improve readability blocks */
blockquote {
    border-left: 4px solid #c9b7a6;
    padding-left: 12px;
    margin-left: 0;
    color: #4a3a2c;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.case-card-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* image column */
.case-card-image {
  flex: 0 0 180px; /* fixed image width */
}

.case-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

/* text column */
.case-card-content {
  flex: 1;
}

/* responsive: stack on small screens */
@media (max-width: 768px) {
  .case-card-layout {
    flex-direction: column;
  }

  .case-card-image {
    width: 100%;
  }
}
.sp-setting-image {
  margin: 12px 0;
}

.sp-setting-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* img-note: single consolidated block (previously duplicated 3x) */
.img-note {
  background: var(--cream);
  border: 1px dashed var(--warm-mid);
  padding: 22px 26px;
  margin: 28px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap; /* allow image to drop to its own line on narrow screens */
}

.img-note img {
  max-width: 100%;
  max-height: 480px;      /* stops very tall images dominating the page */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  object-fit: contain;
  flex-shrink: 1;
  min-width: 0;  /* critical: without this, flex items refuse to shrink below content size */
}
/* Force all lesson images to behave */
img {
    max-width: 100% !important;
    height: auto !important;
}