.news-template {
  --news-primary: var(--color-primary, #b61f24);
  --news-accent: var(--color-ye, #a77b31);
  --news-text: #2f3136;
  --news-muted: #747b86;
  --news-border: #d9d9d9;
  --news-soft-border: #ececec;
  --news-surface: #fff;
  --news-surface-muted: #f7f7f7;
  --news-radius: 10px;
  --news-radius-lg: 14px;
  --news-shadow: 0 8px 24px rgba(30, 30, 30, 0.08);
  --news-shadow-hover: 0 14px 34px rgba(30, 30, 30, 0.13);
  --news-sidebar-width: 320px;
  color: var(--news-text);
}

.news-template a {
  color: inherit;
}

.news-template img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-template .scale-img,
.news-template [class*="-photo"] {
  overflow: hidden;
}

.news-template .pagination {
  margin-top: 30px;
}

.news-template-title {
  margin-bottom: 28px;
  color: var(--news-text);
  text-transform: uppercase;
}

.news-template-title h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.news-template-title-3 {
  margin-bottom: 34px;
  text-align: center;
}

.news-template-title-3 h1 {
  font-size: 30px;
}

.news-template-title-4 h1 {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background: var(--news-accent);
  color: #fff;
  font-size: 24px;
}

.news-template-title-4 h1::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% - 4px);
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 13px solid var(--news-accent);
  transform: translateY(-50%);
}

.news-template-list1,
.news-template-list2,
.news-template-list5,
.news-template-detail1,
.news-template-detail2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.news-template-list1-main,
.news-template-list2-main,
.news-template-list5-main,
.news-template-detail1-main,
.news-template-detail2-main {
  flex: 1 1 calc(100% - var(--news-sidebar-width) - 36px);
  min-width: 0;
}

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

.news-template-list1-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--news-soft-border);
  border-radius: var(--news-radius);
  background: var(--news-surface);
  box-shadow: 0 5px 18px rgba(30, 30, 30, 0.055);
  color: var(--news-text);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.news-template-list1-card:hover {
  border-color: rgba(167, 123, 49, 0.45);
  box-shadow: var(--news-shadow);
  transform: translateY(-2px);
}

.news-template-list1-photo {
  display: block;
  aspect-ratio: 830 / 440;
  background: #f6f6f6;
}

.news-template-list1-info {
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}

.news-template-list1-time,
.news-template-list2-time,
.news-template-list4-time {
  margin-bottom: 8px;
  color: var(--news-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-template-list1-name,
.news-template-list2-name,
.news-template-list4-name {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.news-template-list1-name a:hover,
.news-template-list2-name a:hover,
.news-template-list4-name a:hover,
.news-template-list5-name a:hover,
.news-template-list3-link:hover .news-template-list3-name {
  color: var(--news-accent);
}

.news-template-list1-desc,
.news-template-list2-desc,
.news-template-list4-desc,
.news-template-list5-desc,
.news-template-list3-desc {
  margin: 0;
  color: var(--news-muted);
  font-size: 14px;
  line-height: 1.6;
}

.news-template-list2 {
  gap: 38px;
}

.news-template-list2-stack {
  display: grid;
  gap: 22px;
}

.news-template-list2-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--news-soft-border);
  color: var(--news-text);
}

.news-template-list2-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.news-template-list2-photo {
  flex: 0 0 260px;
  aspect-ratio: 570 / 320;
  border-radius: var(--news-radius);
  background: #f6f6f6;
}

.news-template-list2-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-template-list2-desc {
  font-size: 15px;
  line-height: 1.5;
}

.news-template-list3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 22px;
}

.news-template-list3-link {
  display: block;
  color: var(--news-text);
}

.news-template-list3-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--news-soft-border);
  border-radius: var(--news-radius-lg);
  background: var(--news-surface);
  box-shadow: 0 5px 18px rgba(30, 30, 30, 0.055);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.news-template-list3-link:hover .news-template-list3-card {
  box-shadow: var(--news-shadow-hover);
  transform: translateY(-2px);
}

.news-template-list3-date {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  width: 68px;
  padding: 10px 5px;
  border-radius: 10px;
  background: var(--news-accent);
  color: #fff;
  text-align: center;
  transition: background 0.25s ease;
}

.news-template-list3-link:hover .news-template-list3-date {
  background: #000;
}

.news-template-list3-date b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.news-template-list3-date span {
  display: block;
  font-size: 12px;
}

