/* =========================================================
   BIOMED – UPDATES (Oct 2026)
   Loaded after style.css. Only affects:
   1. Our Certifications (seamless loop)
   2. Home – Category Highlights (Read More)
   3. About Us Overview – Company Milestones timeline
   4. About Us People – Leadership grid
   5. R&D – new content section
========================================================= */


/* ---------------------------------------------------------
   1. OUR CERTIFICATIONS – seamless infinite loop
--------------------------------------------------------- */
.cert-track.cert-track--loop {
  display: flex;
  gap: 0;
  width: max-content;
  transform: none;
  animation: bm-cert-loop 32s linear infinite;
  will-change: transform;
}

.cert-row:hover .cert-track--loop {
  animation-play-state: paused;
}

.cert-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Every logo sits in an identical box => equal height & equal spacing */
.cert-logo {
  flex: 0 0 auto;
  width: 140px;
  height: 72px;
  margin-right: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-track--loop .cert-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  transition: opacity .3s ease, filter .3s ease;
}

.cert-track--loop .cert-logo img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* 4 identical groups -> moving exactly one group (25%) loops with no jump */
@keyframes bm-cert-loop {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-25%, 0, 0); }
}

@media (max-width: 768px) {
  .cert-logo {
    width: 104px;
    height: 56px;
    margin-right: 36px;
  }
  .cert-track.cert-track--loop {
    animation-duration: 24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-track.cert-track--loop {
    animation-duration: 90s;
  }
}


/* ---------------------------------------------------------
   2. CATEGORY HIGHLIGHTS – Read More (smooth expand)
--------------------------------------------------------- */
/* Collapsed rows keep the original centred layout; while expanded the
   image stays in view next to the longer text. */
.category-highlights .ch-row.is-expanded {
  align-items: start;
}

.category-highlights .ch-row.is-expanded .ch-image {
  position: sticky;
  top: 110px;
}

.category-highlights .ch-content h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 140%;
  color: #10A54F;
  margin: 8px 0 12px;
}

/* Collapsible panel: animates 0fr -> 1fr for a smooth height transition */
.ch-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s ease, opacity .4s ease;
}

.ch-more.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.ch-more__inner {
  overflow: hidden;
  min-height: 0;
}

.ch-more.is-open .ch-more__inner {
  padding-top: 4px;
}

.category-highlights .ch-more p {
  font-size: 16px;
  line-height: 160%;
  color: #3a3a3a;
}

.category-highlights .ch-more__note a {
  color: #0D833F;
  text-decoration: underline;
  font-style: italic;
}

.category-highlights .ch-more__note a:hover {
  color: #10A54F;
}

.ch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* Read More – outline button, same height & radius as the green "Know More" */
.ch-readmore {
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid #10A54F;
  border-radius: 8px;
  background: transparent;
  color: #10A54F;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}

.ch-readmore:hover,
.ch-readmore:focus-visible {
  background: #10A54F;
  color: #fff;
}

/* chevron */
.ch-readmore__icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s ease;
}

.ch-readmore[aria-expanded="true"] .ch-readmore__icon {
  transform: translateY(2px) rotate(-135deg);
}

@media (max-width: 900px) {
  .category-highlights .ch-image {
    position: static;
  }
  .ch-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ch-readmore {
    justify-content: center;
    width: 100%;
  }
  .ch-actions .nav-cta {
    width: 100%;
    margin-top: 0;
  }
  .ch-actions .nav-cta__text {
    flex: 1;
    width: auto;
  }
}


/* ---------------------------------------------------------
   3. ABOUT OVERVIEW – COMPANY MILESTONES TIMELINE
--------------------------------------------------------- */
.bm-timeline {
  background: #ffffff;
  padding: 120px 24px;
}

.bm-timeline .milestones-title {
  margin-bottom: 64px;
}

.bm-timeline__wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px minmax(0, 440px);
  column-gap: 48px;
  align-items: start;
}

/* "● YEAR ———" pointer, moved by JS to the active year */
.bm-timeline__pointer {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 24px;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.bm-timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10A54F;
  flex-shrink: 0;
}

.bm-timeline__label {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1E1E1E;
}

.bm-timeline__line {
  flex: 1;
  height: 1px;
  background: #cfd5d2;
}

/* Year list */
.bm-timeline__years {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bm-timeline__year {
  background: none;
  border: 0;
  padding: 2px 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: Inter, sans-serif;
  color: #d0d5dd;
  transition: color .3s ease;
}

/* Fixed row height + scale for the active year, so the list never shifts
   under the mouse while hovering. */
.bm-timeline__num {
  display: block;
  font-size: 40px;
  font-weight: 300;
  line-height: 62px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transform-origin: left center;
  transition: transform .3s ease, color .3s ease;
}

.bm-timeline__sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
  color: inherit;
  margin-top: 2px;
}

