@charset "utf-8";

/*================================================
blog
================================================*/

.page-header {
  height: 200px;
}

.blog.section {
  padding-top: calc(var(--layout-gap) * 1.5);
}

@media print, screen and (min-width:769px) {
  .blog-container.section-container {
    padding: 0 calc(var(--layout-gap) * 1.25);
  }
}


@media print, screen and (min-width:960px) {
  .blog-container.section-container {
    padding: 0 calc(var(--layout-gap) * 1.5);
  }
}

.content-title {
  line-height: 1.25;
}
.content-title-label {
  background-color: rgba(var(--secondary-color-rgb), 0.25);
  margin-bottom: 0;
}
.content-title::after {
  background-color: var(--primary-bg-color);
}

.content-title-label span.title-noetes {
  padding-right: 0.5em;
  /* color: var(--color-brown); */
}



/*------------------------------------------------
  list
------------------------------------------------*/


.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 auto var(--layout-gap);
}
.cat-list li {
  width: calc(50% - 2.5px);
  height: 100%;
}
.cat-list li a {
  color: var(--color-brown);
  padding: 1.25em 0.25em;
  background-color: var(--primary-bg-color);
  border: 1px solid var(--primary-bg-color);
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  transition: background-color 0.3s ease-in-out;
}
.cat-list li a:hover {
  background-color: rgba(var(--secondary-color-rgb),0.45);
  transition: background-color 0.3s ease-in-out;
  opacity: 1;
}

@media print, screen and (min-width: 667px) {
  .cat-list li {
    width: calc(100% / 3 - 7.5px);
  }
}

@media print, screen and (min-width:840px) {
  .cat-list li {
    width: auto;
  }
  .cat-list li a {
    padding: 1em 0.75em;
  }
}
@media print, screen and (min-width:1200px) {
  .cat-list li a {
    padding: 1.25em 2em;
  }
}


/*------------------------------------------------
  list
------------------------------------------------*/

/* .news .section-container {
  display: flex;
  flex-direction: column;
  max-width: 1260px;
  position: relative;
} */

.news-list {
  width: 100%;
  /* margin-top: calc(var(--layout-gap) *1.25); */
  margin-bottom:calc(var(--layout-gap) *1.25);
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* padding-bottom: calc(var(--layout-gap) / 2); */
  border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.2);
  padding: calc(var(--layout-gap) / 2) 0;
  width: 100%;
}

.news-item:has(> a) {
  padding: 0;
}

/* .news-item + .news-item {
  padding-top: calc(var(--layout-gap) / 2);
} */


.news-item > a {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: calc(var(--layout-gap) / 2) 0;
  position: relative;
  width: 100%;
  opacity: 1;
}

.news-item > a::after {
  content: "";
  width: 6px;
  height: 10px;
  transform: translateY(-50%);
  position: absolute;
  transition: .3s;
  z-index: 0;
  right: 8px;
  top: 50%;
  background-image: url(../../image/common/icon_news_arrow.svg);
  background-size: contain;
  opacity: 0.4;
}

.news-item-title {
  display: block;
  /* font-weight: 400; */
  font-weight: 500;
  margin-bottom: calc(var(--layout-gap) / 2);
  padding-right:  calc(var(--layout-gap) / 1.5);
  width: 100%;
  transition: .3s;
}

.news-item-date {
  /* color: rgba(var(--primary-color-rgb), 0.65); */
  color: rgba(var(--primary-color-rgb), 0.5);
  letter-spacing: 0.05em;
  margin-right: calc(var(--layout-gap) / 2);
  padding-right: calc(var(--layout-gap) / 2);
  text-transform: uppercase;
  font-size: 1.2rem;
  /* font-weight: 900; */
  font-weight: 700;
  line-height: 1;
  border-right: 4px double rgba(var(--primary-color-rgb), 0.5);
  transition: .3s;
}

.news-item-category {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: calc(var(--layout-gap) / 2);
  /* color: var(--primary-color); */
  color: rgba(var(--primary-color-rgb), 0.5);
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  transition: .3s;
}

.news-item > a:hover:after {
  right: 0;
  opacity: 1;
}

.news-item > a:hover .news-item-title,
.news-item > a:hover .news-item-date,
.news-item > a:hover .news-item-category  {
  color: var(--secondary-color);
}

@media print, screen and (min-width: 667px) {
  .news-item-category {
    margin-right: var(--layout-gap);
  }
}

