/* NEXTZHEN Technology subpages (shared) */

.technology-hero .company-hero__media {
  background-image: url("/assets/images/company/company-hero.png");
}

.technology-hero .company-hero__subtitle {
  max-width: min(100%, 1528px);
}

.technology-nav .company-nav__inner {
  width: min(100%, 1340px);
  padding-bottom: clamp(56px, 5.21vw, 100px);
}

.technology-nav .company-nav__heading {
  width: min(100%, 1340px);
}

.technology-nav .company-nav__subtitle {
  max-width: 1340px;
  text-align: center;
}

@media (min-width: 1200px) {
  .technology-nav .company-nav__heading {
    width: min(100%, 1528px);
  }

  .technology-nav .company-nav__subtitle {
    max-width: none;
    white-space: nowrap;
  }
}

.technology-nav__tabs {
  display: inline-grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: stretch;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.technology-nav__tabs .company-nav__tab {
  width: 100%;
  padding-inline: 18px;
  white-space: nowrap;
}

#technology-abrasive-engineering .technology-divider-wrap {
  background: #ffffff;
  padding: 0 24px;
}

#technology-abrasive-engineering .technology-divider {
  width: 100%;
  max-width: 1290px;
  height: 0;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid #e1e1e1;
}

.technology-section {
  padding: clamp(64px, 5.21vw, 100px) 24px;
  background: #ffffff;
}

.technology-section--compact {
  padding-top: 0;
}

.technology-section--soft {
  background: #f8f9fa;
}

.technology-container {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
}

.technology-container--cards {
  max-width: 1200px;
}

.technology-container--cards-wide {
  max-width: 1290px;
}

.technology-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto clamp(40px, 3.33vw, 64px);
  text-align: center;
}

.technology-section__eyebrow {
  margin: 0;
  color: #6b7280;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.technology-section__title {
  margin: 0;
  color: #1d1d1d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(30px, 2.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.technology-section__subtitle {
  max-width: 740px;
  margin: 0;
  color: #374151;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.7;
}

.technology-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.technology-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.technology-card__media {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f3f4f6;
}

.technology-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technology-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
}

.technology-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.technology-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.technology-card__tag,
.polishing-product-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}

.technology-card__title {
  margin: 0;
  color: #1d1d1d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(20px, 1.2vw, 23px);
  font-weight: 700;
  line-height: 1.3;
}

.technology-card__description {
  margin: 0;
  color: #6b7280;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.94vw, 18px);
  font-weight: 400;
  line-height: 1.6;
}

.technology-card-grid--precision .technology-card__tag {
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}

.technology-cards-section {
  padding-top: 0;
  padding-bottom: clamp(64px, 5.21vw, 100px);
}

.technology-card__title,
.technology-card__description,
.technology-section__title,
.technology-section__subtitle {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Polishing Technology */

#technology-abrasive-engineering .technology-hero .company-hero__media {
  background-image: url("/assets/images/technology/polishing/hero.png");
  background-position: center center;
}

#technology-abrasive-engineering .technology-section {
  padding: clamp(64px, 5.21vw, 100px) 24px;
}

#technology-abrasive-engineering .technology-section__header {
  max-width: 1290px;
  gap: 16px;
  margin-bottom: clamp(40px, 3.75vw, 72px);
}

#technology-abrasive-engineering .technology-section__eyebrow {
  font-size: clamp(12px, 0.94vw, 18px);
  letter-spacing: 0.06em;
}

#technology-abrasive-engineering .technology-section__subtitle {
  max-width: 1026px;
  font-size: clamp(15px, 0.99vw, 19px);
}

#technology-abrasive-engineering .technology-section__kicker {
  margin: 0;
  color: #374151;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 1.3vw, 25px);
  font-weight: 600;
  line-height: 1.4;
}

#polishing-main-product-title {
  font-size: clamp(28px, 1.927vw, 37px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

#edge-polishing-title {
  font-size: clamp(30px, 2.656vw, 51px);
}

#elastic-bond-title,
#hebs-title {
  font-size: clamp(28px, 2.24vw, 43px);
  letter-spacing: -0.015em;
}

#model-performance-title {
  color: #0f172a;
  font-size: clamp(30px, 2.344vw, 45px);
  letter-spacing: -0.02em;
}

#quality-performance-title {
  font-size: clamp(28px, 2.135vw, 41px);
  line-height: 1.25;
}