.news-template-list3-photo {
  aspect-ratio: 660 / 440;
  background: #f6f6f6;
}

.news-template-list3-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.news-template-list3-name {
  margin: 0 0 10px;
  color: #1e1e1e;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.news-template-list3-desc {
  margin-bottom: 16px;
  text-align: justify;
}

.news-template-list3-view {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--news-accent);
  font-weight: 800;
  font-style: italic;
}

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

.news-template-list4-card {
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-height: 148px;
  padding: 12px;
  border: 1px solid var(--news-soft-border);
  border-radius: var(--news-radius);
  background: var(--news-surface);
  box-shadow: 0 4px 16px rgba(30, 30, 30, 0.045);
  color: var(--news-text);
}

.news-template-list4-photo {
  flex: 0 0 205px;
  aspect-ratio: 440 / 300;
  border-radius: calc(var(--news-radius) - 2px);
  background: #f6f6f6;
}

.news-template-list4-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.news-template-list5 {
  gap: 36px;
}

.news-template-list5-stack {
  display: grid;
  gap: 28px;
}

.news-template-list5-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 246px;
  border: 1px solid var(--news-soft-border);
  border-radius: var(--news-radius-lg);
  background: var(--news-surface);
  box-shadow: var(--news-shadow);
  color: var(--news-text);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.news-template-list5-card:hover {
  box-shadow: var(--news-shadow-hover);
  transform: translateY(-2px);
}

.news-template-list5-photo {
  flex: 0 0 45%;
  aspect-ratio: 890 / 610;
  background: #f6f6f6;
}

.news-template-list5-info {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  min-width: 0;
  padding: 22px 26px;
}

.news-template-list5-view {
  width: 100%;
  min-height: 22px;
  margin-bottom: 5px;
  color: #94979e;
  font-size: 14px;
  text-align: right;
}

.news-template-list5-view i {
  font-size: 12px;
}

.news-template-list5-name {
  width: 100%;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.news-template-list5-desc {
  width: 100%;
  margin-bottom: 16px;
}

.news-template-list5-click {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #555;
  font-weight: 600;
}

.news-template-list5-read {
  position: relative;
  width: 50px;
  height: 50px;
  color: var(--news-text);
  font-size: 20px;
  line-height: 50px;
  text-align: center;
}

.news-template-list5-read::before {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 0;
  height: 5px;
  border-radius: 10px;
  background: var(--news-accent);
  transition: width 0.25s ease;
}

.news-template-list5-read:hover {
  color: var(--news-accent);
}

.news-template-list5-read:hover::before {
  width: 100%;
}

.news-template-sidebar {
  flex: 0 0 var(--news-sidebar-width);
  position: sticky;
  top: 14px;
}

.news-template-sidebar-news2,
.news-template-sidebar-news5 {
  flex-basis: 310px;
}

.news-template-side-block {
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg);
  background: var(--news-surface);
  box-shadow: 0 6px 20px rgba(30, 30, 30, 0.045);
}

.news-template-sidebar-news2 .news-template-side-block,
.news-template-sidebar-news5 .news-template-side-block {
  overflow: visible;
  margin-bottom: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.news-template-side-block:last-child {
  margin-bottom: 0;
}

.news-template-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--news-border);
  border-radius: var(--news-radius-lg) var(--news-radius-lg) 0 0;
  color: var(--news-text);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-template-side-title::after {
  content: "\f107";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
  font-weight: 900;
}

.news-template-sidebar-news2 .news-template-side-title,
.news-template-sidebar-news5 .news-template-side-title {
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 0;
  border-radius: 0;
  color: var(--news-accent);
  font-size: 25px;
  line-height: 1.18;
  text-transform: capitalize;
}

.news-template-sidebar-news2 .news-template-side-title {
  margin-bottom: 20px;
}

.news-template-sidebar-news5 .news-template-side-title {
  color: var(--news-text);
  font-size: 24px;
}

.news-template-sidebar-news2 .news-template-side-title::after,
.news-template-sidebar-news5 .news-template-side-title::after {
  content: none;
}

.news-template-side-list,
.news-template-category,
.news-template-tags {
  padding: 16px;
}

.news-template-sidebar-news2 .news-template-side-list,
.news-template-sidebar-news5 .news-template-side-list,
.news-template-sidebar-news5 .news-template-category,
.news-template-sidebar-news5 .news-template-tags {
  padding: 0;
}

