/* ===== IHKE3518 專用樣式 (使用 ihke3518- 前綴避免全域污染) ===== */

/*本文段落設定*/
.ihke3518{ 
  line-height: 1.5; 
}

/* === 收合區塊相關樣式 === */
/* 收合標題列 */
.ihke3518-collapse-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.ihke3518-collapse-header-right{
  text-align: right;
  display: block!important;
  padding-right: 15px;
}

/* 修正靠右對齊時黑點位置 */
.ihke3518-collapse-header-right .list-bullet-item::before {
  top: 50%;
  transform: translateY(-50%);
}

/* 收合標題連結 */
.ihke3518-collapse-link {
  color: black;
  text-decoration: none; 
}

/* 收合按鈕圖示容器 */
.ihke3518-collapse-icon-wrapper {
  margin-left: 10px;
  cursor: pointer;
  font-size: 1em;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* 收合狀態 - 向下箭頭 (Bootstrap 會自動加 .collapsed class) */
.collapsed .ihke3518-collapse-icon-wrapper {
  transform: rotate(180deg);
}

/* 展開狀態 - 箭頭向上 (Bootstrap 會自動移除 .collapsed class) */
.ihke3518-collapse-header:not(.collapsed) .ihke3518-collapse-icon-wrapper {
  transform: rotate(0deg);
}

/* 箭頭圖示 */
.ihke3518-collapse-icon-wrapper::before {
  content: "\e903"; /* icon-arrow-up */
  font-family: "icomoon" !important;
  font-size: 1em;
  color: #d86e66;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0.8px 0.8px 0 currentColor, -0.8px -0.8px 0 currentColor, 0.8px -0.8px 0 currentColor,
    -0.8px 0.8px 0 currentColor, 0 0.8px 0 currentColor, 0.8px 0 0 currentColor, 0 -0.8px 0 currentColor,
    -0.8px 0 0 currentColor;
  /* 圓形外框 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border: 2px solid #d86e66;
  border-radius: 50%;
  background-color: transparent;
}

/* 收合內容區 - 粉色背景帶文字色 */
.ihke3518-collapse-content-margin {
  margin-left: 25px;
  margin-bottom: 15px; 
}

/* 收合內容內部 padding */
.ihke3518-collapse-inner {
  padding: 10px;
}

/* === 頂部資訊列表 === */
.ihke3518-info-list {
  display: flex;
  gap: 1rem;
}

/* 跳轉連結樣式 */
.ihke3518-jump-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

/* === 衛教頁面特殊樣式 === */
/* 收合標題列 - 可點擊樣式 */
.ihke3518-education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* 標題文字 - 無 margin */
.ihke3518-title-text {
  margin: 0px !important;
}

/* === Badge 自訂樣式 === */
.ihke3518-badge-warning-custom {
  color: white !important;
}

/* Badge 適度介入樣式 */
.ihke3518-badge-moderate {
  background-color: #ff6b35;
  color: white;
}

/* 列表項目對齊 */
div.ihke3518 .list_item ul.normal li.d-flex {
  align-items: center !important;
}

/* === 標題區塊樣式 === */
.ihke3518-calendar-title {
  font-weight: bold;
}

.ihke3518-calendar-title-medium {
  font-weight: bold;
  font-size: 1em;
}

.ihke3518-calendar-title-multiline {
  font-weight: bold;
  font-size: 1em;
  line-height: 1.5;
}

/* === 文字內容樣式 === */
.ihke3518-text-content {
  font-size: 1em;
  line-height: 1.6;
}

.ihke3518-text-content-color{
  background-color: #EDF8F7;
  color: #343434;
}

/* === DCSI 總分卡片 === */
.ihke3518-dcsi-score-card {
  background-color: #EDF8F7;
  color: #198754;
}

.ihke3518-dcsi-score-title {
  font-weight: bold;
  margin-bottom: 1.2rem;
  font-size: 1.1em;
}

.ihke3518-dcsi-score-title-1 {
  font-weight: bold; 
  font-size: 1.1em;
}

.ihke3518-dcsi-score-value {
  text-align: center;
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 0 #198754, -1px -1px 0 #198754, 1px -1px 0 #198754, -1px 1px 0 #198754,
    2px 2px 4px rgba(0, 0, 0, 0.3);
  /*繼承來自body*/
  line-height: 16px;
}

/* === 參考文獻樣式 === */
.ihke3518-reference-text {
  font-size: 0.85em;
  color: #666;
  line-height: 1.5;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

/* === DCSI 說明樣式 === */
.ihke3518-dcsi-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.ihke3518-dcsi-title01 {
  margin-top: 0.5rem;
}

.ihke3518-dcsi-list {
  font-size: 1em;
  line-height: 1.8;
  list-style-type: circle;
  list-style-position: inside;
  padding-left: 0;
}

.ihke3518-dcsi-list li {
  display: list-item !important;
}

/* === 內容區塊樣式 (短期行動建議等) === */
.ihke3518-content-section {
  font-size: 1em;
  line-height: 1.8;
}

.ihke3518-content-p {
  margin-bottom: 0.5rem;
}

.ihke3518-content-p1rem {
  margin-bottom: 1rem;
}

.ihke3518-content-ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: circle;
}

.ihke3518-content-ol{
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

/* 列表項目 display list-item */
.ihke3518-dsflex {
  display: list-item !important;
  padding: 0px !important;
}

/* === 列表項目標題樣式 === */
.ihke3518-li-title {
  border-right: 0px;
  line-height: 1.6em; 
  padding-right: 0.5em;
}

/* === 覆蓋全域樣式 === */
div.ihke3518 .normal {
  color: #000;
}

/* === 有|無 Badge === */
.ihke3518-yes {
  color: #fff;
  background-color: #198754 !important;
}

.ihke3518-no {
  color: #198754;
  background-color: transparent !important;
  border: 1px solid #198754;
}

.ihke3518-icon {
  width: 25px;
  margin-right: 5px;
}

.ihke3518-font-size-09em {
  font-size: 0.9em;
}

.ihke3518-px-3 { 
    min-width: 13em;
    text-align: center;
    display: inline-block;
    font-size: inherit!important;
}

.ihke3518-px-4{ 
    min-width: 5em;
    text-align: center;
    display: inline-block;
    font-size: inherit!important;
}

div.ihke3518 .list_item ul.normal li.d-flex.flex-column .ihke3518-li-title {
  width: 100% !important;
}

div.ihke3518 .list_item ul.normal li.d-flex.flex-column .badge {
  margin-top: 0.5rem !important;
  margin-left: 0 !important;
}

/* PC 時 badge 靠右 */
@media (min-width: 769px) {
  div.ihke3518 .list_item ul.normal li.d-flex.flex-column {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  div.ihke3518 .list_item ul.normal li.d-flex.flex-column .ihke3518-li-title {
    width: auto !important;
  }

  div.ihke3518 .list_item ul.normal li.d-flex.flex-column .badge {
    margin-top: 0 !important;
    margin-left: 0.5rem !important;
  }

  /* 覆蓋規則:讓 badge-always-center 在 PC 也保持居中 */
  div.ihke3518 .list_item ul.normal li.d-flex.flex-column.ihke3518-badge-always-center {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  div.ihke3518 .list_item ul.normal li.d-flex.flex-column.ihke3518-badge-always-center .ihke3518-li-title {
    width: 100% !important;
  }

  div.ihke3518 .list_item ul.normal li.d-flex.flex-column.ihke3518-badge-always-center .badge {
    margin-top: 0.5rem !important;
    margin-left: 0 !important;
  }
}

/* === 特殊樣式:badge 永遠在第二行居中 (PC/Mobile 無分別) === */
div.ihke3518 .list_item ul.normal li.ihke3518-badge-always-center {
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

div.ihke3518 .list_item ul.normal li.ihke3518-badge-always-center .ihke3518-li-title {
  width: 100% !important; 
}

div.ihke3518 .list_item ul.normal li.ihke3518-badge-always-center .badge {
  margin-top: 0.5rem !important;
  margin-left: 0 !important;
}

.ihke3518-nav-pills{
  max-width: 100% !important;
}

.ihke3518-filter_box{
  border-bottom: 0px !important;
}

/* 卡片區塊樣式 */
.ihke3518-card-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 0.7rem;
  margin-bottom: 1.2rem;
}

.ihke3518-group_title{
  margin-bottom: 15px!important;
}
