/* ==========================================================================
   AOM — Education page styles
   ========================================================================== */

/* ---------- Hero ---------- */
.main-wrapper > .edu-hero{margin:0;border-radius:0;--section-inset:0px}
.edu-hero{padding:4.5rem 0 3rem}
.edu-hero .container{display:flex;flex-direction:column;align-items:center;text-align:center}
.edu-hero-title{font-size:clamp(2.2rem,4.4vw,3.4rem);margin-top:.7rem;max-width:18ch}
.edu-hero-sub{margin-top:1rem;font-size:1.08rem;color:var(--grey-700);max-width:50ch}

/* ---------- Tabs ---------- */
.edu-library{padding:2.5rem 0 5rem}
.edu-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2.2rem}
@media (max-width:640px){
  /* one swipeable row that bleeds to the screen edge, not three ragged lines */
  .edu-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--gutter)) 1.6rem;padding:0 var(--gutter);-webkit-overflow-scrolling:touch}
  .edu-tabs::-webkit-scrollbar{display:none}
  .edu-tab{flex:none}
  .edu-cover-eyebrow{white-space:nowrap;max-width:none}
}
.edu-tab{
  font-family:var(--font-mono);font-weight:400;
  padding:.6rem 1.3rem;
  border:1.5px solid var(--grey-200);
  border-radius:var(--radius-pill);
  font-size:.9rem;
  font-weight:400;
  transition:background .25s var(--ease),border-color .25s var(--ease),color .25s var(--ease);
}
.edu-tab:hover{border-color:var(--grey-400);color:var(--ink)}
.edu-tab.is-active{background:var(--ink);border-color:var(--ink);color:var(--white)}

/* ---------- Webinars ----------
   One featured session in an outlined card — cover at the left, copy and
   registration at the right — then the library as three outlined cards:
   cover, label, title, meta, "Watch now". Same outline system as the
   rows below (grey-400 resting, ink on hover); nothing moves on hover,
   only the outline and the arrow chip fill in. */
.edu-webinars{display:flex;flex-direction:column;gap:1.5rem}
.edu-featured{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:2.5rem;
  align-items:center;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  padding:1.25rem;
}
.edu-featured .edu-cover{border-radius:calc(var(--radius-card) - .6rem)}
.edu-featured-body{padding:1rem 1.5rem 1rem 0}
.edu-featured-title{font-size:clamp(1.5rem,2.4vw,2.15rem);letter-spacing:-.03em;line-height:1.12;margin-top:1.1rem}
.edu-featured-text{margin-top:1rem;color:var(--grey-700);font-size:.98rem;max-width:46ch}
.edu-featured-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem 1.4rem;
  margin-top:1.3rem;
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.04em;
  color:var(--grey-700);
}
.edu-featured .btn{margin-top:1.7rem}
.edu-webinar-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.5rem;
}
.edu-webinar-card{
  display:flex;
  flex-direction:column;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  overflow:hidden;
  color:var(--ink);
  transition:border-color .2s var(--ease);
}
.edu-webinar-card:hover{border-color:var(--ink)}
.edu-webinar-card .edu-cover{border-bottom:1px solid var(--grey-400)}
.edu-webinar-body{display:flex;flex-direction:column;flex:1;padding:1.3rem 1.3rem 1.4rem}
.edu-webinar-label{
  font-family:var(--font-mono);
  font-size:.7rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--purple);
}
.edu-webinar-title{font-size:1.08rem;font-weight:550;line-height:1.3;margin-top:.6rem}
.edu-webinar-meta{font-family:var(--font-mono);font-size:.72rem;color:var(--grey-400);margin-top:.6rem}
.edu-webinar-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
  padding-top:1.4rem;
  font-size:.92rem;
  font-weight:500;
}
.edu-webinar-arrow{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:30px;
  height:30px;
  border-radius:50%;
  border:1px solid var(--grey-400);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.8rem;
  color:var(--grey-400);
  transition:color .3s var(--ease),border-color .3s var(--ease);
}
/* Same sweep as the masonry's arrow chips: a purple fill scales in from
   the left on card hover, and back out to the left on leave. */
.edu-webinar-arrow::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--purple);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .45s var(--ease);
}
.edu-webinar-card:hover .edu-webinar-arrow{border-color:var(--purple);color:var(--white)}
.edu-webinar-card:hover .edu-webinar-arrow::before{transform:scaleX(1)}
.edu-webinar-card:active{transform:scale(.995);transition:transform .1s ease-out}

/* Cover art, set in code: a 16:10 field on the brand palette with a mono
   eyebrow, the AOM mark and the session title large, the key phrase in
   the accent. Sized in container units so it scales with its slot. Four
   themes rotate so a row never repeats a field. */
