﻿/* article_content page */
/* shared article content page */
.news-content-breadcrumb p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-content-page {
  background: #f4f4f4;
  padding: 20px 0 30px;
}

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

.news-article {
  min-width: 0;
  max-width: 100%;
}

.news-content-tag {
  margin: 0;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 6px;
  background: #eca135;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.news-article h1 {
  margin: 16px 0 12px;
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-content-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #525252;
  font-size: 15px;
  font-weight: 500;
}

.news-content-meta i {
  margin-right: 6px;
  font-size: 16px;
  color: #656565;
}

.news-content-cover {
  margin-top: 16px;
}

.news-content-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.news-content-body {
  margin-top: 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.news-content-body p {
  margin: 0 0 16px 40px;
  color: #434343;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

.news-content-body h2 {
  margin: 14px 0 8px;
  color: #4c6219;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.news-content-body blockquote {
  margin: 20px 0;
  padding: 20px 24px;
  border-radius: 10px;
  background: #e9e9e6;
  color: #4f6022;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
  position: relative;
}

.news-content-body blockquote::before {
  content: '“';
  font-size: 66px;
  line-height: 1;
  position: absolute;
  left: -20px;
  top: 10px;
  color: #6f8227;
}

.news-content-body blockquote br {
  margin-top: 8px;
}

.news-content-body h3 {
  margin: 18px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #4c6219;
  font-weight: 700;
}

.news-content-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8d8d8;
}

.news-content-gallery img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}

.news-content-bottom-share {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.news-content-bottom-share p {
  margin: 0;
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

.share-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
}

.share-icons a:nth-child(1) { background: #3b5998; }
.share-icons a:nth-child(2) { background: #12b24a; }
.share-icons a:nth-child(3) {
  background: #f1f1f1;
  color: #555;
  border: 1px solid #d4d4d4;
}

.news-back-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #b9b9b9;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #3c3c3c;
}

.news-related {
  margin-top: 18px;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  background: #f1f1f1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.news-related-card {
  border-radius: 8px;
  background: #f4f4f4;
  padding: 8px;
}

.news-related-card .thumb {
  display: block;
  margin-bottom: 8px;
}

.news-related-card img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.news-lightbox[hidden] {
  display: none;
}

.news-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.82);
  cursor: zoom-out;
}

.news-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1180px);
  height: min(90vh, 900px);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.news-lightbox-stage {
  width: 100%;
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.news-lightbox-image {
  grid-column: 2;
  display: block;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: #111;
}

.news-lightbox-caption {
  width: 100%;
  flex: 0 0 auto;
  color: #f0f0f0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

.news-lightbox-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
}

.news-lightbox-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  align-self: center;
  z-index: 2;
}

.news-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-lightbox-prev {
  grid-column: 1;
}

.news-lightbox-next {
  grid-column: 3;
}

.news-lightbox-strip {
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 72px));
  justify-content: center;
  gap: 10px;
  padding-top: 6px;
  max-height: 96px;
  overflow: auto;
}

.news-lightbox-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
}

.news-lightbox-thumb.is-active {
  border-color: #6f8227;
}

.news-lightbox-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

body.news-lightbox-open {
  overflow: hidden;
}

.news-lightbox-trigger {
  cursor: zoom-in;
}

@media (max-width: 1200px) {
  .news-content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
  }

  .news-article h1 {
    font-size: 36px;
  }

  .news-content-body p,
  .news-side-info dt,
  .news-side-info dd,
  .news-side-cta p,
  .news-side-all,
  .news-back-btn,
  .news-content-bottom-share p {
    font-size: 15px;
  }

  .news-content-body h2,
  .news-content-body h3,
  .news-content-body blockquote,
  .news-content-side h3 {
    font-size: 20px;
  }
}

