
.ynf-engine-detail {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.7;
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
}

.ynf-engine-detail * {
  box-sizing: border-box;
}

/* Hero Section - Red / Gray / White Style */
.ynf-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 48px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 55%, #e5e7eb 100%);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.ynf-hero:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: #E60012;
}

.ynf-hero-text {
  color: #111827;
  position: relative;
  z-index: 2;
}

.ynf-label {
  display: inline-block;
  padding: 7px 16px;
  background: #E60012;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.ynf-hero h2 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 18px;
  color: #111827;
}

.ynf-hero h2:after {
  content: "";
  display: block;
  width: 78px;
  height: 4px;
  background: #E60012;
  margin-top: 16px;
  border-radius: 99px;
}

.ynf-hero p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 24px;
}

.ynf-hero-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ynf-hero-points div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #E60012;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.ynf-hero-points strong {
  color: #111827;
}

.ynf-hero-img {
  background: #fff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.16);
  border: 1px solid #e5e7eb;
}

.ynf-hero-img img,
.ynf-img-card img,
.ynf-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.ynf-section {
  margin: 36px 0;
  padding: 0 8px;
}

.ynf-section-title {
  text-align: center;
  margin-bottom: 24px;
}

.ynf-section-title h3 {
  font-size: 28px;
  margin: 0 0 10px;
  color: #111827;
  position: relative;
  display: inline-block;
}

.ynf-section-title h3:after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  background: #E60012;
  margin: 10px auto 0;
  border-radius: 99px;
}

.ynf-section-title p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

/* Specification Cards */
.ynf-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 28px 0;
}

.ynf-spec-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 24px 18px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
  position: relative;
  overflow: hidden;
}

.ynf-spec-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 5px;
  width: 100%;
  background: #E60012;
}

.ynf-spec-card strong {
  display: block;
  color: #111827;
  font-size: 17px;
  margin-bottom: 6px;
}

.ynf-spec-card span {
  color: #555;
  font-size: 14px;
}

/* Two Column Layout */
.ynf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  margin: 42px 0;
  background: #fafafa;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}

.ynf-text-block h3 {
  font-size: 26px;
  margin: 0 0 14px;
  color: #111827;
}

.ynf-text-block h3:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: #E60012;
  border-radius: 99px;
  margin-right: 10px;
  vertical-align: -4px;
}

.ynf-text-block p {
  color: #444;
  margin: 0 0 14px;
}

.ynf-feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ynf-feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #333;
}

.ynf-feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: #fff;
  background: #E60012;
  width: 19px;
  height: 19px;
  line-height: 19px;
  border-radius: 50%;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
}

.ynf-img-card {
  background: #fff;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

/* Gallery */
.ynf-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.ynf-gallery img {
  background: #fff;
  padding: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

/* Table */
.ynf-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  margin-top: 20px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.ynf-info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.ynf-info-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
}

.ynf-info-table tr:last-child td {
  border-bottom: none;
}

.ynf-info-table td:first-child {
  width: 32%;
  background: #f3f4f6;
  font-weight: 700;
  color: #111827;
  border-left: 4px solid #E60012;
}

/* Process */
.ynf-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.ynf-process div {
  background: #fff;
  color: #374151;
  padding: 22px 16px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.ynf-process strong {
  display: block;
  color: #E60012;
  font-size: 24px;
  margin-bottom: 8px;
}

/* CTA */
.ynf-cta {
  margin-top: 42px;
  padding: 38px 32px;
  background: linear-gradient(135deg, #E60012 0%, #b8000e 100%);
  border-radius: 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 38px rgba(230, 0, 18, 0.22);
}

.ynf-cta h3 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #fff;
}

.ynf-cta p {
  margin: 0 0 22px;
  color: #fff;
}

.ynf-cta a {
  display: inline-block;
  background: #fff;
  color: #E60012;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid #fff;
}

.ynf-cta a:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.ynf-note {
  font-size: 13px;
  color: #777;
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  .ynf-hero,
  .ynf-two-col {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .ynf-hero h2 {
    font-size: 26px;
  }

  .ynf-hero-points,
  .ynf-spec-grid,
  .ynf-gallery,
  .ynf-process {
    grid-template-columns: 1fr;
  }

  .ynf-info-table td {
    display: block;
    width: 100%;
  }

  .ynf-info-table td:first-child {
    width: 100%;
  }
}
