/* =========================================================
   IEI HTB-230D Medical Solution — Bootstrap 5.3.5 theme layer
   Design tokens extracted from the original Figma export
   ========================================================= */

:root {
  --iei-brand: #1e54a8;
  --iei-brand-rgb: 30, 84, 168;
  --iei-heading: #152236;
  --iei-body: #2a3d5c;
  --iei-bg-soft: #f1f3f5;
  --iei-bg-blue: #f4f7fb;
  --iei-teal: #02a098;
  --iei-border-blue: #cbe0f2;
}

body {
  font-family: "Roboto", "Open Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--iei-body);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-weight: 800;
  color: var(--iei-heading);
}
@media (min-width: 1400px){
    .container{
    max-width: 1500px;
}
}
.section { padding: 64px 0; }
@media (min-width: 992px) { .section { padding: 104px 0; } }

.section-heading { font-size: calc(1.35rem + 1vw); line-height: 1.5; }
@media (min-width: 1200px) { .section-heading { font-size: 36px; line-height: 60px; } }

.lead-body { font-size: 16px; line-height: 2; color: var(--iei-body); }

/* Section eyebrow tag, e.g. Overview / Challenges */
.section-tag {
  font-family: "Lato", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--iei-brand);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
/* Primary: hover → #163878 + shadow */
.btn-brand {
  --bs-btn-bg: var(--iei-brand);
  --bs-btn-border-color: var(--iei-brand);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #163878;
  --bs-btn-hover-border-color: #163878;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #163878;
  --bs-btn-active-border-color: #163878;
  --bs-btn-active-color: #fff;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .625rem;
}
.btn-brand:hover { box-shadow: 0 8px 16px rgba(10, 60, 100, .08); }
.btn-brand img { transition: transform .25s ease; }
.btn-brand:hover img { transform: translateX(4px); }
/* Primary_white: hover → solid #fff + shadow */
.btn-white-brand {
  --bs-btn-bg: rgba(255, 255, 255, .9);
  --bs-btn-border-color: rgba(255, 255, 255, .9);
  --bs-btn-color: var(--iei-brand);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--iei-brand);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-color: var(--iei-brand);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .625rem;
}
.btn-white-brand:hover { box-shadow: 0 8px 16px rgba(10, 60, 100, .08); }
/* Primary_light: hover → white bg, brand text, white glow */
.btn-outline-white {
  --bs-btn-bg: rgba(255, 255, 255, .1);
  --bs-btn-border-color: #fff;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-hover-color: var(--iei-brand);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-active-color: var(--iei-brand);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .625rem;
}
.btn-outline-white:hover { box-shadow: 0 8px 20px rgba(255, 255, 255, .2); }
/* Secondary: hover → brand bg, white text */
.btn-soft-brand {
  --bs-btn-bg: #f3f9ff;
  --bs-btn-border-color: #f3f9ff;
  --bs-btn-color: var(--iei-brand);
  --bs-btn-hover-bg: var(--iei-brand);
  --bs-btn-hover-border-color: var(--iei-brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--iei-brand);
  --bs-btn-active-border-color: var(--iei-brand);
  --bs-btn-active-color: #fff;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .625rem;
}
.btn-soft-brand:hover img,
.btn-soft-brand:active img { filter: brightness(0) invert(1); }

/* In-page anchor nav (sticky) — offset below the fixed site header (54px < 992px, 92px >= 992px) */
.page-anchor-nav {
  background: #fff;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
  z-index: 89;
  top: 54px;
}
@media (min-width: 992px) {
  .page-anchor-nav { top: 92px; }
}
.page-anchor-nav .nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-anchor-nav .nav::-webkit-scrollbar { display: none; }
.page-anchor-nav .nav-link {
  color: var(--iei-body);
  font-size: 16px;
  padding: .625rem 1rem;
  white-space: nowrap;
}
.page-anchor-nav .nav-link.active,
.page-anchor-nav .nav-link:hover {
  color: var(--iei-brand);
  font-weight: 600;
}
.page-anchor-nav .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--iei-brand);
}