.edu-cover{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  aspect-ratio:16/10;
  container-type:inline-size;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:6cqw;
  font-family:var(--font-sans);
}
.edu-cover::before{content:"";position:absolute;z-index:-1;pointer-events:none}
.edu-cover-eyebrow{
  font-family:var(--font-mono);
  font-size:max(.62rem,2.9cqw);
  letter-spacing:.1em;
  text-transform:uppercase;
  opacity:.85;
  max-width:70%;
}
.edu-cover-mark{position:absolute;top:6cqw;right:6cqw;width:12cqw;height:auto}
.edu-cover-title{
  display:block;
  font-size:8.4cqw;
  font-weight:500;
  letter-spacing:-.03em;
  line-height:1.02;
  max-width:88%;
  text-wrap:balance;
}
.edu-cover-title em{font-style:normal;color:var(--cover-accent)}
.edu-cover--ink{background:var(--ink);color:var(--white);--cover-accent:var(--purple-2)}
.edu-cover--ink::before{
  right:-18%;
  bottom:-45%;
  width:85%;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(91,7,231,.85) 0%,rgba(91,7,231,.3) 40%,transparent 68%);
  filter:blur(6cqw);
}
.edu-cover--ink .edu-cover-mark{filter:invert(1)}
.edu-cover--purple{background:var(--purple);color:var(--white);--cover-accent:var(--purple-200)}
.edu-cover--purple::before{
  inset:0;
  background:repeating-radial-gradient(circle at 92% 12%,transparent 0 5cqw,rgba(255,255,255,.16) 5cqw calc(5cqw + 1px));
  -webkit-mask-image:linear-gradient(to bottom left,#000 35%,transparent 80%);
  mask-image:linear-gradient(to bottom left,#000 35%,transparent 80%);
}
.edu-cover--purple .edu-cover-mark{filter:invert(1)}
.edu-cover--paper{background:var(--grey-200);color:var(--ink);--cover-accent:var(--purple)}
.edu-cover--paper::before{
  inset:0;
  background:repeating-linear-gradient(135deg,transparent 0 3.6cqw,rgba(91,7,231,.22) 3.6cqw calc(3.6cqw + 1px));
  -webkit-mask-image:linear-gradient(to left,#000 20%,transparent 65%);
  mask-image:linear-gradient(to left,#000 20%,transparent 65%);
}
.edu-cover--lilac{background:var(--purple-100);color:var(--purple);--cover-accent:var(--ink)}
.edu-cover--lilac::before{
  inset:0;
  background-image:radial-gradient(rgba(91,7,231,.32) 1px,transparent 1.6px);
  background-size:3.2cqw 3.2cqw;
  -webkit-mask-image:linear-gradient(to bottom,#000 10%,transparent 78%);
  mask-image:linear-gradient(to bottom,#000 10%,transparent 78%);
}
@media (max-width:900px){
  .edu-featured{grid-template-columns:1fr;gap:1.5rem;padding:1rem}
  .edu-featured-body{padding:.4rem .4rem .6rem}
  .edu-webinar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
}
@media (max-width:600px){
  .edu-webinar-grid{grid-template-columns:1fr}
}

/* ---------- Blog ----------
   Same featured card as the webinars, then the posts as two columns of
   cover-and-body rows: a smaller cover at the left, the body at the right,
   so the tab reads as a journal page rather than a second webinar grid. */
.edu-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.edu-post{
  display:grid;
  grid-template-columns:38% 1fr;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  overflow:hidden;
  color:var(--ink);
  transition:border-color .2s var(--ease);
}
.edu-post:hover{border-color:var(--ink)}
.edu-post .edu-cover{aspect-ratio:auto;height:100%;min-height:150px;border-right:1px solid var(--grey-400)}
.edu-post-body{display:flex;flex-direction:column;padding:1.2rem 1.3rem 1.3rem;min-width:0}
.edu-post-title{font-size:1.05rem;font-weight:550;line-height:1.3;margin-top:.55rem}
.edu-post .edu-webinar-link{padding-top:1.1rem}
.edu-post:hover .edu-webinar-arrow{border-color:var(--purple);color:var(--white)}
.edu-post:hover .edu-webinar-arrow::before{transform:scaleX(1)}
.edu-post:active{transform:scale(.995);transition:transform .1s ease-out}
/* Small cover: eyebrow and title scale up so they stay legible in a slot */
.edu-cover--sm{padding:7cqw}
.edu-cover--sm .edu-cover-eyebrow{font-size:max(.62rem,4cqw);max-width:62%}
.edu-cover--sm .edu-cover-mark{top:7cqw;right:7cqw;width:16cqw}
.edu-cover--sm .edu-cover-title{font-size:10.5cqw;max-width:100%}

/* ---------- Injection Guides ----------
   Intro strip (copy + the help line, because a patient reading a guide
   may need a person) over a two-by-two of task cards: glyph, title, what
   it covers, format chips and length. */
.edu-guides{display:flex;flex-direction:column;gap:1.5rem}
.edu-guides-intro{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:2rem;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  padding:2rem 2.2rem 2.2rem;
}
.edu-guides-copy .edu-featured-title{margin-top:1rem}
.edu-guides-help{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.5rem;
  padding-left:2rem;
  border-left:1px solid var(--grey-300);
}
.edu-guides-help-text{font-size:1.1rem;font-weight:500;letter-spacing:-.01em}
.edu-guides-help-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem}
.edu-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}
.edu-guide{
  position:relative;
  display:flex;
  gap:1.3rem;
  align-items:flex-start;
  padding:1.6rem 3.6rem 1.6rem 1.6rem;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  color:var(--ink);
  transition:border-color .2s var(--ease);
}
.edu-guide:hover{border-color:var(--ink)}
.edu-guide > .edu-webinar-arrow{position:absolute;top:1.3rem;right:1.3rem}
.edu-guide:hover > .edu-webinar-arrow{border-color:var(--purple);color:var(--white)}
.edu-guide:hover > .edu-webinar-arrow::before{transform:scaleX(1)}
.edu-guide:active{transform:scale(.995);transition:transform .1s ease-out}
.edu-guide-icon{
  flex:none;
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--purple-100);
  color:var(--purple);
  display:flex;
  align-items:center;
  justify-content:center;
}
.edu-guide-icon svg{width:26px;height:26px}
.edu-guide-body{display:flex;flex-direction:column;min-width:0;flex:1}
.edu-guide-title{font-size:1.08rem;font-weight:550;line-height:1.3}
.edu-guide-text{margin-top:.5rem;font-size:.92rem;color:var(--grey-700)}
.edu-guide-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.1rem;flex-wrap:wrap}
.edu-guide-chips{display:flex;gap:.4rem}
.edu-guide-chip{
  font-family:var(--font-mono);
  font-size:.62rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink);
  border:1px solid var(--grey-400);
  border-radius:var(--radius-pill);
  padding:.28rem .6rem;
}
.edu-guide-foot .edu-webinar-meta{margin:0}

/* ---------- News & Press ----------
   Nothing to list yet, so say so well: a panel with the media contact and,
   beside it, the milestones the pharmacy already holds — key in mono,
   one hairline per row. */
.edu-news{display:grid;grid-template-columns:.9fr 1.1fr;gap:1.5rem;align-items:stretch}
.edu-news-panel{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  padding:2rem 2.2rem 2.2rem;
}
.edu-news-panel .edu-featured-title{margin-top:1rem}
.edu-news-panel .btn{margin-top:1.6rem}
.edu-milestones{
  list-style:none;
  margin:0;
  padding:.4rem 2.2rem;
  border:1px solid var(--grey-400);
  border-radius:var(--radius-card);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.edu-milestone{
  display:grid;
  grid-template-columns:7.5rem 1fr;
  gap:1.5rem;
  align-items:baseline;
  padding:1.05rem 0;
  border-top:1px solid var(--grey-300);
}
.edu-milestone:first-child{border-top:0}
.edu-milestone-key{font-family:var(--font-mono);font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--purple)}
.edu-milestone-text{font-size:.98rem}

@media (max-width:900px){
  .edu-post-grid,.edu-guide-grid{grid-template-columns:1fr;gap:1rem}
  .edu-guides-intro{grid-template-columns:1fr;gap:1.5rem;padding:1.5rem}
  .edu-guides-help{padding-left:0;padding-top:1.5rem;border-left:0;border-top:1px solid var(--grey-300)}
  .edu-news{grid-template-columns:1fr;gap:1rem}
  .edu-news-panel,.edu-milestones{padding:1.5rem}
}
@media (max-width:560px){
  .edu-post{grid-template-columns:1fr}
  .edu-post .edu-cover{aspect-ratio:16/10;height:auto;border-right:0;border-bottom:1px solid var(--grey-400)}
  .edu-cover--sm{padding:6cqw}
  .edu-cover--sm .edu-cover-eyebrow{font-size:max(.62rem,2.9cqw)}
  .edu-cover--sm .edu-cover-mark{top:6cqw;right:6cqw;width:12cqw}
  .edu-cover--sm .edu-cover-title{font-size:8.4cqw;max-width:88%}
  .edu-guide{padding:1.3rem 3.2rem 1.3rem 1.3rem;gap:1rem}
  .edu-milestone{grid-template-columns:1fr;gap:.3rem}
}

/* ---------- FAQ ---------- */
.edu-faq{background:var(--paper);padding:6rem 0}
.edu-faq-inner{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:4rem;
  align-items:start;
}
.edu-faq-title{font-size:clamp(1.8rem,3.2vw,2.6rem);margin-top:.7rem}
.edu-faq-text{margin-top:.9rem;color:var(--grey-700);max-width:34ch}
.edu-faq-list{display:flex;flex-direction:column}
/* Accordion styles live in styles.css (shared with Clinical Trials). */
@media (max-width:860px){
  .edu-faq-inner{grid-template-columns:1fr;gap:2rem}
}
