/* piggybacks on style.css + description.css */
.hp-section { margin-top: 2.5rem; }

/* Cards for interviewee + bio */
.hp-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: rgba(20,20,20,0.35);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  margin: 1.5rem 0;
}
.hp-card-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.hp-card-title { margin: .25rem 0 .25rem; }
.hp-card-sub { opacity: .9; margin-bottom: .5rem; }

/* Skinny timeline divider between sections (wireframe vibe) */
.hp-divider{
  width: 2px;
  height: 120px;
  background: linear-gradient(180deg, rgba(220,114,75,.9), rgba(220,114,75,.1));
  margin: 2.5rem auto;
  border-radius: 2px;
  box-shadow: var(--glow);
}

/* Accordion styling coheres with your palette */
.accordion .accordion-button {
  background: rgba(0,0,0,0.25);
  color: var(--light-text);
  border: 1px solid rgba(255,255,255,0.06);
}
.accordion .accordion-button:not(.collapsed){
  background: rgba(220,114,75,0.15);
  color: var(--light-text);
}
.accordion .accordion-body ul { margin-left: 1rem; }

/* References toggle arrow like Description */
.refs-toggle{
  color: var(--light-text);
}
.refs-toggle::after{
  content:"▼";
  font-size:.9rem;
  color: var(--warm-orange);
  margin-left:.5rem;
}
.refs-toggle[aria-expanded="true"]::after{ content:"▲"; }

@media (max-width: 768px){
  .hp-card{
    grid-template-columns: 1fr;
  }
}
/* ===== Interviewee cards ===== */
.hp-interview { margin: 1.25rem 0 2rem; }

/* Card shell */
.hp-int-card{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:1rem;
  background: rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
  border-left:3px solid var(--warm-orange);
  border-radius:.9rem;
  padding:1rem;
  box-shadow: 0 0 0 2px rgba(220,114,75,.05) inset;
}

/* Photo */
.hp-int-photo{
  width:140px; height:140px; object-fit:cover;
  border-radius:.6rem;
  border:1px solid rgba(255,255,255,.15);
  background:#111;
}

/* Name/role/meta */
.hp-int-name{ margin:0; color:var(--light-text); }
.hp-int-role{ margin:.15rem 0 .35rem; opacity:.9; }
.hp-int-meta{
  display:flex; flex-wrap:wrap; gap:.6rem 1rem; margin:0; padding:0; list-style:none;
  font-size:.95rem; opacity:.85;
}

/* Takeaways */
.hp-int-takeaways h4{ margin:.35rem 0 .35rem; }
.hp-int-takeaways ul{ margin:.25rem 0 0 1rem; }

/* Stacked accordions under each card */
.hp-int-acc{
  border:1px solid var(--warm-orange);
  border-radius:.6rem;
  background: rgba(255,255,255,.03);
  margin:.4rem 0 0;
  overflow: clip;
  box-shadow: 0 0 0 2px rgba(220,114,75,.06) inset;
}
.hp-int-acc + .hp-int-acc{
  margin-top:0;                 /* stick them together */
  border-top-left-radius:0;     /* fuse corners */
  border-top-right-radius:0;
}

/* Summary row and arrow (bigger) */
.hp-int-acc > summary{
  list-style:none; cursor:pointer;
  padding:.85rem 1rem; font-weight:600; color:var(--light-text);
  display:flex; align-items:center; justify-content:space-between;
}
.hp-int-acc > summary::-webkit-details-marker{ display:none; }
.hp-int-acc > summary::after{
  content:"▸"; font-size:1.2rem; color:var(--warm-orange);
  transition: transform .18s ease; transform: translateY(1px);
}
.hp-int-acc[open] > summary::after{ transform: rotate(90deg) translateX(-1px); }
.hp-int-acc .acc-body{ padding:.25rem 1rem 1rem; }