/* Offset anchored sections below the fixed header + sticky bar */
section[id] { scroll-margin-top: 108px; }
@media (min-width: 992px) {
  section[id] { scroll-margin-top: 146px; }
}

/* ---------- Hero ---------- */
.hero {
  background: #dfe9f5 url("../_img/ai-in-healthcare/hero-bg.png") center / cover no-repeat;
  padding: 96px 0;
}
@media (min-width: 1200px) {
  .hero { min-height: 850px; display: flex; align-items: center; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 24px;
  background-color: rgba(var(--iei-brand-rgb), .1);
  border: 1px solid rgba(var(--iei-brand-rgb), .25);
  border-radius: 100px;
  color: var(--iei-brand);
  font-family: "Open Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-badge::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--iei-brand);
}
.hero h1 {
  font-size: calc(1.6rem + 1.8vw);
  line-height: 1.4;
}
@media (min-width: 1200px) { .hero h1 { font-size: 46px; line-height: 64px; } }
.hero-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--iei-brand);
  font-family: "Open Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
  text-transform: capitalize;
}
.hero-check::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--iei-brand);
}

/* ---------- Challenge cards ---------- */
.challenge-card {
  height: 100%;
  background-color: rgba(255, 255, 255, .9);
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 30, 56, .1);
  padding: 36px 28px 48px;
}
.challenge-num {
  display: block;
  margin-bottom: 20px;
  font-family: "Lato", sans-serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 36px;
  color: rgba(var(--iei-brand-rgb), .5);
}
.challenge-card h3 { font-size: 20px; font-weight: 700; line-height: 32px; margin-bottom: 16px; }
.challenge-card p { font-size: 16px; line-height: 32px; margin: 0; }

/* ---------- Why IEI (Solutions) ---------- */
.solutions-section {
  background: #fff url("../_img/ai-in-healthcare/solutions-bg.png") top center / cover no-repeat;
}
.solution-card {
  height: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(10, 60, 100, .08);
  padding: 36px 28px;
}
.solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  background-color: var(--iei-brand);
  border-radius: 5px;
}
.solution-icon img { width: 34px; height: 34px; object-fit: contain; }
.solution-card h3 { font-size: 20px; font-weight: 700; line-height: 32px; margin-bottom: 16px; }
.solution-card p { font-size: 16px; line-height: 32px; margin: 0; }

