/*-----------------------------------------
# 메인 설명회 사례
-------------------------------------------*/
/* ===== Base : PC (cases_pc 1920px 기준) ===== */
.cases {
	overflow:hidden;
  width: 100%;
  padding: clamp(60px, 6.25vw, 120px) clamp(40px, 12.5vw, 240px);
  background: #ffffff;
  color: #0c1c38;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

.cases *,
.cases *::before,
.cases *::after { box-sizing: border-box; }

.cases__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ----- Head ----- */
.cases__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cases__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: 'Inter', 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 1.4px;
  color: #c99e67;
}
.cases__eyebrow-bar {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: #c99e67;
}

.cases__title {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 2.6vw, 50px);
  line-height: 1.32;
  letter-spacing: -1.5px;
  color: #0c1c38;
  word-break: keep-all;
}
.cases__title-line {
  display: inline;
}
.cases__title-line + .cases__title-line { margin-left: 0; }
.cases__title-line--accent { color: #c99e67; margin-left: 8px; }

.cases__subtitle {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.146vw, 22px);
  line-height: 1.45;
  color: #6c7280;
}

/* ----- Body ----- */
.cases__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* ----- Tabs ----- */
.cases__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cases__tabs::-webkit-scrollbar { display: none; }

.cases__tab {
  flex-shrink: 0;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f4;
  color: #3d4760;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.cases__tab:hover { background: #ebebeb; }
.cases__tab.is-active {
  background: #0c1c38;
  color: #ffffff;
  font-weight: 700;
}

/* ----- Card grid : 3 columns on PC ----- */
.cases__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.cases__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f7f5f1;
  border-radius: 16px;
  padding: 20px 24px;
}

.cases__card-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.cases__card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cases__card-num {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  color: #c99e67;
}

.cases__card-class {
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: #0c1c38;
}

/* Image */
.cases__card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 416 / 217;
  /* background: #0c1c38; */
      border: 1px solid rgba(0, 0, 0, 0.06);
  /* border: 1px solid rgba(0, 0, 0, 0.06); */
  border-radius: 8px;
  overflow: hidden;
}
.cases__card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cases__card-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cases__card-image--empty span {
  font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #6c7280;
}

/* Body */
.cases__card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cases__card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.cases__card-title {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.34;     /* 32/24 */
  color: #0c1c38;
  word-break: keep-all;
}

.cases__card-quote {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 0.83vw, 16px);
  line-height: 22px;
  color: #3d4760;
  word-break: keep-all;
}

.cases__card-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}

/* Process pill */
.cases__card-process {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cases__process-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 26px;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 18px;
  color: #0c1c38;
  white-space: nowrap;
}

.cases__process-arrow {
  display: inline-block;
  width: 6px;
  height: 10px;
  flex-shrink: 0;
  background: #0c1c38;
  -webkit-mask: url('/public/img/main/icon_chevron_right.png') no-repeat center / contain;
  mask: url('/public/img/main/icon_chevron_right.png') no-repeat center / contain;
}

/* ----- Hide cards by JS (filter + initial-6 limit) ----- */
.cases__card.is-hidden {
  display: none !important;
}

/* ----- "더 많은 사례 보기" button ----- */
.cases__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 32px;
  background: #ffffff;
  border: 1px dashed #0c1c38;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  color: #0c1c38;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 36px;
  transition: background-color .2s ease;
}
.cases__more:hover { background: #fbfaf7; }

.cases__more-label {
  font-weight: 500;
}

.cases__more-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #0c1c38;
  border-radius: 999px;
  color: #ffffff;
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.16px;
}

.cases__more-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: #0c1c38;
  -webkit-mask: url('/public/img/main/icon_arrow_right.png') no-repeat center / contain;
  mask: url('/public/img/main/icon_arrow_right.png') no-repeat center / contain;
}

.cases__more.is-hidden {
  display: none;
}
@media (max-width: 1800px) {
	.cases {
		padding: 120px 40px;
	}
}
@media (max-width: 1600px) {
	.cases {
		padding: 60px 40px;
	}
}
@media (max-width: 1300px) {
	.cases {
		padding: 60px 30px;
	}
}
@media (max-width: 1200px) {
	.cases__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* ===== Mobile : max-width 767px (cases_mo 375px 기준) ===== */
@media (max-width: 767px) {

  .cases {
    padding: 50px 0px;
  }

  .cases__inner {
    gap: 30px;
  }

  /* Head */
  .cases__head {        padding: 0 20px; gap: 10px; }
  .cases__eyebrow { display: none; }      /* mobile hides eyebrow */

  .cases__title {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }
  .cases__title-line { display: block; }
  .cases__title-line--accent { margin-left: 0; }

  .cases__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  /* Body */
  .cases__body { gap: 20px; padding: 0px; }

  /* Tabs : horizontal scroll on mobile */
  /* .cases__tabsInner{ */
	  /* padding:0 0 0 20px; */
  /* } */
  .cases__tab:nth-child(1){margin:0 0 0 20px}
  .cases__tab:last-child{margin:0 20px 0 0}
  .cases__tabs {
    gap: 6px;
    padding-bottom: 0;
  }
  .cases__tab {
    padding: 13px 16px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
  }
  .cases__tab.is-active { font-weight: 500; }

  /* Cards : single column */
  .cases__list {
	          padding: 0px 20px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cases__card {
    padding: 16px;
    border-radius: 10px;
    gap: 14px;
  }

  .cases__card-head { gap: 10px; }

  .cases__card-num {
    font-size: 14px;
    line-height: 18px;
  }

  .cases__card-class {
    font-size: 14px;
    line-height: 18px;
  }

  .cases__card-image {
    aspect-ratio: 303 / 158;
    border-radius: 6px;
  }

  .cases__card-body { gap: 10px; }

  .cases__card-title {
    font-size: 20px;
    line-height: 28px;
  }

  .cases__card-quote {
    font-size: 14px;
    line-height: 22px;
  }

  .cases__process-pill {
    font-size: 14px;
    line-height: 18px;
  }

  /* More button */
  .casssBtnBox{
	  position:relative;
	  padding:0 20px;
  }
  .cases__more {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
  }
  .cases__more-count {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.14px;
  }
}
