.brand-wrap {
  display: grid;
  width: 98%;
  grid-template-columns: repeat(8, 120px);
  grid-gap: 30px 20px;
  justify-content: space-between;
}

.brand-info {
  width: 120px;
  overflow: hidden;
  box-shadow: 0px 10px 20px -1px rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  cursor: pointer;
}

.brand-info img {
  width: 100%;
}

.brand-info img:hover {
  animation: blowup 0.6s 1 forwards;
}

.brand-wrap .name {
  text-align: center;
  font-size: 14px;
  color: #2f3343;
  line-height: 1;
  margin-top: 20px;
}

.cooperation-wrap {
  display: grid;
  width: 98%;
  grid-template-columns: repeat(5, 220px);
  grid-gap: 48px 12px;
  justify-content: space-between;
}

.cooperation-item {
  position: relative;
  width: 220px;
  background: #ffffff;
  box-shadow: 0px 0px 0px 2px rgba(0, 0, 0, 0.06);
  border-radius: 6px;
}

.handle-play-btn {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.cooperation-video-img {
  width: 220px;
  overflow: hidden;
}

.cooperation-video-img img {
  width: 100%;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.cooperation-video-img img:hover {
  animation: blowup 0.6s 1 forwards;
}

.sampling-p-wrap {
  position: relative;
  margin-bottom: 30px;
}

.sampling-p-img {
  width: 100%;
  height: 235px;
  overflow: hidden;
}

.sampling-p-img img {
  width: 100%;
}

.sampling-p-title {
  font-size: 16px;
  padding: 5px 0 4px 0;
  width: 180px;
  text-align: center;
  background-color: rgba(41, 168, 128, 0.9);
  position: absolute;
  right: 15px;
  bottom: 0;
  color: #ffffff;
}

.case-img img:hover {
  animation: blowup 0.6s 1 forwards;
}

.sampling-p-img img:hover {
  animation: blowup 0.6s 1 forwards;
}

.sampling-example-card {
  padding: 35px 24px;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0px 10px 20px -1px rgba(0, 0, 0, 0.02);
  border-radius: 4px;
  margin: 16px 12px;
  cursor: pointer;
}

.sampling-example-card:hover {
  z-index: 2;
  box-shadow: 0px 7px 22px 12px rgba(0, 0, 0, 0.03);
}

.sampling-example-summarize {
  font-weight: 600;
  color: #696868;
  font-size: 18px;
  text-decoration: underline;
  margin-top: 20px;
}

.sampling-mail {
  font-size: 18px;
  text-align: center;
  margin-top: 60px;
}

.sampling-module-margin {
  margin-top: 60px;
}

.lab-server-slogen{
  color: #1a1a1a;
  line-height: 1;
  margin: 50px auto;
}
.lab-paragrah{
  width: 74%;
  margin: 0 auto;
  text-align: center;
  font-size: 24px;
  line-height: 42px;
  font-weight: 400;
  color: #8F8F8F;
}
.lab-member-sub{
  font-size: 24px;
  font-weight: 400;
  color: #2F3343;
  line-height: 48px;
  text-align: center;
}
.green{
  color: #04B984;
}

.lab-sever-mobile-img {
  display: none;
}

.equipment-card {
  margin: 10px 10px;
  border-radius: 4px;
  border: 3px solid #22ba5f;
}
.equipment-img img:hover {
  animation: blowup 0.6s 1 forwards;
}
.equipment-img {
  width: 100%;
  height: 178px;
  border-top-right-radius: 2px;
  border-top-left-radius: 2px;
  overflow: hidden;
}
.equipment-img img {
  width: 100%;
}
.equipment-title {
  text-align: center;
  color: #ffffff;
  background: #22ba5f;
  padding: 5px 0;
  font-size: 14px;
}
@keyframes blowup {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

.cooperation-video-title {
  padding: 16px 0px 16px 14px;
  font-size: 14px;
  color: #2f3343;
  line-height: 1.5;
}

.modal-dialog {
  width: 375px;
  margin: 120px auto;
}

.modal-close {
  min-height: 16px;
  padding: 20px 30px;
  top: 0;
  right: -30px;
  color: #f4f;
  z-index: 2000;
  width: 60px;
  position: absolute;
}

.swiper_pc .swiper-container {
  overflow: hidden;
}

.swiper_pc .swiper-wrapper {
  align-items: stretch;
}

.swiper_pc .swiper-slide {
  width: auto !important;
  height: 434px;
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  justify-content: center;
}

.swiper_pc .swiper-slide img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
}

@media only screen and (min-width: 1026px) and (max-width: 1200px) {
  .brand-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(6, 72px);
    grid-gap: 58px 56px;
    justify-content: space-between;
  }
  .lab-paragrah{
    font-size: 18px;
  }

  .cooperation-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(4, 220px);
    grid-gap: 48px 12px;
    justify-content: space-between;
  }

  .sampling-module-margin {
    margin-top: 40px;
  }
  .equipment-card {
    margin: 5px;
  }
  .equipment-title {
    font-size: 10px;
  }
  .equipment-img {
    height: 136px;
  }
}

