/* =====================================================
   biz-battery.css  ─  이차전지 조립 자동화 설비 페이지 전용 스타일
   common.css 로드 후 이 파일을 추가로 로드합니다.
   ===================================================== */


/* ─── 공통 컨테이너 ───────────────────────────────── */
.biz-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ─── 공통 섹션 헤더 요소 ─────────────────────────── */
.biz-sec-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 12px;
}

.biz-headline {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700; line-height: 1.3;
  color: var(--navy);
}
.biz-headline em { color: var(--blue); font-style: normal; }

.biz-divider {
  width: 48px; height: 3px;
  background: var(--accent);
  margin: 18px 0 24px;
}


/* ═══════════════════════════════════════════════════
   사업 개요 섹션
═══════════════════════════════════════════════════ */
#biz-overview {
  padding: 100px 0 80px;
  background: var(--white);
}

/* 개요: 텍스트 중앙 정렬 */
.overview-grid {
  display: flex;
  justify-content: center;
}

.overview-text {
  max-width: 720px;
  text-align: center;
}

.overview-text .biz-divider {
  margin-left: auto;
  margin-right: auto;
}

.overview-desc {
  font-size: 15px; line-height: 2.0;
  color: var(--text-sub);
  word-break: keep-all;
  margin-bottom: 28px;
}

/* 역량 태그 */
.overview-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid var(--border);
}

/* 역량 카드 (우측) */
.overview-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ov-card {
  padding: 22px 24px;
  background: var(--light);
  border-left: 3px solid var(--accent);
  transition: background 0.2s, box-shadow 0.2s;
}
.ov-card:hover {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,200,0.10);
}
.ov-card-icon  { font-size: 24px; margin-bottom: 8px; }
.ov-card-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.ov-card-desc  { font-size: 13px; color: var(--text-sub); line-height: 1.7; word-break: keep-all; }


/* ═══════════════════════════════════════════════════
   프로젝트 실적 섹션
═══════════════════════════════════════════════════ */
#biz-posts {
  padding: 80px 0 120px;
  background: var(--light);
}

/* 섹션 헤더 */
.posts-header {
  margin-bottom: 56px;
  animation: fadeUp 0.7s ease both;
}
.posts-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  word-break: keep-all;
}


/* ─── POST 카드 그리드 ────────────────────────────
   PC  : 2열
   모바일 : 1열  (768px 이하에서 전환)
──────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}


/* ─── 카드 기본 스타일 ────────────────────────────── */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(37,99,200,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.7s ease both;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37,99,200,0.14);
}


/* ─── 카드 이미지 영역 ────────────────────────────── */
.post-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;          /* 이미지 비율 고정 */
  overflow: hidden;
  background: var(--light);
}

.post-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img {
  transform: scale(1.04);
}

/* 이미지 없을 때 placeholder */
.post-card-img .img-placeholder {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background: var(--light);
  color: var(--steel);
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}
.post-card-img .img-placeholder span { font-size: 36px; }

/* onerror 시 img-error 클래스가 부모에 추가됨 */
.post-card-img.img-error img           { display: none; }
.post-card-img.img-error .img-placeholder { display: flex; }


/* ─── 카드 본문 ───────────────────────────────────── */
.post-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 프로젝트 번호 */
.post-card-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* 설비명 */
.post-card-title {
  font-size: 20px; font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}

/* 메타 정보: 고객사 / 납품 / 분야 */
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.post-card-meta span {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-card-meta em {
  font-style: normal;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px;
  color: var(--steel);
  background: var(--light);
  padding: 2px 6px;
  flex-shrink: 0;
}

/* 설명 */
.post-card-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.85;
  word-break: keep-all;
  flex: 1;
}


/* ─── 애니메이션 ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── 반응형 ──────────────────────────────────────── */

/* 태블릿 : 개요 세로 재배치 */
@media (max-width: 960px) {
  .overview-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ov-card { flex: 1 1 200px; }
}

/* 모바일 : POST 1열 */
@media (max-width: 768px) {
  .biz-container { padding: 0 20px; }

  .posts-grid {
    grid-template-columns: 1fr;   /* ← 1열로 전환 */
    gap: 24px;
  }

  #biz-overview { padding: 72px 0 56px; }
  #biz-posts    { padding: 60px 0 80px; }

  .post-card-body { padding: 20px 20px 24px; }
  .post-card-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .overview-cards { flex-direction: column; }
  .post-card-meta { gap: 6px 10px; }
}