/* Responsive */
@media (max-width: 800px){
  .hp-int-card{ grid-template-columns: 96px 1fr; }
  .hp-int-photo{ width:96px; height:96px; }
}
@media (max-width: 560px){
  .hp-int-card{ grid-template-columns: 1fr; }
  .hp-int-photo{ width:100%; height:200px; }
}
/* === HP extras (drop into description.css or a new hp.css) === */
/* Headings inside the article */


/* If you keep the ID block, make it safe too (or delete this block entirely) */
#hp-overview, #hp-categories, #hp-implementation, #hp-reflection,
#hp-refs, #hp-background, #hp-why-ecoli, #hp-values, #hp-process,
#hp-material, #hp-bioethics, #hp-environment, #hp-public-health,
#hp-local, #hp-space-agencies, #hp-marketing {
  color: var(--light-text, #fff) !important;
}

/* Smooth scrolling + anchor offset (if you use a sticky header) */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* tune to your header height */

/* Accordion: stacked “box” look, orange outline even when closed */
details.acc {
  border: 1px solid var(--warm-orange);
  border-radius: .7rem;
  background: rgba(255,255,255,.03);
  margin: .5rem 0;
  overflow: clip; /* keep borders crisp on open */
  box-shadow: 0 0 0 2px rgba(220,114,75,.06) inset;
}
details.acc + details.acc {
  margin-top: 0;                 /* stick together */
  border-top-left-radius: 0;     /* fuse corners */
  border-top-right-radius: 0;
}
details.acc:first-of-type { margin-top: .5rem; }
details.acc[open] { background: rgba(255,255,255,.045); }

/* Accordion summary: bigger arrow, better hit area */
details.acc > summary {
  list-style: none;
  cursor: pointer;
  padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--light-text); font-weight: 600;
}
details.acc > summary::-webkit-details-marker { display: none; }

/* Arrow icon (always visible; grows a bit) */
details.acc > summary::after {
  content: "▾";
  font-size: 1.15rem;            /* bigger arrow */
  line-height: 1;
  transform: translateY(1px);
  transition: transform .18s ease;
  color: var(--warm-orange);
}
details.acc[open] > summary::after {
  transform: rotate(180deg) translateX(-1px);
}

/* Inner body spacing */
details.acc .acc-body { padding: .25rem 1rem 1rem; }



/* === Shared styling for any references accordion === */
details.acc.refs-acc > summary{
  list-style:none;
  color:var(--light-text);
  font-weight:800;      /* change to 700 if you prefer the old weight */
  font-size:1.2rem;
  padding:.85rem 1rem;
  cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
}
details.acc.refs-acc > summary::after{
  content:"▾";
  font-size:1.1rem;
  color:var(--warm-orange);
  transition: transform .18s ease;
}
details.acc.refs-acc[open] > summary::after{
  transform: rotate(180deg) translateX(-1px);
}

/* Ref list niceties (applies to all .refs lists) */
.refs li{ margin:.35rem 0; line-height:1.45; }
.refs a{ overflow-wrap:anywhere; word-break:break-word; }

/* Right TOC: active link highlight (works with JS below) */
.scroll-sidebar .toc a.is-active {
  color: var(--warm-orange);
  text-shadow: 0 0 8px rgba(220,114,75,.35);
}


