/*內頁Banner page-banner*/

.page-banner {
  position: relative;
  padding: 1rem 1rem;
  scroll-margin-top: 112px;
  overflow: clip;
  margin-bottom: 0px;
}
.page-banner .container-xs {
  padding-top: 110px;
  padding-bottom: 90px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  clip-path: inset(0 round 15px);
}

.page-banner .bannerImg img {
  position: fixed;
  left: 0;
  display: block;
  height: auto;
  object-fit: cover;
  z-index: 1;
  border-radius: 15px;
  overflow: hidden;
  top: 125px;
  width: 100%;
}

.page-banner .content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.bannerText {
  text-align: center;
}
.page-banner hr {
  margin: 0.5rem 0;
  border-color: var(--ardswc246-blue);
  opacity: 1;
}
.page-banner .slogan_top {
  font-size: 2rem;
  color: var(--ardswc246-blue-dark);
}
.page-banner .slogan_bottom {
  font-size: 3rem;
  letter-spacing: 2px;
  color: var(--ardswc246-blue);
  font-weight: bold;
}

@media (max-width: 576px) {
  .page-banner .slogan_bottom {
    font-size: 2rem;
  }
}

@media (max-width: 1199.98px) {
  .page-banner .bannerImg {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .page-banner .bannerImg img {
    top: 60px;
  }
}
/*內頁-清單相關*/
.list-container {
  margin-bottom: 2rem;
  padding: 0;
}
.list-item {
  padding: 1rem;
  border-bottom: 1px dashed var(--fit-black);
}
.list-item:hover {
  background: rgba(var(--ardswc246-blue-light-rgb), 0.2);
}
.list-link {
  display: block;
}
.list-date,
.list-year {
  font-size: 1rem;
  color: var(--ardswc246-blue);
  font-weight: bold;
}
.list-title {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-size: 1.25rem;
  color: rgba(var(--ardswc246-blue-dark-rgb), 0.85);
  font-weight: bold;
}

.list-item .tags-group {
  border: 0;
}
.list-item .tags-group a {
  color: var(--fit-black-dark);
}
.list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--bs-border-radius-pill);
  font-size: 2rem;
  color: rgba(var(--ardswc246-blue-rgb), 0.5);
  background: rgba(var(--ardswc246-blue-light-rgb), 0.2);
}
.list-icon i {
  color: inherit;
}
.list-item:hover .list-icon {
  color: rgba(var(--ardswc246-blue-rgb), 0.8);
  background: var(--fit-white);
}

.list-item:hover .list-title {
  color: var(--ardswc246-blue-dark);
}
.list-item time {
  display: block;
}

/*list-table 清單包表格式*/
.list-table .list-item {
  padding: 0rem 0rem;
}
.list-table-content {
  /* display: none; */
}
/* 預設可見 */
.list-table-content {
  display: block;
  border-bottom: 1px dashed var(--fit-black);
}

/* 加了 hidden 就隱藏 */
.list-table-content[hidden] {
  display: none !important;
}

.list-table__toggle {
  width: 60px;
  height: 100%;
  padding: 0.5rem 0.5rem;
  border: 0;
  color: var(--ardswc246-blue);
  font-size: 1rem;
  cursor: pointer;
  background: rgba(var(--fit-black-rgb), 0.2);
  color: var(--bs-black);
}
.list-table__toggle .name {
  display: block;
  line-height: 1;
}
/* banner-區塊-快速新消息 跑馬燈 */
.newsBox {
  display: flex;
  flex: 0 0 35px;
  width: 80%;
  margin-bottom: 10px;
  padding: 0 10px;
  height: 35px;
  background: #fff;
  border-radius: 16px 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page-banner .newsBox {
  z-index: 1;
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.newsBox > div,
.newsBox > ul {
  display: inline-block;
  vertical-align: top;
}

.newsIcon {
  position: relative;
  width: 35px;
  height: 35px;
  line-height: 32px;
  text-align: center;
  color: #2e4765;
  font-size: 1.25rem;
}

ul.marquee {
  position: relative;
  width: 100%;
  height: 35px;
  margin: 0 10px;
  line-height: 1;
  list-style: none;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
}

ul.marquee li {
  position: absolute;
  top: -999em;
  left: 0;
  display: block;
  white-space: nowrap;
  font: 1rem Arial, Helvetica, sans-serif;
  line-height: 35px;
  color: #000;
}

ul.marquee li a {
  color: #222938;
}

ul.marquee li a:hover {
  color: #000;
}

/* 麵包屑導覽列 */
.breadcrumb {
  padding: 1rem 0rem;
  font-size: 1.1rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: var(--bs-breadcrumb-item-padding-x);
  color: var(--bs-breadcrumb-divider-color);
  content: var(--bs-breadcrumb-divider, ">")
    /* rtl: var(--bs-breadcrumb-divider, "/") */;
}
.breadcrumb-item a {
  color: var(--ardswc246-blue);
  font-weight: bold;
}
.breadcrumb-item.active {
  color: var(--ardswc246-blue);
}

/* 頁面標題+麵包屑導覽列 */
.section-fluid-Title {
}
.section-page-Title {
  margin-right: var(--SideNav-width);
}
.page-title {
  /* padding: 1rem 1rem; */
  border-bottom: 1px solid var(--fit-black-light);
  line-height: 1;
}
.page-title-item {
  display: flex;
  /* align-items: center; */
  gap: 2px;
  padding: 0.5rem 0rem;
  line-height: 1;
  color: var(--ardswc246-blue-dark);
}
.page-title h3 {
  font-size: 1.65rem;
}
.page-title span {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 1.65rem;
}
.page-title h4 {
  position: relative;
  font-weight: bold;
  font-size: 1.65rem;
}
.page-title h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 48px;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background-color: var(--ardswc246-blue);
}
.open-sideNav {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  border-radius: var(--bs-border-radius-pill);
  background: var(--fit-white);
  border: 1px solid var(--ardswc246-blue-light);
  color: var(--ardswc246-blue);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;

  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
}

@media (max-width: 576px) {
  .page-container {
    padding-right: 0;
    padding-left: 0;
  }
}
@media (min-width: 576px) {
}
@media (min-width: 992px) {
  .page-container {
    max-width: 840px;
  }
}
@media (min-width: 1200px) {
  .page-container {
    max-width: 960px;
  }
  .page-title-item {
    padding: 0.5rem 0rem;
  }
  .breadcrumb {
    padding: 1rem 0rem 0rem 0rem;
  }
}
@media (min-width: 1400px) {
  .page-container {
    max-width: 1200px;
  }
}

/* 手機板樣式 992px */
@media (max-width: 992px) {
  .breadcrumb {
    margin-bottom: 0;
  }
  .open-sideNav {
    display: flex;
  }
  .section-page-Title {
    margin-right: 0;
  }
  .page-title h3,
  .page-title span,
  .page-title h4 {
    /* font-size: 1.4rem; */
  }
}

/* 手機板樣式 */
@media (max-width: 576px) {
  .breadcrumb,
  .page-title-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .page-title h4::before {
    /* top: 44px; */
  }
  .page-title-item > h3,
  .page-title-item > span {
    display: none;
  }
}

/* 分享與工具列 */
.section-page-FloatingTools {
  position: fixed;
  right: 310px;
  bottom: 10px;
  z-index: 9999;
  width: 62px;
  transition: all 0.3s ease;
}
.index_wrap .section-page-FloatingTools {
  right: 10px;
}
.section-page-FloatingTools a {
  width: 100%;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  font-size: 0.85rem;
}
.section-page-FloatingTools a:hover {
  opacity: 1;
}
.section-page-FloatingTools > a i {
  font-size: 1rem;
}
.section-page-FloatingTools a span {
  display: block;
  line-height: 1.2;
  font-size: 0.85rem;
}

/* 分享面板：從分享鈕「上方」長出來（不推擠） */
.floating-tools[hidden] {
  display: none !important;
}
.floating-tools {
  position: absolute;
  bottom: 100%; /* 貼著分享鈕的上緣 */
  right: 0;
}
.floating-tools i {
  font-size: 1.8rem;
}

.title-share-tools .btn-line i,
.title-share-tools .btn-facebook i,
.title-share-tools .btn-copy i {
  font-size: 1.2rem;
}
.floating-tools .btn-copy i {
  font-size: 1.4rem;
}
.floating-tools .btn-line,
.title-share-tools .btn-line {
  background-color: #01b901;
  border: 1px solid #01b901;
}
.btn-share:focus,
.btn-goTop:focus {
  border: 1px solid var(--ardswc246-blue-dark);
}

/*地圖 map*/
.map-container {
  min-height: 300px;
  height: 100%;
}
/*地圖 map*/
.map-sticky {
  height: 600px;
  position: sticky;
  top: 120px;
}

/* 隱形但仍可被讀屏讀到（政府網站通用做法） */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 992px) {
  .section-page-FloatingTools {
    right: 10px;
  }
}

