

/* *********************1024***************** */
@media (min-width: 1024px) {
  .carousel-track {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .card {
    flex: 0 0 300px;
    width: 300px;
    opacity: 0.55;
    transform: scale(0.92);
  }

  .card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 16px 40px rgba(2,92,154,0.18);
  }
}

/* *********************992px***************** */
@media only screen and (max-width :992px){
  .liposome-introduction::before {background: linear-gradient(180deg, #f7fbff 70%, rgba(247,251,255,0.2));}
  .container {text-align: center;}
}


/* *********************909px***************** */
@media only screen and (max-width :909px){
  .le-burger { display: flex; }
  ul.primary-menu {
    display: none;
    flex-direction: column;
    height: auto;
    padding: 10px 14px 18px;
    gap: 2px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.95);
    position: absolute;
    left: -10px;
    right: -10px;
    top: calc(100% + 10px);
    backdrop-filter: blur(5px);
  }
  ul.primary-menu.mob-open { display: flex; }
  ul.primary-menu > li { width: 100%; }
  ul.primary-menu a,
  ul.primary-menu button.le-trigger { width: 100%; font-size: 14px; padding: 8px 14px; }

  /* Kill hover-based opening on mobile */
  ul.primary-menu > li:hover > ul.sub-menu,
  ul.sub-menu li:hover > ul.sub-menu {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(6px);
  }

  /* Hover bridges off on mobile */
  ul.primary-menu > li::before,
  ul.sub-menu li::before { display: none; }

  /* Accordion-style dropdowns */
  ul.sub-menu,
  ul ul ul.sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: all !important;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--brand-pale);
    border-radius: 0;
    padding: 2px 0 2px 12px;
    margin: 2px 0 2px 14px;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
  }
  ul.sub-menu::before,
  ul.sub-menu::after { display: none; }

  ul.primary-menu > li.mob-open > ul.sub-menu { max-height: 600px; }
  ul.sub-menu > li.mob-open > ul.sub-menu { max-height: 400px; }

  ul.sub-menu a, ul ul ul.sub-menu a { font-size: 13px; padding: 10px 10px; }

  /* Mobile carets */
  ul.primary-menu > li.mob-open > a .le-caret,
  ul.primary-menu > li.mob-open > button.le-trigger .le-caret { transform: rotate(180deg); opacity: 1; }
  .le-caret-r { transform: rotate(0deg) !important; }
  ul.sub-menu > li.mob-open > a .le-caret-r { transform: rotate(180deg) !important; opacity: 1; }
    
  .site-branding img{max-height: 45px;}
  .frame{padding: 50px 30px;} 

}

/* ***************767PX********************** */
@media (max-width: 767px) {

    .liposome-introduction::before {
      background: linear-gradient(180deg,
        rgba(247,251,255,0.97) 0%,
        rgba(247,251,255,0.92) 60%,
        rgba(247,251,255,0.78) 100%
      );
    }

    /* ── Hero text block ── */
    .liposome-introduction .container {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0;
      padding: 0 20px;
    }

    .hero-content { max-width: 100%; }

    h1 {
      font-size: 26px;
      margin-bottom: 10px;
    }

    .subtitle {
      font-size: 11px;
      letter-spacing: 1.5px;
    }

    .liposome-introduction p.description {
      font-size: 14px;
      margin-bottom: 0;
    }

    /* ── Carousel wrapper: full-width, clips scroll bar ── */
    .carousel-wrapper {
      margin-top: 28px;
      padding: 0;                 /* remove all padding */
      overflow: hidden;           /* hide scrollbar */
      width: 100%;
    }

    /* ── Track: native horizontal scroll + snap ── */
    .carousel-track {
      display: flex;
      gap: 16px;
      overflow-x: scroll;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;      /* Firefox */
      padding: 10px 20px 16px;    /* breathing room so shadow isn't clipped */
      /* No transform — CSS handles everything */
      transition: none !important;
    }

    .carousel-track::-webkit-scrollbar { display: none; } /* Chrome/Safari */

    /* ── Cards: each snaps to centre ── */
    .card {
      flex: 0 0 calc(100% - 40px); /* card = full width minus the two 20px side paddings */
      width: calc(100% - 40px);
      scroll-snap-align: center;
      opacity: 1 !important;      /* always full opacity on mobile */
      transform: none !important; /* no scale effect on mobile */
      border-radius: 14px;
    }

    .card h3 { font-size: 15px; }

    /* Dots still show & are updated by the IntersectionObserver */
    .carousel-dots { margin-top: 4px; }
  }


