/* 슬라이더 배너 스타일 */
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
}

/* 배너 스타일 */
.banner-slide {
  background-color: #0047bb;
  border-radius: 8px;
  padding: 40px 70px;
  color: white;
  position: relative;
  overflow: hidden;
  height: 220px;
  /* --- 배경 이미지 설정 예시 --- */
  /* background-image: url('path/to/your/image.jpg'); */
  /* background-size: cover; */
  /* background-position: center right; */
  /* background-repeat: no-repeat; */
  /* 실제 이미지는 HTML/PHP에서 각 슬라이드에 맞게 인라인 스타일 등으로 적용해야 합니다. */
}

.slide-banner-content {
  width: 100%; /* 전체 너비 사용 */
  position: relative;
  z-index: 2;
}

.slide-banner-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  word-break: keep-all;
}

.slide-banner-subtitle {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffde59;
  word-break: keep-all;
}

.slide-banner-link {
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  margin-top: 0px;
  font-size: 16px;
}

.slide-banner-link svg,
.slide-banner-link img {
  margin-left: 5px;
  width: 18px;
  height: 18px;
}

.slide-banner-image {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  max-height: 100%;
  width: auto;
  /* --- 기존 이미지 스타일 제거 --- */
  /* position: absolute; */
  /* right: 40px; */
  /* top: 50%; */
  /* transform: translateY(-50%); */
  /* max-height: 100%; */
  /* width: auto; */
  /* z-index: 1; */
}

/* 슬라이더 컨트롤 */
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 2px;
}

.slider-dot.active {
  background-color: white;
  width: 20px;
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  display: none; /* 화살표 숨김 */
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.slider-prev {
  left: 0px;
}

.slider-next {
  right: 0px;
}

/* 슬라이더 일시정지/재생 버튼 */
.slider-pause-play {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.slider-pause-play:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* 슬라이더 카운터 */
.slider-counter {
  position: absolute;
  bottom: 18px; /* pause-play 버튼과 수직 정렬 */
  right: 55px; /* pause-play 버튼 왼쪽에 위치 */
  color: white;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 10;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .slide-banner-slide {
    padding: 30px 20px;
    height: 200px;
  }

  .slide-banner-content {
    width: 65%;
  }

  .slide-banner-title {
    font-size: 20px !important;
    margin-bottom: 10px;
  }

  .slide-banner-subtitle {
    font-size: 16px !important;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .banner-slide {
    padding: 30px 25px !important;
  }

  .slide-banner-content {
    width: 100%;
  }

  .slide-banner-title {
    font-size: 20px;
  }

  .slide-banner-subtitle {
    font-size: 16px;
  }

  /* .slide-banner-image 관련 스타일 제거 */
  /* opacity: 1; */
  /* right: 10px; */
  /* max-height: 85%; */
  /* max-width: 35%; */

  .slider-arrow {
    width: 30px;
    height: 30px;
  }
}