.bm-timeline__year:hover {
  color: #9aa3ad;
}

.bm-timeline__year.is-active {
  color: #111111;
}

.bm-timeline__year.is-active .bm-timeline__num {
  transform: scale(1.3);
}

.bm-timeline__year.is-active .bm-timeline__sub {
  color: #1E1E1E;
}

.bm-timeline__year:focus-visible {
  outline: 2px solid #10A54F;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Content */
.bm-timeline__content {
  grid-column: 3;
  grid-row: 1;
  position: sticky;
  top: 120px;
  padding-top: 8px;
}

.bm-timeline__panel.is-active {
  animation: bm-tl-fade .45s ease both;
}

@keyframes bm-tl-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bm-timeline__panel-year {
  display: none;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #10A54F;
  margin-bottom: 8px;
}

.bm-timeline__title {
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  color: #111111;
  margin: 0 0 24px;
}

.bm-timeline__text {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1E1E1E;
  margin: 0;
}

/* Tablet */
@media (max-width: 1199px) {
  .bm-timeline__wrap {
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 400px);
    column-gap: 32px;
  }
  .bm-timeline__num { font-size: 34px; line-height: 54px; }
  .bm-timeline__title { font-size: 32px; }
}

/* Mobile / small tablet: years become a horizontal strip, content below */
@media (max-width: 991px) {
  .bm-timeline {
    padding: 72px 16px;
  }
  .bm-timeline .milestones-title {
    margin-bottom: 32px;
  }
  .bm-timeline__wrap {
    display: block;
  }
  .bm-timeline__pointer {
    display: none;
  }
  .bm-timeline__years {
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
    overflow-x: auto;
    padding: 0 4px 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e4e7e5;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .bm-timeline__years::-webkit-scrollbar {
    display: none;
  }
  .bm-timeline__year {
    flex: 0 0 auto;
    position: relative;
  }
  .bm-timeline__num,
  .bm-timeline__year.is-active .bm-timeline__num {
    font-size: 26px;
    line-height: 1.3;
    transform: none;
    white-space: nowrap;
  }
  .bm-timeline__year.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -17px;
    height: 3px;
    background: #10A54F;
    border-radius: 2px;
  }
  .bm-timeline__sub {
    font-size: 12px;
  }
  .bm-timeline__content {
    position: static;
    padding-top: 0;
  }
  .bm-timeline__panel-year {
    display: block;
  }
  .bm-timeline__title {
    font-size: 28px;
    margin-bottom: 16px;
  }
}


/* ---------------------------------------------------------
   4. ABOUT PEOPLE – LEADERSHIP GRID (4 directors)
--------------------------------------------------------- */
.bm-directors .leadership-container {
  width: 100%;
  max-width: 1440px;
  padding: 0 40px;
  box-sizing: border-box;
}

.bm-directors .leadership-title {
  margin-bottom: 56px;
}

.bm-directors__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.bm-director {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e3eee8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}

.bm-director:hover {
  box-shadow: 0 12px 32px rgba(16, 165, 79, .10);
  transform: translateY(-4px);
}

.bm-director__photo {
  aspect-ratio: 4 / 5;
  background: #eaf6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bm-director__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.bm-director__initials {
  font-family: "Inria Serif", serif;
  font-size: 56px;
  color: #10A54F;
  letter-spacing: .04em;
}

.bm-director__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.bm-director__name {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #111111;
  margin: 0 0 6px;
}

.bm-director__role {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #10A54F;
  margin: 0 0 14px;
}

.bm-director__short {
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #3a3a3a;
  margin: 0 0 16px;
}

