/* ==================================================
   FSPJ News
   - /fspj/news/index.html
   - /fspj/news/YYYYMMDD.html
================================================== */

/* ==================================================
   Shared News Hero
================================================== */

.news-list-hero,
.news-detail-hero {
  min-height: 250px;
  text-align: left;
}

.news-page-label,
.news-detail-label {
  display: inline-block;
  padding: 0.45rem 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.news-page-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

/* ==================================================
   News List Page
================================================== */

.news-list-section {
  padding: 72px 0 90px;
}

.news-list-heading {
  margin-bottom: 42px;
}

.news-list-heading h2 {
  margin-bottom: 14px;
  color: #003b70;
  font-size: 2rem;
  font-weight: 700;
}

.news-list-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: #6c757d;
  line-height: 1.8;
}

/* One news item per row */
.news-list {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #dce6ed;
}

.news-list-item {
  display: grid;
  grid-template-columns: 120px 100px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 16px;
  color: inherit;
  border-bottom: 1px solid #dce6ed;
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.news-list-item:hover,
.news-list-item:focus-visible {
  padding-left: 22px;
  color: inherit;
  background: #f4f8fc;
}

.news-list-item time {
  color: #6c757d;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.news-category {
  display: inline-block;
  padding: 5px 10px;
  color: #005aaa;
  background: #e8f3f9;
  border-radius: 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-category-publication {
  color: #147347;
  background: #e9f6ef;
}

.news-category-event {
  color: #825400;
  background: #fff4d6;
}

.news-title {
  min-width: 0;
  color: #003b70;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.news-arrow {
  color: #00a3e0;
  font-size: 1.3rem;
  text-align: right;
  transition: transform 0.2s ease;
}

.news-list-item:hover .news-arrow,
.news-list-item:focus-visible .news-arrow {
  transform: translateX(4px);
}

/* ==================================================
   News Detail Page
================================================== */

.news-article {
  padding: 80px 0 100px;
}

.news-article-inner {
  max-width: 900px;
  margin: 0 auto;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.news-article-meta time {
  color: #6c757d;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.news-article-title {
  margin: 0 0 14px;
  padding: 0;
  color: #003b70;
  border: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}

.news-article-title-en {
  margin: 0 0 36px;
  padding-bottom: 30px;
  color: #6c757d;
  border-bottom: 1px solid #dce6ed;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.news-article-lead {
  margin: 0 0 48px;
  color: #354452;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.9;
}

.news-article-body {
  color: #404b55;
  font-size: 1rem;
  line-height: 2;
}

.news-article-body p {
  margin-bottom: 32px;
}

.news-article-body h3 {
  margin-top: 56px;
  margin-bottom: 22px;
  padding-left: 15px;
  color: #003b70;
  border-left: 4px solid #00a3e0;
  font-size: 1.35rem;
  font-weight: 700;
}

.news-article-body h3:first-child {
  margin-top: 0;
}

.news-article-action {
  margin-top: 42px;
  margin-bottom: 64px;
}

/* ==================================================
   Event Information
================================================== */

.news-event-info {
  margin-top: 48px;
  margin-bottom: 64px;
  padding: 32px 36px;
  background: #f4f8fc;
  border-left: 5px solid #00a3e0;
  border-radius: 0 14px 14px 0;
}

.news-event-info h3 {
  margin: 0 0 28px;
  color: #003b70;
  font-size: 1.3rem;
  font-weight: 700;
}

.news-event-info dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  margin: 0;
}

.news-event-info dt,
.news-event-info dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #dce6ed;
}

.news-event-info dt {
  color: #005aaa;
  font-weight: 700;
}

.news-event-info dd {
  line-height: 1.7;
}

.news-event-title {
  margin: 0 0 56px;
  padding: 28px 30px;
  color: #003b70;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.9;
}

/* ==================================================
   Related Links
================================================== */

.news-related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid #dce6ed;
}

.news-related h3 {
  margin-bottom: 24px;
  color: #003b70;
  font-size: 1.25rem;
  font-weight: 700;
}

.news-related .list-group {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 45, 85, 0.07);
}

.news-related .list-group-item {
  padding: 16px 20px;
  color: #005aaa;
}

/* ==================================================
   Back to News List
================================================== */

.news-back {
  margin-top: 64px;
  margin-bottom: 10px;
  text-align: center;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 20px;
}

.news-back-arrow {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.news-back-link:hover .news-back-arrow {
  transform: translateX(-4px);
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 768px) {
  .news-list-hero,
  .news-detail-hero {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .news-list-section {
    padding: 50px 0 70px;
  }

  .news-list-heading {
    margin-bottom: 30px;
  }

  .news-list-heading h2 {
    font-size: 1.7rem;
  }

  .news-list-item {
    grid-template-columns: auto 1fr 24px;
    gap: 8px 12px;
    padding: 18px 10px;
  }

  .news-list-item:hover,
  .news-list-item:focus-visible {
    padding-left: 10px;
  }

  .news-list-item time {
    grid-column: 1;
  }

  .news-category {
    grid-column: 2;
    justify-self: start;
  }

  .news-title {
    grid-column: 1 / 3;
    margin-top: 4px;
  }

  .news-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .news-article {
    padding: 48px 0 70px;
  }

  .news-article-title {
    font-size: 1.55rem;
  }

  .news-article-title-en {
    margin-bottom: 30px;
    padding-bottom: 24px;
  }

  .news-article-lead {
    margin-bottom: 36px;
    font-size: 1.05rem;
  }

  .news-event-info {
    margin-top: 36px;
    margin-bottom: 48px;
    padding: 24px 20px;
  }

  .news-event-info dl {
    grid-template-columns: 1fr;
  }

  .news-event-info dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .news-event-info dd {
    padding-top: 2px;
  }

  .news-article-body h3 {
    margin-top: 44px;
  }

  .news-event-title {
    margin-bottom: 44px;
    padding: 22px 20px;
  }

  .news-article-action {
    margin-top: 32px;
    margin-bottom: 48px;
  }

  .news-related {
    margin-top: 56px;
    padding-top: 40px;
  }

  .news-back {
    margin-top: 48px;
  }
}
