﻿/* article_list page */
/* shared article list page */
.news-page-hero {
  background: #ececec;
}

.news-page-hero-wrap {
  min-height: 184px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-page-hero h1 {
  margin: 0;
  font-size: 66px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.news-page-hero p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.4;
  color: #404040;
  font-weight: 500;
}

.news-page-deco {
  width: 280px;
  height: 120px;
  position: relative;
}

.news-page-deco::before,
.news-page-deco::after {
  content: '';
  position: absolute;
}

.news-page-deco::before {
  inset: 0;
  background: linear-gradient(130deg, transparent 30%, #d2d2d2 31%, transparent 32%, transparent 40%, #d8d8d8 41%, transparent 42%, transparent 50%, #dcdcdc 51%, transparent 52%, transparent 59%, #e0e0e0 60%, transparent 61%);
  opacity: .7;
}

.news-page-deco::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6f8227;
  left: 54px;
  top: 50px;
  box-shadow: 60px 0 0 #111;
}

.news-list-page {
  background: #f4f4f4;
  padding: 34px 0 42px;
}

.news-list-layout {
  display: grid;
  grid-template-columns: 246px 1fr;
  gap: 28px;
  align-items: start;
}

.news-filter-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ededed;
  overflow: hidden;
}

.news-filter-card h2 {
  margin: 0;
  padding: 28px 24px 18px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.news-filter-toggle {
  display: none;
}

.news-filter-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-filter-card li {
  border-top: 1px solid #ebebeb;
}

.news-filter-card li:first-child {
  border-top: none;
}

.news-filter-card li a {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 0 16px;
  font-size: 17px;
  color: #2f2f2f;
  font-weight: 500;
}

.news-filter-card li a .filter-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-filter-card li a i {
  color: #555;
  font-size: 22px;
}

.news-filter-card li a > span:not(.filter-name) {
  min-width: 42px;
  height: 30px;
  border-radius: 999px;
  background: #ececec;
  color: #666;
  font-size: 14px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

.news-filter-card li.active a {
  border-left: 4px solid #6f8227;
  background: #e4e4db;
  padding-left: 12px;
}

.news-filter-card li.active a > span:not(.filter-name) {
  background: #6f8227;
  color: #fff;
}

.news-subscribe-card {
  margin: 18px 16px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #efefef;
  padding: 18px 14px 16px;
}

.news-subscribe-card > i {
  font-size: 30px;
  color: #6f8227;
}

.news-subscribe-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.news-subscribe-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.news-subscribe-card .btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 10px;
}

.news-subscribe-card .btn i {
  font-size: 18px;
}

.news-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.news-list-toolbar p {
  margin: 0;
  font-size: 16px;
  color: #3a3a3a;
  font-weight: 500;
}

.news-list-toolbar p span {
  color: #6f8227;
  font-weight: 800;
}

.news-list-notice {
  margin: -8px 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d6dce3;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.news-list-notice.is-error {
  border-color: #f5c2c7;
  background: #fff5f5;
  color: #b42318;
}

.news-search-box {
  min-width: 256px;
  height: 46px;
  border: 1px solid #d9d9d9;
  background: #f4f4f4;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #666;
}

.news-search-box {
  margin: 0;
}

.news-search-box i {
  font-size: 18px;
  color: #7b7b7b;
}

.news-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  line-height: 1;
  color: #222;
}

.news-search-box input::placeholder {
  color: #8c8c8c;
}

.news-search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.news-list-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-list-card {
  border: 1px solid #dcdcdc;
  border-radius: 14px;
  padding: 14px 14px 16px;
  background: #f4f4f4;
  min-height: 456px;
  display: flex;
  flex-direction: column;
}

.news-list-card .news-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e8e8;
  line-height: 0;
  font-size: 0;
}

.news-list-card .news-thumb::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.news-list-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-list-card .photo-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.news-list-card .photo-tag.tag-orange {
  background: #eca135;
}

.news-list-card .photo-tag.tag-green {
  background: #6f8227;
}

.news-list-card .photo-tag.tag-gray {
  background: #8e8e8e;
}

.news-list-card .date {
  margin: 12px 0 8px;
  padding: 0;
  background: transparent;
  color: #666;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.news-list-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.32;
  min-height: 0;
  font-weight: 700;
}

.news-list-card h3 a {
  color: inherit;
}

.news-list-card .summary {
  margin: 4px 0 0;
  color: #636363;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.news-list-card .read-more {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6f8227;
  font-size: 15px;
  font-weight: 700;
}

.news-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.news-load-more {
  min-width: 220px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  background: #f4f4f4;
  font-size: 16px;
  font-weight: 500;
  color: #2f2f2f;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.news-list-empty {
  min-height: 220px;
  border: 1px dashed #d6d6d6;
  border-radius: 16px;
  background: #f8f8f8;
  color: #666;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
}

.news-list-empty[hidden] {
  display: none !important;
}

.news-load-more-wrap[hidden] {
  display: none !important;
}

@media (max-width: 1200px) {
  .news-page-hero h1 {
    font-size: 56px;
  }

  .news-page-hero p {
    font-size: 15px;
  }

  .news-list-layout {
    grid-template-columns: 220px 1fr;
    gap: 22px;
  }

  .news-filter-card li a {
    font-size: 16px;
  }

  .news-list-card h3 {
    font-size: 17px;
  }
}

@media (max-width: 1024px) {
  .news-page-hero-wrap {
    min-height: 138px;
  }

  .news-page-hero h1 {
    font-size: 46px;
  }

  .news-page-deco {
    display: none;
  }

  .news-list-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-filter-card {
    max-width: none;
  }

  .news-list-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-list-card {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .news-page-hero-wrap {
    min-height: 112px;
  }

  .news-page-hero h1 {
    font-size: 34px;
  }

  .news-page-hero p {
    margin-top: 8px;
    font-size: 16px;
  }

  .news-list-page {
    padding: 20px 0 24px;
  }

  .news-list-layout {
    gap: 14px;
  }

  .news-filter-card {
    border-radius: 10px;
  }

  .news-filter-card h2 {
    padding: 18px 16px 8px;
    font-size: 18px;
  }

  .news-filter-toggle {
    width: calc(100% - 32px);
    min-height: 44px;
    margin: 0 16px 14px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #f7f7f7;
    color: #2f2f2f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }

  .news-filter-toggle-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .news-filter-toggle i {
    flex: 0 0 auto;
    font-size: 18px;
    transition: transform .18s ease;
  }

  .news-filter-card.is-collapsible:not(.is-open) ul,
  .news-filter-card.is-collapsible:not(.is-open) .news-subscribe-card {
    display: none;
  }

  .news-filter-card.is-open .news-filter-toggle i {
    transform: rotate(180deg);
  }

  .news-filter-card li a {
    min-height: 54px;
    padding: 0 14px;
    font-size: 15px;
  }

  .news-filter-card li.active a {
    padding-left: 10px;
  }

  .news-subscribe-card {
    margin: 14px;
  }

  .news-list-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .news-search-box {
    width: 100%;
    min-width: 0;
  }

  .news-list-cards {
    grid-template-columns: 1fr;
  }

  .news-list-card {
    padding: 12px;
  }

  .news-load-more {
    width: 100%;
    min-width: 0;
  }
}


