.machine-detail-page {
  background: #f6fbf8;
  color: #17251f;
}
.machine-detail-section {
  align-items: center;
  background: #f6fbf8;
  display: flex;
  min-height: calc(100vh - 98px);
  padding: 72px 0;
  position: relative;
}
.machine-split-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.machine-eyebrow {
  align-items: center;
  color: #27b97a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.machine-eyebrow::before {
  background: #27b97a;
  content: "";
  height: 2px;
  width: 34px;
}
.machine-detail-title {
  color: #17251f;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 22px;
}
.machine-detail-lead {
  color: #5b6a63;
  font-size: 15px;
  line-height: 1.86;
  margin: 0 0 20px;
}
.machine-feature-list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.machine-feature-list li {
  align-items: flex-start;
  color: #17251f;
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.55;
}
.machine-feature-list i {
  color: #27b97a;
  line-height: 1.55;
  margin-top: 1px;
}
.machine-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.machine-action-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.machine-action-btn.primary {
  background: #27b97a;
  border: 1px solid #27b97a;
  color: #fff;
}
.machine-action-btn.secondary {
  background: #fff;
  border: 1px solid #cfe4db;
  color: #14734b;
}
.machine-action-btn:hover {
  transform: translateY(-2px);
}
.machine-action-btn.primary:hover {
  background: #1fa66c;
  border-color: #1fa66c;
  color: #fff;
}
.machine-action-btn.secondary:hover {
  border-color: #27b97a;
  color: #27b97a;
}
.machine-visual {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
  min-height: 520px;
  padding: 0;
}
.machine-visual img {
  filter: drop-shadow(0 28px 34px rgba(23,37,31,0.14));
  max-height: 500px;
  object-fit: contain;
  width: 100%;
}
.machine-spec-panel {
  background: #fff;
  border: 1px solid #ddeee6;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23,37,31,0.07);
  padding: 34px;
}
.machine-spec-panel-title {
  align-items: center;
  border-bottom: 1px solid #e8f2ed;
  display: flex;
  gap: 12px;
  margin: -4px 0 10px;
  padding-bottom: 18px;
}
.machine-spec-panel-title i {
  align-items: center;
  background: #e7f8f0;
  border-radius: 8px;
  color: #27b97a;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.machine-spec-panel-title strong {
  color: #17251f;
  font-size: 18px;
  font-weight: 900;
}
.machine-spec-table {
  border-collapse: collapse;
  width: 100%;
}
.machine-spec-table tr {
  border-bottom: 1px solid #e8f2ed;
}
.machine-spec-table tr:last-child {
  border-bottom: 0;
}
.machine-spec-table td {
  color: #17251f;
  font-size: 14px;
  line-height: 1.5;
  padding: 17px 0;
  vertical-align: top;
}
.machine-spec-table td:first-child {
  color: #5b6a63;
  font-weight: 800;
  padding-right: 22px;
  width: 42%;
}
.machine-video-frame {
  background: #10241c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(16,36,28,0.18);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}
.machine-video-frame.is-clickable {
  cursor: pointer;
}
.machine-video-frame iframe,
.machine-video-frame img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  width: 100%;
}
.machine-video-frame img {
  opacity: 0.54;
}
.machine-play-button {
  align-items: center;
  background: #27b97a;
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 24px;
  height: 84px;
  justify-content: center;
  left: 50%;
  padding-left: 5px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
}
.machine-video-note {
  background: rgba(16,36,28,0.9);
  bottom: 0;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  left: 0;
  line-height: 1.6;
  padding: 18px 22px;
  position: absolute;
  right: 0;
}
.machine-video-modal {
  align-items: center;
  background: rgba(10, 24, 18, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 9999;
}
.machine-video-modal.is-open {
  display: flex;
}
.machine-video-modal-inner {
  aspect-ratio: 16 / 9;
  background: #000;
  max-width: 980px;
  position: relative;
  width: min(94vw, 980px);
}
.machine-video-modal iframe {
  border: 0;
  height: 100%;
  width: 100%;
}
.machine-video-modal-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #17251f;
  display: flex;
  font-size: 18px;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: -14px;
  top: -14px;
  width: 42px;
  z-index: 2;
}
.machine-application-wrap {
  text-align: center;
  width: 100%;
}
.machine-application-wrap .machine-detail-title {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 12px;
}
.machine-application-wrap .machine-detail-lead {
  margin: 0 auto 34px;
  max-width: 720px;
}
.machine-material-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1040px;
}
.machine-material-card {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  min-height: 230px;
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.machine-material-card:hover {
  box-shadow: 0 18px 38px rgba(23,37,31,0.08);
  transform: translateY(-3px);
}
.machine-material-card img {
  height: 174px;
  object-fit: contain;
  width: 100%;
}
.machine-extra-content {
  color: #17251f;
  font-size: 15px;
  line-height: 1.85;
  margin: 0 auto;
  max-width: 920px;
}
.machine-form-section {
  min-height: auto;
}
.machine-form-section .machine-detail-title {
  font-size: clamp(28px, 3vw, 42px);
  text-align: center;
}
.machine-form-section .machine-detail-lead {
  color: #5b6a63;
  margin: 0 auto 32px;
  max-width: 620px;
  text-align: center;
}
.machine-quote-layout {
  align-items: stretch;
  margin: 0 auto;
  max-width: 860px;
}
.machine-quote-form {
  background: #fff;
  border: 1px solid #ddeee6;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23,37,31,0.07);
  color: #17251f;
  padding: 34px;
}
.machine-quote-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.machine-quote-field,
.machine-quote-field-full {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.machine-quote-field-full {
  grid-column: 1 / -1;
}
.machine-quote-form label {
  color: #17251f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.machine-quote-form input,
.machine-quote-form select,
.machine-quote-form textarea {
  background: #fbfdfc;
  border: 1px solid #cfe4db;
  color: #17251f;
  font: inherit;
  font-size: 14px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}
.machine-quote-form textarea {
  min-height: 138px;
  resize: vertical;
}
.machine-submit-btn {
  align-items: center;
  background: #27b97a;
  border: 0;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  min-height: 52px;
  width: 100%;
}
.machine-related-section {
  min-height: auto;
  padding: 64px 0 76px;
}
.machine-related-head {
  margin: 0 auto 34px;
  max-width: 720px;
  text-align: center;
}
.machine-related-head .machine-eyebrow {
  justify-content: center;
}
.machine-related-head .machine-detail-title {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 12px;
}
.machine-related-head .machine-detail-lead {
  margin: 0 auto;
}
.machine-related-carousel {
  margin-top: 34px;
  position: relative;
}
.machine-related-carousel-viewport {
  overflow: hidden;
  position: relative;
}
.machine-related-carousel-slide {
  display: none;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.machine-related-carousel-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.machine-related-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.machine-related-carousel-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ddeee6;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(23,37,31,0.12);
  color: #17251f;
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.25s, color 0.25s, opacity 0.25s;
  width: 46px;
  z-index: 3;
}
.machine-related-carousel-btn:hover {
  background: #27b97a;
  color: #ffffff;
}
.machine-related-carousel-prev {
  left: -23px;
}
.machine-related-carousel-next {
  right: -23px;
}
.machine-related-carousel.is-single .machine-related-carousel-btn {
  display: none;
}
.machine-related-card {
  align-items: stretch;
  background: #fff;
  border: 1px solid #ddeee6;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.machine-related-card:hover {
  border-color: rgba(37,191,123,0.42);
  box-shadow: 0 18px 44px rgba(22,36,31,0.09);
  transform: translateY(-3px);
}
.machine-related-media {
  align-items: center;
  background: #fff;
  display: flex;
  justify-content: center;
  order: 2;
  overflow: hidden;
  padding: 0 32px 0 0;
}
.machine-related-media img {
  height: 175px;
  object-fit: contain;
  transition: transform 0.5s ease;
  width: 100%;
}
.machine-related-card:hover .machine-related-media img {
  transform: scale(1.05);
}
.machine-related-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  order: 1;
  padding: 32px 0 32px 32px;
}
.machine-related-body h3 {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.16;
  margin: 0 0 14px;
}
.machine-related-body h3 a {
  color: #17251f;
}
.machine-related-body h3 a:hover {
  color: #27b97a;
}
.machine-related-body p {
  color: #5b6a63;
  font-size: 14px;
  line-height: 1.68;
  margin: 0 0 24px;
  max-width: 390px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.machine-related-link {
  align-items: center;
  align-self: flex-start;
  background: #063342;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 10px 17px;
  transition: background 0.25s, color 0.25s;
}
.machine-related-link:hover {
  background: #27b97a;
  color: #fff;
}
@media (max-width: 991px) {
  .machine-detail-section {
    min-height: auto;
    padding: 48px 0;
  }
  .machine-split-grid {
    grid-template-columns: 1fr;
  }
  .machine-visual {
    min-height: 380px;
  }
  .machine-visual img {
    max-height: 320px;
  }
  .machine-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .machine-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .machine-related-grid {
    grid-template-columns: 1fr;
  }
  .machine-related-card {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 230px;
  }
  .machine-related-media {
    min-height: 230px;
    order: 1;
    padding: 22px;
  }
  .machine-related-media img {
    max-height: 210px;
  }
  .machine-related-body {
    order: 2;
    padding: 22px;
  }
  .machine-related-body h3 {
    font-size: 1.18rem;
  }
  .machine-related-carousel:not(.is-single) {
    padding-bottom: 62px;
  }
  .machine-related-carousel-btn {
    bottom: -64px;
    top: auto;
    transform: none;
  }
  .machine-related-carousel-prev {
    left: calc(50% - 54px);
  }
  .machine-related-carousel-next {
    right: calc(50% - 54px);
  }
}
@media (max-width: 575px) {
  .machine-detail-title {
    font-size: 32px;
  }
  .machine-visual {
    min-height: 300px;
    padding: 0;
  }
  .machine-spec-panel,
  .machine-quote-form {
    padding: 22px;
  }
  .machine-quote-form-grid {
    grid-template-columns: 1fr;
  }
  .machine-material-grid {
    grid-template-columns: 1fr;
  }
  .machine-material-card {
    min-height: 190px;
  }
  .machine-related-grid {
    grid-template-columns: 1fr;
  }
  .machine-related-media {
    min-height: 190px;
    padding: 18px;
  }
}

/* Balance machine detail spacing with production-line detail pages */
.machine-detail-section {
  min-height: auto;
  padding: 96px 0;
}

.machine-detail-page main > .machine-detail-section:first-child {
  min-height: calc(100vh - 98px);
  padding: 104px 0;
}

.machine-split-grid {
  gap: 64px;
}

.machine-visual {
  min-height: 420px;
}

.machine-visual img {
  max-height: 420px;
}

.machine-video-frame,
.machine-video-frame iframe,
.machine-video-frame img {
  min-height: 360px;
}

.machine-application-wrap .machine-detail-lead {
  margin-bottom: 28px;
}

.machine-form-section,
.machine-related-section {
  padding-top: 104px;
  padding-bottom: 112px;
}

@media (max-width: 991px) {
  .machine-detail-section,
  .machine-detail-page main > .machine-detail-section:first-child,
  .machine-form-section,
  .machine-related-section {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .machine-split-grid {
    gap: 44px;
  }

  .machine-visual {
    min-height: 340px;
  }

  .machine-visual img {
    max-height: 320px;
  }

  .machine-video-frame,
  .machine-video-frame iframe,
  .machine-video-frame img {
    min-height: 320px;
  }
}

@media (max-width: 575px) {
  .machine-detail-section,
  .machine-detail-page main > .machine-detail-section:first-child,
  .machine-form-section,
  .machine-related-section {
    padding-top: 62px;
    padding-bottom: 68px;
  }

  .machine-visual {
    min-height: 280px;
  }

  .machine-video-frame,
  .machine-video-frame iframe,
  .machine-video-frame img {
    min-height: 260px;
  }
}