/* ---------- Diagram (How it works) ---------- */
.diagram-card {
  background-color: #fff;
  border: 1px solid rgba(var(--iei-brand-rgb), .1);
  border-radius: 30px;
  box-shadow: 0 18px 52px rgba(12, 34, 64, .08);
  padding: 24px;
}
@media (min-width: 992px) { .diagram-card { padding: 36px; } }
.diagram-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
@media (min-width: 992px) { .diagram-head { gap: 40px; } }
.diagram-head h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  color: var(--iei-heading);
  margin: 0;
}
.diagram-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: var(--iei-brand);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.diagram-desc {
  font-size: 16px;
  line-height: 32px;
  text-align: justify;
  color: var(--iei-body);
  margin: 0 0 36px;
}
.diagram-panel {
  border: 1px solid var(--iei-border-blue);
  border-radius: 20px;
  padding: 24px 16px;
  background-color: #fff;
  background-image:
    repeating-linear-gradient(90deg, rgba(var(--iei-brand-rgb), .04) 0 1px, transparent 1px 25px),
    repeating-linear-gradient(0deg, rgba(var(--iei-brand-rgb), .04) 0 1px, transparent 1px 25px),
    linear-gradient(180deg, #fff 0%, #f8fbfe 100%);
}
@media (min-width: 992px) { .diagram-panel { padding: 36px; } }
.flow { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 992px) { .flow { flex-direction: row; align-items: stretch; gap: 16px; } }
.flow-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.flow-step-lg { flex-grow: 1.4; }
.flow-step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.step-circle { width: 40px; height: 40px; }
.step-label {
  font-family: "Lato", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iei-brand);
  text-align: center;
}
.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.flow-arrow img { width: 30px; height: 30px; transform: rotate(90deg); }
@media (min-width: 992px) {
  .flow-arrow { padding-top: 5px; }
  .flow-arrow img { transform: none; }
}
.arrow-note {
  font-family: "Lato", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  text-transform: capitalize;
  color: rgba(var(--iei-brand-rgb), .7);
}
.flow-box {
  flex: 1 1 auto;
  background-color: #fff;
  border: 1px solid var(--iei-border-blue);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(10, 60, 100, .12);
  padding: 16px;
}
.flow-box + .flow-box { margin-top: 16px; }
.flow-box-highlight {
  background: linear-gradient(0deg, rgba(221, 235, 250, .2), rgba(221, 235, 250, .2)), #f2f7ff;
  border-color: rgba(var(--iei-brand-rgb), .4);
  padding: 16px 24px;
}
.box-tag {
  display: block;
  font-family: "Lato", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--iei-brand);
  margin-bottom: 8px;
}
.box-img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}
.box-img-md { height: 110px; }
.box-img-lg { height: 175px; }
.box-title {
  font-size: 16px;
  line-height: 28px;
  font-weight: 800;
  text-transform: capitalize;
  color: var(--iei-heading);
  margin: 0 0 8px;
}
.box-text {
  font-size: 16px;
  line-height: 28px;
  text-transform: capitalize;
  color: var(--iei-body);
  margin: 0;
}
.box-model span {
  display: block;
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  text-transform: capitalize;
  color: var(--iei-heading);
}
.box-model .model-code { color: var(--iei-brand); text-align:center}
.box-divider {
  border: 0;
  border-top: 1px solid rgba(var(--iei-brand-rgb), .4);
  opacity: 1;
  margin: 16px 0;
}
.hw-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.hw-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  text-transform: capitalize;
  color: var(--iei-heading);
}
.hw-item img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.result-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 28px;
  text-transform: capitalize;
  color: var(--iei-brand);
}
.result-abnormal {
  background-color: #fff8f8;
  border-color: rgba(211, 66, 76, .5);
}
.result-abnormal .result-row { color: #d3424c; }
.shot-label {
  display: block;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  text-transform: capitalize;
  color: var(--iei-heading);
}

/* ---------- Application (i.I.D.A) ---------- */
.application-section {
  background: #fff url("../_img/ai-in-healthcare/application-bg.png") top center / cover no-repeat;
}
.stats-col { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 992px) {
  .stats-col { border-left: 1.5px solid #c8d8ec; padding-left: 48px; }
}
.stat-num {
  font-size: 60px;
  font-weight: 700;
  line-height: 48px;
  color: var(--iei-brand);
  margin-bottom: 16px;
}
.stat-label {
  font-size: 16px;
  line-height: 28px;
  color: var(--iei-heading);
}
.domain-card {
  --domain-color: var(--iei-brand);
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(10, 60, 100, .12);
  height: 100%;
}
.domain-neurology { --domain-color: #1e54a8; }
.domain-thoracic { --domain-color: #1a4690; }
.domain-gynecology { --domain-color: #163878; }
.domain-card-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background-color: var(--domain-color);
  color: #fff;
}
.domain-card-header h3 { color: #fff; font-size: 24px; line-height: 32px; font-weight: 700; margin: 0; }
.domain-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #e4ebf4;
  font-size: 16px;
  line-height: 32px;
  color: var(--iei-body);
}
.domain-check {
  flex-shrink: 0;
  width: 20px;
  height: 17px;
}

/* ---------- Target-audience cards ---------- */
.audience-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(var(--iei-brand-rgb), .12);
  height: 100%;
  text-align: center;
}
.audience-card img { width: 100%; height: 270px; object-fit: cover; }
.audience-card h3 { font-size: 22px; color: var(--iei-brand); padding: 24px; margin: 0; }

/* ---------- Featured components banner ---------- */
.featured-section {
  background: #fff url("../_img/ai-in-healthcare/featured-components-bg.png") center / cover no-repeat;
}
@media (min-width: 1200px) {
  .featured-section {
    min-height: 650px;
    display: flex;
    align-items: center;
  }
}

/* ---------- Resource product cards ---------- */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 50px rgba(var(--iei-brand-rgb), .16);
  padding-bottom: 24px;
  overflow: hidden;
}
.product-card img.product-photo {
  width: 100%;
  aspect-ratio: 337.5 / 296;
  object-fit: cover;
  border-radius: 20px;
}
.product-body {
  align-self: stretch;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 36px;
}
.product-card .p-name {
  font-size: 24px;
  line-height: 42px;
  font-weight: 800;
  color: var(--iei-heading);
  text-align: center;
  margin: 0;
}
.product-card .p-type {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--iei-brand);
  text-align: center;
  margin: 0;
}
.product-card ul.p-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 32px;
  color: var(--iei-body);
  text-align: left;
}
.product-card ul.p-specs li {
  position: relative;
  padding-left: 18px;
}
.product-card ul.p-specs li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--iei-body);
}
.view-more-btn { width: 260px; max-width: calc(100% - 48px); }

