/* ============================================
   About Page Styles — Polished 1:1 Recreation
   ============================================ */

/* --- Layout: Sidebar + Content --- */
.zs-about-layout {
  display: flex;
  gap: 40px;
  padding: 40px 0 0;
}

/* Placeholder keeps the left spacing in the flex layout */
.zs-about-sidebar-placeholder {
  width: 200px;
  flex-shrink: 0;
}

/* Fixed sidebar — always visible while scrolling through about page */
.zs-about-sidebar {
  position: fixed;
  top: 400px;
  z-index: 90;
  width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 12px 0;
  transition: opacity 0.3s ease;
}

.zs-about-nav {
  border-left: 2px solid var(--zs-color-border);
}

.zs-about-nav li {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--zs-color-text);
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.zs-about-nav li:hover {
  color: var(--zs-color-primary);
}

.zs-about-nav li.active {
  color: var(--zs-color-primary);
  font-weight: 600;
  border-left-color: var(--zs-color-primary);
}

.zs-about-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* --- Full Width Sections (Milestone & Factory) --- */
.zs-fullwidth-section {
  width: 100%;
  overflow: hidden;
}

/* --- Section Common --- */
.zs-about-section {
  margin-bottom: 80px;
}

.zs-about-certification{text-align: center;margin-bottom: 60px;}
.zs-about-certification ul{display: flex;flex-wrap: wrap;margin-left: -2%;}
.zs-about-certification li{width: 18%;margin-left: 2%;margin-bottom: 2%;display: flex;align-items: center;justify-content: center;border: 1px solid #DDD;box-sizing: border-box;padding: 1%;}
.zs-about-certification li img{max-width: 100%;max-height: 100%;object-fit: cover;}

.zs-about-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--zs-color-text-dark);
  margin-bottom: 24px;
  position: relative;
}

.zs-about-title.zs-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zs-about-title.zs-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section 1: About Us --- */
#aboutyouyi {
  text-align: center;
}

#aboutyouyi .zs-about-title {
  text-align: center;
}

.zs-about-desc {
  margin-bottom: 40px;
}

.zs-about-desc p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--zs-color-text);
  text-align: center;
}

/* --- Tape Products --- */
.zs-tape-products {
  background: #f2f6f5;
  border: 1px solid var(--zs-color-primary);
  border-top: none;
  position: relative;
  padding: 60px 74px 40px;
  margin-bottom: 20px;
  margin-top: 80px;
}

.zs-tape-products-header {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.zs-tape-products-header h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--zs-color-primary);
  white-space: nowrap;
  padding: 0 24px;
}

.zs-tape-line {
  flex: 1;
  height: 1px;
  background: var(--zs-color-primary);
}

.zs-tape-slider {
  overflow: hidden;
}

.zs-tape-track {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.zs-tape-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  max-width: 100px;
}

.zs-tape-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zs-tape-icon img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.zs-tape-item:hover .zs-tape-icon {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* --- Check List --- */
.zs-check-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
  text-align: left;
}

.zs-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zs-check-item img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.zs-check-item span {
  font-size: 14px;
  color: var(--zs-color-text);
}

/* --- Company Video --- */
.zs-company-video {
  overflow: hidden;
  aspect-ratio: 111 / 42;
  margin-top: 80px;
}

.zs-company-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Section 2: Corporate Culture --- */
#CorporateCulture {
  text-align: center;
}

#CorporateCulture .zs-about-title {
  text-align: center;
}

.zs-culture-cards {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #fff;
  margin-top: 40px;
}

.zs-culture-card {
  position: relative;
  flex-grow: 1;
  max-width: 220px;
  height: 420px;
  background: var(--zs-color-primary);
  overflow: hidden;
  cursor: pointer;
  transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.zs-culture-card.active {
  max-width: 420px;
}

.zs-culture-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Collapsed: gradient from-title to-main/80 */
.zs-culture-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--zs-color-text-dark), rgba(200, 22, 29, 0.8));
  transition: opacity 0.4s ease;
}

/* Collapsed content: icon + title */
.zs-culture-min {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.zs-culture-card.active .zs-culture-min {
  opacity: 0;
  pointer-events: none;
}

.zs-culture-icon {
  width: 64px;
  height: auto;
  margin-bottom: 8px;
}

.zs-culture-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.zs-culture-min h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  text-align: center;
}

/* Expanded: gradient from-[#5490AB] to-main */
.zs-culture-max {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 9.5%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(to top, #5490AB, var(--zs-color-primary));
  transition: opacity 0.35s ease;
}

.zs-culture-card.active .zs-culture-max {
  opacity: 1;
  pointer-events: auto;
}

.zs-culture-max h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(15px);
  animation: cultureFadeUp 0.5s ease 0.15s forwards;
}