/* *********************680px***************** */
@media only screen and (max-width :680px){  
  h1 {font-size: 32px;}
  .frame{padding: 40px 10px;}
  #hero {padding: 34px 15px;}
  #hero .container {grid-template-columns: 1fr;}
  #hero model-viewer{height: auto; aspect-ratio: 1/1;}
  #hero::before {display: none;}
}




  @media (max-width: 1023px) and (min-width: 768px) {

    .liposome-introduction::before {
      background: linear-gradient(120deg, #f7fbff 40%, rgba(247,251,255,0.4));
    }

    .liposome-introduction .container {
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
    }

    .hero-content { max-width: 100%; }

    h1 { font-size: 36px; }

    /* JS carousel */
    .carousel-wrapper { overflow: hidden; }

    .carousel-track {
      transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }

    .card {
      flex: 0 0 260px;
      width: 260px;
      opacity: 0.55;
      transform: scale(0.92);
    }

    .card.active {
      opacity: 1;
      transform: scale(1);
      box-shadow: 0 16px 40px rgba(2,92,154,0.18);
    }
  }


  

  @media (max-width: 399px) {
    h1 { font-size: 22px; }
  }

  
/* *******************************************THE JOURNEY OF LIPOSOMES************************************************ */
  
/* ═══════════════════════════════════════════
   TABLET  ≤ 768px
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .deco-liposome, .deco-network { display: none; }

  .timeline-block { width: 100%; }

  /* Line pinned at left:10px — always inside viewport */
  .timeline-block::before {
    left: 10px; transform: none;
  }

  /* All items: column layout, content indented right of the line */
  .tl-item {
    flex-direction: column;
    padding-left: 36px;
  }

  /* Dot centered on the 10px line */
  .tl-dot {
    left: 10px; top: 18px;
    transform: translateX(-50%);
  }
  .tl-item:hover .tl-dot { transform: translateX(-50%) scale(1.2); }

  /* Both slots become full-width, same order, no desktop padding */
  .tl-slot { width: 100%; order: unset !important; }
  .tl-item:nth-child(odd)  .tl-slot--card,
  .tl-item:nth-child(even) .tl-slot--card  { padding: 10px 0; justify-content: flex-start; }
  .tl-item:nth-child(odd)  .tl-slot--empty,
  .tl-item:nth-child(even) .tl-slot--empty { display: none; }

  /* Remove connector lines */
  .tl-item:nth-child(odd)  .card-wrap::before,
  .tl-item:nth-child(even) .card-wrap::after { display: none; }

  .card-wrap{ width: 100%; }
  .jl-card{ width: 100%; }
}