/*內頁內容*/
/* 內文主標-h5 */
.unitTitle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ardswc246-blue);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--ardswc246-blue);
}
/* 視你的 header 高度調整 80px */
/* 或更精準：只給 h5 / 特定 id 範圍 */
h5[id],
[id^="h5-"] {
  scroll-margin-top: 150px;
}

/* 內文有下底線標題-h6 */
.unitSubTitle {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--ardswc246-blue-dark);
}
.unitSubTitle > span {
  display: inline-block;
  padding: 0.5rem 0.2rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ardswc246-blue-dark);
  border-bottom: 1px solid var(--ardswc246-blue-dark);
}

/* 內文有標題-h7 */
.sectionTitle {
  margin-bottom: 0;
  line-height: 1.1;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--ardswc246-blue);
}
p {
  color: var(--ardswc246-blue-dark);
}
.var {
  padding: 0 4px;
  font-size: inherit;
  font-style: italic;
  font-family: Georgia, "Times New Roman", Times, serif;
}
/* ul所有樣式 */
.upper-alpha {
  list-style-type: upper-alpha;
}
.lower-roman {
  list-style-type: lower-roman;
}
/*內頁搜尋列*/
.search-bar {
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(var(--ardswc246-blue-light-rgb), 0.2);
  border-radius: var(--bs-border-radius);
}
.content-bar {
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background-color: rgba(var(--ardswc246-blue-light-rgb), 0.2);
  border-radius: var(--bs-border-radius);
}
/*搜尋bar分隔線*/
.bar-divider {
  width: 1px;
  height: 20px;
  /* margin: 0 10px; */
  background: rgba(var(--fit-dark-rgb), 0.3);
}
/*-首頁-應變開設專區*/
/* 左邊 */
.alert-response-stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.alert-response-container {
  display: none;
  padding: 0;
}
.alert-response-section {
  margin-bottom: 2px;
}
.alert-response-header {
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  background-color: var(--ardswc246-blue-dark);
}
.response-title {
  display: inline-flex;
  align-items: center;
  padding-left: 0.5rem;
  line-height: 1.1;
  color: var(--fit-white);
  font-size: 2.2rem;
  border-left: 4px solid var(--fit-white);
}
.response-disaster-name,
.response-title span {
  font-size: inherit;
}
.response-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.response-level .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--fit-white);
  background: var(--fit-red);
}

.warning-block {
  display: flex;
  align-items: stretch;
  /* margin-bottom: 0.5rem; */
  border-radius: var(--bs-border-radius-xl);
  color: var(--fit-dark);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.warning-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  font-size: 1.8rem;
  font-weight: bold;
  border-right: 4px solid var(--fit-black);
}
.warning-grouop {
  flex: 1;
}
.warning-item {
  padding: 0.5rem 0;
}
.warning-item:first-child {
  border-bottom: 4px solid var(--fit-black);
}

