
/* === ROOT VARIABLES === */
:root {
  --brand-meg-primary:  #E30613;
  --brand-meg-dark:     #25303B;
  --brand-meg-dark-red: #b1050f;
  --brand-meg-text:     #212529;
  --brand-meg-bg-light: #F2F3F4;
  --brand-meg-border:   #E8E8E8;
  --brand-meg-font: 'Noto Sans', sans-serif;
  --brand-meg-text-muted: #555555;
  --brand-meg-surface:    #F8F8F8;
  --brand-meg-dark-2:     #35444f;
  --brand-meg-white:      #fff;
}

/* Force Noto Sans — overrides global Open Sans */
.megger-sws-header,
.megger-mobile,
.megger-sws-header *,
.megger-mobile *,
.meg-sws-store,
.meg-sws-store * {
  font-family: var(--brand-meg-font);
}

.content.SWS-mobile-setting {
  padding-top: 0;
  padding-bottom: 0;
}

/* Global focus ring suppression for all SWS interactive elements */
.meg-sws-store a:focus,
.meg-sws-store button:focus,
.megger-sws-header a:focus,
.megger-sws-header button:focus,
.megger-mobile a:focus,
.megger-mobile button:focus {
  outline: 0;
}

/* ============================================================
   HEADER
   ============================================================ */

.megger-sws-header {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.megger-sws-header .megger-head {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.megger-sws-header {
  padding: 20px 0 15px;
}

.megger-sws-header .megger-head::before,
.megger-sws-header .megger-head::after {
  display: none;
}

.megger-sws-header .span4 > a > img {
  width: 252px;
  height: auto;
  display: block;
}

.megger-sws-header .span8 {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.megger-sws-header .meg-nav-group {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

.megger-sws-header .meg-desktop-search {
  margin-bottom: 8px;
  margin-left: 50px;
  display: flex;
}

.megger-sws-header .meg-desktop-search .input-append {
  display: flex;
  flex: 1;
  margin-bottom: 0;
}

.megger-sws-header .meg-desktop-search input#ProductSearch.appendInputButton {
  flex: 1;
  width: auto !important;
  min-width: 0;
  height: 34px !important;
  box-sizing: border-box;
  border: none;
  background-color: var(--brand-meg-surface);
  border-radius: 0;
  padding: 6px 12px;
  font-family: var(--brand-meg-font);
  font-size: 0.8125rem;
  color: var(--brand-meg-text);
  outline: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.megger-sws-header .meg-desktop-search input#ProductSearch.appendInputButton::placeholder {
  font-size: 0.875rem;
  color: var(--brand-meg-text);
  opacity: 1;
}

.megger-sws-header .meg-desktop-search input#ProductSearch.appendInputButton:focus {
  outline: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.megger-sws-header .meg-desktop-search .btn.btn-default {
  height: 34px;
  background-color: var(--brand-meg-primary);
  background-image: none;
  border: 1px solid var(--brand-meg-primary);
  border-radius: 0;
  color: var(--brand-meg-white);
  padding: 0 15px;
  flex-shrink: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.megger-sws-header .meg-desktop-search .btn.btn-default:hover {
  background-color: var(--brand-meg-dark-red);
  border-color: var(--brand-meg-dark-red);
}

.megger-sws-header .meg-desktop-search .btn.btn-default i.icon-search {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
  vertical-align: middle;
  margin: 0 0 2px 0 !important;
}

.navbar.navbar-inner-megger-subsite {
  background: none;
  background-image: none;
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  margin-bottom: 0;
  min-height: 0;
}

.navbar.navbar-inner-megger-subsite .nav > li > a {
  background-color: transparent;
  color: var(--brand-meg-text);
  padding: 0.375em 1.875em;
  margin-left: 0;
  font-family: var(--brand-meg-font);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  border-radius: 0;
  text-shadow: none;
}

.navbar.navbar-inner-megger-subsite .nav > li:last-child > a {
  padding-right: 0;
}

.navbar.navbar-inner-megger-subsite .nav > li > a:hover,
.navbar.navbar-inner-megger-subsite .nav > li > a:active,
.navbar.navbar-inner-megger-subsite .nav > li > a:focus {
  background-color: transparent;
  color: var(--brand-meg-primary);
  text-decoration: none;
  outline: 0;
}

.navbar.navbar-inner-megger-subsite .nav > li.dropdown.open > .dropdown-toggle,
.navbar.navbar-inner-megger-subsite .nav > li.dropdown.active > .dropdown-toggle,
.navbar.navbar-inner-megger-subsite .nav > li.dropdown.open.active > .dropdown-toggle {
  background-color: transparent;
  color: var(--brand-meg-primary);
  box-shadow: none;
  -webkit-box-shadow: none;
  outline: 0;
}

.navbar.navbar-inner-megger-subsite .nav > li > a.megger-home-icon {
  padding: 0.375em 1.875em 0.375em 0;
  color: var(--brand-meg-text);
  display: inline-flex;
  align-items: center;
}

.navbar.navbar-inner-megger-subsite .nav > li > a.megger-home-icon:hover,
.navbar.navbar-inner-megger-subsite .nav > li > a.megger-home-icon:active,
.navbar.navbar-inner-megger-subsite .nav > li > a.megger-home-icon:focus {
  background-color: transparent;
  color: var(--brand-meg-primary);
}

.navbar.navbar-inner-megger-subsite .nav > li > a.megger-home-icon svg {
  display: inline-block;
  vertical-align: middle;
}

.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.nav.navbar-megger-subsite{
  margin: 0;
}

.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li + li {
  border-left: none;
  position: relative;
}

.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 14px;
  background-color: var(--brand-meg-primary);
}

/* Products + Industries <li> set static so their dropdowns anchor to the <ul> right edge. */
.navbar.navbar-inner-megger-subsite .nav > li.dropdown:nth-child(2),
.navbar.navbar-inner-megger-subsite .nav > li.dropdown:nth-child(3) {
  position: static;
}
/* ::before on static <li> anchors to a wrong parent — hide and replace with ::after on the previous <li> */
.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li.dropdown:nth-child(2)::before,
.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li.dropdown:nth-child(3)::before {
  display: none;
}
.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li:first-child,
.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li.dropdown:nth-child(2) {
  position: relative;
}
.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li:first-child::after,
.navbar.navbar-inner-megger-subsite .nav.navbar-megger-subsite > li.dropdown:nth-child(2)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 14px;
  background-color: var(--brand-meg-primary);
}

/* ============================================================
   DESKTOP DROPDOWN MENU — Products + Industries
   ============================================================ */

.navbar.navbar-inner-megger-subsite .nav > li.dropdown > .dropdown-menu {
  margin-top: 8px;
  padding: 8px 0;
  border: none;
  border-top: 4px solid var(--brand-meg-primary);
  border-radius: 0;
  background-color: var(--brand-meg-white);
  background-clip: padding-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  -webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.navbar.navbar-inner-megger-subsite .nav > li.dropdown > .dropdown-menu::before,
.navbar.navbar-inner-megger-subsite .nav > li.dropdown > .dropdown-menu::after {
  display: none !important;
}

#products-dropdown + .dropdown-menu {
  width: 520px;
  column-count: 2;
  column-gap: 0;
  left: auto;
  right: -219px;
}
#products-dropdown + .dropdown-menu > li {
  -webkit-column-break-inside: avoid;
  break-inside: avoid;
}

#industries-dropdown + .dropdown-menu {
  min-width: 280px;
  left: auto;
  right: 0;
}