.news-template-side-list-track {
  display: block;
}

.news-template-side-list-auto {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.news-template-side-list-auto .news-template-side-list-track {
  transform: translateY(0);
}

.news-template-side-list-auto.is-shifting .news-template-side-list-track {
  transform: translateY(calc(-1 * var(--news-latest-shift, 0px)));
  transition: transform 0.38s ease;
}

.news-template-small {
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px dashed #cbcbcb;
}

.news-template-small:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.news-template-small a {
  color: var(--news-text);
}

.news-template-small {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-template-small-photo {
  position: relative;
  flex: 0 0 92px;
  aspect-ratio: 170 / 100;
  border-radius: 8px;
  margin: 0;
}

.news-template-small-news1,
.news-template-small-detail1,
.news-template-small-detail2 {
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.news-template-small-news1 .news-template-small-photo,
.news-template-small-detail1 .news-template-small-photo,
.news-template-small-detail2 .news-template-small-photo {
  flex-basis: 116px;
  aspect-ratio: 180 / 104;
}

.news-template-small-news2 .news-template-small-photo,
.news-template-small-news5 .news-template-small-photo {
  flex-basis: 104px;
  aspect-ratio: 210 / 140;
}

.news-template-small-news2 {
  gap: 14px;
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom-style: solid;
}

.news-template-small-news2:last-child {
  padding-bottom: 12px;
  border-bottom: 1px solid #cbcbcb;
}

.news-template-small-news5 .news-template-small-photo {
  flex-basis: 102px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.news-template-small-info {
  flex: 1 1 auto;
  min-width: 0;
}

.news-template-small-info h3 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.news-template-small-news1 .news-template-small-info h3,
.news-template-small-detail1 .news-template-small-info h3,
.news-template-small-detail2 .news-template-small-info h3 {
  font-size: 15px;
}

.news-template-small-info h3 a:hover {
  color: var(--news-accent);
}

.news-template-small-info p {
  margin: 0;
  color: var(--news-accent);
  font-size: 11px;
  line-height: 1.3;
  text-transform: capitalize;
}

.news-template-small-news1 .news-template-small-info p,
.news-template-small-detail1 .news-template-small-info p,
.news-template-small-detail2 .news-template-small-info p {
  font-size: 11px;
}

.news-template-small-news2 .news-template-small-info h3 {
  font-size: 14px;
  font-weight: 800;
}

.news-template-small-news2 .news-template-small-info p {
  display: none;
}

.news-template-news2-feature-image {
  margin-top: 26px;
}

.news-template-news2-feature-photo {
  display: block;
  aspect-ratio: 660 / 380;
  border-radius: 0;
  background: #f5f5f5;
}

.news-template-small-news5 .news-template-small-info h3 {
  font-size: 15px;
  font-weight: 800;
}

.news-template-small-news5 .news-template-small-info p {
  color: #94979e;
  font-size: 12px;
}

.news-template-small-view {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  padding: 6px 7px;
  border-radius: 7px;
  background: #fff;
  color: #333;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.news-template-category,
.news-template-tags {
  margin: 0;
  list-style: none;
}

.news-template-category li {
  border-bottom: 1px dashed #cbcbcb;
}

.news-template-category a {
  position: relative;
  display: block;
  padding: 11px 0;
  color: #999;
  font-size: 15px;
  font-weight: 600;
}

.news-template-category a.active,
.news-template-category a:hover {
  color: var(--news-text);
  font-weight: 800;
}

.news-template-sidebar-news5 .news-template-category li {
  display: inline-block;
  margin: 0 6px 8px 0;
  border-bottom: 0;
}

.news-template-sidebar-news5 .news-template-category a,
.news-template-tags a {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--news-border);
  border-radius: 7px;
  background: #fff;
  color: var(--news-accent);
  font-weight: 800;
  text-transform: capitalize;
}

.news-template-sidebar-news5 .news-template-category a:hover,
.news-template-tags a:hover {
  border-color: var(--news-accent);
  background: var(--news-accent);
  color: #fff;
}

.news-template-tags li {
  display: inline-block;
  margin: 0 5px 5px 0;
}

.news-template-search-block {
  padding: 0;
}

.news-template-search-block form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--news-accent);
  border-radius: 999px;
  background: #fff;
}

.news-template-search-block input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  outline: 0;
}

.news-template-search-block button {
  flex: 0 0 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--news-accent);
}

.news-template-detail1,
.news-template-detail2 {
  margin-bottom: 32px;
}

