/* Departments page styles to match the reference layout. */

.department-page-maincontent > .department-page-wid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.department-list {
  padding: 40px 0 60px;
}

.department-section + .department-section {
  margin-top: 42px;
}

.department-section-head {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e7eef6;
}

.department-section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #1d3557;
  font-size: 30px;
  line-height: 1.2;
}

.department-section-head h2:before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #00a0e9 0%, #0074d9 100%);
}

.department-tabs .tab-tit {
  position: relative;
  background: #fff;
  border-radius: 10px 10px 0 0;
}

.department-tabs .tab-tit a {
  float: left;
  display: block;
  width: 25%;
  text-align: center;
  font-size: 20px;
  padding: 20px 0 15px;
  background: #fff;
  border-radius: 15px 10px 0 0;
}

.department-tabs .tab-tit a.cur {
  margin-bottom: -2px;
  color: #0089e1;
  font-weight: bold;
  border-bottom: 2px solid #0089e1;
}

.department-list .department-tablist {
  margin-top: 18px;
  min-height: 0;
}

.department-list .department-tablist .tab-pannel {
  overflow: hidden;
  margin: 0 -10px;
}

.department-list .department-tablist .tab-pannel > li {
  float: left;
  width: 25%;
  margin: 10px 0;
  padding: 0 10px;
  box-sizing: border-box;
  height: auto;
  border: 0;
  border-radius: 0;
  transition: none;
}

.department-list .department-tablist .tab-pannel > li:hover {
  border-color: transparent;
  box-shadow: none;
}

.department-tablist p {
  color: #777;
}

.department-entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dfeaf5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.department-entry-card:hover {
  border-color: #7fc8f8;
  box-shadow: 0 12px 24px rgba(0, 116, 217, 0.12);
  transform: translateY(-2px);
}

.department-entry-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d66c2;
  border-radius: 50%;
  background: #eaf6ff;
}

.department-entry-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.department-entry-name {
  min-width: 0;
  flex: 1 1 auto;
  color: #183b56;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.department-entry-arrow {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.department-entry-arrow:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid #8a8f98;
  border-right: 2px solid #8a8f98;
  transform: rotate(45deg);
}

.department-tit {
  line-height: 1;
  padding-bottom: 15px;
  position: relative;
  border-bottom: 1px solid #e5e5e5;
}

.department-tit:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background-color: #0089e1;
}

.department-tit h3 {
  float: left;
  font-size: 20px;
  margin: 0;
}

.department-tit h3 i {
  font-size: 1em;
}

.department-tit h3 span {
  position: relative;
  top: -2px;
  vertical-align: middle;
  color: #fff;
  padding: 10px;
  font-weight: normal;
  margin-right: 8px;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  background: transparent;
}

.department-tit h3 span img {
  width: 1em;
  height: 1em;
  display: block;
}

.department-tablist .point2 {
  background: transparent;
}

.department-desc {
  position: relative;
  margin-top: 10px;
}

.department-desc p {
  text-align: justify;
  margin: 0;
}

.department-panel-grid {
  display: block;
}

.department-panel-grid .department-desc,
.department-panel-grid .department-tit {
  display: none;
}

.department-disease-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.department-disease-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dfeaf5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-sizing: border-box;
  width: calc(25% - 14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.department-disease-chip:hover {
  transform: translateY(-2px);
  border-color: #7fc8f8;
  box-shadow: 0 12px 24px rgba(0, 116, 217, 0.12);
}

.department-disease-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf6ff;
}

.department-disease-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.department-disease-name {
  min-width: 0;
  flex: 1 1 auto;
  color: #183b56;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.department-disease-dept {
  flex: 0 0 auto;
  max-width: 42%;
  color: #7a8ca3;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

@media screen and (max-width: 1025px) {
  .department-page-maincontent > .department-page-wid {
    padding: 0 15px;
  }

  .department-list {
    padding: 24px 0 36px;
  }

  .department-section + .department-section {
    margin-top: 28px;
  }

  .department-section-head {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .department-section-head h2 {
    font-size: 24px;
    padding-left: 14px;
  }

  .department-section-head h2:before {
    top: 4px;
    height: 22px;
  }

  .department-disease-list {
    gap: 12px;
  }

  .department-list .department-tablist {
    margin-top: 14px;
    min-height: 0;
  }

  .department-list .department-tablist .tab-pannel {
    margin: 0 -6px;
  }

  .department-list .department-tablist .tab-pannel > li {
    width: 50%;
    padding: 0 6px;
    margin: 6px 0;
  }

  .department-entry-card {
    padding: 14px;
    gap: 12px;
    border-radius: 10px;
  }

  .department-entry-icon,
  .department-entry-icon img {
    width: 24px;
    height: 24px;
  }

  .department-entry-name {
    font-size: 16px;
  }

  .department-disease-chip {
    width: calc(50% - 6px);
    padding: 14px;
  }

  .department-disease-name {
    font-size: 15px;
  }

  .department-disease-dept {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .department-disease-chip {
    width: calc(50% - 6px);
  }
}
