.bg-features {
  background-image: url('https://www.britemed.com.tw/_upload/news/images/MedicalDeviceOEMODM/Background2.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.bg-features::before {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

.bg-features > * {
  position: relative;
  z-index: 2;
}

:root {
  --brand-dark: #003b4d;
  --text-main: #333333;
  --text-light: #666666;
  --bg-section: #f8f9fa;
  --card-bg: #ffffff;
  --accent: #007690;
  --radius-lg: 16px;
  --radius-sm: 8px;
}

.ecg-content-wrapper {
  font-family: Arial, "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  color: grey;
  line-height: 1.6;
  margin: 0;
  background-color: #fff;
  font-size: 16px;
}

.table-cell-base {
  font-size: 16px;
}

.text-base {
  margin: 0 0 1em;
  font-size: 16px;
}

.flex-inline-center {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.icon-sm {
  width: 20px;
  vertical-align: middle;
  margin-right: 10px;
  height: auto;
}

.justify-center {
  justify-content: center;
}

.sub-tab-panel {
  display: none;
}

.sub-tab-panel.active {
  display: block;
}

.banner {
  position: relative;
  width: 100%;
  height: 300px;
  background-image: url('https://www.britemed.com.tw/_upload/news/images/MedicalDeviceOEMODM/BriteMED_manufacturing.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin: 0;
}

.banner .container {
  width: 1140px;
  padding: 5px 5px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  display: flex;
  flex-wrap: wrap;
}

.banner-title-box {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  padding: clamp(10px, 2vw, 30px) clamp(15px, 3vw, 30px);
  border-radius: clamp(5px, 1vw, 10px);
  max-width: 30%;
  min-width: 25%;
  margin: 0 0 0 10px;
}

.banner-title-box h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  text-align: left;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .banner {
    justify-content: center;
    text-align: center;
    height: 240px;
  }

  .banner .container {
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center;
  }

  .banner-title-box {
    max-width: 90%;
    min-width: 60%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
  }

  .banner-title-box h1 {
    text-align: center;
  }
}

.page-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.btn-outline {
  background: 0 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.btn-download {
  background: 0 0;
  border: 1px solid #999;
  color: #444;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 32px;
  gap: 24px;
  margin-top: 24px;
}

.hero-text {
  flex: 1 1 360px;
  min-width: 280px;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
  margin: 0 0 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-light);
  margin: 0 0 16px;
}

.hero-bullets {
  margin: 20px 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-main);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  margin-left: 20px;
}

.hero-bullets li::before {
  content: "✔";
  color: var(--accent);
  font-weight: 700;
  margin-left: 8px;
  margin-right: 8px;
  line-height: 1.2;
}

.hero-media {
  flex: 1 1 320px;
  min-width: 280px;
}

.hero-media img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.hero-caption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

.img-1140 {
  max-width: 1140px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section {
  margin-top: 56px;
}

.section-headline {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
  margin-bottom: 8px;
  padding: 12px 32px 0;
}

.section-headline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 50px;
  height: 4px;
  background-color: #007690;
  border-radius: 2px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  margin: 0 0 24px;
  max-width: 1140px;
  padding: 0 32px;
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  flex: 1 1 240px;
  min-width: 240px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  cursor: default;
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  transition: all 0.25s ease;
}

.value-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.value-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
  transition: color 0.25s ease;
}

.value-card:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.value-card:hover .value-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.value-card:hover .value-text,
.value-card:hover .value-title {
  color: #fff;
}

.usecase-wrapper {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  padding: 32px;
  gap: 24px;
}

.usecase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.usecase-item {
  flex: 1 1 240px;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
}

.usecase-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 6px;
}

.usecase-item-text {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.usecase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.usecase-item {
  flex: 1 1 240px;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  padding: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usecase-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.usecase-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.usecase-item:hover .usecase-img {
  transform: scale(1.05);
}

.usecase-content {
  padding: 16px;
}

.usecase-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 6px;
}

.usecase-item-text {
  font-size: 16px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.cta-card {
  flex: 1 1 260px;
  min-width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
  padding: 20px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s;
}

.cta-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 8px;
  line-height: 1.4;
}

.cta-card-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 16px;
}