.warning-stats-list {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  list-style-type: none;
  margin-bottom: 0;
  padding-left: 0;
}
.warning-stats-list > li {
  flex: 1;
  line-height: 1.2;
  text-align: center;
}
.warning-stats-list > .warning-item-header {
  flex: 2;
}
.stat-value {
  font-size: 2.4rem;
  font-weight: bold;
}
.stat-text {
  font-size: 1rem;
  color: var(--fit-dark);
  line-height: 1;
}
@media (max-width: 576px) {
  .alert-response-container {
    padding: 1rem 0.5rem;
  }
}

/*表格拖曳*/
/* 可選：套在可拖曳的容器上（例如 .table-responsive） */
/* 讓表格在小螢幕一定比畫面寬，觸發橫向卷軸 */
.table--wide {
  min-width: 1152px;
}
.table-responsive,
.table-responsive-md {
  overflow: auto; /* 要能滾動 */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* 關鍵：讓瀏覽器把水平手勢交給我們，垂直仍可原生滾動 */
  touch-action: pan-y;
}
.table-responsive.is-dragging,
.table-responsive-md.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
/*圖片格式 - Bootstrap 擴充*/
.img-fixed {
  height: 300px;
  object-fit: cover;
  width: 100%;
}
/* 圖片不放大：維持原始解析度，超過容器才縮小 */
.img-natural {
  width: auto; /* 不主動撐滿，避免被放大 */
  max-width: 100%; /* 螢幕較小時才等比縮小 */
  height: auto;
}
/* 多圖時的縮圖尺寸（依需要微調） */
.thumb {
  max-height: 180px; /* 控制視覺高度一致 */
}

/* 卡片媒體區留白與淡底 */
.card-media {
  padding: 0.25rem 0.5rem;
  background: #f8f9fa; /* 淡灰底，讓小圖不會顯得單薄 */
  border-radius: 0.5rem;
}

/*-首頁-應變開設專區-紅黃色塊*/
.warning-block.red-warning {
  border: 4px solid var(--fit-red);
  background: rgba(var(--fit-red-rgb), 0.1);
}
.warning-block.yellow-warning {
  border: 4px solid var(--fit-yellow);
  background: rgba(var(--fit-yellow-rgb), 0.1);
}

.warning-block.red-warning .warning-title {
  border-right: 4px solid var(--fit-red);
}
.warning-block.yellow-warning .warning-title {
  border-right: 4px solid var(--fit-yellow);
}

.warning-block.red-warning .warning-item:first-child {
  border-bottom: 4px solid var(--fit-red);
}
.warning-block.yellow-warning .warning-item:first-child {
  border-bottom: 4px solid var(--fit-yellow);
}

/*-首頁-應變開設專區-開設 預報下載*/
.news-download-card {
  margin-bottom: 0.5rem;
  border-radius: var(--bs-border-radius-xl);
  color: var(--fit-dark);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.news-download-card .card-header {
  padding: 0.25rem 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--fit-white);
  background: linear-gradient(
    135deg,
    rgba(75, 186, 255, 1) 0%,
    rgba(23, 116, 209, 1) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}
.news-download-card .card-header a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0;
  line-height: 1.1;
  color: var(--fit-white);
  text-decoration: none;
}

.news-download-card .card-footer {
  padding: 0.5rem 1rem;
}
.publish-time {
  display: block;
  font-size: 1.4rem;
  text-align: center;
  color: var(--ardswc246-blue);
}
.news-download-card .btn-text {
  display: block;
  padding: 0;
  font-size: 1.2rem;
  text-align: center;
  color: var(--ardswc246-blue-dark);
}

/*-首頁-應變開設專區-應變開設地圖*/
/* 右邊 */
.alert-response-map-area {
  position: relative;
}
.disaster-map-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.warning-area-container {
  z-index: 1;
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  /* pointer-events: none; */
}
/*-首頁-應變開設專區-卡片設定*/
.county-warning-card {
  width: 21s0px;
}
.warning-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.warning-column.column-center {
  flex: 1;
}
.county-header {
  margin-left: 20px;
  padding: 0.2rem 0.75rem;
  line-height: 1;
  display: inline-block;
  color: var(--fit-white);
  background: var(--ardswc246-blue);
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}
.warning-category-group {
  padding: 0 0.25rem;
  margin-top: -2px;
  border: 2px solid var(--ardswc246-blue);
  border-radius: var(--bs-border-radius-lg);
}
.warning-category:first-child {
  border-bottom: 2px solid var(--ardswc246-blue);
}
.warning-category {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0.1rem 0.25rem;
}
.warning-label {
  flex: 1;
  line-height: 1;
  color: var(--ardswc246-blue);
  font-weight: bold;
}
.warning-count {
  line-height: 1.4;
  flex: 0 0 30px;
  text-align: center;
  border-radius: var(--bs-border-radius);
}
.warning-count.red {
  background: var(--ardswc246-red);
  color: var(--fit-white);
}
.warning-count.yellow {
  background: var(--ardswc246-yellow);
  color: var(--fit-dark);
}
.county-warning-card.no-warning {
  opacity: 0.5;
}
.no-warning .warning-count.red,
.no-warning .warning-count.yellow {
  background: var(--ardswc246-blue);
  color: var(--fit-white);
}

.disaster-map-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 550px;
}
.disaster-map-card img {
  cursor: pointer;
  max-width: 100%;
  height: inherit;
}

@media (max-width: 576px) {
  .response-title {
    font-size: 1.6rem;
  }
  .no-warning {
    display: none;
  }
  .warning-area-container {
    flex-wrap: wrap;
  }
  .warning-column {
  }
  .warning-area-container > .warning-column:nth-child(1) {
    order: 2;
  }
  .warning-area-container > .warning-column:nth-child(2) {
    order: 1;
  }
  .warning-area-container > .warning-column:nth-child(3) {
    order: 3;
  }
  .column-center .disaster-map-card {
    order: 1;
  }
  .column-center .county-warning-card {
    order: 2;
  }
  .warning-column {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    flex: 100% !important;
  }
  .warning-column.column-center {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    flex: 100% !important;
  }
  .column-center .county-warning-card {
    flex: 1 0 48%;
  }
  .county-warning-card {
    flex: 1 1 48%;
  }
  .disaster-map-card {
    order: 1;
    flex: 100%;
    height: auto;
  }
}

