/* ===== News section (news/ folder) ===== */

/* --- Index listing --- */
.news-index-card {
  padding: 0;
  overflow: hidden;
}

.news-index-card .news-index-alert {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-top: none;
  border-right: none;
}

.news-feed-head {
  padding: 26px 30px 10px;
  border-bottom: 1px solid #f0ebe0;
}

.news-feed-head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--green-800, #1a3d2e);
  line-height: 1.35;
}

.news-feed-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7a6e;
}

.news-feed {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
}

.news-feed-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  border-bottom: 1px solid #f0ebe0;
  transition: background .2s ease;
  position: relative;
  padding: 0;
  margin: 0;
  border-left: none;
}

.news-feed-item::before {
  display: none !important;
  content: none !important;
}

.news-index-card .news-feed li {
  padding: 0;
  border-bottom: 1px solid #f0ebe0;
}

.news-index-card .news-feed li::before {
  display: none !important;
  content: none !important;
}

.news-feed-item:last-child {
  border-bottom: none;
}

.news-feed-item:hover {
  background: linear-gradient(90deg, #fffdf8 0%, #fff 100%);
}

.news-feed-date {
  padding: 22px 20px 22px 30px;
  border-right: 1px dashed #e8e0d0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.news-feed-date-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b35a09;
}

.news-feed-date time {
  font-size: 13px;
  font-weight: 600;
  color: #4a5548;
  line-height: 1.4;
}

.news-feed-content {
  padding: 18px 30px 18px 24px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.news-feed-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.news-feed-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #1a2e22;
  transition: color .2s ease;
}

.news-feed-link:hover .news-feed-title {
  color: var(--green-700, #2d5a3d);
}

.news-feed-read {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #b35a09;
  white-space: nowrap;
}

.news-feed-link:hover .news-feed-read {
  color: var(--green-800, #1a3d2e);
}

/* --- Article detail --- */
.news-article-card {
  padding: 0;
  overflow: hidden;
}

.news-article-card > img:first-child {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  border-bottom: 4px solid var(--gold, #e2b73c);
}

.news-article-card .blog-author {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 20px 30px 0;
}

.news-article-card .blog-author li {
  margin: 0;
  padding: 0;
  border: none;
}

.news-article-card .blog-author li::before {
  display: none;
}

.news-article-card .blog-author li span,
.news-article-card .blog-author li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(180deg, #fff 0%, #fdfaf2 100%);
  border: 1px solid #e3dac4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #4a5548;
  letter-spacing: .02em;
}

.news-article-card .blog-author li:first-child span {
  color: var(--green-800, #1a3d2e);
}

.news-article-card .blog-author .bx {
  display: none;
}

.news-article-card > h2.it-discover-title:first-of-type {
  display: none;
}

.news-article-card .news-article-prose {
  padding: 24px 30px 10px;
}

.news-article-card > h2.it-discover-title,
.news-article-card > h3,
.news-article-card > p,
.news-article-card > li,
.news-article-card > ul,
.news-article-card > ol {
  padding-left: 30px;
  padding-right: 30px;
}

.news-article-card > h2.it-discover-title,
.news-article-card > h3 {
  margin-top: 0;
  padding-top: 8px;
}

.news-article-card > p:first-of-type,
.news-article-card > h3:first-of-type {
  padding-top: 20px;
}

.news-article-card > h3,
.news-article-card h3.it-discover-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-800, #1a3d2e);
  margin: 28px 0 12px;
  padding-top: 0;
  line-height: 1.4;
  position: relative;
  padding-left: 42px;
}

.news-article-card > h3::before,
.news-article-card h3.it-discover-title::before {
  content: "";
  position: absolute;
  left: 30px;
  top: .45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #e2b73c);
  box-shadow: 0 0 0 4px rgba(226, 183, 60, .25);
}

.news-article-card > p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a3a3a;
  margin: 0 0 16px;
}

.news-article-card > li {
  list-style: none;
  margin: 24px 30px 6px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #fff9e8 0%, #fdfaf2 100%);
  border: 1px solid #e8dfc8;
  border-left: 4px solid #b35a09;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-800, #1a3d2e);
  line-height: 1.5;
  border-bottom: 1px solid #e8dfc8;
}

.news-article-card > li::before {
  display: none !important;
  content: none !important;
}

.news-article-card > li + p {
  margin-top: 0;
  padding-top: 8px;
}

.news-article-card a {
  color: #b35a09;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-article-card a:hover {
  color: var(--green-800, #1a3d2e);
}

.news-article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 22px 30px 28px;
  border-top: 1px solid #f0ebe0;
  background: linear-gradient(180deg, #fdfaf2 0%, #fff 100%);
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-800, #1a3d2e);
  text-decoration: none;
}

.news-back-link:hover {
  color: #b35a09;
}

.news-article-actions .btn-gold {
  padding: 12px 22px;
  font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .news-feed-item {
    grid-template-columns: 1fr;
  }

  .news-feed-date {
    padding: 16px 20px 10px;
    border-right: none;
    border-bottom: 1px dashed #e8e0d0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .news-feed-content {
    padding: 12px 20px 18px;
  }

  .news-feed-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-feed-head {
    padding: 22px 20px 10px;
  }

  .news-article-card .blog-author {
    padding: 16px 20px 0;
  }

  .news-article-card > h2.it-discover-title,
  .news-article-card > h3,
  .news-article-card > p,
  .news-article-card > li {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-article-card > h3::before,
  .news-article-card h3.it-discover-title::before {
    left: 20px;
  }

  .news-article-card > li {
    margin-left: 20px;
    margin-right: 20px;
  }

  .news-article-actions {
    padding: 18px 20px 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .news-article-actions .btn-gold {
    text-align: center;
  }
}
