/* Bio-Lec PDF Guides — the page template.
   Self-contained: a plugin cannot assume the theme's variables exist. The
   defaults are the Bio-Lec blue; redefining these on .blg-page restyles the lot. */

.blg-page{
  --blg-brand:#329AE0;
  --blg-brand-deep:#0065B8;
  --blg-brand-deeper:#004F91;
  --blg-ink:#15202B;
  --blg-ink-2:#2A3744;
  --blg-stone:#5C6B79;
  --blg-line:#DBE5EE;
  --blg-wash:#E6F2FB;
  --blg-cream:#F4F8FC;
  --blg-maxw:1400px;
  --blg-cover:3/4;

  color:var(--blg-ink);
}

.blg-page *,.blg-page *::before,.blg-page *::after{box-sizing:border-box}
.blg-wrap{max-width:var(--blg-maxw);margin:0 auto;padding:0 24px}

/* ── Hero ───────────────────────────────────────────────────────────── */
.blg-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--blg-brand-deep) 0%,var(--blg-brand-deeper) 55%,#03396B 100%);color:#fff;padding:72px 0 76px;text-align:center}
.blg-hero::before{content:"";position:absolute;top:-200px;left:50%;transform:translateX(-50%);width:740px;height:500px;border-radius:50%;background:radial-gradient(closest-side,rgba(158,208,242,.26),transparent 70%);pointer-events:none}
.blg-hero .blg-wrap{position:relative;max-width:820px}
.blg-hero__title{margin:0 0 14px;color:#fff;font-size:clamp(2rem,4.4vw,3rem);line-height:1.15}
.blg-hero__intro{max-width:620px;margin:0 auto;font-size:1.06rem;line-height:1.7}
.blg-hero__intro p{margin:0 0 12px;color:rgba(255,255,255,.88)}
.blg-hero__intro p:last-child{margin-bottom:0}

/* ── List ───────────────────────────────────────────────────────────── */
.blg-list{background:var(--blg-cream);padding:56px 0 96px}
.blg-empty{text-align:center;color:var(--blg-stone);padding:24px 0}
.blg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:24px}

/* ── Card ───────────────────────────────────────────────────────────── */
.blg-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--blg-line);border-radius:18px;box-shadow:0 1px 2px rgba(0,101,184,.05),0 8px 24px rgba(0,101,184,.07);transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s cubic-bezier(.2,.8,.2,1)}
.blg-card:hover{transform:translateY(-3px);box-shadow:0 2px 6px rgba(0,101,184,.07),0 18px 38px rgba(0,101,184,.11)}