/* -首頁-Banner-資訊總覽專區- */

.info-summary-section {
  padding: 2rem 0;
  background: url(../Images/banner/banner_indexBg.jpg) no-repeat;
  background-attachment: fixed;
  background-position-y: 60px;
  background-position-x: 32%;
  background-size: cover;
}
.info-summary-section .overview-block {
  height: 100%;
  padding: 0.5rem 0.5rem;
  border-radius: var(--bs-border-radius-xl);
  background: linear-gradient(
    135deg,
    rgba(35, 133, 196, 0.8) 0%,
    rgba(5, 42, 117, 0.8) 65%,
    rgba(5, 42, 117, 0.8) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.info-summary-section .newsBox {
  width: 100%;
}
.info-summary-title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--fit-white);
  margin-bottom: 0.5rem;
}
.info-summary-title > span {
  font-size: inherit;
}
.info-summary-title .small {
  display: block;
  font-size: 1rem;
}
.hazard-list-name {
  font-size: 1rem;
  font-weight: bold;
}
.info-summary-list {
  list-style: none;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  padding-left: 0;
  color: var(--fit-white);
}
.data-source {
  color: var(--fit-white);
  font-size: 0.85rem;
}
.info-summary-list > li {
  line-height: 1.2;
  flex: 1 0 48%;
  padding: 0.25rem 0.25rem;
}
.info-list-name {
  font-size: 1rem;
  font-weight: bold;
}
.info-value {
  font-size: 1.8rem;
  font-weight: bold;
}

.info-value span {
  padding-left: 0.5rem;
  font-size: 1rem;
}
.info-summary-list .felx-100 {
  flex: 1 0 100%;
}

/*頁籤樣式*/
/*-首頁-土石流或基準值查詢*/
.alert-search-block {
  display: flex;
  align-items: center;
  justify-content: center;
}
.alertSearch-tabs {
  padding: 1rem 0.25rem;
}

.alertSearch-tabs .tabs {
  list-style: none;
  display: flex;
  width: 100%;
  padding-left: 0;
  margin-bottom: 10px;
  text-align: center;
}

.alertSearch-tabs .tabs > li {
  flex: 1;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(var(--ardswc246-blue-dark), 0.5);
}
.alertSearch-tabs .tabs > li a {
  display: block;
  padding: 0.5rem 0;
  font-size: inherit;
  color: var(--ardswc246-blue-light);
  text-decoration: none;
  border-bottom: 6px solid var(--ardswc246-blue-light);
}

.alertSearch-tabs .tabs > li:hover {
  background-color: rgba(var(--ardswc246-blue-dark-rgb), 0.5);
}
.alertSearch-tabs .tabs > li.active {
  color: var(--fit-white);
}
.alertSearch-tabs .tabs > li:focus a {
  background-color: rgba(var(--ardswc246-blue-dark-rgb), 0.5);
}

.alertSearch-tabs .tabs > li.active a {
  color: var(--fit-white);
  border-bottom: 6px solid var(--fit-white);
}

.alertSearch-tabs .title-block {
  padding: 1rem 0;
  font-size: 1.4rem;
  text-align: center;
  color: var(--fit-white);
}
.alertSearch-tabs .alert-stats {
  padding: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: var(--fit-white);
}
.alertSearch-tabs .alert-stats strong {
  color: var(--fit-pink);
  font-size: inherit;
  font-weight: bold;
}

/*頁籤樣式*/
/*-首頁-首頁推薦選單*/
.recommend-nav-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.recommendNav-tabs {
  padding: 0 0 1rem 0rem;
}

.recommendNav-tabs .tabs {
  list-style: none;
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

.recommendNav-tabs .tabs > li {
  flex: 1;
  font-size: 1.4rem;
  cursor: pointer;
  background-color: rgba(var(--ardswc246-blue-dark), 0.5);
}
.recommendNav-tabs .tabs > li a {
  display: block;
  padding: 0.5rem 0;
  font-weight: bold;
  font-size: inherit;
  color: var(--ardswc246-blue-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--ardswc246-blue-dark);
}

.recommendNav-tabs .tabs > li:hover {
  background-color: rgba(var(--ardswc246-blue-dark-rgb), 0.1);
}
.recommendNav-tabs .tabs > li.active {
  color: var(--fit-white);
}
.recommendNav-tabs .tabs > li:focus a {
  background-color: rgba(var(--ardswc246-blue-dark-rgb), 0.5);
}

.recommendNav-tabs .tabs > li.active a {
  color: var(--fit-white);
  border-bottom: 2px solid var(--fit-white);
}

.recommendNav-tabs .title-block {
  padding: 1rem 0;
  font-size: 1.4rem;
  text-align: center;
  color: var(--fit-white);
}
.recommendNav-tabs .alert-stats {
  padding: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  color: var(--fit-white);
}
.recommendNav-tabs .alert-stats strong {
  color: var(--fit-pink);
  font-size: inherit;
  font-weight: bold;
}

/**/
.recommendNav-tabs .tab_container {
  border-bottom: 26px solid var(--ardswc246-blue-light);
  background: var(--fit-white);
  border-radius: 0 0 var(--bs-border-radius-lg) var(--bs-border-radius-lg);
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.9);
}
.recommendNav-content {
  padding: 1rem 1rem;
}

.recommendNav-card {
  display: block;
  padding: 0.75rem 0.5rem;
  height: 100%;
  border-radius: var(--bs-border-radius-lg);
  background: rgba(var(--ardswc246-blue-light-rgb), 0.05);
}

.recommendNav-card:hover {
  background: rgba(var(--ardswc246-blue-light-rgb), 0.4);
}
.recommendNav-title {
  color: var(--fit-dark);
  font-size: 1.2rem;
  font-weight: bold;
}
.recommendNav-desc {
  line-height: 1.1;
  color: var(--fit-dark);
  font-size: 1rem;
}