.navbar-inner-megger-subsite .dropdown-menu li > a {
  font-family: var(--brand-meg-font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
  padding: 8px 20px;
  color: var(--brand-meg-text);
  white-space: normal;
}

.navbar-inner-megger-subsite .dropdown-menu li > a:hover,
.navbar-inner-megger-subsite .dropdown-menu li > a:focus,
.navbar-inner-megger-subsite .dropdown-menu li > a:active {
  background-color: var(--brand-meg-primary) !important;
  color: var(--brand-meg-white) !important;
}

/****** French ******/
.navbar.navbar-inner-megger-subsite.megger-nav-french .nav > li > a {
  padding: 0.375em 1.625em;
  letter-spacing: 0;
}
.navbar.navbar-inner-megger-subsite.megger-nav-french .nav > li:last-child > a {
  padding-right: 0;
}
.navbar.navbar-inner-megger-subsite.megger-nav-french .nav > li > a.megger-home-icon {
  padding-right: 1.625em;
}
.megger-sws-header-fr .meg-desktop-search {
  margin-left: 66px;
}
/****** end French ******/

/* ============================================================
   HERO CAROUSEL
   ============================================================ */

.meg-sws-store.carousel-top {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  background-color: var(--brand-meg-white);
  overflow: hidden;
}

.meg-sws-store .sws-carousel-drop-shadow {
  overflow: hidden;
}

.meg-sws-store #myCarousel .carousel-inner.hero-section,
.meg-sws-store #myCarousel .carousel-inner.hero-section-french {
  height: 420px;
  margin-top: 0;
}

