/* header */
.business-header {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 0 20px rgba(191, 224, 255, 0.6);
  background: linear-gradient(135deg, #7e8a9369);
  padding: 60px 20px;
  color: #0b2d4a;

  /* 핵심 부분 */
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.business-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0d1b2a;
}

.business-subtitle {
  font-family: 'suit-extrabold';

  font-size: 2.5rem;
  color: #353b41;
}


/* body */

.business-section {
  width: 100%;
  padding: 40px 20px;

  /* background: linear-gradient(
    to right,
    #ffffff 0%,     
    #f9f9f9 15%,    
    #f5f7ff 85%,    
    #ffffff 100%     
  ); */
  border-radius: 12px;
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

/* .business-item {
  display: grid;
  grid-template-columns: 40% 50%;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));

  align-items: center;
  justify-content: center;
  gap: 30px; 
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  padding: 20px;
} */
.business-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  padding: 60px 40px;

  /* 🌈 사선 형태 */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

  /* 💎 배경 + 입체감 */
  background: linear-gradient(135deg, #f9fcff, #eaf4ff);
  border: 1px solid rgba(191, 224, 255, 0.6);
  box-shadow: 0 6px 24px rgba(191, 224, 255, 0.4);

  position: relative;
  overflow: hidden;
}

.title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1b4ef0, #4cc9f0);
  margin: 0 auto;
  border-radius: 2px;
}

/* ✨ 은은한 오버레이 하이라이트만 유지 */
.business-item::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    135deg,
    rgba(48, 137, 76, 0.35) 0%,
    rgba(191, 224, 255, 0.1) 50%,
    transparent 100%
  ); */
  pointer-events: none;
}

/* 호버 시 살짝 뜨는 효과 */
.business-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(131, 207, 248, 0.5);
}

.business-explain-wrapper {
  display: flex;
  flex-direction: column;
  gap: 35px;
  text-wrap: nowrap;
}

/* 각 아이템 */


/* 등장 애니메이션 */
.business-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* 이미지 */
.business-img {
  flex: 1;
  display: flex;
  margin: 0 auto;
}

/* 이미지와 버튼을 감싸는 래퍼: 여기서 클리핑을 보장 */
.img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;

  max-width: 500px;
  /* border-radius: 14px; */
  overflow: hidden;
  /* box-shadow: 0 4px 18px rgba(0,0,0,0.1); */
  transition: padding-bottom 0.4s ease;

}

.img-wrapper:hover {
  padding-bottom: 20px;
}

/* 실제 이미지 */
.img-wrapper img {

  display: block;
  width: 100%;
  height: 80%;
  margin: 0 auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* hover 시 살짝 확대(선택) */
.img-wrapper:hover img {
  transform: scale(1.03);
}

/* 버튼: 초기에는 래퍼의 오른쪽 바깥(클리핑됨) */
.detail-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateX(120%);
  background-color: #0d1b2a;
  color: #fff;
  padding: 10px 26px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.3s ease;
}

/* hover 시 래퍼 내부로 "슥" 진입 */
.img-wrapper:hover .detail-btn {
  transform: translateX(0);
  opacity: 1;
}

/* hover 시 배경색 살짝 밝게 */
.detail-btn:hover {
  background-color: #1b3a57;
}

.info-quick-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
}

/* 텍스트 */
.business-text {
  flex: 1.1;
  padding: 0 10px;
  text-align: center;
  text-wrap: wrap;
}

.business-text h3 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;

  color: #0d1b2a;
  margin-bottom: 12px;
}

.business-text p {
  font-family: 'suit-semibold';

  font-size: clamp(20px, 2vw, 25px);
  font-weight: 200;
  text-align: center;
  color: #495057;
  line-height: 1.6;
  margin: 0;
}

/* 등장 애니메이션 (메인 콘텐츠 공용) */
.js .main-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js .main-content.show {
  opacity: 1;
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 768px) {


  .business-item {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    padding-left: 5px;
    padding-right: 5px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .business-img img {
    width: 100%;
  }

  .business-text {
    padding: 0;
  }
}