.news-template-detail1 .news-template-sidebar {
  flex-basis: 300px;
  order: 1;
}

.news-template-detail1-main {
  order: 2;
}

.news-template-detail2-main {
  order: 1;
}

.news-template-detail2 .news-template-sidebar {
  flex-basis: 300px;
  order: 2;
}

.news-template-detail3 {
  max-width: 1080px;
  margin: 0 auto 24px;
}

.news-template-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  color: #979797;
  font-size: 13px;
  line-height: 1.4;
}

.news-template-article-detail3 .news-template-detail-meta {
  justify-content: center;
  margin-bottom: 18px;
}

.news-template-detail-title {
  margin: 0 0 32px;
  color: var(--news-text);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.25;
}

.news-template-detail-title-center {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 18px;
  font-size: 26px;
  text-align: center;
  text-transform: uppercase;
}

.news-template-detail-title-center::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 50px);
  width: 100px;
  height: 2px;
  background: var(--news-accent);
}

.news-template-detail-title-center::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--news-accent);
}

.news-template-detail-desc {
  margin-bottom: 20px;
  height: auto;
  max-height: none;
  overflow: visible;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.news-detail-template .news-template-detail-desc {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: 16px;
  font-weight: 400 !important;
  line-height: 1.7;
}

.news-detail-template .news-template-detail-desc p,
.news-detail-template .news-template-detail-desc li {
  width: auto !important;
  max-width: none !important;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.news-detail-template .news-template-detail-desc h2 {
  width: auto !important;
  max-width: none !important;
  margin: 24px 0 12px;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.35;
}

.news-detail-template .news-template-detail-desc h3 {
  width: auto !important;
  max-width: none !important;
  margin: 20px 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.news-detail-template .news-template-detail-desc img,
.news-detail-template .news-template-detail-desc video,
.news-detail-template .news-template-detail-desc iframe,
.news-detail-template .news-template-detail-desc table {
  max-width: 100% !important;
}

.news-detail-template .news-template-detail-desc img,
.news-detail-template .news-template-detail-desc video,
.news-detail-template .news-template-detail-desc iframe {
  height: auto !important;
}

.news-detail-template .meta-toc {
  position: static !important;
  width: 100%;
  /* max-width: 820px; */
  margin: 0 auto 24px;
  z-index: auto;
}

.news-detail-template .meta-toc .mucluc-dropdown-list_button {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 15px 20px;
  border: 1px solid var(--news-border);
  border-radius: 12px 12px 0 0;
  background: var(--news-surface);
  color: var(--news-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.news-detail-template .meta-toc .mucluc-dropdown-list_button::before {
  content: none !important;
}

.news-detail-template .meta-toc .mucluc-dropdown-list_button i {
  color: var(--news-text);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.news-detail-template .meta-toc.is-collapsed .mucluc-dropdown-list_button {
  border-radius: 12px;
}

.news-detail-template .meta-toc.is-collapsed .mucluc-dropdown-list_button i {
  transform: rotate(-90deg);
}

.news-detail-template .box-readmore {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0;
  padding: 18px 22px 20px;
  border: 1px solid var(--news-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(250, 250, 250, 0.96);
  box-shadow: 0 8px 24px rgba(30, 30, 30, 0.05);
  font-size: 15px;
  overflow: visible;
}

.news-detail-template .meta-toc.is-collapsed .box-readmore {
  display: none !important;
}

.news-detail-template .toc-list,
.news-detail-template .toc-list ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.news-detail-template .toc-list {
  counter-reset: news-toc-1;
}

.news-detail-template .toc-list ul {
  margin-top: 8px !important;
  padding-left: 18px !important;
  counter-reset: news-toc-2;
}

.news-detail-template .toc-list ul ul {
  padding-left: 16px !important;
  counter-reset: news-toc-3;
}

.news-detail-template .toc-list li {
  display: block !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  line-height: 1.55;
  counter-increment: none;
}

.news-detail-template .toc-list li:last-child {
  margin-bottom: 0 !important;
}

.news-detail-template .toc-list li::before,
.news-detail-template .toc-list li ul > li::before {
  content: none !important;
  display: none !important;
}

.news-detail-template .toc-list > li {
  counter-increment: news-toc-1;
}

.news-detail-template .toc-list > li > ul > li {
  counter-increment: news-toc-2;
}

.news-detail-template .toc-list > li > ul > li > ul > li {
  counter-increment: news-toc-3;
}

.news-detail-template .toc-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--news-text) !important;
  font-size: 15px;
  font-weight: 500 !important;
  line-height: 1.55;
  text-decoration: none;
  cursor: pointer;
}

.news-detail-template .toc-list a::before {
  flex: 0 0 auto;
  color: var(--news-text);
  font-weight: 800;
}

.news-detail-template .toc-list > li > a::before {
  content: counter(news-toc-1, decimal-leading-zero) ".";
}

.news-detail-template .toc-list > li > ul > li > a::before {
  content: counter(news-toc-1, decimal-leading-zero) "." counter(news-toc-2);
}

.news-detail-template .toc-list > li > ul > li > ul > li > a::before {
  content: counter(news-toc-1, decimal-leading-zero) "." counter(news-toc-3);
}

.news-detail-template .toc-list a:hover {
  color: var(--news-primary) !important;
}

.news-template-article-detail3 {
  max-width: 1080px;
  margin: 0 auto;
}
/* 
.news-template-article-detail3 .news-template-detail-meta,
.news-template-article-detail3 .news-template-detail-title,
.news-template-article-detail3 .meta-toc,
.news-template-article-detail3 .content-main {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
} */

.news-template-article-detail3 .content-main {
  color: var(--news-text);
  font-size: 15px;
  line-height: 1.75;
}

.news-detail-template .news-detail-content {
  width: 100%;
  /* max-width: 950px; */
  /* margin-right: auto; */
  /* margin-left: auto; */
  color: var(--news-text);
  font-size: 16px;
  line-height: 1.75;
}

.news-detail-template .news-detail-content p,
.news-detail-template .news-detail-content li {
  width: auto !important;
  max-width: none !important;
  font-size: 16px;
  line-height: 1.75;
}

.news-detail-template .news-detail-content h2 {
  width: auto !important;
  max-width: none !important;
  margin: 28px 0 12px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.3;
}

.news-detail-template .news-detail-content h3 {
  width: auto !important;
  max-width: none !important;
  margin: 24px 0 10px;
  font-size: 21px;
  line-height: 1.4;
}

.news-detail-template .news-detail-content img,
.news-detail-template .news-detail-content video,
.news-detail-template .news-detail-content iframe,
.news-detail-template .news-detail-content table {
  max-width: 100% !important;
}

.news-detail-template .news-detail-content img,
.news-detail-template .news-detail-content video,
.news-detail-template .news-detail-content iframe {
  height: auto !important;
}

.news-detail-template .news-detail-content table {
  width: 100%;
  overflow-x: auto;
}

.news-template-article-detail3 .alert {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.news-template-album {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.news-template-album .scale-img {
  aspect-ratio: 710 / 440;
}

.news-template-share {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 32px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.news-template-article-detail3 .news-template-share {
  justify-content: center;
  max-width: 820px;
  margin: 26px auto 0;
}

.news-template-share b {
  margin: 0;
}

.news-template-related {
  width: 100%;
  margin-top: 34px;
}

.news-template-related-detail3 {
  max-width: 1080px;
  margin-top: 26px;
  margin-right: auto;
  margin-left: auto;
}

.news-template-related-title {
  margin-bottom: 18px;
  color: var(--news-text);
  font-size: 24px;
  font-weight: 800;
  text-transform: capitalize;
}

.news-template-related-detail3 .news-template-related-title {
  position: relative;
  padding-bottom: 10px;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
}

.news-template-related-detail3 .news-template-related-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 30px);
  width: 60px;
  height: 3px;
  background: var(--news-accent);
}

.news-template-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.news-template-related-card {
  height: 100%;
}

.news-template-related-photo {
  position: relative;
  display: block;
  aspect-ratio: 560 / 400;
  margin-bottom: 10px;
  border-radius: var(--news-radius);
  background: #f6f6f6;
}

.news-template-related-date {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #fff;
  color: #6d6d6d;
  font-size: 14px;
}

.news-template-related-date i {
  color: var(--news-accent);
}

.news-template-related-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.news-template-related-info h3 a {
  color: var(--news-text);
}

.news-template-related-info h3 a:hover {
  color: var(--news-accent);
}

.news-template-related-info p {
  margin: 0;
  color: #4e4e4e;
  font-size: 14px;
  text-align: justify;
}

@media (max-width: 991px) {
  .news-template-list1,
  .news-template-list2,
  .news-template-list5,
  .news-template-detail1,
  .news-template-detail2 {
    display: block;
  }

  .news-template-sidebar {
    position: static;
    width: 100%;
    max-width: 520px;
    margin-top: 28px;
  }

  .news-template-sidebar-news2,
  .news-template-sidebar-news5 {
    max-width: none;
  }

  .news-template-detail1 .news-template-sidebar {
    margin-top: 0;
    margin-bottom: 28px;
  }

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

  .news-template-related-detail3 {
    max-width: 760px;
  }

  .news-template-list4-card {
    align-items: flex-start;
  }

  .news-template-list4-photo {
    flex-basis: 190px;
  }

  .news-template-list5-card {
    min-height: 220px;
  }

  .news-template-list5-photo {
    flex-basis: 42%;
  }
}

@media (max-width: 767px) {
  .news-template-title,
  .news-template-title-3 {
    margin-bottom: 24px;
  }

  .news-template-title h1,
  .news-template-title-3 h1,
  .news-template-title-4 h1 {
    font-size: 22px;
  }

  .news-template-list1-grid,
  .news-template-list3-grid,
  .news-template-list4-grid,
  .news-template-related-grid {
    grid-template-columns: 1fr;
  }

  .news-template-list2-card,
  .news-template-list4-card,
  .news-template-list5-card {
    display: block;
    min-height: 0;
  }

  .news-template-list2-photo,
  .news-template-list4-photo,
  .news-template-list5-photo {
    display: block;
    width: 100%;
  }

  .news-template-list2-photo,
  .news-template-list4-photo {
    aspect-ratio: 16 / 9;
  }

  .news-template-list2-info,
  .news-template-list4-info,
  .news-template-list5-info {
    padding: 14px 0 0;
  }

  .news-template-list5-info {
    padding: 18px;
  }

  .news-template-list1-grid,
  .news-template-list2-stack,
  .news-template-list5-stack {
    gap: 18px;
  }

  .news-template-list1-name,
  .news-template-list2-name,
  .news-template-list3-name,
  .news-template-list4-name {
    font-size: 18px;
  }

  .news-template-list5-name {
    font-size: 20px;
  }

  .news-template-sidebar {
    max-width: none;
    margin-top: 24px;
  }

  .news-template-side-block {
    margin-bottom: 22px;
  }

  .news-template-small-news1 .news-template-small-photo,
  .news-template-small-detail1 .news-template-small-photo,
  .news-template-small-detail2 .news-template-small-photo {
    flex-basis: 108px;
  }

  .news-template-small-news5 .news-template-small-photo {
    flex-basis: 96px;
  }

  .news-template-list3-date {
    top: 12px;
    left: 12px;
    width: 64px;
    padding: 8px 4px;
  }

  .news-template-list3-date b {
    font-size: 28px;
  }

  .news-template-list3-date span {
    font-size: 12px;
  }

  .news-template-detail-title {
    font-size: 26px;
  }

  .news-template-detail-title-center {
    font-size: 22px;
  }

  .news-template-detail3,
  .news-template-article-detail3,
  .news-template-article-detail3 .content-main,
  .news-template-article-detail3 .alert {
    max-width: none;
  }

  .news-template-article-detail3 .news-template-detail-meta,
  .news-template-article-detail3 .news-template-share {
    justify-content: flex-start;
  }

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

@media (prefers-reduced-motion: reduce) {
  .news-template-side-list-auto.is-shifting .news-template-side-list-track {
    transform: translateY(0);
    transition: none;
  }
}

/* =========================================================
   TYPOGRAPHY - NEWS
   ========================================================= */

.news-template,
.news-detail-template {
  font-family: var(--font-body);
}

/* Main/section headings */
.news-template-title h1,
.news-template-side-title,
.news-template-detail-title,
.news-template-related-title,
.news-detail-template .content-main h2,
.news-detail-template .content-main h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Card titles: FZ Poppins nhưng giảm 800 -> 700 */
.news-template-name,
.news-template-list3-name,
.news-template-list4-name,
.news-template-list5-name,
.news-template-small-info h3,
.news-template-related-info h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Meta/desc/category = Mona Sans */
.news-template-meta,
.news-template-desc,
.news-template-category,
.news-template-category a,
.news-template-small-info p,
.news-template-related-date,
.news-template-related-desc,
.news-detail-template .content-main {
  font-family: var(--font-body);
}

.news-template-category a {
  font-weight: 500;
}