.zs-culture-card:not(.active) .zs-culture-max h3 {
  animation: none;
  opacity: 0;
}

@keyframes cultureFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section 3: Our Team --- */
#OurTeam .zs-about-title {
  text-align: center;
}

.zs-team-grid {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}

.zs-team-row {
  display: flex;
}

.zs-team-text {
  flex: 1;
  padding: 5.4% 5.4%;
  background: #f2f6f5;
}

.zs-team-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--zs-color-text);
}

.zs-team-img {
  flex-shrink: 0;
  width: 33.333%;
  overflow: hidden;
}

.zs-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-team-row:nth-child(2) .zs-team-img {
  width: auto;
  flex: 1;
}

.zs-team-img-wide {
  flex: 1 !important;
  width: auto !important;
}

.zs-team-cta {
  flex-shrink: 0;
  width: 33.333%;
}

.zs-team-cta-inner {
  background: linear-gradient(to top, #5490AB, var(--zs-color-primary));
  padding: 9.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.zs-team-cta-inner img {
  width: 48px;
  height: auto;
  filter: brightness(0) invert(1);
}

.zs-team-cta-inner p {
  color: #fff;
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

/* --- Section 4: Milestone / Our History — FULL WIDTH --- */
.zs-milestone-wrap {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 192 / 54.5;
  overflow: hidden;
}

.zs-milestone-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--zs-color-primary);
}

.zs-milestone-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-milestone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.zs-milestone-year-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.zs-milestone-year-num {
  font-size: clamp(100px, 20vw, 300px);
  font-weight: 700;
  color: var(--zs-color-primary);
  line-height: 1;
  opacity: 0;
  animation: milestoneYearIn 0.5s ease forwards;
  user-select: none;
}

@keyframes milestoneYearIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Timeline nav arrows with extending lines */
.zs-milestone-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 0 0 20px;
  position: relative;
}

.zs-milestone-prev,
.zs-milestone-next {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--zs-color-primary);
  background: transparent;
  color: var(--zs-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  flex-shrink: 0;
}

.zs-milestone-prev:hover,
.zs-milestone-next:hover {
  background: var(--zs-color-primary);
  color: #fff;
}

.zs-milestone-prev:hover svg,
.zs-milestone-next:hover svg {
  stroke: #fff;
}

.zs-milestone-line-left,
.zs-milestone-line-right {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 50vw;
  background: var(--zs-color-primary);
  z-index: 1;
}

.zs-milestone-line-left {
  right: 100%;
}

.zs-milestone-line-right {
  left: 100%;
}

.zs-milestone-desc {
  padding: 10px 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zs-milestone-desc p {
  font-size: 22px;
  color: var(--zs-color-text-dark);
  text-align: center;
  opacity: 0;
  animation: milestoneDescIn 0.5s ease 0.15s forwards;
}

@keyframes milestoneDescIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Section 5: Factory Grid — FULL WIDTH --- */
.zs-factory-wrap {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
}

.zs-factory-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--zs-color-primary);
}

.zs-factory-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-factory-grid-outer {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.zs-factory-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 4px;
}

.zs-factory-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zs-factory-top-row {
  display: grid;
  grid-template-columns: 3fr 4fr;
  gap: 4px;
}

.zs-factory-bottom-row {
  display: grid;
  grid-template-columns: 3fr 3fr 5fr;
  gap: 4px;
}