.meg-sws-store #myCarousel .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 100%;
  height: 100%;
  max-width: 1170px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.meg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--brand-meg-bg-light);
}

.meg-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--brand-meg-dark-red) 50%, var(--brand-meg-primary) 100%);
  -webkit-mask: linear-gradient(164deg, transparent 52%, #000 49%);
          mask: linear-gradient(164deg, transparent 52%, #000 49%);
}

.meg-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(196deg, transparent 80%, var(--brand-meg-dark) 80%);
}

.meg-sws-store #myCarousel .carousel-control-new {
  top: 50%;
  margin-top: -24px;
  z-index: 6;
}
.meg-sws-store #myCarousel .carousel-control-new.left {
  left: -10px;
  right: auto;
}
.meg-sws-store #myCarousel .carousel-control-new.right {
  right: -10px;
  left: auto;
}

.meg-sws-store #myCarousel .hero-content .meg-hero-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.meg-sws-store #myCarousel .text-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  padding: 0 2.5rem 0 0.9375rem;
  position: relative;
  z-index: 3;
  margin-top: 60px;
}

.meg-sws-store #myCarousel .text-content h1 {
  font-family: var(--brand-meg-font);
  font-size: clamp(1.375rem, 2.88vw, 1.8rem);
  font-weight: 700;
  color: var(--brand-meg-text);
  line-height: 1.2;
  margin: 0 0 10px;
}

.meg-sws-store #myCarousel .text-content .meg-accent {
  color: var(--brand-meg-primary);
  font-weight: 700;
}

.meg-sws-store #myCarousel .text-content h2 {
  font-family: var(--brand-meg-font);
  font-size: clamp(0.875rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--brand-meg-text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
}

.meg-sws-store #myCarousel .carousel-btn {
  display: inline-block;
  background-color: var(--brand-meg-primary);
  color: var(--brand-meg-white);
  font-family: var(--brand-meg-font);
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.875em 2em;
  text-decoration: none;
  transition: background-color 0.2s ease;
  align-self: flex-start;
  border-radius: 6px;
}

.meg-sws-store #myCarousel .carousel-btn:hover,
.meg-sws-store #myCarousel .carousel-btn:focus,
.meg-sws-store #myCarousel .hero-content:hover .carousel-btn {
  background-color: var(--brand-meg-dark-red);
  color: var(--brand-meg-white);
  text-decoration: none;
}

.meg-sws-store #myCarousel .hero-content .product-image {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.meg-sws-store #myCarousel .product-image a {
  display: block;
  line-height: 0;
}

.meg-sws-store #myCarousel .product-image img.desk-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
}

.meg-sws-store .carousel-indicators li {
  background-color: var(--brand-meg-border);
  border-color: var(--brand-meg-border);
}

.meg-sws-store .carousel-indicators .active {
  background-color: var(--brand-meg-primary);
  border-color: var(--brand-meg-primary);
}


/* ============================================================
   PRODUCT BUTTONS + SIDE AD
   ============================================================ */

.sws-meg-buttons {
  padding: 30px 0 10px;
}

.sws-meg-buttons .meg-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-column-gap: 16px;
  grid-row-gap: 10px;
  width: 100%;
}

.meg-item.side-ad  { grid-area: 1 / 3 / 6 / 4; }

.meg-item.btn-01   { grid-area: 1 / 1 / 2 / 2; }
.meg-item.btn-02   { grid-area: 1 / 2 / 2 / 3; }
.meg-item.btn-03   { grid-area: 2 / 1 / 3 / 2; }
.meg-item.btn-04   { grid-area: 2 / 2 / 3 / 3; }
.meg-item.btn-05   { grid-area: 3 / 1 / 4 / 2; }
.meg-item.btn-06   { grid-area: 3 / 2 / 4 / 3; }
.meg-item.btn-07   { grid-area: 4 / 1 / 5 / 2; }
.meg-item.btn-08   { grid-area: 4 / 2 / 5 / 3; }
.meg-item.btn-09   { grid-area: 5 / 1 / 6 / 2; }
.meg-item.btn-10   { grid-area: 5 / 2 / 6 / 3; }

