/* ---------- anyBodyCanLearn_Section (replace existing block) ---------- */
.anyBodyCanLearn_Section {
  /* layout */
  flex: 0.5 1 220px;         /* keep your intended flex behavior */
  min-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;      /* stretch content width-wise, but height will grow naturally */
  text-align: center;
  /* border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; */
  box-sizing: border-box;

  /* IMPORTANT: allow natural height (remove max-height & overflow that caused inner scrolling) */
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;

   /*margin-top: 20px;*/
  gap: 8px;         /* space between stacked children (images, pdf container, headings) */
  padding: 0;

}



.anyBodyCanLearn_Section h1 {
  font-size: 1.8rem;
  color: #f8fafc;
  border-bottom: 3px solid #0ea5e9; /* custom underline */
  display: inline-block; /* keeps underline width to text */
  margin-top: 20px;
   margin-bottom: 20px;

}

/* ---------- PDF container & viewer: let PDF expand vertically ---------- */
/* .pdf-container {
  width: 100%;
  max-width: 900px;
    margin-top: 10px;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #e7ffce;
} */

/* allow the object to grow naturally, but set a sensible min-height if needed */
/* optional - ensures readable default on desktop */
/* .pdf-viewer {
  width: 100%;
  height: auto;         
  min-height: 800px;    
  border: none;
  border-radius: 8px;
  margin: 0;

} */


.pdf-container {
  width: 100%;
  max-width: 900px;
  margin-top: 10px;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #e7ffce;
}

.pdf-viewer {
  width: 100%;
  height: auto;
  min-height: 800px;
  border: none;
  border-radius: 8px;
  margin: 0;
}





/* ---------- Images: full width and natural height ---------- */
.AnyBodyCanLearnImage {
  width: 100%;
  height: auto;         /* preserve aspect ratio and let image expand page height */
  display: block;
  object-fit: contain;
}

/* ---------- Responsive: ensure the anyBodyCanLearn_Section becomes full width on small screens ---------- */
@media (max-width: 1024px) {
  .anyBodyCanLearn_Section {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 16px;
  }
}

/* optional tighter mobile padding */
@media (max-width: 420px) {
  .anyBodyCanLearn_Section {
    padding: 10px;
  }
  .pdf-viewer {
    min-height: 420px; /* lower min height for mobile, still allows full display */
  }
}

