@charset "utf-8";
/* ═══════════════════════════════════════════
   PROJECT.CSS — project.php(프로젝트 목록) 전용 스타일
   ⚠️ 공통 영역(reset/root/body/sub-nav/page-title/breadcrumb/footer/back-to-top)은
      style.css + page-common.css 에 있으므로 여기서는 절대 재정의하지 않습니다.
      이 파일에는 "이 페이지에만 있는" 스타일만 넣습니다.
═══════════════════════════════════════════ */

/* page-title-block 패딩 하단을 0으로 (project.php만 다름) */
.breadcrumb-bar::after { margin-bottom: 0; }

/* ══════════════════════════
   CATEGORY TABS (상단 공사종류)
══════════════════════════ */
.project-cat-section {
  max-width: 1400px;
  margin: 3px auto 0;
  padding: 0 40px;
  border-bottom: 1px solid #e2e8f0;
}
.project-cat-tabs {
  display: flex;
  gap: 0;
  align-items: flex-end;
  justify-content: center;
}
.pcat-btn {
  position: relative;
  padding: 14px 36px;
  font-size: 15px;
  font-family: inherit;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.pcat-btn + .pcat-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: #ddd;
}
.pcat-btn:hover { color: #333; }
.pcat-btn.active {
  color: #1a6bbf;
  border-bottom-color: #1a6bbf;
  font-weight: 700;
}

/* ══════════════════════════
   TYPE FILTER TABS
══════════════════════════ */
.project-filter-section {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 40px;
}
.project-type-tabs {
  display: flex;
  gap: 0;
  border-bottom: none;
}
.ptype-btn {
  position: relative;
  padding: 12px 32px;
  font-size: 15px;
  font-family: inherit;
  background: none;
  border: none;
  border-bottom: none;
  margin-bottom: 0;
  cursor: pointer;
  color: #999;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.ptype-btn + .ptype-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 16px;
  background: #ddd;
}
.ptype-btn:hover { color: #333; }
.ptype-btn.active {
  color: var(--green-dark);
  font-weight: 700;
}

/* ══════════════════════════
   PROJECT GRID
══════════════════════════ */
.project-section {
  max-width: 1400px;
  margin: 48px auto 80px;
  padding: 0 40px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-section { padding: 0 20px; }
  .project-filter-section { padding: 0 20px; }
}

/* ── Card ── */
.proj-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: box-shadow 0.22s;
  color: inherit;
}
.proj-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.14); }

.proj-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}
.proj-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.proj-card:hover .proj-card-img img { transform: scale(1.05); }
.proj-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #f0f0f0;
}
.proj-img-placeholder svg { width: 56px; height: 56px; }

.proj-card-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.proj-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  align-self: flex-start;
  margin-bottom: 14px;
}
.badge-ongoing  { background: #d8942b; color: #fff; }
.badge-completed { background: #1e6bbf; color: #fff; }

.proj-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.proj-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}
.proj-meta-table th {
  color: #888;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 12px 5px 0;
  vertical-align: top;
  width: 80px;
}
.proj-meta-table td {
  color: #444;
  padding: 5px 0;
  vertical-align: top;
  line-height: 1.5;
}
.proj-meta-table tr + tr th,
.proj-meta-table tr + tr td { border-top: none; }

.proj-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}
.proj-more-btn {
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: #fff;
  cursor: pointer;
}
.proj-more-btn:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
  background: #f6fbf0;
}

.project-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #94a3b8;
  font-size: 15px;
}

/* ══════════════════════════
   PAGINATION
══════════════════════════ */
.project-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin: 50px 0 10px;
}
.project-pagination .pg-btn {
  width: 40px; height: 40px;
  border: 1px solid #ddd;
  background: #fff; border-radius: 4px;
  font-size: 14px; cursor: pointer;
  transition: all 0.2s; color: #333;
}
.project-pagination .pg-btn:hover:not(:disabled):not(.active) { border-color: var(--green); color: var(--green); }
.project-pagination .pg-btn.active {
  background: var(--green); color: #fff; border-color: var(--green); font-weight: 700;
}
.project-pagination .pg-btn:disabled { opacity: 0.35; cursor: default; }
.project-pagination .pg-btn.pg-prev,
.project-pagination .pg-btn.pg-next { font-size: 18px; }

/* ══════════════════════════
   RESPONSIVE ≤ 768px
══════════════════════════ */
@media (max-width: 768px) {
  .ptype-btn { padding: 10px 18px; font-size: 14px; }
  .proj-card-footer { justify-content: center; }
}
