/* ---------------------------------------------------------
   1. Services Hero Section
--------------------------------------------------------- */
.zs-services-main {
  background-color: #fff;
}

.zs-services-hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 5%;
}

.zs-services-hero picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zs-services-hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Optional overlay to make text more readable */
.zs-services-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 2;
}

.zs-hero-text {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 800px; /* Increased max-width */
}

.zs-hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  /* Removed text-transform: uppercase; to allow natural capitalization */
}

.zs-hero-text p {
  font-size: 1.8rem; /* Increased font size further */
  line-height: 1.6;
  margin: 0;
}

.zs-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}


/* ---------------------------------------------------------
   1. Services Hero Section
--------------------------------------------------------- */
.zs-services-main {
  background-color: #fff;
}

.zs-services-hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 7%;
}

.zs-services-hero picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zs-services-hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Optional overlay to make text more readable */
.zs-services-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 2;
}

.zs-hero-text {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 800px; /* Increased max-width */
}

.zs-hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  /* Removed text-transform: uppercase; to allow natural capitalization */
}

.zs-hero-text p {
  font-size: 1.8rem; /* Increased font size further */
  line-height: 1.6;
  margin: 0;
}

.zs-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* ---------------------------------------------------------
   2. Services Menu (Link Slider)
--------------------------------------------------------- */
.zs-services-menu {
  background-color: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.zs-services-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.zs-services-slider-track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.zs-services-slider-track::-webkit-scrollbar {
  display: none;
}

.zs-service-link {
  flex: 1 1 auto;
  min-width: 250px;
  background-color: #fff;
  color: var(--color-text-strong);
  text-decoration: none;
  font-weight: normal;
  font-size: 0.95rem;
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-height: 80px;
}

.zs-service-link:hover,
.zs-service-link.active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.zs-slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: none; /* Hidden on PC by default */
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.zs-slider-nav button {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-strong);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.zs-slider-nav button:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}


/* ---------------------------------------------------------
   Parts and Materials Styles
--------------------------------------------------------- */
.zs-parts-main {
  background-color: #fff;
}

/* Common inner container */
.zs-inner {
  width: 100%;
  margin: 0;
}

/* 1. Overview Block */
.zs-parts-overview {
  padding: 3rem 7% 0 7%; /* Reduced top/bottom padding, aligned left with 5% same as header, remove bottom padding to put border at bottom of inner */
  text-align: left; /* Changed from center to left */
  background-color: #fff;
}

.zs-parts-overview .zs-inner {
  padding-bottom: 3rem; /* Move bottom padding inside to attach border to inner container */
  border-bottom: 1px solid var(--color-border);
}

.zs-parts-overview h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin: 0 0 1rem 0; /* Removed top margin, slightly reduced bottom margin */
}

.zs-parts-overview p {
  font-size: 1.5rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 800px;
  margin: 0; /* Removed auto margin for centering */
}

/* 2. Excerpt Block */
.zs-parts-excerpt {
  padding: 5rem 7%; /* Cancel full width, add 7% padding left/right */
  background-color: #fff;
}

.zs-excerpt-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* Changed from center to flex-start for top alignment */
}

.zs-excerpt-img {
  flex: 0 0 30%; /* Adjusted width to 30% */
  width: 25%;
  text-align: center;
}

.zs-excerpt-img img {
  width: 100%; /* Set width to 100% as requested */
  height: auto;
  object-fit: contain;
  display: inline-block;
}

.zs-excerpt-text {
  flex: 0 0 70%; /* Adjusted width to 70% */
  width: 70%;
  padding: 0 0 0 5%; /* Adjusted padding for non-fullwidth layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zs-excerpt-text h2 {
  font-size: 2.2rem; /* Reduced font size */
  font-weight: normal; /* Removed bold */
  color: var(--color-primary); /* Changed to red */
  margin: 0 0 1.5rem 0;
}

.zs-excerpt-text p {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Download Button Style */
.zs-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary); /* Red background */
  color: #fff; /* White text */
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  margin-top: 1rem;
  padding: 0.8rem 2rem; /* Add padding for pill shape */
  border-radius: 50px; /* Full pill shape */
  width: fit-content; /* Width depends on content */
  transition: background-color 0.3s ease;
}

.zs-btn-download:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
}

/* 3. Image Block Component (50/50 Split) */
.zs-parts-image-block {
  background-color: var(--color-bg-soft);
  padding: 0;
}

.zs-image-block-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch;
}

.zs-ib-img {
  flex: 0 0 50%;
  width: 50%;
}

.zs-ib-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zs-ib-text {
  flex: 0 0 50%;
  width: 50%;
  padding: 5rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zs-ib-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin: 0 0 1.5rem 0;
}

.zs-ib-text p {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* 4. Video Block Component (50/50 Split) */
.zs-parts-video-block {
  background-color: #fff;
  padding: 0;
}

.zs-video-block-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch;
}

.zs-vb-video {
  flex: 0 0 50%;
  width: 50%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.zs-vb-text {
  flex: 0 0 50%;
  width: 50%;
  padding: 5rem 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.zs-vb-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text-strong);
  margin: 0 0 1.5rem 0;
}

.zs-vb-text p {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.zs-vb-text a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.zs-vb-text a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .zs-excerpt-img,
  .zs-excerpt-text,
  .zs-ib-img,
  .zs-ib-text,
  .zs-vb-video,
  .zs-vb-text {
    flex: 0 0 100%;
    width: 100%;
  }

  .zs-excerpt-text,
  .zs-ib-text,
  .zs-vb-text {
    padding: 3rem 5%;
  }

  .zs-parts-overview {
    padding: 3rem 5%;
  }
}

@media (max-width: 768px) {
  .zs-parts-overview h1 {
    font-size: 2.5rem;
  }
  
  .zs-parts-overview p {
    font-size: 1.2rem;
  }

  .zs-excerpt-text h2,
  .zs-ib-text h2,
  .zs-vb-text h2 {
    font-size: 2rem;
  }
}
