.home-news-list {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(2, 48, 89, 0.08);
}

.home-news-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #e8edf3;
}

.home-news-item:last-child {
  border-bottom: 0;
}

.home-news-item:hover {
  background: #f8fbff;
}

.home-news-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf4ff;
  color: #063b69;
  font-weight: 700;
}

.home-news-heading-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.home-news-heading-row h3 {
  margin: 0;
  color: #06345d;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.45;
}

.home-news-new {
  flex: 0 0 auto;
  color: #d69000;
  font-size: 1rem;
}

.home-news-summary time {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
  color: #637181;
  font-size: 0.94rem;
}

.home-news-item .btn {
  min-width: 96px;
  border-radius: 999px;
  font-weight: 600;
}

.home-news-empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 12px;
  background: #f4f7fa;
  color: #536273;
  text-align: center;
}

.news-detail-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 27, 53, 0.28);
}

.news-detail-modal .modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #dce5ee;
  background: #07365f;
  color: #fff;
}

.news-detail-modal .modal-title {
  margin: 0;
  color: inherit;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.4;
}

.news-detail-modal .btn-close {
  flex: 0 0 auto;
  filter: invert(1) grayscale(1) brightness(2);
}

.news-detail-modal .modal-body {
  padding: clamp(20px, 4vw, 38px);
  background: #f7f9fc;
}

.news-ajax-detail {
  max-width: 980px;
  margin: 0 auto;
}

.news-ajax-header,
.news-ajax-content,
.news-ajax-section {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  background: #fff;
}

.news-ajax-header {
  margin-bottom: 18px;
}

.news-ajax-header h3 {
  margin: 8px 0 0;
  color: #06345d;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.4;
}

.news-ajax-date {
  margin: 0;
  color: #667789;
}

.news-ajax-content {
  color: #263746;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.news-ajax-content > :first-child {
  margin-top: 0;
}

.news-ajax-content > :last-child {
  margin-bottom: 0;
}

.news-ajax-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.news-ajax-content th,
.news-ajax-content td {
  padding: 8px 10px;
  border: 1px solid #cfd8e2;
}

.news-ajax-section {
  margin-top: 18px;
}

.news-ajax-section h4 {
  margin: 0 0 16px;
  color: #0c426f;
  font-size: 1.12rem;
}

.news-file-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-file-list a,
.news-related-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #0969a8;
  overflow-wrap: anywhere;
}

.news-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.news-image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: 10px;
  background: #f8fafc;
}

.news-image-card a {
  display: block;
  padding: 12px;
  text-align: center;
}

.news-image-card img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.news-image-card figcaption {
  padding: 10px 14px;
  border-top: 1px solid #dce4ec;
  color: #546474;
  text-align: center;
}

.news-detail-loading,
.news-detail-error {
  padding: 42px 20px;
  color: #5d6b79;
  text-align: center;
}

.news-detail-error {
  color: #9b1c1c;
}

@media (max-width: 767.98px) {
  .home-news-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .home-news-number {
    width: 36px;
    height: 36px;
  }

  .home-news-item .btn {
    grid-column: 2;
    justify-self: start;
  }

  .news-detail-modal .modal-dialog {
    margin: 10px;
  }

  .news-detail-modal .modal-header {
    padding: 14px 16px;
  }

  .news-detail-modal .modal-body {
    padding: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .home-news-item {
    transition: none;
  }
}