.meg-item.btn {
  background-color: var(--brand-meg-bg-light);
  border-left: 10px solid var(--brand-meg-primary);

  aspect-ratio: 369 / 111;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease;
  border-radius: 10px;
}

.meg-item.btn:hover {
  background-color: var(--brand-meg-border);
}

.meg-item.btn a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  /* border-box prevents chevron clip by overflow:hidden */
  box-sizing: border-box;
  padding: 0 0px 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  color: var(--brand-meg-text);
  z-index: 1;
}

.meg-item.btn a:hover,
.meg-item.btn a:focus {
  text-decoration: none;
  color: var(--brand-meg-text);
}

.meg-item.btn .application-title {
    font-family: var(--brand-meg-font);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-meg-text);
    line-height: 1.3;
    margin-top: 0px;
    white-space: normal;
    text-align: left;
}

.meg-item.btn a::after {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E8E8E8' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6.776 1.553a.5.5 0 0 1 .671.223l3 6a.5.5 0 0 1 0 .448l-3 6a.5.5 0 1 1-.894-.448L9.44 8 6.553 2.224a.5.5 0 0 1 .223-.671'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;

}

.meg-item.side-ad {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 24px;
  overflow: hidden;
  text-decoration: none;
  color: var(--brand-meg-dark);
  background-color: var(--brand-meg-surface);
  border-radius: 10px;
  position: relative;
}

.meg-item.side-ad p{
  font-size: 1.125rem;
  line-height: 1.2;
  margin-top: 10px;
}

.meg-side-ad-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.meg-side-ad-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: var(--brand-meg-primary);
  clip-path: polygon(1% 100%, 100% 100%, 100% 0%, 0% 35%);
  z-index: 0;
}

.meg-side-ad-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: var(--brand-meg-dark);
  clip-path: polygon(0% 0%, 100% 27%, 100% 100%, 0% 100%);
  z-index: 1;
}

.meg-item.side-ad .meg-side-ad-title {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
}

.meg-item.side-ad .application-title {
  font-family: var(--brand-meg-font);
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--brand-meg-dark);
  line-height: 1.3;
  margin: 0;
}

.meg-item.side-ad .meg-accent {
  color: var(--brand-meg-primary);
  font-weight: 700;
}

.meg-item.side-ad .meg-application-img {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.meg-item.side-ad .meg-application-img img {
  width: 64%;
  height: auto;
  object-fit: contain;
}

.meg-item.side-ad .meg-side-ad-cta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.side-ad-btn {
  display: inline-block;
  color: var(--brand-meg-white);
  background-color: var(--brand-meg-primary);
  border: none;
  border-radius: 6px;
  padding: 0.75em 2.25em;
  font-family: var(--brand-meg-font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background-color 0.25s ease;
}

.meg-item.side-ad:hover .side-ad-btn {
  background-color: var(--brand-meg-dark-red);
  color: var(--brand-meg-white);
}

/****** French ******/

.megger-sws-header-fr #products-dropdown + .dropdown-menu{
  right: -227px;
}

/****** end French ******/

/* ============================================================
   INDUSTRIES SECTION
   ============================================================ */

.sws-meg-industries {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  background-color: var(--brand-meg-surface);
  padding: 30px 0 50px;
  margin-top: 40px;
}

.sws-meg-industries .meg-industries-inner {
  max-width: 1170px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px;
}

.meg-industries-grid-wrap {
  width: 100%;
  box-sizing: border-box;
}

.industries-title {
  font-family: var(--brand-meg-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-meg-text);
  text-align: center;
  margin: 0 0 30px;
}

.meg-industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 16px;
  grid-row-gap: 10px;
}

.meg-ind-item {
  background-color: var(--brand-meg-dark);
  border-left: 10px solid var(--brand-meg-primary);
  border-radius: 10px;
  aspect-ratio: 369/111;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.meg-ind-item:hover {
  background-color: var(--brand-meg-dark-2);
}

.meg-ind-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0 0px 0 20px;
  position: absolute;
  top: 0;
  left: 0;
  text-decoration: none;
  color: var(--brand-meg-white);
  z-index: 1;
}

.meg-ind-item a:hover,
.meg-ind-item a:focus {
  text-decoration: none;
  color: var(--brand-meg-white);
}

.meg-ind-item .application-title {
  font-family: var(--brand-meg-font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-meg-white);
  line-height: 1.3;
  margin-top: 0;
}