/* Optional: make interview headshots float right nicely */
.hp-figure.right { float: right; margin: .25rem 0 1rem 1rem; max-width: 240px; }
.hp-figure.right img { width: 100%; border-radius: .6rem; }
@media (max-width: 900px){
  .hp-figure.right { float: none; margin: .75rem 0; max-width: 100%; }
}
/* Remove numbering/bullets in the TOC sidebar */
.scroll-sidebar ol,
.scroll-sidebar ul {
  list-style-image: url(https://static.igem.wiki/teams/5571/images/icons/bp2.svg);
  margin: 0;
  padding: 0;
}

/* Extra-safe: kill any markers some browsers still render */
.scroll-sidebar li::marker {
  content: "";
}

/* Optional niceties */
.scroll-sidebar a {
  text-decoration: none;
  display: block;
  padding: .35rem .5rem;
}
.scroll-sidebar .sub-links {
  padding-left: 1rem; /* indent nested items without markers */
}
.hp-int-acc h4 {
  font-size: 1.2rem;
  color: var(--warm-orange);
  letter-spacing: .01em;
  margin-top: 1.1rem;
}

/* OPTIONAL precise targeting (use if you add classes):
   <h4 class="hp-int-q">What we wanted to learn…</h4>
   <h4 class="hp-int-a">What we learned</h4>  */
.hp-int-q, .hp-int-a { font-size: 1.22rem; color: var(--warm-orange); }

/* === INTERVIEWEE TITLES & SECTION SUMMARIES LARGER === */
.hp-int-name {                /* e.g., "Dr. Traci Haddock" */
  font-size: 1.6rem;
  line-height: 1.2;
}
.hp-int-header .hp-int-role { /* keep roles readable next to larger names */
  font-size: .98rem;
}

.hp-interview > details.acc > summary,
#hp-marketing > details.acc > summary {   /* e.g., "Ain Center for Entrepreneurship" */
  font-size: 1.2rem;
  font-weight: 700;
}

/* === OUR VALUES: thicker white outline + orange headings === */
.hp-card {
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255,255,255,.04); /* subtle contrast on dark bg; safe on light too */
  box-shadow: 0 0 0 1px rgba(0,0,0,.06) inset; /* crisp edge on light themes */
}
.hp-card h4 {
  color: var(--warm-orange);
  font-size: 1.15rem;
  letter-spacing: .01em;
}


/* (Nice-to-have) keep all <summary> text the light header color */
details.acc > summary { color: var(--light-text); }

/* Uniform width for all content images (NOT headshots or parallax) */
.desc-article .hp-figure {
  max-width: 920px;            /* pick the width you want */
  margin: 1rem auto;           /* center the figure */
}

.desc-article .hp-figure img {
  display: block;
  width: 100%;                 /* fill the figure width */
  height: auto;                /* keep natural height */
  border-radius: 12px;         /* optional nicety */
  border: 1px solid rgba(255,255,255,.08); /* optional */
}

/* Keep headshots and parallax images untouched */
.hp-int-photo,
#astronaut,
#dna { width: 100%; height: auto; }

/* If you use the right-floated figure variant, keep its width consistent */
.hp-figure.right { max-width: 520px; }
@media (max-width: 900px){
  .hp-figure.right { max-width: 100%; float: none; margin: .75rem 0; }
}
/* ===== FIXES: header & headshots (place at END of CSS) ===== */

/* 1) Headshots: enforce square, cover-cropped thumbnails */
img.hp-int-photo {
  width: 140px !important;
  height: 140px !important;
  object-fit: cover;
  border-radius: .6rem;
  border: 1px solid rgba(255,255,255,.15);
  background: #111;
}


/* Tweak at common breakpoints to keep cards tidy */
@media (max-width: 800px){
  img.hp-int-photo { width: 96px !important; height: 96px !important; }
}
@media (max-width: 560px){
  /* on narrow screens let the image become a banner inside the card */
  img.hp-int-photo { width: 100% !important; height: 200px !important; }
}
/* --- Compact card-style slider (entre) --- */
.hp-slider.card{
  position: relative;
  margin: .75rem 0 1.25rem;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06) inset;
  overflow: clip;
}

