/* Entry Gate List (FINAL) */
/* File: /wp-content/themes/kava-child/entry_gate/entry-gate.css */

.qv-eg-wrap{
  width:100%;
  padding:22px 18px 36px;
  box-sizing:border-box;
}

.qv-eg-top{
  display:flex;
  justify-content:center;
  margin-bottom:18px;
}

.qv-eg-tabs{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.qv-eg-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid #e6e6e6;
  background:#fff;
  font-size:14px;
  color:#111;
  text-decoration:none;
  line-height:1;
}

.qv-eg-tab.is-active{
  background:#1563ff;
  color:#fff;
  border-color:#1563ff;
}

.qv-eg-grid{
  display:grid;
  grid-template-columns:repeat(4, 290px); /* ✅ PC 카드 폭 고정 */
  gap:22px;
  max-width:1280px;
  margin:0 auto;
  justify-content:center; /* 중앙 정렬 안정화 */
}

@media (max-width: 1200px){
  .qv-eg-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .qv-eg-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .qv-eg-grid{ grid-template-columns:1fr; }
}

.qv-eg-card{
  border:1px solid #ececec;
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 1px 0 rgba(0,0,0,0.03);
  cursor: pointer;
}

.qv-eg-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  cursor: pointer;
}


.qv-eg-thumb{
  position:relative;
  height:190px;
  background-size:cover;
  background-position:center;
  background-color:#f3f5f7;
}

.qv-eg-thumb.is-empty{
  background-image:linear-gradient(135deg, #f2f5ff, #f6f6f6);
}

.qv-eg-badge{
  position:absolute;
  top:12px;
  right:12px;
  padding:7px 12px;
  border-radius:999px;
  font-size:13px;
  color:#fff;
  background:#1563ff;
}

.qv-eg-badge.is-closed{
  background:#111;
}

.qv-eg-body{
  padding:16px 16px 18px;
}

.qv-eg-title{
  font-size:16px;
  font-weight:400;
  letter-spacing: -0.5px;
  margin:0 0 10px;
  color:#111;

  /* 🔒 핵심 */
  line-height:1.35;
  height: calc(1.35em * 2); /* 2줄 고정 높이 */
  overflow:hidden;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.qv-eg-summary{
  font-size:13px;
  color:#666;
  margin:0 0 16px;

  /* 🔒 핵심 */
  line-height:1.55;
  height: calc(1.55em * 3); /* 2줄 고정 */
  overflow:hidden;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.qv-eg-btn{
  display:flex;;
  align-items:center;
  justify-content:center;
  width:120px;
  height:30px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  margin:0 auto;
}

.qv-eg-btn.is-cta{
  background:#1563ff;
  color:#fff;
}

.qv-eg-btn.is-disabled{
  background:#666;
  color:#fff;
  opacity:0.9;
  cursor:not-allowed;
}

.qv-eg-btn[disabled]{
  cursor:not-allowed;
}

.qv-eg-empty{
  grid-column:1 / -1;
  text-align:center;
  padding:64px 10px;
  color:#666;
}

.qv-eg-empty-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:10px;
  color:#111;
}

.qv-eg-empty-desc{
  font-size:14px;
}

.qv-eg-pagination{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin:26px auto 0;
  user-select:none;
}

.qv-eg-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  border:1px solid transparent;
  color:#111;
  text-decoration:none;
  font-size:14px;
}

.qv-eg-page.is-active{
  border-color:#2ebd59;
  box-shadow:0 0 0 1px rgba(46,189,89,0.25);
}

.qv-eg-page-nav{
  font-size:18px;
  opacity:0.85;
}

.qv-eg-page.is-disabled{
  opacity:0.35;
  pointer-events:none;
}