@media print, screen and (min-width: 960px) {
  .news .section-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: calc(var(--layout-gap) *2.2);
  }
  .news .section-title {
    width: 30% !important;
    margin-top: calc(var(--layout-gap) / 1.25);
  }
  .news .news-list {
    width: 60%;
    /* margin-top: 0; */
    margin-bottom: 0;
  }
  .news-item {
    padding: calc(var(--layout-gap) / 1.25) 0;
  }
  .news-item > a {
    /* padding-bottom: calc(var(--layout-gap) / 1.25); */
    padding: calc(var(--layout-gap) / 1.25) 0;
  }
  /* .news-item {
    padding-bottom: calc(var(--layout-gap) / 1.25);
  }
  .news-item + .news-item {
    padding-top: calc(var(--layout-gap) / 1.25);
  } */
  .news-item-title {
    padding-right:  calc(var(--layout-gap) * 1.25);
  }
  .news-item > a::after {
    right: 20px;
    width: 8px;
    height: 16px;
  }
  .news-item > a:hover:after {
    right: 10px;
  }
}


.news-item-upfile {
  display: flex;
  margin-top: calc(var(--layout-gap) / 2);
}

.news-item-upfile > img {
  width: auto;
  max-width: 100%;
}

.news-item-upfile > a {
  display: flex;
  align-items: center;
  padding: calc(var(--layout-gap) / 8) calc(var(--layout-gap) / 2);
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: bold;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background-color: var(--color-white);
  transition: all 0.3s linear;
}

.news-item-upfile > a::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin-left: calc(var(--layout-gap) / 2);
  background-image: url(../../image/common/icon_dl.svg);
  background-position: center;
  background-size: contain;
  transition: all 0.3s linear;
}

.news-item-upfile > a:hover {
  color: var(--color-white);
  background-color: var(--primary-color);
  opacity: 1;
  transition: all 0.3s linear;
}

.news-item-upfile > a:hover::after {
  background-image: url(../../image/common/icon_dl_w.svg);
  transition: all 0.3s linear;
}


@media print, screen and (min-width: 769px) {
  .news-item-upfile {
    margin-top: var(--layout-gap);
  }
}


/*========== Pager style ==========*/

.pager {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: flex-start; */
  justify-content: center;
  /* padding:10px 0; */
}

.pager a {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  font-size: 1.4rem;
  text-decoration: none;
  margin:0 1px;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pager a.current {
  background: var(--secondary-color);
  color:var(--color-white);
  font-size: 1.4rem;
  margin:0 1px;
  text-decoration: none;
}

.pager a:hover {
  background: var(--secondary-color);
  color: var(--color-white);
  opacity: 1;
}

.overPagerPattern {
  padding:0 2px ;
}

@media print, screen and (min-width: 960px) {
  .pager {
    padding: 0;
  }
}

@media print, screen and (min-width: 1200px) {
  .pager a {
    width: 40px;
    height: 40px;
  }
}


/*------------------------------------------------
  Detail
------------------------------------------------*/
/*
.detail-title {
  padding: 5px 0 5px 20px;
  margin-bottom: calc(var(--layout-gap) / 3);
  font-size: 1.8rem;
  line-height: 1.5;
  font-weight: bold;
  position: relative;
}
.detail-title::before {
  content: "";
  display: block;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color) 50%,var(--secondary-color)50%, var(--secondary-color)100%);
  position: absolute;
  left: 0;
  top: 0;
} */

.detail-body-text {
  margin-top: calc(var(--layout-gap) / 2);
  line-height: 2;
}

.detail-body-upfile {
  display: flex;
  margin-top: calc(var(--layout-gap) / 2);
}

.detail-body-upfile > img {
  /* width: auto; */
  max-width: 100%;
}

.detail-body-upfile > a {
  display: flex;
  align-items: center;
  padding: calc(var(--layout-gap) / 3) calc(var(--layout-gap) / 1);
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: bold;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background-color: #fff;
  transition: all 0.3s linear;
}

.detail-body-upfile > a::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin-left: calc(var(--layout-gap) / 2);
  background-image: url(../../image/common/icon_download.svg);
  background-position: center;
  background-size: contain;
  transition: all 0.3s linear;
}

.detail-body-upfile > a:hover {
  color: #fff;
  background-color: var(--primary-color);
  opacity: 1;
  transition: all 0.3s linear;
}

.detail-body-upfile > a:hover::after {
  background-image: url(../../image/common/icon_download_white.svg);
  transition: all 0.3s linear;
}

.detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(var(--layout-gap) / 2);
  padding-top: calc(var(--layout-gap) / 2);
  text-transform: uppercase;
  border-top: 1px solid var(--secondary-color);
}

.detail-foot-link {
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
}

.detail-head-date {
  color: var(--secondary-color);
}

@media print, screen and (min-width: 769px) {
  /* .detail-title {
    font-size: 2rem;
    padding: 20px 10px 20px 60px;
    margin-bottom: calc(var(--layout-gap) / 2);
  } */

  .detail-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .detail-body-upfile:has(a) {
    width: 100%;
  }
  .detail-body-upfile:has(img) {
    width: 48%;
    margin-right: 2%;
  }
  .detail-body-text {
    width: 96%;
  }
  .detail-body-text:empty {
    display: none;
  }
  .detail-body-text,
  .detail-body-upfile,
  .detail-foot {
    margin-top: var(--layout-gap);
  }
}
