@import url("/css/footer.css");
@import url("/css/common.css");
@import url("/css/legacy-common.css");
@import url(/css/service-common.css);

/* 테이블 외곽: 공통 table border와 구분선 class가 함께 적용됨 */
#st-info-table {
  border-left: none;
  border-right: none;
}
#st-info-table th {
  border-left: none !important;
  border-right: 1px solid #595757;
}
/* 인라인 border-right를 사용하던 정확한 셀의 구분선 */
.st-info-table__divider {
  border-right: 1px solid #595757;
}

#st-info-table tbody th + td {
  border-left: none !important;
}
#st-info-table td:last-child {
  border-right: none;
}
#st-info-table th:last-child {
  border-right: none;
}

/* img {
  overflow-x: hidden;
} */

section.services .inner,
section.workflow .inner,
section.service-info .inner {
  margin-bottom: var(--rg-space-6xl);
}

section.main {
  background-image:
    linear-gradient(45deg, rgb(255 255 255 / 1), rgb(255 255 255 / 0.2)),
    url("/images/service_t_heading_bg.png");
}

section.services {
  padding-top: var(--rg-layout-section-sm);
  /* padding-bottom: 100px; */
}

.Service.sub-title {
  font-size: var(--rg-font-size-body-lg);
  line-height: 30px;
  margin-bottom: var(--rg-space-md);
}

/* .Service.sub-title:nth-child(1) {
  padding: 0 0 15px 0;
} */

.Service.main-text {
  font-size: var(--rg-font-size-body);
}

.services .container-1 {
  flex-wrap: wrap;
  justify-content: center;
}

.services .container-2 {
  max-width: 580px;
}

.services .container-block {
  margin: var(--rg-space-lg) var(--rg-space-sm);
  padding: var(--rg-space-2xl);
}

.table-test {
  display: flex;
}

.table-container th {
  width: 30%;
}

.workflow .inner .sub-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
}

.workflow .inner .sub-group .group .group-2 {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.workflow .inner .sub-group .icon {
  width: 40px;
  height: 40px;
  margin-left: var(--rg-space-lg);
}

.Bioinformatics-Analysis .inner .text-line img {
  /* max-width: 300px;
  min-height: 300px; */
}

.Bioinformatics-Analysis
  .inner
  .text-line
  .sub-group.sub-group-1
  .reSize-group-1
  .reSize-group-2
  .reSize-group-3:nth-child(2)
  img {
  max-width: 200px;
  max-height: 220px;
  /* min-width: 300px;
  min-height: 200px; */
}

.st-workflow-image--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-workflow-sub-title-3.st-workflow-text--compact {
  line-height: 121.138%;
}

.st-analysis-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--rg-space-4xl);
}

.st-analysis-row--spaced {
  margin-bottom: var(--rg-space-3xl);
}

.st-analysis-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.st-analysis-row .st-analysis-title {
  margin-left: 0;
  text-align: center;
}

.st-analysis-image {
  max-width: 200px;
  max-height: 220px;
  object-fit: contain;
}

.st-analysis-pair {
  display: flex;
  flex-direction: row;
  gap: var(--rg-space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.st-analysis-caption {
  text-align: center;
  padding-top: var(--rg-space-md);
}

.try .inner .try-text {
  font-size: var(--rg-font-size-section-title);
  text-align: center;
}

.try .inner .try-title {
  font-size: var(--rg-font-size-display-lg);
  text-align: center;
}

.try .inner .btn {
  padding: var(--rg-space-lg) var(--rg-space-4xl);
}

@media screen and (max-width: 767px) {
  .st-main-title {
    max-width: calc(100% - var(--rg-space-2xl));
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }
}

.service-container-bioinfo {
  padding: var(--rg-space-md) 0;
}

.flex-container-bioinfo {
  display: flex;
  flex-direction: row; /* 데스크탑: 가로 정렬 */
  gap: var(--rg-space-lg);
  flex-wrap: wrap; /* 줄바꿈 허용 (선택 사항) */
  padding: var(--rg-space-md) var(--rg-space-xs);
  justify-content: center; /* 가운데 정렬 */
}

.grid-item-bioinfo {
  display: flex;
  flex-direction: column; /* 위아래로 쌓기 */
  align-items: center; /* 수평 중앙 정렬 */
  text-align: center;
}

.image-container-bioinfo {
  display: flex;
  flex-direction: row;
}

.grid-image-bioinfo {
  height: 240px;
  width: auto;
  object-fit: cover;
  display: block;
  margin: auto;
}

/* 문구, 이미지에 따라 class 이름 변경 필요 */
@media screen and (max-width: 768px) {
  .workflow .inner .sub-group .group img {
    max-height: 70px;
    max-width: 70px;
    padding: 0;
    margin: 0;
  }
  .workflow .inner .sub-group .group .group-2 {
    max-width: 100px;
  }

  .try .inner .try-text {
    font-size: var(--rg-font-size-heading-sm);
  }

  .try .inner .try-title {
    font-size: var(--rg-font-size-page-title);
  }

  .grid-container-bioinfo {
    grid-template-columns: 1fr;
  }

  .grid-image-bioinfo {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .image-container-bioinfo {
    flex-direction: column;
  }
}
