/* =========================================================
   담솥 창업 추천 대상 (recommend)
   ========================================================= */
#recommend {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 100px 10px;
  background-color: #e3ddd7;
  background-image: url(../img/recommend/bg.png);
  background-size: cover !important;
  background-position: center center !important;
  box-sizing: border-box;
}
#recommend .recommend-deco {
  position: absolute;
  bottom: -17%;

  right: 0;
  width: 45%;
  max-width: 633px;
  height: auto;
  aspect-ratio: 209/139;
}

#recommend .recommend-inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- 제목 ---------- */
#recommend .tit-wrap {
  gap: 0;
}

#recommend .recommend-bar {
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: 20px;
  background: #5f432c;
}

#recommend .st-sub-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: normal;
}

#recommend .st-tit {
  font-family: 'Paperlogy', sans-serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: normal;
}

#recommend .st-tit strong {
  font-weight: 700;
}

/* ---------- 카드 ---------- */
#recommend .recommend-list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 33px;
  margin-top: 80px;
}

#recommend .recommend-card {
  position: relative;
  z-index: 1; /* 따봉(recommend-up) 위에 표시 */
  width: 25%;
  max-width: 300px;
  box-sizing: border-box;
  padding: 50px 20px 30px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3ddd7;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 지그재그 배치 (1·3번째 카드 아래로) */
#recommend .recommend-card:nth-child(odd) {
  margin-top: 60px;
}

#recommend .recommend-media {
  position: relative;
  width: 49%;
  max-width: 148px;
  aspect-ratio: 148 / 146;
}

#recommend .recommend-media > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f2cd55;
}

/* 상태 배지 */
#recommend .recommend-badge {
  position: absolute;
  right: -27px;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#recommend .recommend-badge-on {
  background: #5f432c;
}

#recommend .recommend-badge-on img {
  width: 40px;
  height: 40px;
}

#recommend .recommend-badge-off {
  background: #e3ddd7;
  outline: 1px solid #5f432c;
  outline-offset: -1px;
}

#recommend .recommend-desc {
  max-width: 225px;
  word-break: keep-all;
  /* white-space: nowrap; */
  text-align: center;
  font-family: 'Paperlogy', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 34.8px;
  color: rgba(25, 25, 25, 0.7);
}

#recommend .recommend-desc strong {
  font-weight: 600;
  color: #191919;
}

/* ---------- 따봉(추천 확정) ---------- */
#recommend .recommend-up {
  position: absolute;
  z-index: 0; /* 카드(recommend-list) 뒤에 위치 */
  width: 19%;
  max-width: 248.462px;
  max-height: 124.024px;
  aspect-ratio: 248.462 / 124.024;
  top: 21%;
  right: 2%;
  /* transform: rotate(-33.344deg); */
  transform-origin: center center;
  pointer-events: none;
}

#recommend .recommend-up img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================
   반응형 — 768px 이하 (태블릿) : 데스크톱값에서 적당히 축소 + 2열 지그재그
   ========================================================= */
@media (max-width: 768px) {
  #recommend {
    padding: 90px 24px;
  }
  /* 장식용 따봉 숨김 (2열 재배치 구간) */
  #recommend .recommend-up {
    display: none;
  }

  /* 제목 */
  #recommend .recommend-bar {
    margin-bottom: 16px;
  }
  #recommend .st-sub-tit {
    font-size: 24px;
  }
  #recommend .st-tit {
    font-size: 46px;
  }

  /* 카드 : 2열 지그재그 */
  #recommend .recommend-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 480px;
    margin-top: 50px;
  }
  #recommend .recommend-card {
    width: calc(50% - 8px);
    max-width: 220px;
    padding: 36px 14px ;
    border-radius: 8px;
    gap: 14px;
  }
  #recommend .recommend-card:nth-child(odd) {
    margin-top: 0px;
  }
  #recommend .recommend-card:nth-child(1) {
    margin-top: 40px;
  }
  #recommend .recommend-card:nth-child(4) {
    margin-top: -40px;
  }
  #recommend .recommend-media {
    max-width: 110px;
  }
  #recommend .recommend-badge {
    width: 44px;
    height: 44px;
    right: -10px;
  }
  #recommend .recommend-badge-on img {
    width: 28px;
    height: 28px;
  }
  #recommend .recommend-desc {
    font-size: 16px;
    line-height: 24px;
    max-width: none;
  }
}

/* =========================================================
   반응형 — 480px 이하 (모바일) : 시안 최종 사이즈
   (2열 지그재그는 768px 규칙에서 상속)
   ========================================================= */
@media (max-width: 480px) {
  #recommend {
    padding: 80px 16px;
  }

  /* 제목 */
  #recommend .recommend-bar {
    margin-bottom: 16px;
  }
  #recommend .st-sub-tit {
    font-size: 18px;
    line-height: 25.2px;
  }
  #recommend .st-tit {
    font-size: 30px;
    line-height: 39px;
  }

  /* 카드 : 시안 최종(150px) */
  #recommend .recommend-list {
    gap: 16px;
    max-width: 320px;
    margin-top: 40px;
  }
  #recommend .recommend-card {
    max-width: 150px;
    padding: 25px 10px 15px;
    border-radius: 6px;
    gap: 10px;
  }

#recommend .recommend-card:nth-child(1) {
  margin-top: 30px;
}
#recommend .recommend-card:nth-child(4) {
  margin-top: -30px;
}

  #recommend .recommend-media {
    max-width: 74px;
  }
  #recommend .recommend-badge {
    width: 30px;
    height: 30px;
    right: -6px;
  }
  #recommend .recommend-badge-on img {
    width: 20px;
    height: 20px;
  }
  #recommend .recommend-desc {
    font-size: 12px;
    line-height: 17.4px;
  }
}