@media only screen and (min-width: 993px) and (max-width: 1025px) {
  .equipment-title {
    font-size: 10px;
  }
  .lab-paragrah{
    font-size: 16px;
  }
  .equipment-img {
    height: 145px;
  }
  .brand-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(6, 72px);
    grid-gap: 58px 56px;
    justify-content: space-between;
  }

  .cooperation-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(4, 200px);
    grid-gap: 48px 12px;
    justify-content: space-between;
  }

  .cooperation-item {
    width: 200px;
  }

  .cooperation-video-img {
    width: 200px;
  }

  .sampling-module-margin {
    margin-top: 30px;
  }
}

@media only screen and (min-width: 801px) and (max-width: 992px) {
  .brand-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(6, 72px);
    grid-gap: 58px 56px;
    justify-content: space-between;
  }
  .lab-member-sub{
    font-size: 18px;
  }
  .lab-paragrah{
    display: inline;
    font-size: 16px;
    line-height: 28px;
  }

  .cooperation-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(4, 180px);
    grid-gap: 48px 12px;
    justify-content: space-between;
  }

  .cooperation-item {
    width: 180px;
  }

  .cooperation-video-img {
    width: 180px;
  }

  .sampling-module-margin {
    margin-top: 30px;
  }
}

@media only screen and (min-width: 769px) and (max-width: 800px) {
  .brand-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(6, 72px);
    grid-gap: 58px 56px;
    justify-content: space-between;
  }
  .lab-paragrah{
    display: inline;
    font-size: 12px;
    line-height: 20px;
    color: #8F8F8F;
  }

  .cooperation-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(3, 220px);
    grid-gap: 48px 12px;
    justify-content: space-between;
  }

  .sampling-module-margin {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 768px) {
  .lab-member-sub{
    font-size: 12px;
    line-height: 26px;
  }
  .lab-paragrah{
    display: inline;
    font-size: 12px;
    line-height: 20px;
    color: #8F8F8F;
  }
  .lab-sever-mobile-img {
    display: block;
    margin-bottom: 25px;
  }
  .lab-sever-pc-img {
    display: none;
  }
  .brand-wrap {
    display: grid;
    grid-template-columns: repeat(5, 52px);
    width: 98%;
    grid-gap: 20px 3px;
    justify-content: space-between;
  }

  .brand-info {
    width: 60px;
    overflow: hidden;
  }

  .brand-info img {
    width: 100%;
  }

  .brand-wrap .name {
    font-size: 12px;
    margin-top: 10px;
  }

  .cooperation-wrap {
    display: grid;
    width: 98%;
    grid-template-columns: repeat(3, 105px);
    grid-gap: 24px 7px;
    justify-content: space-between;
  }

  .cooperation-item {
    width: 105px;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.06);
  }

  .handle-play-btn {
    top: 50px;
  }

  .cooperation-video-img {
    width: 105px;
    height: 147px;
    overflow: hidden;
  }

  .cooperation-video-title {
    padding: 6px 10px 10px 10px;
    font-size: 12px;
  }

  .modal-dialog {
    margin: 80px auto;
  }

  .modal-close {
    top: -10px;
    right: -10px;
  }

  .sampling-example-summarize {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .sampling-p-wrap {
    margin-bottom: 20px;
  }

  .sampling-p-img {
    height: 90px;
  }

  .sampling-p-title {
    font-size: 12px;
    padding: 3px 0 2px 0;
    width: 100px;
    text-align: center;
    background-color: rgba(41, 168, 128, 0.9);
    position: absolute;
    right: 15px;
    bottom: 0;
    color: #ffffff;
  }

  .sampling-example-card {
    padding: 20px 16px 20px 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 10px 20px -1px rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    margin: 16px 12px;
    cursor: pointer;
  }

  .sampling-module-margin {
    margin-top: 30px;
  }
}


.swiper_mibile .swiper-wrapper .swiper-slide {
  background-color: rgb(244, 244, 244);
}

.seamless-swiper-flex {
  display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
}

.swiper-container .swiper-wrapper{
  -webkit-transition-timing-function: linear!important; 
  -o-transition-timing-function: linear!important;
  transition-timing-function: linear!important; 
}

