/************************myCarousel***************/
/* 각 슬라이드에 살짝 어두운 오버레이 */
#myCarousel .carousel-item {
  height: 100vh; /* 기존 대비 약 2배로 확대한 높이 */
  position: relative;
}

#myCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  /* 비율 유지하며 꽉 채우기 */
}

#myCarousel .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 너무 어두우면 0.35 → 0.25 정도로 더 줄여도 됨 */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1)
  );
  z-index: 1;
}

/* 텍스트 전체 박스 */
#myCarousel .carousel-caption.custom-caption {
  z-index: 2;   /* 오버레이 위로 */
  left: 8%;
  right: 8%;
  bottom: 15%;
}

/* 숫자 01 / 02 / 03 */
#myCarousel .caption-number {
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #ffd24c;  /* 노란/골드 계열 */
  margin-bottom: 0.5rem;
}

/* 제목 */
#myCarousel .caption-title {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: #ffffff;
  margin-bottom: 0.3rem;
}

/* 설명 줄들 */
#myCarousel .caption-line {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #f1f1f1;
  line-height: 1.3;
  margin: 0;
}

/* 모바일에서 위치/크기 조금 조정 */
@media (max-width: 768px) {
  #myCarousel .carousel-caption.custom-caption {
    bottom: 12%;
    left: 5%;
    right: 5%;
  }
}

/* 좌우 버튼 전체 영역 확대 */
#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next {
  width: 8%;               /* 기본 약 3% → 클릭 범위 넓힘 */
  opacity: 0.9;            /* 너무 투명하면 안보이니 약간 진하게 */
}

/* 버튼 안의 아이콘 크기 확대 */
#myCarousel .carousel-control-prev-icon,
#myCarousel .carousel-control-next-icon {
  width: 3rem;             /* 기본 2rem → 확대 */
  height: 3rem;
  background-size: 100% 100%;
}

/* 마우스 호버 시 강조 */
#myCarousel .carousel-control-prev:hover,
#myCarousel .carousel-control-next:hover {
  opacity: 1;
}


@media (max-width: 768px) {
  #myCarousel .carousel-item {
    height: 60vh;
  }
}







/************************business card***************/
/* 전체 카드 wrapper */
.business-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* 카드 자체(한 칸) */
.business-card {
  flex: 1 1 calc(50% - 1.5rem);   /* 현재는 2개라서 50%씩 */
  text-decoration: none;
  color: #fff;
}

/* 나중에 4개까지 확장될 때를 대비한 설정(PC 이상일 때) */
@media (min-width: 992px) {
  .business-card {
    flex: 1 1 calc(25% - 1.5rem); /* 최대 4개 한 줄 */
  }
}

/* 안쪽 실제 카드 영역 (비율 고정) */
.business-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;  /* 높이 비율 고정, 연마 소개 그림 느낌 */
  overflow: hidden;
  border-radius: 0.5rem;
}

/* 이미지 */
.business-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* 어두운 오버레이 */
.business-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.5s ease;
}

/* 텍스트 : 기본은 아래쪽 */
.business-card-text {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 1rem;
  transition:
    bottom 0.5s ease,
    transform 0.5s ease;
}

.business-card-title {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.business-card-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin: 0;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .business-card-title {
    font-size: 0.9rem;    /* 모바일에서 축소 */
  }

  .business-card-desc {
    font-size: 0.7rem;      /* 모바일에서 축소 */
  }
}

@media (max-width: 576px) {
  .business-card-title {
    font-size: 0.8rem;    /* 더 작은 화면에서 더 축소 */
  }

  .business-card-desc {
    font-size: 0.6rem;
  }
}



/* hover 효과 */
.business-card:hover .business-card-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.business-card:hover .business-card-img {
  transform: scale(1.05);
}

.business-card:hover .business-card-text {
  bottom: 50%;
  transform: translate(-50%, 50%);
}
