/*--------------------------------------------------------------
# Performance Section
--------------------------------------------------------------*/
.performance .performance-carousel,
.performance .performance-slider {
  overflow: hidden;
}

.performance {
  border-top: 1px solid #dedede;
  background-image: linear-gradient(to right bottom, #23d5a5, #2586ff);
}

.performance .section-header h2,
.performance .section-header p {
  color: #fff;
}

.performance .section-header .more {
  display: inline-block;
  width: 8rem;
  padding: 10px 0;
  color: #fff;
  font-weight: 600;

  position: absolute;
  right: 19px;
  top: 100px;
  transition: 0.3s;
  border: 1px solid rgba(0, 0, 0, 0);
}

.performance .mo-more {
  display: none;
}

.performance .section-header .more:hover {
  border-bottom: 1px solid #fff;
}

.performance .section-header .more .icon {
  width: 15px;
  position: absolute;
  right: 0;
  top: 14px;
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.performance .performance-wrap {
  display: flex;

  align-content: center;
  justify-content: center;

  margin-bottom: 10px;
}

.performance .performance-item {
  box-sizing: content-box;
  width: 100%;
  height: 220px;
  padding: 30px;
  box-shadow: 0px 2px 20px rgba(82, 86, 94, 0.1);
  position: relative;
  background: #fff;
  border-radius: 30px;
}

.performance .performance-item h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0 5px 0;
  color: #000;
  display: block;
  line-height: 25px;
}

.performance .performance-item h3 {
  font-weight: bold;
  color: #000;
  display: block;
  line-height: 25px;
}
/* 한글일 때 */
html.lang-ko .performance .performance-item h3 {
  font-size: 16px;
}
/* 영어일 때 */
html.lang-en .performance .performance-item h3 {
  font-size: 15px;
  line-height: 1.32;
}

.performance .performance-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
  width: 27%;
  height: 26px;
  text-align: center;
  line-height: 26px;
  display: block;
  position: absolute;
  right: 30px;
  top: 35px;
  background-color: #ccc;
  color: #fff;
  border-radius: 50px;
}

.performance .performance-item h5 {
  font-size: 14px;
  color: #999;
  position: absolute;
  bottom: 25px;
  right: 30px;
}

.performance .performance-item .quote-icon-left,
.performance .performance-item .quote-icon-right {
  color: #ffd565;
  font-size: 23px;
  line-height: 0;
}

.performance .performance-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.performance .performance-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

/* 기본 마진 유지 */
.performance .performance-item p {
  margin: 10px auto 15px auto;
}

/* 한글일 때 */
html.lang-ko .performance .performance-item p {
  font-size: 16px;
}

/* 영어일 때 */
html.lang-en .performance .performance-item p {
  font-size: 12px;
}
.performance .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.performance .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #d5d7da;
  opacity: 1;
}

.performance .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--color-primary);
}

@media (max-width: 1024px) {
  .performance .performance-item .performance-img {
    position: static;
    left: auto;
  }
}

@media (max-width: 767px) {
  .performance .section-header .more {
    display: none;
  }

  .performance .mo-more {
    display: block;
    width: 100%;
    color: #fff;
    position: relative;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
  }

  .performance .mo-more .icon {
    width: 15px;
    margin-left: 14px;
    margin-top: -2px;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
      brightness(102%) contrast(102%);
  }
}