.recommend-nav-section .go-siteMap {
  padding: 0.5rem 2rem;
  font-size: 1.4 rem;
}
.recommend-nav-content {
  padding-top: 30px;
}
.recommend-bg-wrap {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #e6f5ff, #21a8e9); /* 漸層藍底 */
  background: linear-gradient(
    to right,
    rgba(75, 186, 255, 1) 0%,
    rgba(23, 116, 209, 1) 100%
  );
  overflow: hidden;
}
/*首頁推薦選單-動畫區*/
.recommend-bg {
  z-index: 100;
  position: absolute;
  bottom: -18%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 1920px;
  width: 100%;
  height: 150px;
}
.recommend-bg img {
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}
.recommend-bg-rounded {
  position: absolute;
  z-index: 2;
}
.recommend-bg-rounded.blue1 {
  top: 1%;
  left: 30%;
  animation-delay: 0s;
}
.recommend-bg-rounded.blue2 {
  top: 30%;
  left: 90%;
  animation-delay: 1s;
}
.recommend-bg-rounded.blue3 {
  top: 56%;
  left: 3%;
  animation-delay: 2s;
}
.recommend-bg-rounded.blue4 {
  top: 1%;
  left: 70%;
  animation-delay: 3s;
}
/* CSS 漂浮動畫-動畫1-首頁推薦選單 */
@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.recommend-bg-rounded {
  /* animation: floatUpDown 6s ease-in-out infinite; */
}

.blue1 {
  animation-delay: 0s;
}
.blue2 {
  animation-delay: 1s;
}
.blue3 {
  animation-delay: 2s;
}
.blue4 {
  animation-delay: 3s;
}

/*重大災害-動畫區*/

.disaster-bg-wrap {
  position: relative;
  z-index: -1;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgb(141, 141, 141) 0%,
    rgb(243, 243, 243) 69%
  );

  overflow: hidden;
}
.disaster-bg-rounded {
  position: absolute;
}
.disaster-bg-rounded.red1 {
  z-index: 3;
  top: 18%;
  left: 9%;
  animation-delay: 1s;
}
.disaster-bg-rounded.red2 {
  z-index: 3;
  top: 56%;
  left: 74%;
  animation-delay: 2s;
}
.disaster-bg-rounded.red3 {
  z-index: 2;
  top: 20%;
  left: 69%;
  animation-delay: 3s;
  opacity: 0.8;
}
.disaster-bg-rounded.redTitle {
  z-index: 2;
  width: 400px;
}
.disaster-bg-rounded.redTitle img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* CSS 漂浮動畫-動畫1-首頁推薦選單 */
@keyframes floatUpDown2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.disaster-bg-rounded {
  animation: floatUpDown2 4s ease-in-out infinite;
}

/*首頁標題*/
.title-index {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--fit-black-light);
}
.title-index .name {
  padding: 0 1rem;
  font-size: 1.6rem;
  padding-bottom: 1rem;
  font-weight: bold;
  color: var(--ardswc246-blue-dark);
  border-bottom: 2px solid var(--ardswc246-blue);
}

.btn-more {
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.2);
}

/*首頁-slider-最新資訊*/
/*--針對首頁最新資訊的slider套件上下鍵效果--*/
.slider .slick-prev,
.slider .slick-next {
  top: 40%;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ardswc246-blue);
  background: rgba(var(--fit-white-rgb), 0.8);
}
.slider .slick-prev {
  left: -50px;
}
.slider .slick-next {
  right: -50px;
}
@media (max-width: 1400px) {
  .slider .slick-prev {
    left: 0px;
  }
  .slider .slick-next {
    right: 0px;
  }
}
.slider .slick-prev:before {
  content: "\F284";
}
.slider .slick-next:before {
  content: "\F285";
}
.slider .slick-prev:hover,
.slider .slick-prev:focus,
.slider .slick-next:hover,
.slider .slick-next:focus {
  background: rgba(var(--fit-white-rgb), 1);
}

.slider .slick-prev:before,
.slider .slick-next:before {
  font-family: bootstrap-icons !important;
  color: var(--ardswc246-blue);
  font-size: 1.5rem;
}
.slick-dots li button:before {
  font-size: 0.8rem !important;
}

/*首頁重大災難按鈕設定*/
.disaster-slider .slick-prev,
.disaster-slider .slick-next {
  top: 50%;
}
.disaster-slider .slick-next {
  right: 0px;
}

/*--針對首頁最新資訊的slider套件上下鍵效果--*/
.latest-news-slider .slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 10px 0;
}
.latest-news-slider .item-slider-block {
  width: 270px;
  padding: 10px 10px;
  margin: 0 10px;
  border: var(--ardswc246-blue-light) solid 1px;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
  transition: all 0.3s ease;
}
.latest-news-slider .item-slider-block:hover {
  margin-top: -10px;
  border: var(--ardswc246-blue) solid 1px;
}
.latest-news-slider .news-image {
  width: 250px;
  height: 150px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--fit-dark);
}

.latest-news-slider .news-image img {
  width: 100%;
  height: auto;
}

.latest-news-slider .slider-item .news-image img {
  transition: 0.3s ease; /* 平滑過渡 */
}

.latest-news-slider .slider-item:hover .news-image img {
  filter: brightness(70%); /* 調暗 70% */
}

.news-date {
  margin-bottom: 0.5rem;
  color: var(--ardswc246-blue);
  font-size: 0.9rem;
}

.news-title {
  height: 64px;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--fit-dark);
  font-size: 1.1rem;
  font-weight: bold;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags-group {
  line-height: 1.2;
  padding: 0.5rem 0 0.5rem 0;
  border-top: 1px solid var(--ardswc246-blue-light);
  color: var(--ardswc246-blue);
}
.tags-group .tag {
  margin-right: 0.5rem;
  color: var(--ardswc246-blue);
}