.zs-factory-img {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.zs-factory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.zs-factory-img:hover img {
  transform: scale(1.06);
}

.zs-factory-img-tall {
  aspect-ratio: 3 / 4;
}

.zs-factory-img-square,
.zs-factory-img-sm {
  aspect-ratio: 1;
}

.zs-factory-img-wide {
  aspect-ratio: auto;
}

.zs-factory-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zs-factory-cta {
  aspect-ratio: 4 / 1.88;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, #5490AB, var(--zs-color-primary));
  border: 1px solid rgba(255,255,255,0.12);
}

.zs-factory-cta h2 {
  font-size: 48px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.zs-factory-img-bottom {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

.zs-factory-img-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.zs-factory-img-bottom:hover img {
  transform: scale(1.06);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1279px) {
  .zs-culture-card {
    max-width: 180px;
  }
  .zs-culture-card.active {
    max-width: 360px;
  }
  .zs-factory-cta h2 {
    font-size: 36px;
  }
  .zs-tape-products {
    padding: 50px 40px 30px;
  }
}

@media (max-width: 1024px) {
  .zs-about-layout {
    flex-direction: column;
    gap: 0;
  }
  .zs-about-sidebar-placeholder {
    display: none;
  }
  .zs-about-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    margin-bottom: 30px;
    padding: 0 var(--zs-container-padding);
    background: #fff;
    z-index: 90;
    box-shadow: none;
    border-radius: 0;
  }
  .zs-about-nav-wrap {
    position: relative;
  }
  .zs-about-nav {
    display: flex;
    border-left: none;
    border-bottom: 2px solid var(--zs-color-border);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  .zs-about-nav::-webkit-scrollbar { display: none; }
  .zs-about-nav li {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-left: 0;
    margin-bottom: -2px;
    padding: 10px 16px;
    font-size: 14px;
  }
  .zs-about-nav li.active {
    border-left-color: transparent;
    border-bottom-color: var(--zs-color-primary);
  }
  .zs-about-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    transition: background 0.2s;
  }
  .zs-about-nav-arrow:hover {
    background: rgba(0,0,0,0.3);
  }
  .zs-about-nav-arrow.zs-nav-arrow-left {
    left: -2px;
  }
  .zs-about-nav-arrow.zs-nav-arrow-right {
    right: -2px;
  }
  .zs-about-nav-arrow.zs-hidden {
    display: none;
  }
  .zs-culture-card {
    max-width: 160px;
    height: 360px;
  }
  .zs-culture-card.active {
    max-width: 300px;
  }
  .zs-milestone-wrap {
    aspect-ratio: auto;
  }
  .zs-milestone-inner {
    padding: 50px 0;
  }
  .zs-factory-grid {
    grid-template-columns: 1fr;
  }
  .zs-factory-right {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .zs-factory-cta {
    aspect-ratio: auto;
    padding: 40px 20px;
  }
  .zs-factory-cta h2 {
    font-size: 30px;
  }
  .zs-factory-img-tall {
    aspect-ratio: 4 / 3;
  }
  .zs-team-row {
    flex-direction: column;
  }
  .zs-team-img {
    width: 100%;
  }
  .zs-team-cta {
    width: 100%;
  }
  .zs-team-row:nth-child(2) {
    margin-top: 20px;
  }
  .zs-company-video {
    margin-top: 40px;
  }
  .zs-tape-products {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .zs-about-layout {
    padding: 20px 0 0;
  }
  .zs-about-section {
    margin-bottom: 40px;
  }
  .zs-about-title {
    font-size: 22px;
  }
  .zs-culture-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .zs-culture-card {
    max-width: none;
    height: 280px;
  }
  .zs-culture-card.active {
    max-width: none;
  }
  .zs-culture-max h3 {
    font-size: 18px;
  }
  .zs-milestone-desc p {
    font-size: 18px;
  }
  .zs-factory-grid-outer {
    padding: 40px 0;
  }
  /* Factory grid: uniform 2-column layout on mobile */
  .zs-factory-top-row {
    grid-template-columns: 1fr 1fr;
  }
  .zs-factory-bottom-row {
    grid-template-columns: 1fr 1fr;
  }
  .zs-factory-img-wide {
    grid-column: span 2;
  }
  /* Reset aspect-ratios so all images align uniformly */
  .zs-factory-img-tall {
    aspect-ratio: 4 / 3;
  }
  .zs-factory-img-square,
  .zs-factory-img-sm {
    aspect-ratio: 4 / 3;
  }
  .zs-factory-img-wide {
    aspect-ratio: 16 / 9;
  }
  .zs-factory-img-bottom {
    aspect-ratio: 16 / 9;
  }
  .zs-factory-cta {
    aspect-ratio: auto;
    padding: 30px 20px;
  }
  .zs-factory-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .zs-check-list {
    flex-direction: column;
    gap: 10px;
  }
  .zs-tape-products {
    padding: 40px 20px 24px;
    margin-top: 30px;
  }
  .zs-tape-products-header h3 {
    font-size: 20px;
  }
  .zs-tape-icon {
    width: 80px;
    height: 80px;
  }
  .zs-company-video {
    aspect-ratio: 16 / 9;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .zs-factory-cta h2 {
    font-size: 24px;
  }
  .zs-culture-cards {
    grid-template-columns: 1fr;
  }
  .zs-culture-card {
    height: 200px;
  }
  .zs-culture-min h3 {
    writing-mode: horizontal-tb;
  }
  .zs-milestone-desc p {
    font-size: 16px;
  }
  .zs-tape-track {
    gap: 16px;
  }
  .zs-tape-icon {
    width: 70px;
    height: 70px;
  }
  /* Factory: single column on very small screens */
  .zs-factory-top-row,
  .zs-factory-bottom-row {
    grid-template-columns: 1fr;
  }
  .zs-factory-img-wide {
    grid-column: span 1;
  }
  .zs-factory-right {
    grid-template-columns: 1fr;
  }
  .zs-factory-img-tall,
  .zs-factory-img-square,
  .zs-factory-img-sm,
  .zs-factory-img-wide,
  .zs-factory-img-bottom {
    aspect-ratio: 16 / 10;
  }
  .zs-factory-cta {
    padding: 24px 16px;
  }
}