/* ═══════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .eyebrow   { font-size: 10px; }
  .header p  { font-size: 13px; }

  .card-title { font-size: 14px; }
  .card-desc  { font-size: 12.5px; }
  .card-extra-inner { font-size: 12.5px; }

  .card-icon { width: 50px; height: 50px; min-width: 50px; border-radius: 11px; }
  .card-icon svg { width: 26px; height: 26px; }

  .plus-btn  { width: 27px; height: 27px; font-size: 18px; }
  .cta-btn   { font-size: 13px; padding: 12px 22px; }
}


/* ***********************************FAQS**************************************** */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — TABLET (mobile order fix)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media(max-width:768px){
  .section-faqs__columns {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .section-faqs__col {
    display: contents; /* children bubble up, CSS order restores sequence */
  }
  .faqs-item {
    order: var(--mob-order, 99);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — MOBILE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media(max-width:600px){
  .section-faqs__body    { padding: 50px 16px 70px; }
  .faqs-item__answer     { padding-left: 20px; }
  .faqs-item__head       { padding: 16px; }
  .section-faqs__title   { letter-spacing: 3px; }
}


/* **********************************************LIPOSOMES SECTION********************************* */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media(max-width:900px){
  .section-entry__grid { grid-template-columns:1fr; gap:48px; }
  .section-entry__visual { order:-1; }
  .section-entry__banner-inner { padding: 40px 24px; }
}
@media(max-width:600px){
  .section-entry__body { padding:60px 16px 70px; }
  .section-entry__visual::before,
  .section-entry__visual::after { display:none; }
}


/* 
@media (max-width: 768px) {
  #goToTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
} */


@media (max-width: 1100px) {
  .cards-grid  { grid-template-columns: repeat(2,1fr); }
  .steps-row   { grid-template-columns: repeat(2,1fr); }
  .step        { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero-inner  { grid-template-columns: 1fr; }
  .hero-panel  { display: none; }
}
@media (max-width: 860px) {
  :root { --gap: 64px; }
  .wrap { padding: 0 24px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-block:nth-child(even) .split { direction: ltr; }
  /* .img-frame img { height: 280px; } */
  .trouble-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gap: 52px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 60px 12px 52px; }
  .cards-grid  { grid-template-columns: 1fr; }
  .steps-row   { grid-template-columns: 1fr; }
  .step        { border-right: none; }
  .full-faq-btn     { padding: 16px 18px; }
  .full-faq-item.open .full-faq-panel { padding: 0 18px 18px; }
}


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media(max-width:1100px){
  .prod-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .prod-section{padding:60px 0 70px}
  .prod-header,.prod-filters,.prod-grid,.prod-more{padding-left:16px;padding-right:16px}
  .prod-grid{grid-template-columns:1fr;gap:18px}
  .prod-header__top{flex-direction:column;align-items:flex-start}
  .prod-card__img{aspect-ratio:16/9}
  .filter-btn{padding:8px 15px;font-size:12px}
  .prod-more{padding-top:36px}
}
@media(max-width:420px){
  .prod-filters{gap:6px}
  .prod-filters__label{display:none}
}

/* Responsive Design */
@media (max-width: 768px) {
  #searchForm {
    padding: 0 16px;
  }

  .search-form {
    border-radius: 40px;
  }

  .search-form label::before {
    left: 24px;
    width: 20px;
    height: 20px;
  }

  .search-form .search-field {
    padding: 20px 24px 20px 56px;
    font-size: 16px;
  }

  .search-form .search-submit {
    padding: 20px 36px;
    font-size: 15px;
    border-radius: 36px;
  }

  .search-form .search-submit:hover {
    padding-right: 48px;
  }
}

@media (max-width: 480px) {
  .search-form {
    border-radius: 32px;
  }

  .search-form .search-field {
    padding: 18px 20px 18px 52px;
    font-size: 15px;
  }

  .search-form .search-submit {
    padding: 18px 28px;
    margin: 6px;
  }

  .search-form .search-submit::after {
    display: none;
  }

  .search-form .search-submit:hover {
    padding-right: 28px;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media(max-width:1200px){
  .adv-grid{grid-template-columns:repeat(3,1fr)}
  .quality-row{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .dual-cards{grid-template-columns:1fr}
  .cmp-grid{grid-template-columns:1fr}
  .purif-split,.tech-split,.wbcil-split{grid-template-columns:1fr;gap:40px}
  .source-row{grid-template-columns:repeat(3,1fr)}
  .adv-grid{grid-template-columns:repeat(2,1fr)}
  .quality-row{grid-template-columns:repeat(3,1fr)}
  .stat-cards{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  :root{--section-pad:56px 0px}
  .container{padding:0 16px}
  .source-row{grid-template-columns:1fr 1fr}
  .adv-grid{grid-template-columns:1fr 1fr}
  .quality-row{grid-template-columns:repeat(2,1fr)}
  .stat-cards{grid-template-columns:1fr 1fr}
  .page-banner{min-height:320px}
  .page-banner::after{height:40px}
  .sec-head{margin-bottom:36px}
  .char-nav{gap:6px}
  .char-btn{padding:9px 16px;font-size:12px}
  .flow-diagram{padding:24px 16px}
  .purif-split,.tech-split,.wbcil-split{gap:28px}
  .wbcil-img{order:-1}
  .cmp-card{padding:26px 22px}
}
@media(max-width:420px){
  .source-row{grid-template-columns:1fr}
  .adv-grid{grid-template-columns:1fr}
  .char-item{flex-direction: column; justify-content: center; align-items: center;}
}