/*======================================================================== 
  Copyright: Ã¥Å’Â¯Ã¨Â±ÂÃ¦Â±Â½Ã¨Â»Å Ã§Â¶Â²Ã¨Â·Â¯Ã¤Âºâ€¹Ã¦Â¥Â­
  Author: Amber
  ========================================================================*/
.newsArticle h2 {
  margin-bottom: 50px;
}

.newsArticle p {
  font-size: 18px;
  line-height: 170%;
  color: #555555;
  margin-bottom: 35px;
}

.content975 {
  z-index: 5;
}

.hasShadow {
  -webkit-box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1024px) {
  .newsArticle h2 {
    margin-bottom: 20px;
  }
}


/*======================================================================== 
  Ã¤Â¸Â»Ã¥Å“â€“
  ========================================================================*/
.innerMainTitle h2 {
  background: url(../../images/title-news.png) no-repeat center center;
}

@media screen and (max-width: 1024px) {
  .innerMainTitle h2 {
    background: url(../../images/title-news.png) no-repeat center center;
    background-size: 100%;
  }
}

/*======================================================================== 
  newsÃ¦â€“â€¡Ã§Â«Â 
  ========================================================================*/
.newsArticle {
  background: #eee;
  padding: 28px 0px 60px 0px;
  position: relative;
}
/* 調整 .selection 以匹配 .care 的間距和寬度 */
.newsArticle .selection {
  display: block;
  overflow: hidden;
  margin-bottom: 25px;
  width: calc(100% - 25px); 
  margin-top: 75px; 
}
.newsArticle .flexbox {
  display: flex;
  flex-flow: row wrap;
}
/* 調整 .selection a 以匹配 .care 的等高、置中、邊距 */
.newsArticle .selection a {
  
  background-color: #b3c8d2;
  color: #fff;
  font-size: 22px;
  text-align: center;
  margin-right: 15px;
  margin-bottom: 15px;
  padding: 6px 20px;
  
  min-height: 60px;
  
  flex-direction: column;
  display: flex;
  align-items: center; 
  justify-content: center; 
  
  overflow: hidden;
}

/* 調整 .selection a span 以匹配 .care 的行數限制 */
.newsArticle .selection a span {
  padding: unset;
  color: unset;
  display: block;
  width: 100%;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: center;
}
.newsArticle .selection a:last-child{
  margin-right: 0px;
}
.newsArticle .selection a:hover, .newsArticle .selection a.active{
  background-color: #00a1e9;
}

/* 新增 media query 以匹配 .care 的桌面端佈局 */
@media screen and (min-width: 1000px){
  .newsArticle .selection a:nth-child(1){
    max-width: 50px;
    flex: 0 0 auto;
  }

  /* 讓其他 anker 元素佔用約 24% 寬度，以實現每行四個 */
  .newsArticle .selection a{
    flex: 0 0 calc(25% - 15px);
    flex: 0 0 24%;
  }
}

/* 調整 media query 以匹配 .care 的小螢幕佈局 */
@media screen and (max-width: 1000px){
  .newsArticle .selection {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%; /* 小螢幕下寬度調整 */
  }
  .newsArticle .selection a{
    width: calc(50% - 7px);
    margin-right: 6px;
    padding: 6px 2px;
    margin-bottom: 15px;
    max-width: none; /* 移除 max-width 限制 */
    flex: unset; /* 取消 flex 寬度設置 */
  }
  .newsArticle .selection a:nth-child(even){
    margin-right: 0px;
  }
}

.newsArticle .newsBox a {
  width: 100%;
  height: 100%;
  display: inline-block;
  background: #f9f9f9;
  position: relative;
  -webkit-transition: all 200ms ease-out;
  -mozilla-transition: all 200ms ease-out;
  -ms-transition: all 200ms ease-out;
  -o-transition: all 200ms ease-out;
  transition: all 200ms ease-out;
}

.newsArticle .newsBox a:hover {
  webkit-transform: translate(0, -10px);
  -moz-transform: translate(0, -10px);
  -ms-transform: translate(0, -10px);
  -o-transform: translate(0, -10px);
  transform: translate(0, -10px);
  background: #00a1e9;
}

