.main-service-slide-container {
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* 슬라이더 헤더 스타일 */
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  flex-wrap: wrap;
}

.slide-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.slide-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
  white-space: nowrap;
}

/* 탭 버튼 스타일 */
.tab-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding-bottom: 5px;
}

.tab-buttons::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tab-button {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  /* 아래 속성 추가 */
  position: relative; /* 상대 위치 설정 */
  border-bottom: none; /* 기존 border 제거 */
}

.tab-button.active {
  color: #333;
  font-weight: 600;
  /* border-bottom 제거 */
}

/* 가상 요소로 언더라인 만들기 */
.tab-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent; /* 기본적으로 투명 */
  transition: background-color 0.3s ease;
}

.tab-button.active::after {
  background-color: #333; /* 활성화된 탭에만 색상 표시 */
}

/* 네비게이션 버튼 스타일 */
.slide-nav-buttons {
  display: flex;
  gap: 8px;
}

.slide-nav-btn {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.slide-nav-btn:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.slide-nav-btn.disabled {
  opacity: 0.5;
  cursor: default;
}

/* 슬라이더 스타일 */
.main-service-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0;
  overflow: hidden;
}

.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  transition: transform 0.5s ease;
  padding-bottom: 5px;
}

.slide-item {
  min-width: calc(100% / 3);
  padding-right: 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* 카드 스타일 */
.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 기본 그림자 유지 */
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: bold;
}

.card-icon.food {
  background-color: #ff6b6b;
  color: white;
}

.card-icon.store {
  background-color: #f59f00;
  color: white;
}

.card-icon.pay {
  background-color: #4dabf7;
  color: white;
}

.card-icon.naver {
  background-color: #2e7d32;
  color: white;
}

.main-service-banner-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.main-service-banner-desc {
  color: #666;
  line-height: 1.5;
  font-size: 14px;
}

/* 페이지네이션 스타일 */
.slider-pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 8px;
}

.pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-bullet.active {
  background-color: #333;
  width: 20px;
  border-radius: 4px;
}

/* 링크 스타일 */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

/* 반응형 스타일 */
@media (max-width: 991px) {
  .slide-header-left {
    width: 100%;
    margin-bottom: 10px;
    justify-content: space-between;
  }

  .slide-nav-buttons {
    margin-left: auto;
  }

  .slide-item {
    min-width: 50%;
  }
}

@media (max-width: 768px) {
  .slide-title {
    font-size: 16px;
  }

  .tab-button {
    padding: 4px 8px;
    font-size: 15px;
  }

  .slide-nav-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .card {
    padding: 15px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .main-service-banner-title {
    font-size: 16px;
  }

  .main-service-banner-desc {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .main-service-slide-container {
    padding: 15px 10px;
  }

  .slide-header {
    padding: 0 5px 10px;
    margin-bottom: 15px;
  }

  .slide-item {
    min-width: 85%;
  }

  .slide-title,
  .tab-buttons {
    margin-bottom: 5px;
  }

  .tab-buttons {
    gap: 10px;
  }

  .main-service-slider-container {
    margin: 10px 0;
  }
}