/*首頁-slider-重大災害事件*/
.disaster-slider .slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 10px 0;
}
.disaster-slider .item-slider-block {
  width: 270px;
  padding: 10px 10px;
  margin: 0 10px;
  border: var(--ardswc246-blue-light) solid 1px;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
  transition: all 0.3s ease;
  background: var(--fit-white);
}
.disaster-slider .item-slider-block:hover {
  margin-top: -10px;
  border: var(--ardswc246-blue) solid 1px;
}

.disaster-date {
  color: var(--ardswc246-blue-dark);
  font-size: 0.9rem;
}

.disaster-location {
  margin-bottom: 0.5rem;
  color: var(--ardswc246-blue-dark);
  font-size: 1.2rem;
}

.disaster-stats .stat-item {
  padding: 0.25rem 0.5rem;
  background: rgba(var(--fit-black-rgb), 0.5);
  color: var(--fit-white);
  border-radius: var(--bs-border-radius-lg);
}
.disaster-desc a {
  display: block;
}

.disaster-stats {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0.25rem;
}
.disaster-stats .stat-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}
.disaster-slider-header {
  padding: 0.5rem 0.55rem;
}
.disaster-slider-header > div {
  line-height: 1.2;
  color: var(--ardswc246-blue-dark);
}
.disaster-slider-header .disaster-title {
  font-size: 2.2rem;
  font-weight: bold;
}
.disaster-slider-header .disaster-date {
  font-size: 1.4rem;
}
/*內頁-重大-災例最速報*/
.disaster-card {
  padding: 10px 10px;
  margin-bottom: 1rem;
  border: var(--ardswc246-blue-light) solid 1px;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
  transition: all 0.3s ease;
  background: var(--fit-white);
}
/*首頁-重大災難-左標題*/
.disaster-slider-col {
  padding: 60px 0px 47px 10px;
  background: url(../Images/Index/bg_majorDisaster.jpg) no-repeat;
  background-size: cover;
}

/* 首頁-內頁-開放資料 API */
.api-list {
  list-style: none;
  padding-left: 0;
}
.api-card-link {
  display: block;
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
  transition: all 0.3s ease;
}
.api-card-link:hover {
  box-shadow: 0 0 15px rgba(var(--fit-black-rgb), 0.8);
  transform: translateY(-5px);
}
.api-card-title {
  position: relative;
  overflow: hidden;
  padding: 0.75rem 0.5rem;
  margin-bottom: 0;
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: bold;
  text-align: center;
  color: var(--fit-white);
  background: linear-gradient(
    135deg,
    rgba(75, 186, 255, 1),
    rgba(23, 116, 209, 1)
  );
  z-index: 0; /* 文字層保持在上層 */
}

.api-card-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(75, 186, 255, 1), rgb(16, 72, 129));
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1; /* 保證不覆蓋文字 */
}

.api-card-link:hover .api-card-title::before {
  opacity: 1;
}
.api-card-body {
  padding: 0.5rem 0.5rem;
  color: var(--ardswc246-blue);
  text-align: center;
}
.api-card-body .tags-group {
  border-top: 0;
  padding: 0;
}

/* 首頁-線上教育訓練教材 */
.training-card-link {
  display: block;
  padding: 20px 20px;
  margin: 0 10px;
  border: var(--ardswc246-blue-light) solid 1px;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
  transition: all 0.3s ease;
  background: var(--fit-white);
}
.training-card-link:hover {
  margin-top: -10px;
  border: var(--ardswc246-blue) solid 1px;
}
.badge-group {
  position: relative;
  left: -30px;
  display: flex;
  margin-bottom: 0.5rem;
}
.badge-group .name {
  padding: 0.25rem 0.5rem;
  margin-right: 1rem;
  line-height: 1.2;
  color: var(--fit-white);
  background: linear-gradient(
    135deg,
    rgba(75, 186, 255, 1),
    rgba(23, 116, 209, 1)
  );
  font-size: 0.95rem;
  border-radius: var(--bs-border-radius-lg);
}
.training-card-title {
  color: var(--ardswc246-blue-dark);
  font-size: 1.2rem;
  font-weight: bold;
}
.training-card-date {
  color: var(--ardswc246-blue-dark);
  font-size: 0.85rem;
}
.training-card-desc {
  line-height: 1.2;
  color: var(--ardswc246-blue);
  font-size: 1.2rem;
  font-weight: bold;
}
.training-card:nth-child(1) .training-card-link {
  background: url(../Images/Index/bg_training01.png) no-repeat;
  background-position: 95% 90%;
}

.training-card:nth-child(2) .training-card-link {
  background: url(../Images/Index/bg_training02.png) no-repeat;
  background-position: 95% 65%;
}

.training-card:nth-child(3) .training-card-link {
  background: url(../Images/Index/bg_training03.png) no-repeat;
  background-position: 95% 50%;
}

/*首頁-防災專刊*/
.magazine-cover {
  /* height: 100%; */
}

.magazine-cover img {
  height: 370px;
}
.magazine-page .magazine-cover img {
  height: auto;
  width: 100%;
}
.magazine-slider .item-slider-block {
  position: relative;
  display: block;
  height: 100%;
  padding: 0;
  margin: 0 10px;
  border: var(--fit-black-light) solid 6px;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 0 14px rgba(var(--ardswc246-blue-dark-rgb), 0.4);
  transition: all 0.3s ease;
  background: var(--fit-white);
}
.magazine-slider .badge-group {
  position: absolute;
  top: -16px;
  left: 10px;
  z-index: 1;
}

.magazine-slider .slick-list {
  top: 68px;
  padding: 20px 0 !important;
}
.magazine-slider.slider .slick-prev,
.magazine-slider.slider .slick-next {
  top: 65% !important;
}
.officer-magazine-section .title-index {
  margin: 2rem 0;
}
.officer-magazine-section {
  margin-bottom: 100px;
  /* padding: 20px 0; */
  background-image: url("../Images/Index/bg_magazine.svg"),
    linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 26%,
      rgba(176, 216, 243, 1) 100%
    );
  background-repeat: no-repeat, no-repeat; /* 都不重複 */
  background-size: auto, cover; /* 漸層全滿，圖片原尺寸 */
  background-position: right bottom, center top; /* 漸層置中，圖片右下角 */
  background-attachment: fixed, scroll; /* 第一層漸層固定，第二層圖片滾動 */
  /* 🎵 啟用圓弧漂浮動畫 */
  animation: floatCircle 8s ease-in-out infinite;
}