/* track */
.hp-slides{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

/* slide */
.hp-slide{ margin: 0; }
.hp-slide img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;             /* diagrams stay crisp */
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.05), transparent 55%);
}
.hp-slide figcaption{
  padding: .8rem 1rem 1rem;
  color: var(--light-text);
  font-size: .98rem;
  line-height: 1.35;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* arrows */
.hp-slide-nav{
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--light-text);
  border-radius: 999px;
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hp-slide-nav:hover{ background: rgba(220,114,75,.15); border-color: rgba(220,114,75,.45); }
.hp-slide-nav.prev{ left: .6rem; }
.hp-slide-nav.next{ right: .6rem; }


/* Make slider arrows orange by default */
.hp-slide-nav{
  color: var(--warm-orange);                    /* arrow glyph/SVG */
  border-color: rgba(220,114,75,.55);
  background: rgba(220,114,75,.16);
  box-shadow: 0 2px 10px rgba(0,0,0,.25),
              0 0 0 2px rgba(220,114,75,.10) inset;
}

/* Hover/active states — a bit stronger */
.hp-slide-nav:hover{
  background: rgba(220,114,75,.26);
  border-color: rgba(220,114,75,.75);
}
.hp-slide-nav:active{
  background: rgba(220,114,75,.34);
}

/* Keyboard focus: clear ring */
.hp-slide-nav:focus-visible{
  outline: 2px solid var(--warm-orange);
  outline-offset: 2px;
}

/* Ensure inline SVG arrows inherit the orange */
.hp-slide-nav svg{
  fill: currentColor;
  stroke: currentColor;
}

/* (optional) disabled state looks muted */
.hp-slide-nav[disabled]{
  opacity: .45;
  cursor: not-allowed;
  background: rgba(220,114,75,.08);
  border-color: rgba(220,114,75,.25);
}

/* dots */
.hp-dots{
  display: flex; gap: .4rem;
  justify-content: center;
  padding: .6rem .75rem 1rem;
}
.hp-dots button{
  width: 10px; height: 10px; border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
  cursor: pointer;
}
.hp-dots button[aria-selected="true"]{
  background: var(--warm-orange);
  box-shadow: 0 0 8px rgba(220,114,75,.45);
}

/* small screens tighten */
@media (max-width: 560px){
  .hp-slide figcaption{ font-size: .94rem; }
}
 /* Center all figures by default */
 .hp-figure img {
  display: block;
  margin: 0 auto;
}
/* Children's book feedback quotes: make text white */
#quotes-slider blockquote p { 
  color: var(--light-text); /* your light text color (white on dark) */
}
/* Center all edu-figure images by default */
.edu-figure img { 
  display: block; 
  margin: 0 auto; 
}

/* Optional helper for extra-narrow figures */
.edu-figure.narrow img {
  max-width: 520px;      /* tune to match your other images */
}

/* Optional helper for consistent medium width */
.edu-figure.medium img {
  max-width: 800px;      /* adjust as you like */
}
/* === Right-hand TOC: spacing + non-overlap === */
:root{
  /* how far below the header the TOC starts */
  --toc-top: clamp(90px, 9vh, 128px);
  /* TOC width and gap from the reading column */
  --toc-width: 260px;
  --toc-gap: 28px;
}

/* Visual styling */
.scroll-sidebar.toc-right{
  box-sizing: border-box;
  padding: .75rem .6rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(6px);
  scrollbar-gutter: stable;
  z-index: 2;
}

/* Tablet & up: fix it on the right and reserve space */
@media (min-width: 900px){
  .scroll-sidebar.toc-right{
    position: fixed;
    top: var(--toc-top);
    /* park it just outside the reading column (1180px matches your .desc-article max width) */
    right: max(16px, calc((100vw - 1180px)/2 - var(--toc-gap)));
    width: var(--toc-width);
    max-height: calc(100vh - var(--toc-top) - 16px);
    overflow: auto;
    margin: 0;
  }

  /* reserve space so content never sits underneath the TOC */
  .desc-article{
    margin-right: calc(var(--toc-width) + var(--toc-gap));
  }
}

/* Phones: stack as a normal block */
@media (max-width: 899px){
  .scroll-sidebar.toc-right{
    position: static;
    width: auto;
    max-height: none;
    margin: 1rem 0;
  }
  .desc-article{ margin-right: 0; }
}

/* Slim inner scrollbar */
.scroll-sidebar.toc-right::-webkit-scrollbar{ width: 8px; }
.scroll-sidebar.toc-right::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.25);
  border-radius: 8px;
}
/* Rotate helpers for sideways photos inside sliders */
.hp-slide { display:flex; align-items:center; justify-content:center; overflow:hidden; }