.swiper_pc {
  display: block;
}

.swiper_mibile {
  display: none;
}

@media (min-width: 350px) and (max-width: 500px)  {
  .swiper_pc {
    display: none !important;
  }

 .swiper_mibile {
    display: block !important;
  }

  .brand-s-mark {
    margin-bottom: 6px;
  }
}

.service_call {
  position: fixed;
  top: 42%;
  left: 0;
  width: 70px;
  z-index: 99;
}

.service_call .text-nav .hover-qrcode {
  left: 70%;
}

/* ==========================================
   Inspection & Sampling Sticky Navigation (PC & Mobile)
   ========================================== */
@media (min-width: 992px) {
  .legacy-inspection #nav-wrap,
  .legacy-sampling #nav-wrap,
  .legacy-laboratory #nav-wrap,
  .legacy-mcn #nav-wrap {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 97px !important; /* Fits PC header height with 1px overlap to prevent light leak */
    z-index: 999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  }
  .sampling_banner .banner-mobile {
    display: none !important;
  }
  .sampling_banner .banner-pc {
    display: block !important;
  }
}

@media (max-width: 991px) {
  .legacy-inspection #nav-wrap,
  .legacy-sampling #nav-wrap,
  .legacy-laboratory #nav-wrap,
  .legacy-mcn #nav-wrap {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 59px !important; /* Fits Mobile header height with 1px overlap to prevent light leak */
    z-index: 999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  }
  
  /* Horizontal overflow scroll for submenu tabs on mobile */
  .sampling-submenu {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  .sampling-submenu::-webkit-scrollbar {
    display: none !important;
  }
  .sampling-submenu .submenus-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
  }
  .sampling-submenu .submenu-tab {
    flex-shrink: 0 !important;
    display: inline-block !important;
    float: none !important;
  }
}

/* ==========================================
   Inspection Page Mobile Viewport 375px Adaptation
   ========================================== */
@media (max-width: 991px) {
  /* Banner & Illustration Assets Adaptation */
  .sampling_banner .banner-pc {
    display: none !important;
  }
  .sampling_banner .banner-mobile {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Apply cards and static images sizing */
  .apply-card {
    padding: 0 16px !important;
    text-align: center !important;
  }
  .apply-card img {
    max-width: 100% !important;
    height: auto !important;
  }
  
  .banner-pc {
    display: none !important;
  }
  .banner-mobile {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Typography & Spacing Adaptation */
  .superiority-title {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }
  .superiority-paragrah {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 4px !important;
  }
  
  /* Section Module Margins */
  .sam-module-margin,
  .module-margin:not(.sampling-example-wrapper),
  .sampling-module-margin {
    margin-top: 36px !important;
    margin-bottom: 36px !important;
  }
  .sampling-example-wrapper.module-margin {
    margin-bottom: 36px !important;
  }
  /* Restore case module negative margin to overlay background correctly without massive blanks */
  @media (min-width: 768px) and (max-width: 991px) {
    .sampling-example-wrapper.module-margin {
      margin-top: -569px !important;
    }
  }
  @media (max-width: 767px) {
    .sampling-example-wrapper.module-margin {
      margin-top: -620px !important;
    }
  }
  
  /* Ellipsis and text break prevention */
  .sampling-example-card,
  .sampling-p-title,
  .case-title,
  .superiority-info p,
  .sampling-mail,
  .card-text,
  .info-text {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
  }

  /* Consultation Left Floating Button (.service_call) Adaptation */
  .service_call {
    width: 60px !important;
    top: 45% !important;
    left: 0 !important;
    position: fixed !important;
    z-index: 999 !important;
  }
  .service_call img.handle-qrcode {
    width: 60px !important;
    height: auto !important;
    cursor: pointer !important;
  }
  .service_call .hover-qrcode {
    left: 75px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 140px !important;
    display: none; /* Initially closed, toggled by JS */
  }
  .service_call .hover-qrcode .bubble {
    padding: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    text-align: center !important;
  }
  .service_call .hover-qrcode .bubble img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 4px !important;
  }
  .service_call .hover-qrcode .bubble .qrcode-text {
    font-size: 10px !important;
    color: #5e6364 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
  }

  /* Partner Swiper display logic on Mobile */
  .swiper_pc {
    display: none !important;
  }
  .swiper_mibile {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .swiper_mibile .swiper-slide {
    width: 375px !important;
  }
  .swiper_mibile .swiper-slide img {
    width: 100% !important;
    height: auto !important;
  }
  
  /* Fix padding and margins for layout containers */
  #mainStart {
    padding-top: 60px !important; /* Matches mobile header */
  }
  .news-nav {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}