
:root {
  --brand-black: #000000;
  --brand-white: #ffffff;
  --brand-red: #d8232a;
  --text-gray: #545454;
  --light-gray-bg: #f7f7f7;
  --border-gray: #eeeeee;
  --radius-md: 16px;
  --radius-sm: 10px;
  --soft-shadow: 0 8px 20px rgba(0,0,0,0.04);
  --smooth-transition: all 0.3s ease;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 28px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--brand-white);
}
.container-fixed {
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Combined Factory & Cert Module, Max Height ~540px */
.factory-cert-combo-section {
  width: 100%;
  max-height: 550px;
  padding: var(--space-md) 0;
  background: var(--brand-white);
}
.factory-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

/* Left Video Area */
.video-main-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.main-video-player {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.main-video-player iframe, .main-video-player video {
  width: 100%;
  height: 100%;
  display: block;
}
.video-thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
}
.video-thumb-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--smooth-transition);
}
.video-thumb-item.active {
  border-color: var(--brand-red);
}
.video-thumb-item img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

/* Right Text + Cert Area */
.factory-text-cert-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 6px 0;
}
.factory-intro-block h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--brand-black);
}
.factory-intro-block p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}
.cert-card {
  background: var(--light-gray-bg);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.cert-full-note {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-gray);
  text-align: center;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
  .factory-cert-combo-section {
    max-height: unset;
  }
  .factory-two-col-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .factory-text-cert-wrap {
    gap: var(--space-sm);
  }
}
@media screen and (max-width: 640px) {
  .main-video-player {
    height: 260px;
  }
  .video-thumb-item img {
    height: 56px;
  }
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