@media (max-width: 575px) {
  .performance .performance-item {
    height: 260px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  .performance .performance-item h4 {
    right: 16px;
    top: 20px;
  }

  .performance .performance-item h5 {
    bottom: 10px;
    right: 16px;
  }
}

/*--------------------------------------------------------------
# Performance 4column Section
--------------------------------------------------------------*/
.per_4column_wrap {
  margin-top: 60px;
}

.per_4column_wrap .list {
  width: 100%;
  padding: 0;
}

.per_4column_wrap li {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #c9c9c9;
  padding: 20px 4px;

  text-align: center;
  align-items: center;
  font-size: 1.1rem;
}

.per_4column_wrap li span {
  background-color: #e9e9e9;
  border-radius: 6px;
  padding: 4px 14px;
  color: #333;
  font-size: 0.9rem;
  margin: 8px 8px 0 0;
  display: inline-block;
}

.per_4column_wrap li:first-child {
  border-top: 2px solid #333;
  font-weight: 700;
}

.per_4column_wrap li div:first-child {
  min-width: 140px;
}

.per_4column_wrap li div:nth-child(2) {
  width: 100%;
  padding: 0 30px;
}

.per_4column_wrap li div:nth-child(3) {
  min-width: 120px;
}

.per_4column_wrap li div:last-child {
  min-width: 140px;
}

@media screen and (max-width: 767px) {
  .per_4column_wrap li {
    font-size: 1rem;
    padding: 20px 0;
  }

  .per_4column_wrap li div:first-child {
    min-width: 80px;
  }

  .per_4column_wrap li div:nth-child(2) {
    padding: 0 16px;
  }

  .per_4column_wrap li div:nth-child(3) {
    min-width: 80px;
  }

  .per_4column_wrap li div:last-child {
    min-width: 100px;
  }

  /* 제목 없애고 순서 변경 */
  .per_4column_wrap li {
    display: flex;
    flex-wrap: wrap;

    text-align: left;
    align-items: center;
  }

  .per_4column_wrap li:first-child {
    display: none;
  }

  .per_4column_wrap li:nth-child(2) {
    border-top: 2px solid #333;
  }

  .per_4column_wrap li div {
    margin: 4px 8px;
  }

  .per_4column_wrap li div:nth-child(2) {
    padding: 0;
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .per_4column_wrap li div:last-child {
    text-align: right;
  }

  .per_4column_wrap li div:nth-child(3),
  .per_4column_wrap li div:last-child {
    flex: 1 1 40%;
    color: #999;
  }

  .per_4column_wrap li div:first-child br {
    display: none;
  }
}

/* 영어버전 스타일 */

html[lang="en"] .per_4column_wrap {
  margin-top: 60px; /* 기존 유지 */
}

html[lang="en"] .per_4column_wrap .list {
  width: 100%;
  padding: 0;
}

/* Row */
html[lang="en"] .per_4column_wrap li {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #c9c9c9;
  padding: 18px 4px;

  /* 통일: 영어는 가운데 정렬이 전체적으로 깔끔 */
  text-align: center;
  align-items: center;

  /* 폰트: 현재 캡처처럼 작게 유지 */
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: 0;
}

/* Header row */
html[lang="en"] .per_4column_wrap li:first-child {
  border-top: 2px solid #333;
  font-weight: 700;
}

/* Column widths (PC) */
html[lang="en"] .per_4column_wrap li div:first-child {
  min-width: 160px; /* Period / Year */
  white-space: nowrap;
}

html[lang="en"] .per_4column_wrap li div:nth-child(2) {
  width: 100%; /* Content / Name */
}

/* Project Name / Client column */
html[lang="en"] .per_4column_wrap li div:nth-child(3) {
  min-width: 220px;
}

/* Budget / Duration column */
html[lang="en"] .per_4column_wrap li div:last-child {
  min-width: 180px;
}

/* =========================================================
   IMPORTANT: Equal horizontal padding for columns 2/3/4
   (Fix: Content had padding, Name/Budget didn’t)
   ========================================================= */
html[lang="en"] .per_4column_wrap li div:nth-child(2),
html[lang="en"] .per_4column_wrap li div:nth-child(3),
html[lang="en"] .per_4column_wrap li div:last-child {
  padding: 0 18px;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Tag styling inside content stays readable in EN too */
html[lang="en"] .per_4column_wrap li span {
  background-color: #e9e9e9;
  border-radius: 6px;
  padding: 4px 12px;
  color: #333;
  font-size: 0.85rem;
  margin: 8px 8px 0 0;
  display: inline-block;
}

/* =========================================================
   Mobile (<= 767px): keep existing mobile structure,
   but unify font size + padding, and prevent ugly wrapping
   ========================================================= */
@media screen and (max-width: 767px) {
  html[lang="en"] .per_4column_wrap li {
    font-size: 0.95rem;
    padding: 18px 0;

    display: flex;
    flex-wrap: wrap;
    text-align: left; /* 모바일은 가독성상 좌측 정렬이 안정적 */
    align-items: center;
  }

  html[lang="en"] .per_4column_wrap li:first-child {
    display: none; /* 기존 정책 유지 */
  }

  html[lang="en"] .per_4column_wrap li:nth-child(2) {
    border-top: 2px solid #333; /* 기존 정책 유지 */
  }

  html[lang="en"] .per_4column_wrap li div {
    margin: 4px 8px;
  }

  html[lang="en"] .per_4column_wrap li div:first-child {
    min-width: 92px;
    white-space: nowrap;
  }

  /* 모바일에서 2열(제목/컨텐츠) 강조는 유지하되 과하지 않게 */
  html[lang="en"] .per_4column_wrap li div:nth-child(2) {
    padding: 0; /* 모바일은 내부 패딩보다 margin으로 정리 */
    font-size: 1.02rem;
    margin-bottom: 14px;
    line-height: 1.35;
    width: 100%;
  }

  /* 3열/4열은 두 칼럼으로 자연스럽게 */
  html[lang="en"] .per_4column_wrap li div:nth-child(3),
  html[lang="en"] .per_4column_wrap li div:last-child {
    flex: 1 1 45%;
    color: #999;
    padding: 0; /* 모바일도 내부 패딩 제거(줄바꿈 깔끔) */
  }

  html[lang="en"] .per_4column_wrap li div:last-child {
    text-align: right;
  }

  html[lang="en"] .per_4column_wrap li div:first-child br {
    display: none;
  }
}
html[lang="en"] .per_4column_wrap li div:nth-child(2) {
  padding: 0 30px;
}