.meg-ind-item a::after {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6.776 1.553a.5.5 0 0 1 .671.223l3 6a.5.5 0 0 1 0 .448l-3 6a.5.5 0 1 1-.894-.448L9.44 8 6.553 2.224a.5.5 0 0 1 .223-.671'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45;
  flex-shrink: 0;
}

/* ============================================================
   MOBILE HEADER — base (collapse panel, sub-nav links)
   ============================================================ */

.nav-collapse.megger-mobile-sub-nav .nav.mshow{
    background-color: var(--brand-meg-surface);
    border-top: 0;
    padding: 10px 20px;
}

.megger-mobile .megger-mobile-sub-nav.collapse {
  -webkit-transition: height .7s ease;
  transition: height .7s ease;
}

.megger-mobile .sws-mobile-header-nav .megger-mobile-sub-nav#mobile-sws-1 .nav>li>a, .megger-mobile .sws-mobile-header-nav .megger-mobile-sub-nav .nav>li>a{
  color:var(--brand-meg-text) !important;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================================
   ABOUT MEGGER PAGE  (eng/about-megger.ctp + fr/about-megger.ctp)
   ============================================================ */

.mobile-setting{
padding-top: 0px;

}   
.megger-about {
  font-family: var(--brand-meg-font);
  color: var(--brand-meg-text);
  margin-bottom: -15px;
}

/* Hide SWS breadcrumb on the About page */
.megger-about .breadcrumb,
.row-fluid.navbar.taxonomy-breadcrumbs.sws-breadcrumbs {
  display: none;
}

.megger-about .megger-accent {
  color: var(--brand-meg-primary);
}

/* ---------- HERO BAND ---------- */
.megger-about-hero {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  background-image:
    linear-gradient(90deg, rgba(20, 26, 32, 1) 0%, rgba(20, 26, 32, 0.55) 50%, rgba(20, 26, 32, 0.15) 100%),
    url(/images/pages/megger/MEGGER-ABOUT-HERO.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.megger-about-hero-inner {
  max-width: 1170px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 80px 15px;
  height: 100%;
}

.megger-about-hero-text {
  max-width: 620px;
}

.megger-about-eyebrow {
  color: var(--brand-meg-white);
  font-size: 2.0625rem;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.2;
}

.megger-about-logo {
  margin: 0 0 22px;
}

.megger-about-logo-img {
  width: 260px;
  height: auto;
  max-width: 100%;
}

.megger-about-intro {
  color: var(--brand-meg-white);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.megger-about-intro strong {
  font-weight: 700;
  color: var(--brand-meg-white);
}

/* ---------- CONTENT BANDS (image + text) ---------- */
.megger-about-band {
  width: 100vw;
  position: relative;
  margin-left: -50vw;
  left: 50%;
  background-color: var(--brand-meg-white);
}

/* --meg-band-edge: aligns band text with the hero text/logo edge */
.megger-about-band {
  --meg-band-edge: calc((100vw - 1170px) / 2 + 15px);
}

.megger-about-band.megger-about-band-2{
  background-color: var(--brand-meg-bg-light);
}

.megger-about-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.megger-about-band-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 60px;
  box-sizing: border-box;
}

.megger-about-band-1 .megger-about-band-text {
  padding-left: var(--meg-band-edge);
}
.megger-about-band-2 .megger-about-band-text {
  padding-right: var(--meg-band-edge);
}

.megger-about-band-img {
  position: relative;
  overflow: hidden;
  /* isolate: blend mixes only photo + triangles */
  isolation: isolate;
}

.megger-about-band-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  z-index: 1;
}

.megger-about-band-img::before,
.megger-about-band-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.megger-about-band-img::before {
  background-color: var(--brand-meg-primary);
  z-index: 2;
}

.megger-about-band-img::after {
  background-color: var(--brand-meg-dark);
  z-index: 3;
}

.megger-about-band-1 .megger-about-band-img::before {
  clip-path: polygon(75% 0, 100% 0%, 100% 100%);
}
.megger-about-band-1 .megger-about-band-img::after {
  clip-path: polygon(100% 30%, 100% 100%, 85% 100%);
  opacity: 0.7;
}

.megger-about-band-2 .megger-about-band-img::before {
  clip-path: polygon(0 0, 25% 0, 0 100%);
}
.megger-about-band-2 .megger-about-band-img::after {
  clip-path: polygon(0 40%, 0 100%, 20% 100%);
  opacity: 0.7;

}

/* Red vertical indicator bar on band headings */
.megger-about-band h2.text-with-indicator {
  position: relative;
  margin: 0 0 18px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-meg-dark);
}

