/** {*/
/*  margin: 0;*/
/*  padding: 0;*/
/*  box-sizing: border-box;*/
/*}*/

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
}

.service-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 30px 0;
  color: white;
  /*position: sticky;*/
  top: 500px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-title {
  text-align: center;
  margin-bottom: 30px;
}

.service-title h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.service-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-icon img {
  background-color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
  transform: scale(1.1);
}

.service-item h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .service-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .service-item {
    padding: 20px 15px;
  }

  .service-icon img {
    width: 60px;
    height: 60px;
  }

  .service-item h3 {
    font-size: 1rem;
  }
}

/* 추가 효과 */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item {
  position: relative;
  overflow: hidden;
}

.service-item:hover::before {
  opacity: 1;
}

.bx-wrapper {
  height: 550px  /* 원하는 높이로 설정 */
}

@media screen and (max-width: 1399px) {
  .bx-wrapper {
    height: 440px;
  }
}

.bx-wrapper .bx-viewport {
  height: 400px !important;
}

/* 슬라이더 컨테이너의 높이를 자동으로 조정 */
/*.bxslider {*/
/*  height: auto !important;*/
/*  min-height: 400px; !* 최소 높이 설정 *!*/
/*}*/

.bxslider > li {
  height: 400px;
  display: flex;
  /*align-items: center; !* 내용 세로 중앙 정렬 *!*/
  /*justify-content: center; !* 내용 가로 중앙 정렬 *!*/
  flex-direction: column;

  /*height: auto !important;*/
  overflow-y: auto; /* 세로 스크롤 허용 */
}


.bx-viewport {
  border-radius: 15px;
  overflow: hidden;
  margin-top: 140px; /* 헤더 높이(100px) + top값(40px) */
}

@media screen and (max-width: 1399px) {
  .bx-viewport {
    margin-top: 0; /* 화면이 줄어들면 여백 제거 */
  }
}

/* Slide Styles */
.slide-content {
  display: flex !important;
  gap: 20px; /* 42px에서 20px로 줄임 */
  padding: 20px;
  min-height: 160px; /* 200px에서 160px로 줄임 */
  align-items: stretch;
  justify-content: center;
}

.slide-card {
  flex: 1;
  background: white;
  border-radius: 12px; /* 15px에서 12px로 줄임 */
  padding: 25px 20px; /* 40px 30px에서 25px 20px로 줄임 */
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); /* 그림자도 살짝 줄임 */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  max-width: 280px; /* 최대 너비 제한 추가 */

  /* 향상된 transition 효과 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover 효과 */
.slide-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* 아이콘 효과 */
.icon {
  font-size: 3rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  transform: scale(1);
}

.slide-card:hover .icon {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 5px 15px rgba(255,255,255,0.3));
}

/* 텍스트 효과 */
h3 {
  font-size: 1.5rem;
  margin: 0 0 15px 0;
  font-weight: 600;
  transition: all 0.3s ease;
}

.slide-card:hover h3 {
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.slide-card:hover p {
  opacity: 1;
  transform: translateY(-2px);
}

/* 배경 애니메이션 효과 */
.slide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.slide-card:hover::before {
  left: 100%;
}

/* 컨텐츠를 앞으로 */
.slide-card > * {
  position: relative;
  z-index: 2;
}

/* 글로우 효과 */
.slide-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
  z-index: -1;
}

.slide-card:hover::after {
  opacity: 1;
}

/* 클릭 인디케이터 스타일 */
.click-indicator {
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  color: #007bff;
}

.slide-card:hover .click-indicator {
  opacity: 1;
  transform: translateY(0);
  color: white;
}

/* 카드 클릭 상태 */
.slide-card:active {
  transform: translateY(-10px) scale(0.98);
}
@media (max-width: 768px) {
  .slide-content {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-content: space-around;
  }

  .slide-card {
    padding: 30px 20px;
  }

  .icon {
    display: none;
  }

  h3 {
    font-size: 1.3rem;
  }

  .slide-card p,
  .click-indicator {
    display: none;
  }
}

/* 추가 애니메이션 효과들 */
.slide-card {
  animation: fadeInUp 0.6s ease forwards;
}

.slide-card:nth-child(1) { animation-delay: 0.1s; }
.slide-card:nth-child(2) { animation-delay: 0.2s; }
.slide-card:nth-child(3) { animation-delay: 0.3s; }
.slide-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 화살표 기본 스타일 */
.bx-wrapper:not(footer .bx-wrapper) .bx-controls-direction a {
  position: absolute;
  top: 50%;
  margin-top: -25px;
  width: 50px;
  height: 50px;
  outline: 0;
  z-index: 9999;

  /* 중요: 기존 스타일 제거 */
  text-indent: 0 !important;
  background: none !important;
  background-image: none !important;
  border: none !important;

  /* Flexbox로 중앙 정렬 */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* 기존 pseudo element 제거 */
.bx-wrapper:not(footer .bx-wrapper) .bx-prev:before,
.bx-wrapper:not(footer .bx-wrapper) .bx-next:before,
.bx-wrapper:not(footer .bx-wrapper) .bx-prev:after,
.bx-wrapper:not(footer .bx-wrapper) .bx-next:after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* 이전 버튼 위치 */
.bx-wrapper:not(footer .bx-wrapper) .bx-prev {
  left: 20px;
}

/* 다음 버튼 위치 */
.bx-wrapper:not(footer .bx-wrapper) .bx-next {
  right: 20px;
}

/* Font Awesome 아이콘 스타일 */
/* 모던한 디자인 */
.bx-wrapper:not(footer .bx-wrapper) .bx-controls-direction a i {
  font-size: 24px;
  color: #333;
  background-color: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.bx-wrapper:not(footer .bx-wrapper) .bx-controls-direction a:hover i {
  background-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 반응형 대응 */
@media (max-width: 768px) {
  .bx-wrapper:not(footer .bx-wrapper) .bx-controls-direction a i {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }

  .bx-wrapper:not(footer .bx-wrapper) .bx-prev {
    left: 10px;
  }

  .bx-wrapper:not(footer .bx-wrapper) .bx-next {
    right: 10px;
  }
}

/* 1400px 이상 */
@media (min-width: 1400px) {
  .bx-wrapper:not(footer .bx-wrapper) .bx-controls-direction a {
    top: calc(50% + 50px); /* 50px 아래로 이동 */
  }
}