@media (max-width: 1024px) {
  .news-content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-content-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .news-content-side section + section {
    margin-top: 0;
  }

  .news-side-cta {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .news-content-page {
    padding: 12px 0 20px;
  }

  .news-content-layout {
    gap: 16px;
  }

  .news-article h1 {
    margin: 12px 0 10px;
    font-size: 32px;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .news-content-meta {
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 13px;
  }

  .news-content-meta i {
    font-size: 14px;
  }

  .news-content-cover {
    margin-top: 10px;
  }

  .news-content-cover img {
    border-radius: 10px;
  }

  .news-content-body p {
    margin-left: 0;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
  }

  .news-content-body h2 {
    margin-top: 10px;
    font-size: 24px;
  }

  .news-content-body h3 {
    font-size: 20px;
  }

  .news-content-body blockquote {
    margin: 16px 0;
    padding: 14px 14px 14px 24px;
    font-size: 20px;
  }

  .news-content-body blockquote::before {
    left: 8px;
    top: 0;
    font-size: 38px;
  }

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

  .news-content-bottom-share {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .news-content-bottom-share p,
  .news-back-btn,
  .news-side-info dt,
  .news-side-info dd,
  .news-side-latest h4,
  .news-side-cta p,
  .news-side-all {
    font-size: 14px;
  }

  .news-back-btn {
    padding: 8px 14px;
  }

  .news-content-side {
    grid-template-columns: 1fr;
  }

  .news-content-side section {
    padding: 18px 16px;
  }

  .news-side-info dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .news-side-info dd span,
  .news-related-card .tag,
  .news-content-tag {
    font-size: 12px;
  }

  .news-side-latest .news-side-latest-link {
    grid-template-columns: 82px 1fr;
  }

  .news-side-latest .date,
  .news-related-card .date {
    font-size: 12px;
  }

  .news-side-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .news-lightbox-dialog {
    width: min(94vw, 1180px);
    height: min(90vh, 820px);
    overflow: hidden;
    gap: 10px;
  }

  .news-lightbox-stage {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    overflow: hidden;
  }

  .news-lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .news-lightbox-image {
    max-height: 100%;
  }

  .news-lightbox-strip {
    grid-template-columns: repeat(auto-fit, minmax(60px, 60px));
    max-height: 84px;
  }

  .news-lightbox-thumb img {
    width: 60px;
    height: 60px;
  }
}

.news-related-card .tag {
  margin: -4px 0 6px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #6f8227;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.news-related-card .tag-orange { background: #eca135; }
.news-related-card .tag-gray { background: #8f8f8f; }

.news-related-card .date {
  margin: 0 0 4px;
  padding: 0;
  background: transparent;
  font-size: 13px;
  color: #555;
}

.news-related-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.news-content-side section {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ececec;
  padding: 20px 18px;
}

.news-content-side section + section {
  margin-top: 14px;
}

.news-content-side h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.news-side-info dl {
  margin: 14px 0 0;
}

.news-side-info dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #d9d9d9;
  padding: 14px 0;
  align-items: center;
}

.news-side-info dt,
.news-side-info dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #383838;
  font-weight: 500;
}

.news-side-info dd span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eca135;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.news-side-latest .news-side-latest-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #dbdbdb;
  color: inherit;
  text-decoration: none;
}

.news-side-latest .news-side-latest-link:first-of-type {
  margin-top: 8px;
}

.news-side-latest img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.news-side-latest .date {
  margin: 0 0 4px;
  padding: 0;
  background: transparent;
  color: #666;
  font-size: 12px;
  line-height: 1.2;
}

.news-side-latest h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}


.news-side-all {
  margin-top: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #6f8227;
  font-size: 15px;
  font-weight: 700;
}

.news-side-cta p {
  margin: 10px 0 16px;
  color: #525252;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.news-side-cta .btn {
  padding: 13px 22px;
  font-size: 16px;
  border-radius: 11px;
}

.news-side-cta .btn i {
  font-size: 18px;
}

.news-side-cta img {
  width: 100%;
  margin-top: 18px;
  display: block;
}

@media (max-width: 1024px) {
  .news-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-content-layout > * {
    min-width: 0;
  }

  .news-content-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .news-content-side section + section {
    margin-top: 0;
  }

  .news-side-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .news-content-page {
    overflow-x: hidden;
  }

  .news-article,
  .news-content-body,
  .news-content-body > *,
  .news-content-body iframe,
  .news-content-body img,
  .news-content-body table,
  .news-content-body video {
    max-width: 100%;
  }

  .news-article {
    width: min(100%, calc(100vw - 28px));
    overflow-x: hidden;
  }

  .news-article h1 {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    display: block;
    font-size: clamp(19px, 5vw, 24px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
    line-break: anywhere !important;
  }

  .news-content-body h2,
  .news-content-body h3 {
    max-width: calc(100vw - 28px);
    font-size: clamp(18px, 4.8vw, 22px) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
    line-break: anywhere !important;
  }

  .news-content-body p {
    max-width: calc(100vw - 28px);
    margin-left: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .news-content-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
  }

  .news-content-body table {
    display: block;
    overflow-x: auto;
  }

  .news-content-side {
    grid-template-columns: 1fr;
  }

  .news-side-latest .news-side-latest-link {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .news-side-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