.megger-about-band-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  color: var(--brand-meg-text);
}


/* ============================================================
   RESPONSIVE — all media queries grouped, descending
   ============================================================ */

@media (max-width: 1199px) {

  /* Home / hero / buttons / industries */
  .megger-sws-header .megger-head {
    max-width: 940px;
  }

  .meg-sws-store #myCarousel .hero-content {
    max-width: 940px;
    padding: 0;
  }

  .meg-sws-store #myCarousel .text-content h2 {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }

  .sws-meg-industries .meg-industries-inner {
    max-width: 940px;
  }

  .meg-item.btn {
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 80px;
  }

  .meg-item.btn .application-title {
    font-size: 1rem;
  }

  .meg-item.side-ad .application-title {
    font-size: 1.5rem;
  }

  .industries-title {
    font-size: 1.75rem;
  }

  .meg-ind-item .application-title {
    font-size: 1rem;
  }

  .meg-item.side-ad p{
    font-size: 0.875rem;
  }

  /* About — BS2 container is 940px in the 980–1199 window. Below 980 the
     980-wide cap is reset in the 979 block (hero-inner max-width: none). */
  .megger-about-hero-inner {
    max-width: 940px;
  }

  .megger-about-band {
    --meg-band-edge: calc((100vw - 940px) / 2 + 15px);
    padding-top: 0px;
  }
}

