/* ==========================================
   NEWS LIST PAGE
========================================== */
.news-list { display: flex; flex-direction: column; gap: 0; }

.news-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--trans);
  overflow: hidden;
  border-radius: 0;
}
.news-list-item:first-child { border-top: 1px solid var(--color-border); }
.news-list-item:hover { background: var(--color-bg); }
.news-list-item:hover .news-list-thumb img { transform: scale(1.05); }

.news-list-thumb {
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-list-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.news-list-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.news-list-date {
  font-size: .78rem;
  color: var(--color-text-lt);
  letter-spacing: .04em;
}

.news-list-cat {
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  letter-spacing: .05em;
}
.news-list-cat.cat-recruit { background: #2e7d32; }
.news-list-cat.cat-press    { background: #6d4c41; }

.news-list-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-primary);
}
.news-list-item:hover .news-list-title { color: var(--color-accent); }

.news-list-arrow {
  margin-left: auto;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--trans);
}
.news-list-item:hover .news-list-arrow { opacity: 1; }

@media (max-width: 640px) {
  .news-list-item { grid-template-columns: 1fr; }
  .news-list-thumb { height: 180px; }
  .news-list-body { padding: 1.25rem 1.25rem; }
  .news-list-arrow { display: none; }
}

/* ==========================================
   NEWS DETAIL PAGE
========================================== */
.news-detail-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.news-detail-hero img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.news-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,25,45,.2) 0%, rgba(7,25,45,.65) 100%);
}
.news-detail-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem var(--space-md);
  z-index: 1;
  max-width: calc(var(--container) + 2 * var(--space-md));
  margin: 0 auto;
}
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.news-detail-date {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .05em;
}
.news-detail-cat {
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .75rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
}
.news-detail-cat.cat-recruit { background: #2e7d32; }
.news-detail-cat.cat-press    { background: #6d4c41; }
.news-detail-hero-content h1 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

/* breadcrumb in detail */
.news-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .9rem;
}
.news-detail-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.news-detail-breadcrumb a:hover { color: #fff; }
.news-detail-breadcrumb span::before { content: '›'; margin-right: .5rem; }

/* article body */
.news-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem var(--space-md);
}
.news-article-body {
  font-size: .975rem;
  line-height: 2;
  color: var(--color-text);
}
.news-article-body p { margin-bottom: 1.5rem; }
.news-article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
  padding-left: .9rem;
  border-left: 3px solid var(--color-accent);
}
.news-article-body ul {
  margin: 0 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.news-article-body ul li { list-style: disc; }
.news-article-body .info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}
.news-article-body .info-table th,
.news-article-body .info-table td {
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.news-article-body .info-table th {
  background: var(--color-bg);
  color: var(--color-primary);
  font-weight: 600;
  width: 140px;
  white-space: nowrap;
}

.news-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
.news-back-btn::before { content: '←'; }
.news-back-btn:hover { text-decoration: underline; }

/* recent news at bottom of detail */
.news-recent {
  background: var(--color-bg);
  padding: var(--space-lg) 0;
}
.news-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-thumb {
  height: 160px;
  overflow: hidden;
}
.news-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.news-card:hover .news-card-thumb img { transform: scale(1.05); }
.news-card-body { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.news-card-meta { display: flex; align-items: center; gap: .6rem; }
.news-card-date { font-size: .72rem; color: var(--color-text-lt); }
.news-card-cat {
  font-size: .62rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 999px;
  background: var(--color-accent); color: #fff;
}
.news-card-cat.cat-recruit { background: #2e7d32; }
.news-card-cat.cat-press    { background: #6d4c41; }
.news-card-title {
  font-size: .88rem; font-weight: 600; line-height: 1.55;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .news-detail-hero { height: 300px; }
  .news-recent-grid { grid-template-columns: 1fr; }
  .news-article { padding: 2rem 1.25rem; }
}
@media (max-width: 480px) {
  .news-detail-hero { height: 240px; }
  .news-article-footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