/* ---------- Use-case cards ---------- */
.usecase-card {
  height: 100%;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(var(--iei-brand-rgb), .12);
}
.usecase-card img { width: 100%; height: 300px; object-fit: cover; }
.usecase-card .p-4 { text-align: center; }
.usecase-card h3 { font-size: 24px; color: var(--iei-brand); }

/* ---------- FAQ accordion ---------- */
.faq-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c8d8ec;
  border-radius: 0;
}
.faq-accordion .accordion-button {
  background: transparent;
  padding: 18px 28px;
  font-family: "Roboto", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 42px;
  color: var(--iei-heading);
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--iei-brand);
  font-size: 24px;
  font-weight: 800;
}
.faq-accordion .accordion-button::after {
  width: 28px;
  height: 28px;
  border: 1px solid #c8d8ec;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232A3D5C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  border-color: var(--iei-brand);
  background-color: var(--iei-brand);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-body {
  padding: 0 36px 28px;
  font-size: 16px;
  line-height: 32px;
  color: var(--iei-heading);
}
.faq-accordion .accordion-body > p { margin: 0 0 16px; }
.faq-help { padding-left: 18px; }
.faq-help-title {
  position: relative;
  color: var(--iei-brand);
  font-weight: 700;
  margin: 0 0 4px;
}
.faq-help-title::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--iei-brand);
}
.faq-help-text {
  color: var(--iei-brand);
  margin: 0;
}

/* ---------- CTA ---------- */
.cta-section {
  background: #0d2440 url("../_img/ai-in-healthcare/cta-bg.png") center / cover no-repeat;
  color: #fff;
}
@media (min-width: 1200px) {
  .cta-section {
    min-height: 600px;
    display: flex;
    align-items: center;
  }
}
.cta-section h2 { color: #fff; }
/* Primary_light_2: solid white, hover → brand bg, white text, white glow */
.cta-section .btn-white-brand {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: var(--iei-brand);
  --bs-btn-hover-border-color: var(--iei-brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--iei-brand);
  --bs-btn-active-border-color: var(--iei-brand);
  --bs-btn-active-color: #fff;
}
.cta-section .btn-white-brand:hover { box-shadow: 0 8px 20px rgba(255, 255, 255, .2); }
.breadcrumb-item+.breadcrumb-item::before{
        content: var(--bs-breadcrumb-divider, ">");
}