.hp-slide img.rot-ccw {       /* fix: bottom-right -> bottom-down */
  transform: rotate(-90deg);  /* 90° counter-clockwise */
  width: auto !important;     /* use height as the constraint after rotation */
  height: 100% !important;
  transform-origin: center;
}

.hp-slide img.rot-cw {        /* (spare) 90° clockwise if you ever need it */
  transform: rotate(90deg);
  width: auto !important;
  height: 100% !important;
  transform-origin: center;
}
/* unify section headings everywhere */
.desc-article h2, .desc-article h3,
h2#exec-summary, h2#proj-desc, h2#problem, h2#market, h2#solution,
h2#finance, h2#tech-eval, h2#roadmap, h2#marketing, h2#business-plan,
#competitors h2, #stakeholders h2 {
  position: relative;
  margin: 2.2rem 0 1rem;
  padding-bottom: .33rem;
  color: var(--light-text, #fff) !important;
  scroll-margin-top: 110px;
  line-height: 1.25;
  font-family: 'Rajdhani', sans-serif;
}
.desc-article h2::after, .desc-article h3::after,
h2#exec-summary::after, h2#proj-desc::after, h2#problem::after, h2#market::after,
h2#solution::after, h2#finance::after, h2#tech-eval::after, h2#roadmap::after,
h2#marketing::after, h2#business-plan::after,
#competitors h2::after, #stakeholders h2::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(220,114,75,.95), rgba(220,114,75,.35) 60%, transparent);
  border-radius: 2px;
  box-shadow: var(--glow);
}
/* Fix: stack slide content vertically so captions sit under images */
.hp-slide{
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;   /* caption spans full width */
  justify-content: flex-start !important;
}

/* Ensure figcaptions act like full-width footers under images */
.hp-slide figcaption{
  width: 100%;
  display: block;
}
/* Undo any accidental rotations on Upward Bound images */
.hp-slide img.rot-ccw,
.hp-slide img.rot-cw,
.hp-slide img.rot-180 { transform: none !important; }

/* Keep slider images sane: scale to container, not viewport */
.edu-article .hp-slide img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

/* Also keep standalone education figures tidy */
.edu-figure img { width: 100%; height: auto; display: block; }

 /* ===== Tighter image sizing across Education page ===== */
 .education-page .edu-figure img,
 .education-page .edu-card .edu-figure img {
   max-width: 880px;      /* caps huge photos */
   width: 100%;
   height: auto;
   object-fit: contain;
   display: block;
   margin-inline: auto;   /* centered */
   border-radius: 12px;
   border: 1px solid rgba(255,255,255,.08);
 }

 /* Slides: keep images contained and not towering */
 .education-page .hp-slide img {
   max-height: 62vh;      /* shorter than before */
   width: 100%;
   height: auto;
   object-fit: contain;
   display: block;
   margin: 0 auto;
 }

 /* ===== Shift the reading column to the right of the left sidebar ===== */
 :root { --edu-left-gap: 260px; }  /* sidebar width + a little buffer */

 @media (min-width: 900px){
   .education-page .desc-article.edu-article{
     margin-left: var(--edu-left-gap);  /* creates space between text & sidebar */
     padding-left: 10px;
   }
 }

 /* ===== Orange verb helper ===== */
 .edu-verb{
   font-weight: 800;
   color: var(--warm-orange, #dc724b);
 }

  /* Center all figure captions on Education page (images + sliders) */
  .education-page .edu-figure figcaption,
  .education-page .hp-slide figcaption,
  .education-page .hp-figure figcaption {
    text-align: center;
    margin: .5rem auto 1rem;
    display: block;
  }
  /* PDF title + link */
  .education-page .pdf-title{
    margin: 1.25rem 0 .5rem;
    color: var(--light-text,#fff);
  }
  .education-page .pdf-download{
    text-align:center;
    margin:.5rem 0 1.5rem;
  }

  /* Responsive PDF embed */
  .education-page .pdf-container{
    width:100%;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    background: rgba(255,255,255,.04);
    box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06) inset;
  }
  .education-page .pdf-embed{
    width:100%;
    height:80vh;          /* desktop height */
    display:block;
  }
  @media (max-width: 900px){
    .education-page .pdf-embed{ height:72vh; }
  }
  @media (max-width: 560px){
    .education-page .pdf-embed{ height:66vh; }
  }
  /* ===== Entrepreneurship page: smaller, centered visuals ===== */
.entre-article .hp-figure { 
  max-width: 920px; 
  margin: 1rem auto;           /* center figures */
}
.entre-article .hp-figure img{
  display:block;
  max-width: 880px;            /* match Education page cap */
  width: 100%;
  height: auto;
  margin-inline: auto;         /* center images */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}

/* Slider images: cap their size & center them */
.entre-article .hp-slide{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction: column !important; /* caption under image */
}
.entre-article .hp-slide img{
  width: auto !important;          /* stop stretching full-width */
  max-width: 880px !important;     /* same visual cap */
  max-height: 62vh !important;     /* shorter on tall screens */
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: none !important;     /* remove radial bg from small images */
}

/* Center all captions on this page */
.entre-article .hp-figure figcaption,
.entre-article .hp-slide figcaption{
  text-align:center;
  margin: .5rem auto 1rem;
  width: min(880px, 100%);
}
.edu-article .pdf-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto 1.5rem;       /* centers the whole block */
  align-items: start;
}

