.section-2 {
  width: 100%;
  height: 960px;
  background-color: #F3F4F6;
  overflow: hidden;
}

.section-inner-2 {
  padding: 120px;
}

/* .section-content {
  width: 100%;
} */

.title-wrap-sec-2 {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

h4{
  line-height: 1.3em;
}

.text-red {
  color: #E23B3B ;
}

.text-caption {
  font-weight: 400;
  max-width: 440px;
  line-height: 1.4em;
  text-align: left;
}

.text-caption-bold {
  font-size: var(--text-caption);
  margin-top: 4px;
  font-weight: 700;
  color: var(--gray-600);
  max-width: 500px;
  line-height: 1.4;
  text-align: left;
}

.content-wrap {
  display: flex;
  justify-content: center;
}

.content-item-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin-top: 60px;
  align-items: stretch;
}

.card-step-item{
  border-radius: 24px; 
  background-color: #fff;
  box-sizing: border-box;
  flex-direction: column;
  min-width: 0;
  width: 280px;
  flex-shrink: 0;
  display: flex;
}

.card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tag {
  font-weight: 600;
}

.card-title{
  font-size: var(--text-subtitle);
  font-weight: 600;
  margin-top: 4px;
  color: var(--gray-900);
}

.card-text {
  background-color: #fff;
  padding: 24px;
  border-radius: 0 0 24px 24px;
  box-sizing: border-box;
  flex: 1;
  width: 280px;
}

.card-text ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.card-list li{
  margin-top: 4px;
  font-size: var(--text-body-md);
  color: var(--gray-800);
}

/* 개별 이미지 */
.card-step-item:nth-child(1) {
  background-color: #D8E2FF;
}

.card-step-item:nth-child(2) {
  background-color: #B9C4E4;
}

.card-step-item:nth-child(3) {
  background-color: #8594BC;
}

.card-step-item-4 {
  border-radius: 24px;
  background-color: #525F81;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-width: 0;
}

.card-title-4 {
  font-size: var(--text-title-sm);
  font-weight: 600;
  color: #fff;
}

.card-text-4 {
  margin-top: 72px;
}

.card-step-4bg {
  position: absolute;
  background-image: url(../img/step4-bg.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 320px;
  height: 240px;
  right: 100;
  bottom: 0;
}

/* 태블릿: 1200px 이하 */
@media (min-width: 768px) and (max-width: 1200px) {
  .section-2 { height: auto; }
  .section-2 .section-inner-2 { padding: 120px; margin: 0; }
  .section-2 .title-wrap-sec-2 { 
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .section-2 .title-wrap-sec-2 > * { min-width: 0; flex: 1; }
  .section-2 .title-wrap-sec-2 .text-align { overflow-wrap: anywhere; }
  .section-2 .content-wrap { width: 700px; }
  .section-2 .content-item-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
  }
  .section-2 .card-step-item {
    display: flex;
    flex-direction: column;
    /* flex: 0 0 calc((80% - 16px) / 2); */
    width: auto;
    height: auto;
    min-width: 0;
  }
  .section-2 .card-visual img { max-width: 100%; height: auto; }
  .section-2 .card-text { flex: 1; overflow-wrap: anywhere; }
  .section-2 .card-step-item-4 { min-height: 280px; width: 280px; }
  .section-2 .card-text-4,
  .section-2 .card-visual-4 { position: relative; z-index: 1; }
  .section-2 .card-step-4bg {
    width: 100%;
    max-width: 320px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    background-position: center bottom;
    pointer-events: none;
  }
}

/* 모바일: 767px 이하 */
@media (max-width: 767px) {
  .section-2 { height: auto; }
  .section-2 .section-inner-2 { padding: 80px 40px; }
  .section-2 .title-wrap-sec-2 { flex-direction: column; align-items: stretch; gap: 16px;}
  .section-2 .content-item-group { 
    flex-direction: column; 
    align-items: center;
    }
  .section-2 .card-step-item { flex: 0 0 auto; width: 100%; height: 360px; }
  .section-2 .card-visual img { width: 56%; height: auto; }
  .section-2 .card-text { padding: 16px; }
}