.cta-card-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
}

.cta-card:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cta-card:hover .cta-card-link,
.cta-card:hover .cta-card-text,
.cta-card:hover .cta-card-title {
  color: #fff;
}

.cta-card:hover .cta-card-link {
  text-decoration: none;
}

.specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.specs-col {
  flex: 1 1 320px;
  min-width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
}

.specs-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 12px;
}

.specs-list {
  font-size: 16px;
  color: var(--text-main);
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.specs-list li {
  margin-bottom: 6px;
  color: var(--text-light);
}

.specs-list li span {
  color: var(--text-main);
  font-weight: 600;
}

.validation-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.validation-section::before {
  content: "";
  background: url('https://www.britemed.com.tw/_upload/news/images/Medical%20Device%20OEMODM/Background2.jpeg')
    center/cover no-repeat;
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.validation-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.validation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: flex-start;
}

.cert-block {
  flex: 1 1 220px;
  min-width: 200px;
  text-align: center;
}

.cert-img {
  max-width: 95%;
  margin: 20px auto;
  cursor: zoom-in;
  transition: transform 0.3s;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.cert-img:hover {
  transform: scale(1.02);
}

.cert-label {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.4;
  margin: 8px 0 0;
}

.cert-label p {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 18px;
  margin: 8px 0;
}

.cert-label img {
  width: 28px;
  height: auto;
  margin-right: 10px;
}

.video-section {
  padding: 20px 0;
}

.video-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.oem-box {
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.oem-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}

.oem-text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: #e6f2f4;
}

.oem-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.final-cta {
  text-align: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.final-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.4;
  margin: 0 0 12px;
}

.final-cta-text {
  font-size: 15px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .feature-overlay {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-headline {
    font-size: 20px;
  }

  .final-cta-title {
    font-size: 18px;
  }

  .specification-tabs-section {
    max-width: 1140px;
    margin: 56px auto;
    font-family: Arial, "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.5;
  }

  .spec-title {
    text-align: center;
    margin-bottom: 24px;
  }

  .spec-title h2 {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #007690;
    border-bottom: 3px solid #007690;
    padding-bottom: 4px;
  }

  .sub-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .sub-tab-btn {
    background: #e4f4f7;
    border: 1px solid #007690;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #007690;
    line-height: 1.2;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
  }

  .sub-tab-btn:hover {
    background: #007690;
    color: #fff;
  }

  .sub-tab-btn.active {
    background: #007690;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 118, 144, 0.3);
  }

  .specs-table-wrapper.compact {
    background: 0 0;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    padding: 0;
    overflow-x: auto;
  }

  .specs-table.flat {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
  }

  .specs-table.flat th {
    background: #f2f8f9;
    color: #000;
    font-weight: 600;
    text-align: left;
    vertical-align: top;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    width: 280px;
    white-space: nowrap;
  }

  .specs-table.flat td {
    background: #fff;
    color: #333;
    text-align: left;
    vertical-align: top;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
  }
}

@media (max-width: 600px) {
  .sub-tab-btn {
    min-width: auto;
    font-size: 14px;
    padding: 10px 14px;
  }

  .specs-table.flat td,
  .specs-table.flat th {
    font-size: 13px;
    padding: 8px;
  }
}

.ecg-content-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .bg-features {
    background-attachment: scroll;
  }
}

.banner .container {
  width: min(1140px, 100%);
  padding: 0 16px;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .banner-title-box {
    max-width: 60%;
    min-width: 320px;
  }
}

@media (max-width: 768px) {
  .banner-title-box {
    max-width: 92%;
    min-width: 0;
    width: 92%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ecg-content-wrapper {
    font-size: 16px;
  }
}

.page-wrapper {
  width: min(1140px, 100%);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero {
    padding: 20px;
    gap: 16px;
  }

  .hero-media,
  .hero-text {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-cta-row {
    gap: 10px;
  }

  .hero-cta-row a {
    flex: 1 1 220px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-headline {
    text-align: center;
    padding: 12px 16px 0;
  }

  .section-headline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .section-desc {
    text-align: center;
    padding: 0 16px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-cta-row a {
    flex: 1 1 100%;
    width: 100%;
  }
}

.feature-overlay {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}

.specification-tabs-section {
  width: min(1140px, 100%);
  margin: 56px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.specs-table.flat th {
  width: 280px;
}

@media (max-width: 480px) {
  .section-headline {
    font-size: 20px;
  }

  .section-desc {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .specs-table.flat th {
    width: 200px;
    white-space: normal;
    word-break: break-word;
  }

  .specs-table.flat td {
    word-break: break-word;
  }
}

@media (max-width: 600px) {
  .validation-section {
    padding: 20px 16px;
  }

  .cert-img {
    max-width: 100%;
  }
}

.cert-block,
.cta-card,
.specs-col,
.usecase-item,
.value-card {
  min-width: 0;
}

@media (min-width: 576px) and (max-width: 991px) {
  .cta-links,
  .specs-grid,
  .usecase-list,
  .validation-grid,
  .value-grid {
    gap: 20px;
  }

  .cert-block,
  .cta-card,
  .specs-col,
  .usecase-item,
  .value-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

  .usecase-img {
    height: 170px;
  }
}

@media (max-width: 575px) {
  .cta-links,
  .specs-grid,
  .usecase-list,
  .validation-grid,
  .value-grid {
    gap: 16px;
  }

  .cert-block,
  .cta-card,
  .specs-col,
  .usecase-item,
  .value-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .usecase-img {
    height: 180px;
  }

  .hero-cta-row a {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 992px) {
  .cert-block,
  .cta-card,
  .specs-col,
  .usecase-item,
  .value-card {
    flex: 1 1 calc(50% - 24px);
    min-width: 280px;
  }
}

@media (max-width: 600px) {
  .cta-links,
  .specs-grid,
  .usecase-list,
  .validation-grid,
  .value-grid {
    gap: 16px;
  }

  .cert-block,
  .cta-card,
  .specs-col,
  .usecase-item,
  .value-card {
    flex: 1 1 100%;
    min-width: 0;
  }

  .usecase-img {
    height: 180px;
  }
}

.specification-tabs-section {
  width: min(1140px, 100%);
  margin: 56px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: Arial, "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.5;
}

.spec-title {
  text-align: center;
  margin-bottom: 24px;
}

.spec-title h2 {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #007690;
  border-bottom: 3px solid #007690;
  padding-bottom: 4px;
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sub-tab-btn {
  background: #e4f4f7;
  border: 1px solid #007690;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #007690;
  line-height: 1.2;
  cursor: pointer;
  min-width: 180px;
  text-align: center;
  transition: all 0.3s ease;
}

.sub-tab-btn:hover {
  background: #007690;
  color: #fff;
}

.sub-tab-btn.active {
  background: #007690;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 118, 144, 0.3);
}

.specs-table-wrapper.compact {
  background: 0 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  padding: 0;
  overflow-x: auto;
}

.specs-table.flat {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.specs-table.flat th {
  background: #f2f8f9;
  color: #000;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  width: 200px;
  white-space: normal;
  word-break: break-word;
  font-size: 13px;
}

.specs-table.flat td {
  background: #fff;
  color: #333;
  text-align: left;
  vertical-align: top;
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  word-break: break-word;
}

@media (min-width: 992px) {
  .spec-title h2 {
    font-size: 28px;
  }

  .sub-tabs {
    gap: 12px;
  }

  .sub-tab-btn {
    min-width: 180px;
    padding: 12px 20px;
    font-size: 15px;
  }

  .specs-table.flat th {
    width: 280px;
    white-space: nowrap;
    font-size: 16px;
    padding: 10px;
  }

  .specs-table.flat td {
    font-size: 16px;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .specs-grid,
  .value-grid {
    justify-content: center;
  }

  .specs-col,
  .value-card {
    flex: 0 1 calc(50% - 24px);
    max-width: calc(50% - 24px);
    margin: 0;
  }
}

@media (max-width: 575px) {
  .specs-col,
  .value-card {
    flex: 0 1 100%;
    max-width: 100%;
  }
}