.edu-article .pdf-item .pdf-title{
  text-align: center;
  margin: 0 0 .5rem;
  color: var(--light-text,#fff);
}

.edu-article .pdf-container{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06) inset;
}

/* taller embeds for readability on-page */
.edu-article .pdf-embed.big{
  width: 100%;
  height: 82vh;                /* nice, readable size */
  display: block;
}

/* center the download links */
.edu-article .pdf-download{
  text-align: center;
  margin: .6rem 0 0;
}

/* Responsive: stack on narrower screens */
@media (max-width: 1100px){
  .edu-article .pdf-embed.big{ height: 76vh; }
}
@media (max-width: 900px){
  .edu-article .pdf-grid{
    grid-template-columns: 1fr;
    max-width: 900px;
  }
  .edu-article .pdf-embed.big{ height: 70vh; }
}
@media (max-width: 560px){
  .edu-article .pdf-embed.big{ height: 64vh; }
}
.what-teachers-said #quotes-slider .hp-slides,
.what-teachers-said #quotes-slider .hp-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Handles both <blockquote> and <p> quotes */
.what-teachers-said #quotes-slider blockquote,
.what-teachers-said #quotes-slider p {
  margin: 0 auto;
  max-width: 60ch;
  font-style: italic;
  line-height: 1.5;
}

/* (Optional) center the dots/pagination if used */
.what-teachers-said .hp-dots {
  display: flex;
  justify-content: center;
}


/* ===== Engineering page: push reading column farther from LEFT sidebar ===== */
:root{
  --eng-leftbar-width: 260px;   /* actual sidebar width */
  --eng-leftbar-gap: 36px;      /* extra space between sidebar and text */
}

@media (min-width: 900px){
  .engineering-page .igem-scroll-sidebar{
    width: var(--eng-leftbar-width);
    left: 0;
  }
  .engineering-page .desc-article{
    /* reserve space for sidebar + an extra gap */
    margin-left: calc(var(--eng-leftbar-width) + var(--eng-leftbar-gap)) !important;
    padding-left: 6px; /* tiny inner padding so text doesn't hug the edge */
  }
}

/* Phone/tablet: let it flow full width */
@media (max-width: 899px){
  .engineering-page .desc-article{
    margin-left: 0 !important;
    padding-left: 1rem; /* keep it comfy on small screens */
  }
}