.officer-magazine-section .title-index .name {
  padding: 0 1rem;
  font-size: 2.6rem;
  padding-bottom: 1rem;
  font-weight: bold;
  color: var(--ardswc246-blue-dark);
  border-bottom: 2px solid var(--ardswc246-blue);
  text-align: center;
}
/* 定義圓弧漂浮動畫 */
@keyframes floatCircle {
  0% {
    background-position: calc(100% - 0px) calc(100% - 0px), center top;
  }
  25% {
    background-position: calc(100% - 10px) calc(100% - 5px), center top;
  }
  50% {
    background-position: calc(100% - 5px) calc(100% - 10px), center top;
  }
  75% {
    background-position: calc(100% - 0px) calc(100% - 5px), center top;
  }
  100% {
    background-position: calc(100% - 0px) calc(100% - 0px), center top;
  }
}
@media (max-width: 768px) {
  .officer-magazine-section {
    background-size: cover, auto;
  }
}

/* Bootstrap modal 樣式*/

.modal-header {
  border-bottom: 1px solid var(--fit-black-light);
}
.modal-body-title {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ardswc246-blue-dark);
  border-bottom: 1px dashed var(--ardswc246-blue-dark);
}
.modal-body-content {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-size: 1.2rem;
}
.modal-header .modal-title {
  margin-bottom: 0;
  color: var(--ardswc246-blue-dark);
  font-size: 1.8rem;
}
.modal-title {
  margin-bottom: 0.5rem;
  color: var(--ardswc246-blue);
  font-size: 1.25rem;
  font-weight: bold;
}
.modal-body-footer {
  border-top: 1px solid var(--fit-black-light);
  padding: 0.75rem 1.25rem;
}
.btn-download-img {
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}

/* 內頁-相關連結 */
.externalLinks {
  list-style: none;
  padding-left: 0;
}
.externalLinks > li:hover {
  /* margin-bottom: 0.5rem; */
}
.externalLinks a {
  height: 100%;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--fit-black-light);
}
.externalLinks a:hover {
  border: 1px solid var(--ardswc246-blue);
  background: rgba(var(--ardswc246-blue-light-rgb), 0.2);
}
.externalLinks a:hover .link-name {
  color: var(--ardswc246-blue-dark);
}
.link-name {
  padding: 0.5rem 0;
  line-height: 1.2;
  text-align: left;
  color: var(--fit-dark);
}

/*內頁-培訓土石流防災專員*/
.info-media-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
  border-radius: var(--bs-border-radius);
  border: 1px solid rgba(var(--ardswc246-blue-rgb), 0);
  transition: all 0.3s ease;
}
.info-media-meta {
  color: rgba(var(--ardswc246-blue-rgb), 1);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-size: 1rem;
}
.info-media-meta * {
  font-size: inherit;
}
.info-media-image {
  width: 100%;
  margin-bottom: 0.5rem;
  border-radius: var(--bs-border-radius);
  overflow: hidden;
}
.info-media-image img {
  width: 100%;
  height: auto;
}
.info-media-title {
  color: var(--ardswc246-blue-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: justify;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.info-media-link .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  flex: 1;
  text-align: center;
}
.info-media-link {
  margin-top: auto;
}

.info-media-card:hover {
  margin-top: -5px;
  border: 1px solid rgba(var(--ardswc246-blue-rgb), 1);
}

/* 內頁-防災線上課程-影片播放區 */
.course-media {
  background: var(--bs-black);
}
.video-container,
.slides-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 440px;
}
.video-container iframe {
  height: 100%;
}
.slide-preview {
  flex: 1;
  height: calc(100% - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bs-black);
}
.slide-preview img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain; /* 保持比例，完整顯示 */
}
.slide-controls {
  flex: 0 0 60px;
  height: 60px;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--fit-white);
  border-top: 1px solid var(--fit-white);
}
.slide-nav a {
  color: var(--fit-white);
  font-size: 1.6rem;
}
@media (max-width: 768px) {
  .video-container,
  .slides-container {
    height: 400px;
  }
}

.lecture-header {
  padding: 0.5rem 1rem;
  background: var(--ardswc246-blue-dark);
}
.lecture-meta > * {
  line-height: 1.1;
  color: var(--fit-white);
  margin-bottom: 0;
  font-size: 1.5rem;
}
.lecture-header .unitTitle {
  border-left: 4px solid var(--fit-white);
}
.course-author {
  margin-left: 1rem;
}
.course-license img {
  height: 48px;
  width: auto;
}

/* 播放清單 */
.course-playlist {
  height: 240px;
  overflow-y: auto;
  padding-left: 0;
  margin-bottom: 0;
  border: 1px solid var(--fit-black-light);
  border-radius: var(--bs-border-radius);
}
.course-playlist > li {
  border-bottom: 1px solid var(--fit-black-light);
}
.course-playlist > li:last-child {
  border-bottom: none;
}
.course-playlist > li:hover {
  background: rgba(var(--fit-black-light-rgb), 0.5);
}
.course-playlist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  width: 100%;
  color: var(--fit-green);
}
.course-playlist a.in-active {
  color: var(--fit-red);
  font-weight: bold;
}
.playlist-name {
  display: inline-flex;
  /* justify-content: center; */
  align-items: center;
  gap: 0.5rem;
}