.blg-card__cover{position:relative;aspect-ratio:var(--blg-cover);background:var(--blg-wash);border-bottom:1px solid var(--blg-line);overflow:hidden}
.blg-card__cover img{width:100%;height:100%;object-fit:cover;display:block}
.blg-card__blank{display:block;width:100%;height:100%;background:repeating-linear-gradient(45deg,#E6F2FB,#E6F2FB 10px,#DDEBF7 10px,#DDEBF7 20px)}

.blg-card__body{display:flex;flex-direction:column;gap:9px;flex:1;padding:20px 22px 22px}
.blg-card__meta{margin:0;font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--blg-stone)}
.blg-card__title{margin:0;font-size:1.22rem;line-height:1.3;color:var(--blg-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.blg-card__desc{margin:0;font-size:.94rem;line-height:1.6;color:var(--blg-ink-2)}
/* margin-top:auto rather than flex:1 on the description: a card with no
   description had nothing to absorb the slack, so a title that wrapped to two
   lines pushed its price and button out of line with the row. */
.blg-card__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:auto;padding-top:15px;border-top:1px solid var(--blg-line)}
.blg-card__price{font-size:1.16rem;font-weight:700;color:var(--blg-ink)}
/* What they already hold, in place of a price they are not being asked for. */
.blg-card__held{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:var(--blg-wash);color:var(--blg-brand-deep);font-size:.84rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.blg-card__held--paid{background:#E7F5EC;color:#1B7A43}

.blg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;border:1.5px solid var(--blg-brand);background:var(--blg-brand);color:#fff;font:inherit;font-size:.93rem;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s}
.blg-btn:hover,.blg-btn:focus{background:var(--blg-brand-deep);border-color:var(--blg-brand-deep);color:#fff;text-decoration:none}
/* Keyboard users need to see where they are; the theme removes outlines. */
.blg-page :focus-visible{outline:3px solid var(--blg-brand);outline-offset:3px;border-radius:4px}

@media (max-width:600px){
  .blg-hero{padding:52px 0 56px}
  .blg-grid{grid-template-columns:1fr}
  .blg-card__foot{flex-direction:column;align-items:stretch}
  .blg-btn{width:100%}
}

@media (prefers-reduced-motion:reduce){
  .blg-card,.blg-why__item{transition:none}
  .blg-card:hover,.blg-why__item:hover{transform:none}
  .blg-why__item:hover::before{opacity:1}
}

/* ── The email gate ─────────────────────────────────────────────────── */
.blg-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(21,32,43,.5)}
.blg-modal[hidden]{display:none}
.blg-modal__sheet{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 48px);overflow:auto;padding:32px;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.blg-modal__close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:0;border-radius:999px;background:transparent;color:#5C6B79;font-size:24px;line-height:1;cursor:pointer}
.blg-modal__close:hover{background:#F4F8FC}
.blg-modal__title{margin:0 0 8px;font-size:1.45rem;line-height:1.25;color:#15202B}
.blg-modal__lede{margin:0 0 20px;font-size:.97rem;line-height:1.6;color:#2A3744}
.blg-modal__field{display:block;margin-bottom:14px}
.blg-modal__field span{display:block;margin-bottom:5px;font-size:.87rem;font-weight:600;color:#2A3744}
.blg-modal__field input{width:100%;min-height:46px;padding:10px 14px;font:inherit;font-size:1rem;color:#15202B;background:#fff;border:1px solid #C4D3E0;border-radius:8px}
.blg-modal__field input:focus{outline:none;border-color:#329AE0;box-shadow:0 0 0 3px rgba(50,154,224,.18)}
.blg-modal__error{margin:0 0 14px;font-size:.9rem;color:#B3261E}
.blg-modal__error[hidden]{display:none}
.blg-modal__small{margin:12px 0 0;text-align:center;font-size:.82rem;color:#5C6B79}
.blg-btn--wide{width:100%;min-height:50px}

/* ── Shared section furniture ───────────────────────────────────────── */
.blg-section{max-width:640px;margin:0 auto 36px;text-align:center}
.blg-section__title{margin:0 0 10px;font-size:clamp(1.5rem,2.8vw,2.1rem);line-height:1.2;color:var(--blg-ink)}
.blg-section__lede{margin:0;font-size:1.02rem;line-height:1.65;color:var(--blg-ink-2)}

.blg-hero__eyebrow{margin:0 0 12px;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--blg-brand-leaf,#9ED0F2)}

/* ── How it works ───────────────────────────────────────────────────── */
.blg-steps{background:#fff;padding:64px 0 60px}
.blg-steps .blg-section__title{margin-bottom:34px;text-align:center}
.blg-steps__list{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:0;padding:0;counter-reset:none}
.blg-step{position:relative;padding:0 8px;text-align:center}
.blg-step__num{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:14px;border-radius:999px;background:var(--blg-wash);color:var(--blg-brand-deep);font-size:1.1rem;font-weight:700}
.blg-step__title{margin:0 0 7px;font-size:1.1rem;line-height:1.3;color:var(--blg-ink)}
.blg-step__text{margin:0;font-size:.95rem;line-height:1.6;color:var(--blg-ink-2)}

/* Connecting line between the steps, on wide screens only. */
@media (min-width:781px){
  .blg-step:not(:last-child)::after{content:"";position:absolute;top:22px;left:calc(50% + 34px);right:calc(-50% + 34px);height:2px;background:var(--blg-line)}
}

/* ── Card extras ────────────────────────────────────────────────────── */
.blg-card__inside{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.blg-card__inside li{position:relative;padding-left:20px;font-size:.88rem;line-height:1.5;color:var(--blg-ink-2)}
.blg-card__inside li::before{content:"";position:absolute;left:3px;top:.52em;width:7px;height:7px;border-radius:999px;background:var(--blg-brand)}

/* ── Why these guides ───────────────────────────────────────────────── */
/* Tinted section, white cards. The previous way round left three pale boxes
   floating on white with almost nothing separating them from the page. */
.blg-why{position:relative;overflow:hidden;background:var(--blg-cream);padding:76px 0 84px}

/* A soft wash behind the cards so the band reads as its own place on the page. */
.blg-why::before{content:"";position:absolute;top:-160px;left:50%;transform:translateX(-50%);width:900px;height:420px;border-radius:50%;background:radial-gradient(closest-side,rgba(50,154,224,.10),transparent 72%);pointer-events:none}
.blg-why .blg-wrap{position:relative}

.blg-why__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.blg-why__item{position:relative;display:flex;flex-direction:column;padding:34px 30px 32px;background:#fff;border:1px solid var(--blg-line);border-radius:20px;box-shadow:0 1px 2px rgba(0,101,184,.04),0 10px 28px rgba(0,101,184,.06);transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s cubic-bezier(.2,.8,.2,1),border-color .2s}
.blg-why__item:hover{transform:translateY(-4px);box-shadow:0 2px 6px rgba(0,101,184,.07),0 22px 44px rgba(0,101,184,.12);border-color:var(--blg-brand)}

/* A short brand rule along the top edge, revealed on hover. */
.blg-why__item::before{content:"";position:absolute;top:-1px;left:30px;width:44px;height:3px;border-radius:0 0 3px 3px;background:var(--blg-brand);opacity:0;transition:opacity .2s,width .2s}
.blg-why__item:hover::before{opacity:1;width:72px}

.blg-why__icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:20px;border-radius:16px;background:linear-gradient(135deg,var(--blg-brand) 0%,var(--blg-brand-deep) 100%);color:#fff;box-shadow:0 6px 16px rgba(50,154,224,.34)}
.blg-why__title{margin:0 0 9px;font-size:1.16rem;line-height:1.3;color:var(--blg-ink)}
.blg-why__text{margin:0;font-size:.96rem;line-height:1.65;color:var(--blg-ink-2)}

/* ── Closing band ───────────────────────────────────────────────────── */
.blg-cta{background:linear-gradient(135deg,var(--blg-brand-deep) 0%,var(--blg-brand-deeper) 100%);color:#fff;padding:52px 0}
.blg-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.blg-cta__title{margin:0 0 6px;font-size:clamp(1.35rem,2.4vw,1.8rem);line-height:1.25;color:#fff}
.blg-cta__text{margin:0;max-width:52ch;font-size:1rem;line-height:1.6;color:rgba(255,255,255,.88)}
.blg-btn--light{background:#fff;border-color:#fff;color:var(--blg-brand-deep);padding:0 26px;min-height:50px}
.blg-btn--light:hover,.blg-btn--light:focus{background:var(--blg-wash);border-color:var(--blg-wash);color:var(--blg-brand-deep)}

@media (max-width:780px){
  .blg-steps__list,.blg-why__grid{grid-template-columns:1fr}
  .blg-steps,.blg-why{padding:48px 0}
  .blg-cta__inner{flex-direction:column;align-items:flex-start;text-align:left}
  .blg-cta .blg-btn--light{width:100%}
}
