/* ebooks page refresh. Scope every rule to this page body class. */

/* Let the cards sit on the grey page background, like the archive card grid */
body.page-id-5150.ast-separate-container .ast-article-single {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
body.page-id-5150 .site-content > .ast-container { max-width: 1180px; }
body.page-id-5150 .bst-eb { padding: 3.2em 0 4em; }

/* ---------- page header ---------- */
body.page-id-5150 .bst-eb-head { text-align: center; max-width: 760px; margin: 0 auto 2.6em; }
body.page-id-5150 .bst-eb-eyebrow {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bst-blue, #0a8fd0);
  margin: 0 0 .6em;
}
body.page-id-5150 .bst-eb-h1 {
  font-family: Montserrat, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--bst-ink, #1f2933);
  margin: 0 0 .45em;
}
body.page-id-5150 .bst-eb-intro { font-size: 18px; line-height: 1.6; color: var(--bst-text, #3d4852); margin: 0; }

/* ---------- card grid ---------- */
body.page-id-5150 .bst-eb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 28px;
}
body.page-id-5150 .bst-eb-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--bst-radius, 12px);
  box-shadow: var(--bst-shadow, 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06));
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  margin: 0;
}
body.page-id-5150 .bst-eb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 12px 30px rgba(16,24,40,.12);
}
body.page-id-5150 .bst-eb-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a2433; }
body.page-id-5150 .bst-eb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .3s ease;
}
body.page-id-5150 .bst-eb-card:hover .bst-eb-img { transform: scale(1.03); }
body.page-id-5150 .bst-eb-body { display: flex; flex-direction: column; flex: 1; padding: 1.5em 1.7em 1.7em; text-align: left; }
body.page-id-5150 .bst-eb-title {
  font-family: Montserrat, sans-serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 .5em;
  text-align: left;
}
body.page-id-5150 .bst-eb-title a { color: var(--bst-ink, #1f2933); text-decoration: none; }
body.page-id-5150 .bst-eb-title a:hover { color: var(--bst-blue, #0a8fd0); }
body.page-id-5150 .bst-eb-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bst-text, #3d4852);
  margin: 0 0 1.4em;
  text-align: left;
}
body.page-id-5150 .bst-eb-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  background: var(--bst-blue, #0a8fd0);
  color: #fff !important;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  padding: .85em 1.4em;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s ease;
}
body.page-id-5150 .bst-eb-btn:hover,
body.page-id-5150 .bst-eb-btn:focus { background: var(--bst-blue-dark, #076fa3); color: #fff !important; }

/* ---------- wide feature cards (collection, interview eBooks) ---------- */
body.page-id-5150 .bst-eb-feature-wrap { margin: 0 0 28px; }
body.page-id-5150 .bst-eb-feature { flex-direction: row; align-items: stretch; }
body.page-id-5150 .bst-eb-feature .bst-eb-media {
  flex: 0 0 50%;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  background: linear-gradient(135deg, #eef4f9, #dfeaf3);
}
body.page-id-5150 .bst-eb-feature .bst-eb-img { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
body.page-id-5150 .bst-eb-feature .bst-eb-body { justify-content: center; padding: 2em 2.4em; }
body.page-id-5150 .bst-eb-feature .bst-eb-title { font-size: 26px; }
body.page-id-5150 .bst-eb-feature .bst-eb-btn { margin-top: 0; }
body.page-id-5150 .bst-eb-ebook .bst-eb-media { background: #f5f8fb; }

/* section heading before the interview eBooks */
body.page-id-5150 #ebooksection { display: block; position: relative; top: -100px; visibility: hidden; }
body.page-id-5150 .bst-eb-section-head { margin: 3em 0 1.2em; padding-top: 2.4em; border-top: 1px solid var(--bst-line, #e6eaef); text-align: center; }
body.page-id-5150 .bst-eb-h2 {
  font-family: Montserrat, sans-serif;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--bst-ink, #1f2933);
  margin: 0;
}

/* ---------- smaller screens ---------- */
@media (max-width: 921px) {
  body.page-id-5150 .bst-eb { padding: 2em 0 3em; }
  body.page-id-5150 .bst-eb-h1 { font-size: 32px; }
  body.page-id-5150 .bst-eb-grid { gap: 20px; margin-bottom: 20px; }
  body.page-id-5150 .bst-eb-body { padding: 1.3em 1.3em 1.5em; }
  body.page-id-5150 .bst-eb-title { font-size: 20px; }
}
@media (max-width: 760px) {
  body.page-id-5150 .bst-eb-grid { grid-template-columns: 1fr; }
  body.page-id-5150 .bst-eb-feature { flex-direction: column; }
  body.page-id-5150 .bst-eb-feature .bst-eb-media { flex: none; }
  body.page-id-5150 .bst-eb-feature .bst-eb-body { padding: 1.4em 1.4em 1.6em; }
  body.page-id-5150 .bst-eb-feature .bst-eb-title { font-size: 22px; }
  body.page-id-5150 .bst-eb-h1 { font-size: 28px; }
  body.page-id-5150 .bst-eb-intro { font-size: 16.5px; }
  body.page-id-5150 .bst-eb-h2 { font-size: 24px; }
}

/* theme uppercases h2; keep the section heading in normal case.
   Feature images have white backgrounds, so give their panel white too. */
body.page-id-5150 .bst-eb-h2 { text-transform: none; letter-spacing: 0; }
body.page-id-5150 .bst-eb-feature .bst-eb-media { background: #fff; border-right: 1px solid var(--bst-line, #e6eaef); }
@media (max-width: 760px) {
  body.page-id-5150 .bst-eb-feature .bst-eb-media { border-right: 0; border-bottom: 1px solid var(--bst-line, #e6eaef); }
}
/* on smaller screens the header overlays the top of the content */
@media (max-width: 921px) {
  body.page-id-5150 .bst-eb { padding-top: 120px; }
}