.newsArticle .newsBox a img {
  width: 100%;
}
.newsArticle h3 {
  font-size: 18px;
  color: #00a1e9;
  margin-top: 15px;
}
.newsArticle .newsBox a:hover h3 {
  color: #fff;
}
.newsArticle b{
  padding: 5px 10px;
  color: #fff;
  background: #00a1e9;
  display: inline-block;
}
.newsArticle .newsBox a:hover b {
  color: #00a1e9;
  background: #fff;
}
.newsArticle .newsInfo {
  margin: 24px 15px 30px;
}
.newsArticle .newsInfo span{
  padding: 5px 10px;
  color: #53565a;
}
.newsArticle .newsBox a:hover span{
  color: #fff;
}
.newsArticle a p {
  font-size: 15px;
  color: #666;
  margin: 5px 15px 15px 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.newsArticle a p:last-child {
  margin-bottom: 45px;
}

/*
.newsArticle:after {
  content: url(../../images/bg_triangle.png);
  position: absolute;
  bottom: -10px;
  right: 5px;
  z-index: 1;
}
*/
.newsArticle .addMargin {
  margin-top: 60px;
}

/* 調整 media query 以匹配 .care 的小螢幕樣式 */
@media screen and (max-width: 1024px) {

  .newsArticle .addMargin {
    margin-top: 0px; 
  }
}

/* 額外添加 .care 的 max-width: 768px 設置 (如果需要) */
@media screen and (max-width: 768px) {
  .newsArticle {
    padding: 30px 0px 0px 0px;
  }
  .newsArticle .addMargin {
    margin-top: 0px;
    line-height: 36px;
  }
}


/*======================================================================== 
  Ã¥Ë†â€ Ã©Â ÂÃ¦Å’â€°Ã©Ë†â€¢
  ========================================================================*/
.uk-pagination {
  position: relative;
}

.uk-pagination>li {
  position: relative;
  height: 36px;
}
.uk-pagination>li>a {
  -webkit-transition: all 200ms ease-out;
  -mozilla-transition: all 200ms ease-out;
  -ms-transition: all 200ms ease-out;
  -o-transition: all 200ms ease-out;
  transition: all 200ms ease-out;
}
.uk-pagination>li>a:hover {
  webkit-transform: translate(0, -10px);
  -moz-transform: translate(0, -10px);
  -ms-transform: translate(0, -10px);
  -o-transform: translate(0, -10px);
  transform: translate(0, -10px);
}
.uk-pagination>li>span,
.uk-pagination>li>a {
  color: #999999;
  font-size: 22px;
  background: none;
}

.uk-pagination>li.next>a,
.uk-pagination>li.prev>a {
  color: #3979bb;
  background: none;
}

.uk-pagination>li.next>span,
.uk-pagination>li.prev>span {
  background: none;
}

.uk-pagination>li.next>a:hover,
.uk-pagination>li.prev>a:hover {
  color: #3979bb;
}

.uk-pagination>li>a:hover {
  color: #999999;
  background: none;
  height: 36px;
}

.uk-pagination>li.uk-active>span {
  font-size: 30px;
  color: #3979bb;
  background: none;
}

.uk-pagination>li.next {
  position: absolute;
  top: none;
  right: 20px;
}

.uk-pagination>li.prev {
  position: absolute;
  top: none;
  left: 20px;
}

.uk-pagination>li.next strong {
  position: absolute;
  top: 3px;
  right: -17px;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

.svg--next {
  background-image: url(../../images/icon/mySprite.svg#next);
}

.uk-pagination>li.prev strong {
  position: absolute;
  top: 3px;
  left: -17px;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  color: #333;
}

.svg--prev {
  background-image: url(../../images/icon/mySprite.svg#prev);
}

@media screen and (max-width: 960px) {

  .uk-pagination>li>span,
  .uk-pagination>li>a {
    font-size: 15px;
  }

  .uk-pagination>li.uk-active>span {
    font-size: 20px;
  }
}
@media screen and (max-width: 768px) {
  .uk-pagination > li:nth-child(n+2) {
    margin-left: -5px;
  }
}