.polishing-main {
  padding-top: clamp(64px, 5.21vw, 100px);
}

.polishing-main .technology-container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 3.13vw, 60px);
}

.polishing-main .technology-section__header {
  margin-bottom: 0;
}

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

.polishing-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 12px 32px -8px rgba(0, 0, 0, 0.06);
}

.polishing-product-card__media {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
  background: #f3f4f6;
}

.polishing-product-card__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.polishing-product-card__image + .polishing-product-card__image {
  border-top: 3px solid #ffffff;
}

.polishing-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 20px 24px;
}

.polishing-product-card__tag {
  padding: 4px 10px;
  color: #1d4ed8;
  background: #dbeafe;
  border: 0;
  font-size: 14px;
}

.polishing-product-card__title {
  margin: 0;
  color: #1d1d1d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.6;
}

.polishing-product-card__description {
  margin: 0;
  color: #6b7280;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.polishing-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 36px 60px;
  border-radius: 16px;
  background: #001750;
  text-align: center;
}

.polishing-banner__eyebrow {
  margin: 0;
  color: #9ca3af;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.polishing-banner__title {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(22px, 1.615vw, 31px);
  font-weight: 700;
  line-height: 1.3;
}

.polishing-banner__text {
  max-width: 660px;
  margin: 0;
  color: #9ca3af;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.7;
}

.polishing-edge-layout {
  gap: 0;
}

.polishing-edge-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(400 / 1290 * 100%);
  height: 80px;
  color: #7b7b7b;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(40px, 2.76vw, 53px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.polishing-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 742fr) minmax(0, 520fr);
  gap: 28px;
  align-items: stretch;
}

.polishing-chart-grid__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.technology-visual-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.technology-visual-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  overscroll-behavior-inline: contain;
  scrollbar-color: #9ca3af #eef1f5;
}

.technology-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.technology-visual-stack .technology-visual-scroll + .technology-visual-scroll {
  margin-top: 0;
}

/* HEBS Problem Detailed Layout Styling */

.hebs-problem-layout {
  background-color: #f6f7fb;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hebs-problem-layout__header {
  background-color: #e5e7eb;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
  text-align: center;
}

.hebs-problem-layout__title {
  margin: 0;
  color: #1d1d1d;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

.hebs-problem-layout__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.hebs-problem-layout__diagram {
  flex: 1 1 55%;
  min-width: 0;
}

.hebs-problem-diagram-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hebs-problem-layout__issues {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hebs-issue-card {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.hebs-issue-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 247;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: #f3f4f6;
  border-radius: 8px;
}

.hebs-issue-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hebs-issue-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6b00;
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.hebs-issue-card__body {
  text-align: center;
}

.hebs-issue-card__text {
  margin: 0;
  color: #374151;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.hebs-problem-layout__footer {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 16px 24px;
  background-color: #fff4f0;
  border-left: 4px solid #ff6b00;
  border-radius: 0 8px 8px 0;
}

.hebs-problem-layout__note {
  margin: 0;
  color: #4b5563;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .technology-card__body {
    padding: 26px;
  }

  .polishing-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .technology-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .technology-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, calc(50% - 12px));
    justify-self: center;
  }

  .technology-card__media {
    height: clamp(210px, 32vw, 260px);
  }

  .hebs-problem-layout__body {
    flex-direction: column;
    gap: 28px;
  }
  
  .hebs-problem-layout__diagram,
  .hebs-problem-layout__issues {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 599px) {
  .technology-section {
    padding: clamp(48px, 12vw, 64px) 20px;
  }

  .technology-section--compact {
    padding-top: 0;
  }

  .technology-card-grid,
  .polishing-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .technology-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .technology-card__media {
    height: clamp(210px, 58vw, 280px);
  }

  .polishing-product-card__media {
    height: auto;
  }

  .polishing-product-card__image {
    height: clamp(140px, 42vw, 180px);
  }

  .polishing-product-card__title {
    font-size: clamp(18px, 5vw, 21px);
  }

  .polishing-product-card__description {
    font-size: 15px;
  }

  .technology-card__body {
    padding: 24px;
  }

  .polishing-banner {
    margin-top: 0;
    padding: 30px 24px;
  }

  .technology-visual-scroll {
    padding-bottom: 8px;
    border-radius: 8px;
  }

  .technology-visual {
    width: 760px;
    max-width: none;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .technology-visual-scroll {
    scroll-behavior: auto;
  }
}