.bm-directors .bm-director__more {
  margin-top: auto;
  align-self: flex-start;
  padding: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.bm-directors .bm-director__more img {
  width: 16px;
  height: auto;
}

.leader-modal-content p {
  margin: 0 0 16px;
}

@media (max-width: 1199px) {
  .bm-directors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bm-directors .leadership-container {
    padding: 0 16px;
  }
  .bm-directors .leadership-title {
    margin-bottom: 32px;
  }
  .bm-directors__grid {
    gap: 16px;
  }
  .bm-director__body {
    padding: 16px;
  }
  .bm-director__name {
    font-size: 17px;
  }
}

@media (max-width: 479px) {
  .bm-directors__grid {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------
   5. R&D – CONTENT SECTION (replaces Metrics & Milestones)
--------------------------------------------------------- */
.bm-rnd {
  background: #F8FCFA;
  padding: 120px 24px;
}

.bm-rnd__wrap {
  max-width: 1169px;
  margin: 0 auto;
}

.bm-rnd__intro {
  max-width: 820px;
  margin: 0 auto 72px;
  text-align: center;
}

.bm-rnd__title {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 140%;
  color: #10A54F;
  margin: 0 0 20px;
}

.bm-rnd__lead {
  font-family: Inter, sans-serif;
  font-size: 20px;
  line-height: 150%;
  color: #1E1E1E;
  margin: 0;
}

.bm-rnd__row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  column-gap: 64px;
  padding: 40px 0;
  border-top: 1px solid #10A54F;
}

.bm-rnd__row:last-child {
  border-bottom: 1px solid #10A54F;
}

.bm-rnd__heading {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  color: #000000;
  margin: 0;
}

.bm-rnd__body p {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 160%;
  color: #1E1E1E;
  margin: 0 0 16px;
}

.bm-rnd__body p:last-child {
  margin-bottom: 0;
}

.bm-rnd__focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bm-rnd__focus li {
  background: #ffffff;
  border: 1px solid #e3eee8;
  border-left: 3px solid #10A54F;
  border-radius: 8px;
  padding: 20px 22px;
}

.bm-rnd__focus h4 {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  color: #111111;
  margin: 0 0 8px;
}

.bm-rnd__focus li p {
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a3a;
}

@media (max-width: 1024px) {
  .bm-rnd {
    padding: 80px 32px;
  }
  .bm-rnd__row {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}

@media (max-width: 767px) {
  .bm-rnd {
    padding: 60px 16px;
  }
  .bm-rnd__intro {
    margin-bottom: 40px;
  }
  .bm-rnd__title {
    font-size: 24px;
  }
  .bm-rnd__lead {
    font-size: 17px;
  }
  .bm-rnd__row {
    padding: 28px 0;
  }
  .bm-rnd__heading {
    font-size: 20px;
  }
  .bm-rnd__body p {
    font-size: 16px;
  }
  .bm-rnd__focus {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ---------------------------------------------------------
   6. PRODUCT INNER PAGE – catalogue mode (no cart)
--------------------------------------------------------- */

/* Main product image: fixed-height box, whole image visible (no crop) */
.bm-single-product .bm-image {
  width: 100%;
  height: 100%;
  padding: 32px 56px;            /* room for the prev / next arrows */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-single-product .bm-main-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bm-nav.disabled {
  opacity: .25;
  pointer-events: none;
}

/* Contact Now button */
.bm-contact-cta {
  margin: 8px 0 32px;
}

.bm-contact-cta .nav-cta {
  border: none;
}

@media (max-width: 768px) {
  .bm-single-product .bm-image {
    padding: 20px 44px;
  }
  .bm-contact-cta .nav-cta {
    width: 100%;
  }
  .bm-contact-cta .nav-cta__text {
    flex: 1;
    width: auto;
  }
}


/* ---------------------------------------------------------
   7. PRODUCT CARDS – Related products / shop / category
--------------------------------------------------------- */
.bm-related {
  display: block;
  padding: 60px 24px 120px;
  box-sizing: border-box;
}

.bm-related .related > h2 {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 140%;
  color: #10A54F;
  text-align: center;
  margin: 0 0 48px;
}

.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* WooCommerce clearfix pseudo-elements would become empty grid cells */
ul.products::before,
ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product.bm-loop-card,
ul.products li.product.bm-loop-card {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e3eee8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}

ul.products li.product.bm-loop-card:hover {
  box-shadow: 0 12px 32px rgba(16, 165, 79, .10);
  transform: translateY(-4px);
}

/* Fixed-height image box – any uploaded image fits without cropping */
.bm-loop-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  padding: 20px;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: 1px solid #eef4f1;
}

.woocommerce ul.products li.product .bm-loop-card__media img,
.bm-loop-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bm-loop-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.woocommerce ul.products li.product .bm-loop-card__title,
.bm-loop-card__title {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

.bm-loop-card__title a {
  color: #111111;
  text-decoration: none;
}

.bm-loop-card__title a:hover {
  color: #10A54F;
}

/* Same green CTA as "Contact Now", stretched to the card width */
.bm-loop-card .bm-loop-card__cta {
  margin-top: auto;
  width: 100%;
  border: none;
}

.bm-loop-card .bm-loop-card__cta .nav-cta__text {
  flex: 1;
  width: auto;
}

@media (max-width: 1199px) {
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .bm-loop-card__media {
    height: 220px;
    padding: 14px;
  }
  .bm-related .related > h2 {
    font-size: 24px;
    margin-bottom: 28px;
  }
}

@media (max-width: 479px) {
  .bm-related {
    padding: 40px 16px 72px;
  }
  ul.products {
    grid-template-columns: 1fr;
  }
  .bm-loop-card__media {
    height: 260px;
  }
}


/* ---------------------------------------------------------
   8. COMPANY MILESTONES – image under each year's content
--------------------------------------------------------- */
.bm-timeline__media {
  margin: 28px 0 0;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #eef4f1;
}

.bm-timeline__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 991px) {
  .bm-timeline__media {
    margin-top: 20px;
  }
}
