/* Wrapper */
.jg-sg-wrap { width: 100%; max-width: 100%; }

/* Grid */
.jg-sg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 20px; /* 1600+ 좌우 */
  row-gap: 40px;    /* 1600+ 위아래 */
  width: 100%;
}

/* Card */
.jg-sg-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.jg-sg-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 카드 배경과 동일하게 맞춰 코너 안티앨리어싱/비침 색을 제거 */
  background: #fff;
  overflow: hidden;
  border-radius: 20px; /* 이미지 전체 라운드 */
  line-height: 0; /* 이미지 하단 미세 갭 방지 */
}

/* 이미지 링크(클릭 가능) */
.jg-sg-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.jg-sg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit !important; /* 테마/엘리멘터 전역 라운드 방지 + 우리 라운드 유지 */
}

.jg-sg-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2f2f2, #eaeaea);
}

.jg-sg-body { padding: 18px 0 16px; }

.jg-sg-title-row {
  display: flex;
  align-items: flex-start; /* 제목이 2줄 이상일 때 아이콘 상단 고정 */
  justify-content: space-between;
  gap: 12px;
}

.jg-sg-title {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  font-weight: 600;
  color: #000;
  font-size: 22px; /* 1600+ */
}

/* Title link */
.jg-sg-title-link {
  color: inherit;
  text-decoration: none;
}
.jg-sg-title-link:hover,
.jg-sg-title-link:focus,
.jg-sg-title-link:focus-visible {
  text-decoration: none;
}


.jg-sg-arrow {
  flex: 0 0 auto;
  align-self: flex-start; /* 제목이 여러 줄이어도 화살표는 상단 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  background: transparent;
}

/* 업로드된 SVG를 mask로 사용해서 hover 시 컬러 변경 */
.jg-sg-arrow-icon {
  width: 22px;
  height: 22px;
  display: block;
  background-color: #777;
  -webkit-mask: var(--jg-sg-arrow-mask) no-repeat center / contain;
  mask: var(--jg-sg-arrow-mask) no-repeat center / contain;
}

.jg-sg-arrow:hover .jg-sg-arrow-icon,
.jg-sg-arrow:focus .jg-sg-arrow-icon,
.jg-sg-arrow:focus-visible .jg-sg-arrow-icon {
  background-color: #000;
}

.jg-sg-arrow-disabled { opacity: 0.35; }

.jg-sg-sep {
  height: 1px;
  background: #CECECE;
  margin: 12px 0 12px;
}

.jg-sg-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jg-sg-meta-row {
  display: flex;
  align-items: flex-start; /* 주소/근무시간이 2줄 이상일 때 아이콘 상단 고정 */
  gap: 8px;
  color: #000;
}

.jg-sg-meta-row.is-empty {
  visibility: hidden;
}


.jg-sg-meta-icon {
  width: 20px; /* 1600+ */
  height: 20px;
  flex: 0 0 auto;
  display: block;
}

.jg-sg-meta-text {
  font-size: 16px; /* 1600+ */
  font-weight: 300;
  color: #000;
  line-height: 1.35;
}

/* More button */
.jg-sg-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.jg-sg-more {
  border: 1px solid #333;
  background: #fff;
  color: #333;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.jg-sg-more:hover {
  background: #333;
  color: #fff;
}

.jg-sg-more.is-loading { opacity: 0.7; cursor: default; }

/* 1300~1599 (4개) */
@media (max-width: 1599px) and (min-width: 1300px) {
  .jg-sg-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 20px;
  }
  .jg-sg-title { font-size: 18px; }
  .jg-sg-meta-icon { width: 17px; height: 17px; }
  .jg-sg-meta-text { font-size: 14px; }
  .jg-sg-arrow-icon { width: 20px; height: 20px; }
}

/* 880~1299 (3개) */
@media (max-width: 1299px) and (min-width: 880px) {
  .jg-sg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 20px;
  }
  .jg-sg-title { font-size: 16px; }
  .jg-sg-meta-icon { width: 17px; height: 17px; }
  .jg-sg-meta-text { font-size: 14px; }
  .jg-sg-arrow-icon { width: 20px; height: 20px; }
}

/* <=879 (2개) */
@media (max-width: 879px) {
  .jg-sg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 5px;
    row-gap: 10px;
  }
}

/* 501~880 */
@media (max-width: 880px) and (min-width: 501px) {
  .jg-sg-card { border-radius: 10px; }
  .jg-sg-img-wrap { border-radius: 10px; }
  .jg-sg-title { font-size: 14px; }
  .jg-sg-meta-icon { width: 13px; height: 13px; }
  .jg-sg-meta-text { font-size: 11px; }
  .jg-sg-arrow-icon { width: 13px; height: 13px; }
}

/* <=500 */
@media (max-width: 500px) {
  .jg-sg-card { border-radius: 10px; }
  .jg-sg-img-wrap { border-radius: 10px; }
  .jg-sg-title { font-size: 15px; }
  .jg-sg-meta-icon { width: 13px; height: 13px; }
  .jg-sg-meta-text { font-size: 13px; }
  .jg-sg-arrow-icon { width: 13px; height: 13px; }
  .jg-sg-body { padding: 14px 0 12px; }

  /* 모바일(<=500)에서는 아이콘이 텍스트에 비해 다소 위로 붙어보일 수 있어 2px만 하향 */
  .jg-sg-meta-icon,
  .jg-sg-arrow-icon {
    transform: translateY(2px);
  }
}