/* 內頁災例最速報 */
.event-card {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--fit-black-light);
  border-radius: var(--bs-border-radius-lg);
  transition: all 0.3s ease;
}
.event-card__body > * {
  line-height: 1.1;
}
.event-card__title {
  font-size: 1.5rem;
  font-weight: bold;
}
.event-card__badge {
  font-size: 3.3rem;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  opacity: 0.4;
  transition: all 0.3s;
}
.event-card__badge > * {
  font-size: inherit;
  font-weight: inherit;
}
.event-card__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card__icon::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 60px;
  height: 60px;
  background-color: rgba(var(--fit-black-rgb), 0.2);
  border-radius: var(--bs-border-radius-pill);
}
.event-card__icon .icon_item {
  width: 48px;
  height: 48px;
  background-color: var(--ardswc246-blue-dark); /* 這裡就是你要的顏色 */
}

.event-card:hover {
  margin-top: -4px;
  box-shadow: 0 0 10px rgba(var(--fit-black-rgb), 0.6);
}

.event-card:hover .event-card__badge {
  opacity: 1;
}

@media (max-width: 1400px) {
  .event-card {
    padding: 1rem 0;
    flex-direction: column;
    text-align: center;
  }
}

/* 颱風 */
.icon_typhoon {
  -webkit-mask: url("../Images/page/icon_svg_typhoon.svg") no-repeat center /
    contain;
  mask: url("../Images/page/icon_svg_typhoon.svg") no-repeat center / contain;
}

/* 地震 */
.icon_earthquake {
  -webkit-mask: url("../Images/page/icon_svg_earthquake.svg") no-repeat center /
    contain;
  mask: url("../Images/page/icon_svg_earthquake.svg") no-repeat center / contain;
}

/* 大雨 */
.icon_heavyRain {
  -webkit-mask: url("../Images/page/icon_svg_heavyRain.svg") no-repeat center /
    contain;
  mask: url("../Images/page/icon_svg_heavyRain.svg") no-repeat center / contain;
}

/* 系統 */
.icon_system {
  -webkit-mask: url("../Images/page/icon_svg_system.svg") no-repeat center /
    contain;
  mask: url("../Images/page/icon_svg_system.svg") no-repeat center / contain;
}

/* 挖土機 */
.icon_excavator {
  -webkit-mask: url("../Images/page/icon_svg_excavator.svg") no-repeat center /
    contain;
  mask: url("../Images/page/icon_svg_excavator.svg") no-repeat center / contain;
}

/* 山 */
.icon_mountain {
  -webkit-mask: url("../Images/page/icon_svg_mountain.svg") no-repeat center /
    contain;
  mask: url("../Images/page/icon_svg_mountain.svg") no-repeat center / contain;
}
/* 颱風-黑灰色 */
.event-card--typhoon {
  color: var(--fit-black);
  border: 1px solid var(--fit-black);
}
.event-card--typhoon .icon_typhoon {
  background-color: var(--fit-black); /* 這裡就是你要的顏色 */
}
.event-card--typhoon .event-card__icon::before {
  background-color: rgba(var(--fit-black-rgb), 0.1);
}

/* 大雨-粉紅色 */
.event-card--rain {
  color: var(--fit-pink);
  border: 1px solid var(--fit-pink);
}
.event-card--rain .icon_item {
  background-color: var(--fit-pink); /* 這裡就是你要的顏色 */
}
.event-card--rain .event-card__icon::before {
  background-color: rgba(var(--fit-pink-rgb), 0.1);
}

/* 地震-咖啡 */
.event-card--quake {
  color: var(--fit-brown);
  border: 1px solid var(--fit-brown);
}
.event-card--quake .icon_earthquake {
  background-color: var(--fit-brown); /* 這裡就是你要的顏色 */
}
.event-card--quake .event-card__icon::before {
  background-color: rgba(var(--fit-brown-rgb), 0.1);
}

/*內頁-防災專員*/
.Chapter3 {
  background: var(--fit-black) !important;
  color: var(--fit-white);
  padding: 2rem 0;
}

.taskList {
  position: relative;
  background: url(../Images/selfPreparedness/guardian19.png) no-repeat;
}

.taskList .taskListTitle {
  position: relative;
  width: 141px;
  height: 85px;
}

.taskList .taskListTitle span {
  display: block;
  width: 116px;
  line-height: 1.2;
  color: var(--fit-white);
}

.taskListTitle .number {
  position: absolute;
  top: 0;
  left: 15px;
  font-size: 1.55em;
  font-style: italic;
}

.taskListTitle .taskTitle {
  position: absolute;
  top: 30px;
  left: 22px;
  line-height: 1;
  font-size: 1.2rem;
}

.taskList ul {
  margin-top: -62px;
  margin-left: 141px;
  display: block;
  background-color: #fff;
  padding: 15px 15px 5px 40px;
  border-radius: 0 10px 10px 0;
  box-shadow: 6px 6px 20px rgba(var(--fit-black-rgb), 0.3);
}

.taskList ul li {
  list-style-type: disc;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--ardswc246-blue);
}

@media (max-width: 576px) {
  .taskList {
  }

  .taskListTitle .taskTitle {
    width: 4em;
  }

  .taskList ul {
    padding: 15px 5px 5px 40px;
  }
}

/*FB 四張圖貼文 FBpost_1_3*/
.FBpost_1_3 {
  display: flex;
  width: 100%;
  overflow: hidden;
  border: 1px solid #000000;
}
.FBpost_item_img a {
  display: block;
  overflow: hidden;
}
.FBpost_mainImage {
  flex: 2;
  width: 66.6%;
}
.FBpost_mainImage img {
  width: 100%;
}
.FBpost_secondary {
  flex: 1;
  width: 33.3%;
  display: flex;
  flex-direction: column;
}
.FBpost_secondary .FBpost_item_img {
  position: relative;
  width: 100%;
  height: 33.35%;
  background: #00000070;
  overflow: hidden;
}
.FBpost_secondary .FBpost_item_img img {
  position: absolute;
  top: 0;
  left: -89%;
  height: 100%;
}

.FBpost_item_img {
  border: 1px solid #000000;
  background: #00000050;
}

/*bootstrap card包a hover 就動一下*/
a.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover,
a.card:focus {
  transform: translateY(-4px);
  outline-offset: 2px;
}

/*2-4警戒儀表板*/