@media (max-width: 979px) {

  /* Home / hero / buttons / industries */
  .megger-sws-header .megger-head {
    max-width: 724px;
  }

  .meg-sws-store #myCarousel .hero-content {
    padding: 0 20px;
  }

  .sws-meg-industries .meg-industries-inner {
    max-width: none;
  }

  .meg-item.btn {
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 56px;
  }
  .sws-meg-industries .meg-industries-inner{
    padding: 0 20px;
  }

  .meg-item.side-ad .application-title {
    font-size: 1.25rem;
  }

  .meg-item.side-ad p {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 5px;
  }

  .meg-item.side-ad .meg-application-img img {
    width: 80%;
  }

  .meg-hero-bg::before {
    -webkit-mask: linear-gradient(164deg, transparent 66%, #000 63%);
            mask: linear-gradient(164deg, transparent 66%, #000 63%);
  }
  .meg-hero-bg::after {
    background: linear-gradient(196deg, transparent 86%, var(--brand-meg-dark) 86%);
  }

  /* Mobile header */
  /* Fluid container uses 20px padding — match it so header aligns with content below */
  .megger-sws-header .megger-head {
    padding: 0 20px;
  }

  .megger-mobile .sws-mobile-header-nav {
    margin-top: 12px;
    margin-bottom: 0;
    flex: 0 0 100%;
  }

  .megger-mobile .sws-mobile-header-nav .navbar-megger-subsite-mobile {
    width: 100%;
    margin: 0;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    padding: 0;
    list-style: none;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust > li:not(.megger-mobile-sub-nav) {
    flex: 1;
    width: auto;
    margin: 0;
    display: flex;
    align-items: stretch;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 6px;
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 0.875rem;
    background-color: var(--brand-meg-primary);
    color: var(--brand-meg-white);
    text-decoration: none;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust > li > a:hover,
  .megger-mobile #SWS-mobile-nav-button-adjust > li > a:active {
    background-color: var(--brand-meg-dark-red);
    color: var(--brand-meg-white);
    text-decoration: none;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust > li:not(.megger-mobile-sub-nav) + li:not(.megger-mobile-sub-nav) {
    border-left: 1px solid rgba(255, 255, 255, 0.6);
  }

  /* display:block required — flex breaks Bootstrap's collapse scrollHeight */
  .megger-mobile #SWS-mobile-nav-button-adjust > .megger-mobile-sub-nav {
    flex: 0 0 100%;
    width: 100%;
    display: block;
  }

  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav {
    column-count: 2;
    column-gap: 0;
  }
  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav > li {
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
  }

  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav > li > a:hover,
  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav > li > a:focus,
  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav > li > a:active,
  .megger-mobile #mobile-sws-1 .accordion-inner.nav > li > a:hover,
  .megger-mobile #mobile-sws-1 .accordion-inner.nav > li > a:focus,
  .megger-mobile #mobile-sws-1 .accordion-inner.nav > li > a:active {
    color: var(--brand-meg-dark-red) !important;
    background: transparent !important;
    text-decoration: none;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust > li.megger-mobile-home {
    flex: 0 0 50px;
  }

  .megger-mobile #SWS-mobile-nav-button-adjust > li.megger-mobile-home a {
    color: var(--brand-meg-white);
  }
  .megger-mobile #SWS-mobile-nav-button-adjust > li.megger-mobile-home svg {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
  }

  .navbar-inner.megger-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 20px;
    margin-left: 0 !important;
    box-sizing: border-box;
    background-color: var(--brand-meg-white);
    background: var(--brand-meg-white);
  }
  .navbar-inner.megger-mobile::before,
  .navbar-inner.megger-mobile::after {
    display: none;
  }

  .navbar-inner.megger-mobile .span9 {
    flex: 1;
    margin: 0;
  }

  .navbar-inner.megger-mobile .span3 {
    margin: 0;
    width: auto;
  }
  .navbar-inner.megger-mobile .span3 img.mobile-logo {
    width: 200px;
    height: auto;
    padding-left: 10px;
  }

  .megger-mobile .mobile-search,
  .megger-mobile form.navbar-search {
    margin-top: 0;
  }

  /* Neutralize platform .navbar-search float + horizontal margin (GTS sets
     .navbar-search { margin-left: 25% }) so the search aligns the same across stores */
  .megger-mobile form.navbar-search {
    float: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none;
  }

  .megger-mobile .mobile-search .mobile-search-sizing {
    display: flex;
    align-items: stretch;
    width: 330px;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0 !important;
  }

  .megger-mobile .mobile-search input#ProductSearch.appendedInputButton {
    flex: 1;
    width: auto !important;
    min-width: 0;
    height: 34px !important;
    box-sizing: border-box;
    border: none;
    background-color: var(--brand-meg-surface);
    border-radius: 0 !important;
    padding: 6px 12px;
    margin: 0;
    font-family: var(--brand-meg-font);
    font-size: 0.8125rem;
    color: var(--brand-meg-text);
    box-shadow: none;
    -webkit-box-shadow: none;
  }
  .megger-mobile .mobile-search input#ProductSearch.appendedInputButton::placeholder {
    font-size: 0.875rem;
    color: var(--brand-meg-text);
    opacity: 1;
  }

  .content.mobile-setting{
    padding-bottom: 0px;
  }

  .megger-mobile .mobile-search .btn.btn-default {
    height: 34px;
    background-color: var(--brand-meg-primary);
    background-image: none;
    border: 1px solid var(--brand-meg-primary);
    border-radius: 0;
    color: var(--brand-meg-white);
    padding: 0 15px;
    flex-shrink: 0;
    box-shadow: none;
    -webkit-box-shadow: none;
  }

  .megger-mobile .mobile-search .btn.btn-default svg {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 2px;
  }

  /* About — stack image over text, full-bleed image, flat padding.
     max-width: none resets the 980-wide hero cap from the 1199 block. */
  .megger-about-hero-inner {
    padding: 60px 30px;
    max-width: none;
  }
  .megger-about-band-inner {
    grid-template-columns: 1fr;
  }
  /* image always on top of the text when stacked (band-1 DOM is text→image) */
  .megger-about-band-1 .megger-about-band-img {
    order: -1;
  }
  .megger-about-band-text,
  .megger-about-band-1 .megger-about-band-text,
  .megger-about-band-2 .megger-about-band-text {
    padding: 45px 30px;
  }
  .megger-about-band-img {
    min-height: 320px;
  }
}

