/*=======專欄/部落格-2欄=======*/
.news-container {
  display: flex;
  margin-top: 30px;
}
.news-section-2{
  margin-top: 20px;
}
.news-section-2 .news-card {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  border-radius: 15px;
  /* transform: scale(0.8); */
}
.news-section-2 .news-card:hover {
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.45);
}
.news-info {
  margin: 10px 30px 20px;
}
.news-section-2 .news-card img {
  object-fit: cover;
  width: 550px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 15px 15px 0 0;
}
.news-author {
  font-size: 1.125rem;
}
.news-date span {
  font-size: 0.75rem;
}
.news-title span {
  font-size: 1.125rem;
  height: 30px;
  overflow: hidden;
  line-height: 1.5;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: normal;
}
.news-section-2 .news-card .slider {
  width: 50%;
  margin: 100px auto;
}
.news-section-2 .news-card .slick-slide {
  margin: 0px 20px;
}
.news-section-2 .news-card .slick-slide img {
  width: 100%;
}
.news-section-2 .slick-prev, .news-section-2 .slick-next{
  display: none !important;
}
.news-section-2  .news-card .slick-prev, .news-section .slick-next {
  font-size: 0;
  line-height: 0;
  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  cursor: pointer;
  color: black;
  border: none;
  outline: none;
  background: transparent;
}
.news-section-2  .slick-prev:before,
.news-section-2  .slick-next:before {
  color: black;
}
.news-section-2 .slick-prev {
  left: -25px;
}
.news-section-2 .slick-prev:before {
  content: '←';
}
.news-section-2 .news-card .slick-slide {
  transition: all ease-in-out .3s;
  opacity: .2;
}
.news-section-2 .news-card .slick-active {
  opacity: .5;
}
.news-section-2 .news-card .slick-current {
  opacity: 1;
}
.news-section-2 .slick-slide
{
  display: none;
  float: left;
  height: 100%;
  min-height: 400px;
  margin-right: 20px;
}
.news-section-2  .slick-dots{
  display: none !important;
}


/* 增加媒體查詢，當螢幕寬度小於768px時切換到手機版 */
@media screen and (max-width: 768px) {
 .news-container {
   display: flex;
   flex-wrap: wrap;
   margin-top: 30px;
}
.news-section-2 .slick-slide{
   min-height: 200px;
}
.news-section-2 .news-card img {
   width: 100%;
}
.news-section-2 .news-card {
  width: 100% !important;
  margin-top: 5px;
  border: 1px solid #d9d9d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.news-section-2 .slick-slide{
  margin-right: 20px;
  margin-left: 20px;
}
.news-section-2.slider{
   height: auto;
}
.news-section-2 {
   display: flex;
   flex-direction: column;
   align-items: center;
}
}