/* =========================================
   work.css 기반 + 블로그 전용 스타일 추가
   ========================================= */

/* 기본 설정 불러오기 (혹은 common.css에 있다면 생략 가능) */
a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pc-only { display: block; }

/* 레이아웃 (Work 섹션과 동일한 구조 유지) */
#work {
  width: 96%;
  margin: 0 auto;
  margin-top: 12rem;
  margin-bottom: 6em;
} 

.section-title {
  font-size: 7rem;
  text-align: left;
  line-height: 1;
}

.section-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}
.section-title.visible span { animation: fadeUp 1.5s ease forwards; }

/* 애니메이션 딜레이 (B-l-o-g 4글자 대응) */
.section-title.visible span:nth-child(1) { animation-delay: 0s; }
.section-title.visible span:nth-child(2) { animation-delay: 0.05s; }
.section-title.visible span:nth-child(3) { animation-delay: 0.1s; }
.section-title.visible span:nth-child(4) { animation-delay: 0.15s; }

.section-title.sub {
  font-size: 1.8rem;
  font-weight: 200;
  text-align: left;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  margin-top: 2rem;
  line-height: 1.4;
}
.section-title.sub.visible {
  animation: fadeUp 1.5s ease forwards;
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   [블로그 전용] 그리드 및 카드 스타일
   ========================================= */

   
.work-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem; /* 세로 간격 2rem, 가로 간격 1.5rem */
  margin-top: 6rem;
}

.work-item {
  overflow: hidden;
  padding: 0;
  margin-bottom: 3rem;
}

.thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0.87rem;
  aspect-ratio: 8 / 5;
}


/* =========================================
   [중요] 블로그 텍스트 정보 스타일 수정
   ========================================= */
.work-info {
  margin-top: 1.5rem;
  color: #fff;
  z-index: 3;
}

/* 날짜 표시 스타일 */
.blog-date {
  display: block;
  font-size: 0.95rem;
  color: #888; /* 회색으로 날짜 구분 */
  margin-bottom: 0.5rem;
  font-weight: 400;
}

/* 블로그 제목 스타일 (줄바꿈 허용 및 가독성 조정) */
.blog-title {
  margin-bottom: 1rem;
  font-size: 1.8rem; /* 포트폴리오보다 약간 작게 하여 긴 제목 대응 */
  font-weight: 600;
  line-height: 1.4;  /* 줄간격 확보 */
  word-break: keep-all; /* 단어 단위 줄바꿈 */
  min-height: 5rem; /* 제목 높이 맞춰주기 (선택사항) */
}

/* 태그 스타일 */
.work-info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}


/* =========================================
   모바일 반응형
   ========================================= */
@media (max-width: 768px) {
  .pc-only { display: none; }
  
  #work {
    width: 92%;
    margin-top: 8rem;
  } 

  .section-title { font-size: 16vw; }
  .section-title.sub { font-size: 5vw; line-height: 1.4; margin-top: 2rem; }

  .work-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .blog-title { font-size: 6vw; min-height: auto; } /* 모바일에선 높이 제한 해제 */
  .blog-date { font-size: 3.5vw; }
  .work-description { font-size: 3.5vw; padding: 0.3rem 0.8rem; }
  
  .thumbnail { border-radius: 0.6rem; }
}