@media (max-width: 767px) {

  /* Home / hero / buttons / industries */
  .meg-sws-store #myCarousel .carousel-inner.hero-section,
  .meg-sws-store #myCarousel .carousel-inner.hero-section-french {
    height: 450px;
  }

  .meg-sws-store #myCarousel .carousel-inner .item {
    height: 100%;
  }

  .meg-sws-store #myCarousel .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 15px;
  }

  .meg-sws-store #myCarousel .text-content {
    order: 1;
    padding: 0;
    margin-top: 0;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .meg-sws-store #myCarousel .carousel-btn {
    align-self: center;
  }

  /* FR headlines run longer than EN — lower the clamp floor so they don't
     wrap to 4 lines and crowd the mobile hero (Diana, FE-1313) */
  .meg-sws-store #myCarousel .hero-section-french .text-content h1 {
    font-size: clamp(1.125rem, 5vw, 1.5rem);
  }

  .meg-sws-store #myCarousel .hero-content .product-image {
    display: flex;
    order: 2;
    height: auto;
    justify-content: center;
    padding: 0;
  }

  .meg-sws-store #myCarousel .product-image img.desk-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
  }

  .sws-carousel-drop-shadow img,
  .sws-carousel-drop-shadow .carousel-inner {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
  }

  .meg-hero-bg::before {

    background: var(--brand-meg-primary);
    -webkit-mask: none;
            mask: none;
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
    inset: 78% 0 0 0;
    z-index: 0;
  }

  .meg-hero-bg::after {

    background: var(--brand-meg-dark);
    clip-path: polygon(0% 0%, 100% 65%, 100% 100%, 0% 100%);
    inset: 78% 0 0 0;
    z-index: 1;
  }

  .sws-meg-buttons {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .sws-meg-buttons .meg-grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  /* FR labels are longer — give them the full row instead of a 2-col squeeze */
  .sws-meg-buttons-fr .meg-grid-container {
    grid-template-columns: 1fr;
  }

  .meg-item.side-ad {
    display: none;
  }

  .meg-item.btn-01, .meg-item.btn-02, .meg-item.btn-03, .meg-item.btn-04,
  .meg-item.btn-05, .meg-item.btn-06, .meg-item.btn-07, .meg-item.btn-08,
  .meg-item.btn-09, .meg-item.btn-10 {
    grid-area: auto;
  }

  .meg-item.btn {
    aspect-ratio: auto;
    height: auto;
    min-height: 80px;
  }

  .sws-meg-industries .meg-industries-inner{
    padding: 0 15px;
  }

  .meg-industries-grid-wrap {
    box-sizing: border-box;
  }

  .meg-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FR labels are longer — give them the full row instead of a 2-col squeeze */
  .sws-meg-industries-fr .meg-industries-grid {
    grid-template-columns: 1fr;
  }

  .meg-ind-item {
    aspect-ratio: auto;
    height: auto;
    min-height: 80px;
  }

  /* Mobile header */
  .navbar-inner.megger-mobile{
    padding: 10px 0;
  }

  /* About */
  .megger-about-hero-inner {
   padding: 45px 20px;
  }
  .megger-about-logo-img {
    width: 210px;
  }
  .megger-about-band-text,
  .megger-about-band-1 .megger-about-band-text,
  .megger-about-band-2 .megger-about-band-text {
    padding: 35px 20px;
  }
  .megger-about-band-img {
    min-height: 240px;
  }
  .megger-about-band h2.text-with-indicator {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {

  /* Home / hero / buttons / industries */
  .meg-item.btn .application-title,
  .meg-ind-item .application-title {
    font-size: 0.875rem;
  }

  .meg-item.btn a,
  .meg-ind-item a {
    padding-left: 15px;
  }

  .meg-item.btn a::after,
  .meg-ind-item a::after {
    width: 36px;
    height: 36px;
  }

  /* Mobile header */
  .navbar-inner.megger-mobile .span3 {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
  }

  .navbar-inner.megger-mobile .span9 {
    flex: 0 0 100%;
  }
  .megger-mobile .mobile-search,
  .megger-mobile .mobile-search form,
  .megger-mobile .mobile-search .input-append {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  .megger-mobile .mobile-search .mobile-search-sizing {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
}

@media (max-width: 399px) {

  /* Home / hero / buttons / industries */
  .meg-sws-store #myCarousel .product-image img.desk-img {
    max-width: 280px;
  }

  .sws-meg-buttons .meg-grid-container,
  .meg-industries-grid {
    grid-template-columns: 1fr;
  }

  .meg-item.btn,
  .meg-ind-item {
    min-height: 80px;
  }

  /* Mobile header */
  .megger-mobile #SWS-mobile-nav-button-adjust > li > a {
    font-size: 0.75rem;
  }

  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav > li > a,
  .megger-mobile #mobile-sws-1 .accordion-inner.nav > li > a {
    font-size: 0.75rem !important;
  }

  .megger-mobile .megger-mobile-sub-nav .accordion-inner.nav {
    column-count: 1;
  }
}

@media (max-width: 329px) {
  .megger-mobile #SWS-mobile-nav-button-adjust > li > a {
    font-size: 0.6875rem;
  }
  .megger-mobile .sws-mobile-header-nav .megger-mobile-sub-nav#mobile-sws-1 .nav > li > a,
  .megger-mobile .sws-mobile-header-nav .megger-mobile-sub-nav .nav > li > a {
    font-size: 0.75rem;
  }
}
