/* Small standalone-site fixes. Main design: assets/theme/css/. */
header .item-right a.common_btn,
header .item-right a.common_btn:hover,
header .item-right a.common_btn:focus,
header .item-right a.common_btn:active { background: #00378a; color: #fff; }
[hidden] { display: none !important; }
.enquiry-note, .enquiry-status { font-size: 14px; line-height: 1.6; margin-top: 16px; }
.enquiry-note { color: #555; }
.enquiry-status { color: #165c36; }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Floating WhatsApp contact, replacing the former scroll-to-top control. */
.whatsapp-button { position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; z-index: 1000; box-shadow: 0 4px 16px #0003; transition: background .2s, transform .2s; }
.whatsapp-button svg { width: 32px; height: 32px; }
.whatsapp-button:hover { background: #128c7e; color: #fff; transform: translateY(-2px); }
.whatsapp-button:focus-visible { outline: 3px solid #00378a; outline-offset: 4px; }
.cta_left .secondary-phone { display: block; }
/* Allow the additional top-level navigation item to fit beside the logo. */
@media (min-width: 1027px) {
  .header .v-center { flex-wrap: nowrap; gap: 20px; }
  .header .header-item { width: auto; }
  .header .item-left, .header .item-right { flex: 0 0 auto; }
  .header .item-center { flex: 1 1 auto; min-width: 0; }
  .header .menu > ul { gap: clamp(14px, 1.6vw, 28px); }
  .header .menu > ul > li { margin-left: 0 !important; white-space: nowrap; }
  .header .menu > ul > li > a { gap: 7px; }
  .header .menu > ul > li.dropdown-open .sub-menu,
  .header .menu > ul > li:focus-within .sub-menu { opacity: 1; visibility: visible; margin-top: 0; }
  .header .menu > ul > li .single-column-menu { min-width: 285px; }
  .header .menu > ul > li > a .down_arrow {
    position: static;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
}
@media (min-width: 1251px) and (max-width: 1500px) {
  .header .logo img { width: 210px; }
  .header .v-center { gap: 14px; }
  .header .menu > ul { gap: 18px; }
  .header .menu > ul > li > a { font-size: 13px; }
  .header .item-right { gap: 14px; }
  .header .item-right .common_btn { padding: 12px 20px; }
}
@media (min-width: 1027px) and (max-width: 1250px) {
  .header .logo img { width: 160px; }
  .header .v-center { gap: 8px; }
  .header .item-right { gap: 8px; }
  .header .menu > ul { gap: 10px; }
  .header .menu > ul > li > a { font-size: 12px; }
  .header .item-right .common_btn { padding: 12px 14px; font-size: 12px; }
}
@media (max-width: 575px) { .whatsapp-button { right: 20px; bottom: 20px; width: 56px; height: 56px; } }

/* Accessible, evenly spaced footer social icons. */
.ftr_right { gap: 20px; }
.ftr_right a.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; flex: 0 0 44px; color: #fff; }
.ftr_right a.social-icon svg { width: 26px; height: 26px; margin: 0; }
.ftr_right a.social-icon:hover { opacity: .75; }
.ftr_right a.social-icon:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }

/* Soft WhatsApp glow and an expanding pulse ring. */
.whatsapp-button { isolation: isolate; box-shadow: 0 0 18px rgba(37, 211, 102, .95), 0 0 38px rgba(37, 211, 102, .65), 0 6px 16px #0003; }
.whatsapp-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .6);
  border: 2px solid rgba(37, 211, 102, .95);
  pointer-events: none;
  z-index: -1;
  animation: whatsapp-glow-ring 2s ease-out infinite;
}
.whatsapp-button:hover { transform: scale(1.1); box-shadow: 0 0 24px #25d366, 0 0 48px rgba(37, 211, 102, .8); }
@keyframes whatsapp-glow-ring {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-button::before { animation: none; opacity: 0; }
  .whatsapp-button:hover { transform: none; }
}
/* Two-level Products navigation. */
.header .menu > ul > li.products-menu > .sub-menu { overflow: visible; }
.pharma-excipients { position: relative; }
.pharma-trigger { width: 100%; border: 0; border-bottom: 1px solid #ffffff1a; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 300; line-height: 20px; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.pharma-trigger span { font-size: 22px; }
.pharma-trigger:hover, .pharma-trigger:focus-visible { background: #e64243; }
.pharma-trigger:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.pharma-flyout { display: none; position: absolute; left: 100%; top: 0; width: 270px; margin: 0; padding: 0; list-style: none; background: #f04f50; box-shadow: 0 6px 18px #0003; z-index: 510; }
.pharma-product-name { display: block; color: #fff; padding: 12px 20px; font-size: 14px; font-weight: 400; line-height: 1.4; white-space: normal; border-bottom: 1px solid #ffffff1a; }
@media (min-width: 1027px) {
  .pharma-excipients:hover > .pharma-flyout, .pharma-excipients:focus-within > .pharma-flyout, .pharma-excipients.pharma-open > .pharma-flyout { display: block; }
}
@media (max-width: 1026px) {
  .header .menu > ul > li.products-menu > .sub-menu { overflow-y: auto; overflow-x: hidden; }
  .pharma-trigger { padding: 18px 20px; }
  .pharma-flyout { position: static; width: 100%; background: #00378a; box-shadow: none; }
  .pharma-excipients.pharma-open > .pharma-flyout { display: block; }
  .pharma-product-name { padding-left: 32px; }
  .pharma-open > .pharma-trigger span { transform: rotate(90deg); }
}

.pharma-trigger span { font-size: 0; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: 3px; }
.pharma-flyout a.pharma-product-name { text-decoration: none; font-weight: 400 !important; }
.pharma-flyout a.pharma-product-name:hover, .pharma-flyout a.pharma-product-name:focus-visible { background: #e64243; }
@media(max-width:1026px){ .pharma-open > .pharma-trigger span { transform: rotate(135deg); } }

/* Excipients reuse the Personal Care table styles and typography. */
.pharma-secondary-title { margin: 60px 0 24px; }
.pharma-product-table th:first-child { width: 12%; }
.pharma-product-table th:nth-child(2) { width: 30%; }
.pharma-product-table th:nth-child(3) { width: 58%; }
@media (max-width: 767px) { .pharma-product-table { min-width: 680px; } .pharma-product-table td { white-space: normal; } }

/* Keep the product banner compact while filling it without distorting the image. */
#common_image.pharma-banner-image { width: 100%; height: clamp(180px, 24vw, 320px); overflow: hidden; }
#common_image.pharma-banner-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portfolio_slider_img.pharma-card-image { height: auto; aspect-ratio: 3 / 2; }
.portfolio_slider_img.pharma-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Show the entire round dish within the related-product card. */
.portfolio_slider_img.pharma-card-image:has(img[src$="crosslinked-card.jpeg"]) { background: #00378a; }
.portfolio_slider_img.pharma-card-image img[src$="crosslinked-card.jpeg"] { object-fit: contain; border-radius: 0; }

/* Match the Pharma Excipients button to its sibling mobile product links. */
@media (max-width: 1026px) {
 .header .menu > ul > li.products-menu > .sub-menu > ul > li > a,
 .header .menu .pharma-trigger {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
 }
}

/* Keep both hands and the sanitizer bottle visible in the page banner. */
#common_image.personal-hpmc-banner { height: clamp(240px, 32vw, 480px); background: #858274; }
#common_image.personal-hpmc-banner img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

/* Use the same brand blue for every logo component. */
.header .logo img { filter: url(#mh-brand-blue) !important; }

/* Keep active navigation readable on the blue mobile drawer. */
@media (max-width: 1026px) {
 .menu_dark .header .menu-main > li.active > a,
 .header.is-sticky .menu-main > li.active > a,
 .header .menu-main > li.active > a {
  color: #fff !important;
  font-weight: 400 !important;
 }
}

@media (min-width: 1027px) {
 .header .menu-main > li.active > a {
  color: #fff !important;
  font-weight: 400 !important;
 }
 .menu_dark .header .menu-main > li.active > a,
 .header.is-sticky .menu-main > li.active > a {
  color: #000 !important;
  font-weight: 400 !important;
 }
}

@media (max-width: 1026px) {
 .header .menu > ul > li > a .down_arrow {
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
 }
}

.owl-carousel {
 overflow-x: clip;
}
