.pages #newspost {
  padding-bottom: 94px;
}

.pages #newspost .news_cat {
  margin-bottom: 40px;
}

.pages #newspost .news_cat_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.pages #newspost .news_cat_item {
  min-width: 200px;
  height: 50px;
}

.pages #newspost .news_cat_item a {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 500;
  background: linear-gradient(270deg, var(--white-color) 0%, var(--white-color) 100%);
  transition: opacity 0.3s ease;
}

.pages #newspost .news_cat_item a span {
  background: linear-gradient(270deg, #ee5c00 0%, #e60000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  line-height: 1;
}

.pages #newspost .news_cat_item a span::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 4px;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: var(--white-color);
  opacity: 0;
}

.pages #newspost .news_cat_item a.is-active {
  background: linear-gradient(270deg, #ee5c00 0%, #e60000 100%);
}

.pages #newspost .news_cat_item a.is-active span::before {
  opacity: 1;
}

.pages #newspost .news_cat_item a.is-active span {
  background: linear-gradient(270deg, transparent 0%, transparent 100%);
  -webkit-text-fill-color: #fff;
}

.pages #newspost .news_post .card {
  margin-bottom: 56px;
}

/* ------------------news-detail------------------ */
.news_detail {
  padding-bottom: 102px;
}
/* 
.news_detail p {
  margin: 0 0 1.5em;
} */

.news_detail p:last-child {
  margin-bottom: 0;
}

.news_detail .detail_wrap {
  background-color: var(--white-color);
  padding: 64px 0 83px;
  margin-bottom: 64px;
}

.news_detail .detail_inner {
  width: calc(100% - 48px);
  max-width: 933px;
  margin: 0 auto;
}

.detail_cat {
  text-align: center;
  margin-bottom: 24px;
}

.detail_cat a {
  font-size: 16px;
  min-height: 25px;
  min-width: 169px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  margin: 0 5px 5px 0;
  transition: all 0.3s ease;
  position: relative;
}

.detail_cat a::before,
.detail_cat a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  pointer-events: none;
  transition: all 0.3s ease;
}

.detail_cat a::after {
  border: 1px solid var(--grey-color);
  z-index: 0;
}

.detail_cat a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(270deg, #ee5c00 0%, #e60000 100%);
  opacity: 0;
  z-index: 1;
}

.detail_cat a:hover {
  color: var(--white-color);
}

.detail_cat a:hover::before {
  opacity: 1;
}

.detail_cat a:hover::after {
  opacity: 0;
}

.detail_cat a span {
  position: relative;
  z-index: 1;
}

.detail_cat a:last-child {
  margin-right: 0;
}

.detail_time {
  font-size: 26px;
  text-align: center;
  margin-bottom: 29px;
}

.page_title01 {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  margin-bottom: 78px;
}

.detail_thumnail {
  width: 100%;
  line-height: 0;
  margin-bottom: 67px;
}

.detail_thumnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail_group {
  width: 100%;
  max-width: 738px;
  margin: 0 auto;
}

.detail_group h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 25px;
}

.detail_group h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 17px;
}

.detail_group p {
  line-height: 1.63;
  margin: 0 0 1.5em;
}

.detail_group p:last-child {
  margin-bottom: 0;
}

.detail_group ul {
  margin-bottom: 40px;
}

.detail_group ul li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 12px;
}

.detail_group ul li:last-child {
  margin-bottom: 0;
}

.detail_group ul li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  pointer-events: none;
}

.detail_group a {
  color: var(--red-color);
  text-decoration: underline;
}

.detail_group blockquote {
  margin-bottom: 1.5rem;
}

.detail_group mark {
  padding: 0 10px;
}

.detail_group .wp-block-media-text {
  margin-bottom: 47px;
  display: flex;
}

.detail_group .wp-block-media-text:last-child {
  margin-bottom: 0;
}

.detail_group .wp-block-media-text__media {
  width: 42.806vw;
  max-width: 357px;
  margin-right: 24px;
  flex-shrink: 0;
}

.detail_group .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  margin-right: 0;
  margin-left: 24px;
}

.detail_group .wp-block-media-text__content {
  padding: 0;
  flex: 1;
}

.detail_group .wp-block-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px !important;
  margin-bottom: 35px;
}

.detail_group .wp-block-gallery.columns-1 {
  display: initial;
}
.detail_group .wp-block-gallery.columns-1 >figure {
  margin-bottom: 10px;
}
.detail_group .wp-block-gallery.columns-1 >figure figcaption {
  height: 20px;
  line-height: 1.5;
} 
.detail_group .wp-block-gallery .wp-block-image {
  align-items: center;
  justify-content: center !important;
  line-height: 0;
  width: 100% !important;
}

.m_gallery_item {
  margin-right: 24px;
  line-height: 0;
}

.m_gallery_item:last-child {
  margin-right: 0;
}

.m_gallery_item:nth-child(3n) {
  margin-right: 0;
}

.m_gallery_item:nth-child(n + 4) {
  margin-top: 32px;
}

/* responsive */
@media screen and (min-width: 1025px) {
  .pages #newspost .news_cat_item a:hover {
    background: linear-gradient(270deg, #ee5c00 0%, #e60000 100%);
  }

  .pages #newspost .news_cat_item a:hover span::before {
    opacity: 1;
  }

  .pages #newspost .news_cat_item a:hover span {
    background: linear-gradient(270deg, transparent 0%, transparent 100%);
    -webkit-text-fill-color: #fff;
  }

  .link_text:hover {
    text-decoration: none;
  }
}

@media screen and (max-width: 1024px) {
  .pages #newspost {
    padding-bottom: 76px;
  }

  .pages #newspost .news_post .card {
    margin-bottom: 52px;
  }

  .news_detail {
    padding-top: 79px;
  }

  .news_detail .detail_wrap {
    padding: 64px 0 40px;
    margin-bottom: 32px;
  }

  .detail_time {
    font-size: 18px;
  }

  .page_title01 {
    font-size: 24px;
    line-height: 1.42;
    margin-bottom: 64px;
  }

  .page_title02 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .page_title03 {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .detail_thumnail {
    margin-bottom: 49px;
  }

  .block_text {
    margin-bottom: 40px;
  }

  .block_text p {
    line-height: 1.58;
    margin-bottom: 18px;
  }

  .list_text {
    margin-bottom: 22px;
  }

  .list_text li {
    margin-bottom: 10px;
  }

  .list_text li::before {
    top: 5px;
  }

  .column_block .column_text {
    line-height: 1.57;
  }

  .column_block {
    margin-bottom: 40px;
  }

  .gallery .gallery_item:nth-child(n + 4) {
    margin-top: 24px;
  }

  .caption {
    font-size: 10px;
  }
}

@media screen and (max-width: 768px) {
  .news_detail .detail_inner {
    width: calc(100% - 32px);
  }

  .pages #newspost .news_cat {
    margin-bottom: 48px;
    overflow-x: auto;
  }

  .pages #newspost .news_cat_list {
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: initial;
    padding: 0 8px;
    gap: 8px;
  }

  .detail_group .wp-block-media-text {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .detail_group .wp-block-media-text__media { 
    margin: 0 auto 17px !important;
    width: 82.933vw;
    max-width: 311px;
  }

  .detail_group .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    margin-bottom: 0 !important;
    margin-top: 17px !important;
  }

  .detail_group .wp-block-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-bottom: 8px;
  }
  
}
