:root{
  --bg:white; --card:#fff; --text:#0f172a; --muted:#6b7280; --line:#e5e7eb;
  --primary:#2563eb; --primary-ink:#fff; --chip:#f5f7fa; --shadow:0 10px 30px rgba(2,8,23,.08);
}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,'Noto Sans KR',sans-serif}

/* Section */
.procard-wrap{max-width:980px;margin:28px auto;padding:0 16px}
.procard-head{text-align:center;margin:8px 0 22px}
.procard-title{font-size:28px;font-weight:800;margin:0;letter-spacing:-.01em}
.procard-sub{margin:8px 0 0;color:var(--muted);font-size:14px}

/* GRID: 3Àå 1Çà·Î ¸ÂÃß±â */
.procard-grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;                         /* 20 ¡æ 16 : ÃÑ 32px °£°Ý */
  justify-content:flex-start;
  align-content:flex-start;
}

/* Ä«µå ÆøÀ» ÄÁÅ×ÀÌ³Ê ±âÁØÀ¸·Î °è»ê (3µîºÐ) */
.procard-card{
  flex:0 0 calc((100% - 32px) / 3); /* (ÀüÃ¼ - 2Ä­ °£°Ý) / 3 */
  max-width:100%;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* ¸ð¹ÙÀÏÀº ±âÁ¸Ã³·³ 1¿­ */
@media (max-width: 720px){
  .procard-card{flex:1 1 100%}
  .procard-card-img img{height:180px}
}
.procard-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 38px rgba(2,8,23,.12); }

/* COVER */
.procard-card-img{display:block; background:#eaeef3; overflow:hidden; border-bottom:1px solid var(--line)}
.procard-card-img img{
  display:block; width:100%; height:200px;  /* °íÁ¤ ³ôÀÌ·Î Á¤¸® */
  object-fit:cover; object-position:center;
}

/* BODY */
.procard-card-body{padding:14px 16px 16px}
.procard-card-body h3{
  margin:0 0 2px;
  font-size:18px; font-weight:800; letter-spacing:-.01em;
}
.procard-location{font-size:13px; color:var(--muted); margin:0 0 8px}

/* ¼³¸í: 3ÁÙ±îÁö¸¸ */
.procard-desc{
  margin:6px 0 12px; font-size:13px; color:#334155;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Ä¨(ÅÂ±×) */
.procard-tags{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; padding:0; list-style:none}
.procard-tags span{
  background:var(--chip); border:1px solid var(--line); color:#111827;
  font-size:12px; padding:6px 10px; border-radius:999px; white-space:nowrap;
}

/* ¹öÆ° */
.procard-actions{display:flex; gap:10px}
.procard-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 18px;
  border-radius:10px; font-weight:700; font-size:14px;
  text-decoration:none; border:1px solid transparent;
  transition:transform .06s ease, filter .12s ease, box-shadow .12s ease;
}
.procard-btn:active{ transform: translateY(1px); }
.procard-actions .procard-btn:first-child{
  background:var(--primary); color:var(--primary-ink);
  box-shadow:0 6px 18px rgba(37,99,235,.25);
}
.procard-actions .procard-btn:first-child:hover{ filter:brightness(1.05); }
.procard-actions .procard-btn:last-child{
  background:#fff; border-color:var(--line); color:#111827;
}
.procard-actions .procard-btn:last-child:hover{ filter:brightness(.98); }

/* ¹ÝÀÀÇü */
@media (max-width: 720px){
  .procard-wrap{max-width: 640px}
  .procard-card{flex: 1 1 100%}          /* ¸ð¹ÙÀÏ¿¡¼­´Â 1¿­ */
  .procard-card-img img{height: 180px}
}

/* ÀÌ¹ÌÁö ¸ð´Þ ±âº» ¼û±è */
.procard-modal {
  display: none; /* ±âº» ¼û±è */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.85);

  /* °¡¿îµ¥ Á¤·Ä À§ÇØ flex »ç¿ë */
  align-items: center;
  justify-content: center;
}

/* ¸ð´Þ ¾È ÀÌ¹ÌÁö */
.procard-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* ´Ý±â ¹öÆ° */
.procard-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.procard-close:hover {
  color: #bbb;
}

/* === Category Tabs === */
.pcat-tabs{
  display:flex; gap:8px; justify-content:center;
  margin:6px 0 12px;
}
.pcat-tab{
  border:1px solid var(--line);
  background:#fff; color:#111827;
  padding:10px 14px; border-radius:12px;
  font-weight:800; font-size:14px; cursor:pointer;
}
.pcat-tab.is-active{
  background:var(--primary); color:#fff; border-color:transparent;
  box-shadow:0 6px 16px rgba(37,99,235,.18);
}

