/* 공지사항 — Figma「2026 디캅 홈페이지 / 공지사항」(node 2005:247), 1920 기준
   헤더 · 푸터 · 제목(.sec-title)은 style.css.
   홈의 공지사항(.notice__*)은 사용자가 글자를 키워 둬서, 이 페이지는 클래스를 따로(.ntc-*) 쓰고 시안 원래 값을 쓴다. */

/* 시안은 본문을 1366px 로 잡아 두지만(푸터 1451px), 글이 적으면 푸터가 한참 아래에 남는다 —
   높이를 고정하지 않고 내용만큼만 쓴다. 화면보다 짧아도 푸터가 뜨지 않게는 style.css 의 .page-sub 가 맡는다 */
.ntc
{
  padding: 95px 0 170px;
}
.ntc-list
{
  margin-top: 73px;
}

/* 항목: 사진 427×220 + 글. 사진 아래 30px 에 1px 선(#e4e8f0), 선 아래 29px 에 다음 항목 */
.ntc-item
{
  display: grid;
  grid-template-columns: 427px 1fr;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e8f0;
  cursor: pointer;
}
.ntc-item + .ntc-item
{
  margin-top: 29px;
}
/* 항목 전체가 상세(notice-view.html)로 가는 링크: 제목 링크의 ::after 가 항목을 덮는다 */
.ntc-item
{
  position: relative;
}
.ntc-item__link::after
{
  content: "";
  position: absolute;
  inset: 0;
}
.ntc-item__link:focus-visible
{
  outline: none;
}
.ntc-item__link:focus-visible::after
{
  outline: 2px solid var(--blue);
  outline-offset: 6px;
  border-radius: 15px;
}

.ntc-item__thumb
{
  aspect-ratio: 427 / 220;
  border-radius: 15px;
  overflow: hidden;
  background: #eef1f5;
}
.ntc-item__thumb img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

/* 제목 · 설명 글자는 기술 · 서비스 카드(제목 24/32 · 설명 16/24)와 같게 — 사용자 요청.
   (그 전엔 홈 공지사항 26/34 · 17/28, 시안 원래 값은 20/26 · 14/21) 날짜 · 위 여백은 홈 공지사항 값 */
.ntc-item__body
{
  padding-top: 22px;
}
.ntc-item__title
{
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  transition: color .2s;
}
.ntc-item__desc
{
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #444;
}
.ntc-item__date
{
  margin-top: 20px;
  font-size: 15px;
  line-height: 18px;
  color: #444;
}

/* hover — 기술 · 서비스 카드와 같게: 사진이 살짝 커지고 제목이 파랗게 */
.ntc-item:hover .ntc-item__thumb img
{
  transform: scale(1.05);
}
.ntc-item:hover .ntc-item__title
{
  color: var(--blue);
}

/* ── 좁은 화면 ── */
@media (max-width: 760px)
{
  .ntc
  {
    min-height: 0;
    padding: 56px 0 96px;
  }
  .ntc-list
  {
    margin-top: 40px;
  }
  .ntc-item
  {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 28px;
  }
  .ntc-item + .ntc-item
  {
    margin-top: 28px;
  }
  /* 모바일도 홈 공지사항과 같게: 글자 크기는 PC 그대로, 위 여백만 없애고 줄바꿈(br)은 숨긴다 */
  .ntc-item__body
  {
    padding-top: 0;
  }
  .ntc-item__desc br
  {
    display: none;
  }
}
